We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Finding Special Character and Space from a String Field

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from Jeet on Aug 30 at 12:33 AM
ENHANCEMENT 1 ZTRANS_ID_CHECK. "active version
DATA : CHK_STR(30) TYPE C VALUE '*-+''!$?#%()=???}><[]{??\"_@&#',
CHK_STR1 TYPE C VALUE ' ',
b(1) type c,
IDX TYPE I.

DATA: STR1(100) TYPE C,
LNTH TYPE I,
LNTH1 TYPE I.
STR1 = LIKP-TRAID.
LNTH = STRLEN( STR1 ).
LNTH1 = LNTH + 1.
DO LNTH TIMES.
IF LNTH1 EQ SY-INDEX.
EXIT.
ENDIF.
IDX = SY-INDEX - 1.
IF STR1+IDX(1) CA CHK_STR.
b = 'X'.
EXIT.

ELSEIF STR1+IDX(1) CA CHK_STR1.
B = 'X'.
EXIT.
ELSE.
ENDIF.
ENDDO.
IF B = 'X'.
CLEAR B.
MESSAGE 'Special Character and Spaces are Not Allowed' TYPE 'E'." DISPLAY LIKE 'E'.
ENDIF.
ENDENHANCEMENT.

---------------Original Message---------------
From: Jitendra Nayak
Sent: Friday, January 27, 2012 5:27 AM
Subject: Finding Special Character and Space from a String Field

Hi All,

My requirement is in tcode. VL01n, Goto->Header->Shipment, There is a field TrnsIDCode:-> (likp-traid). I want to do an Enhancement On it. That if the user enters 0-9 or a-z 0r A-Z then it is Ok. If any special Character or Space then Message have to display. I have got enhance point but How to Find Out Special Character and Space if user enters any.?

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Jeet  
SAP ABAP Technical Consultant
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have an SAP Question? Ask Your Peers at Toolbox for IT

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language