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

Re: VA01 PO Number

$
0
0

Max, the dump is time out... because the routine dies in a infinite loop!


Is very nice to see this!



Create a z program, copy and past the standard code of  REPLACE_SPACESIX_WITH_SPACE form .

Create a selection screen parameter for p_string and fill it with "ALL....(DOC)".

And a break point too...


You you see that the search command will return sy-subrc = 0... I dont know why!

Search command has a bug?

You pass 6 dots to compare and it retrieve ok for 4 only... lol!




CONSTANTS: SPACE_SIX(6) TYPE C VALUE '......'.
   CONSTANTS: I6 TYPE I VALUE 6.
   DATA:      L_SUBRC TYPE SY-SUBRC.
   SEARCH P_STRING FOR SPACE_SIX.
   L_SUBRC = SY-SUBRC.
   WHILE L_SUBRC EQ 0.
     REPLACE SPACE_SIX LENGTH I6 WITH '      ' INTO P_STRING.
     SEARCH P_STRING FOR SPACE_SIX.
     L_SUBRC = SY-SUBRC.
   ENDWHILE.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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