Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Module pool screen field conversion/representation

$
0
0

Hi, you can validate the field in PAI itself before converting the string as below:

 

CASE sy-ucomm.

     WHEN 'ENTE'.

       IF strlen( inp ) > 10.

       MESSAGE 'Enter only 10 characters' TYPE 'S' DISPLAY LIKE 'E'.

       exit.

       ENDIF.

       CONCATENATE inp+0(3) inp+4(3) inp+7(2) inp+9(2) INTO inp1

         SEPARATED BY '-'.

       inp = inp1.

   ENDCASE.

 

where inp is the screen field name. you can similarly put check for special characters.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>