2006 Jan 03 8:38 AM
Hi,
I want to increment the Character . e.g
A + 1 = B. Can any body tell me how it can be done?Saurabh.
2006 Jan 03 8:42 AM
IF sy-abcde CA lettre.
sy-fdpos = sy-fdpos + 1 .
lettre = sy-abcde+sy-fdpos(1).
ENDIF.
don't forget the reward plz
Hi,
I want to increment the Character . e.g
A + 1 = B. Can any body tell me how it can be done?Saurabh.
2006 Jan 03 8:42 AM
IF sy-abcde CA lettre.
sy-fdpos = sy-fdpos + 1 .
lettre = sy-abcde+sy-fdpos(1).
ENDIF.
don't forget the reward plz
2006 Jan 03 8:59 AM
2006 Jan 03 9:14 AM
2006 Jan 03 9:07 AM
Check this program,
REPORT ZSRIM_TEMP5.
DATA : V_C1 TYPE C VALUE 'X',
V_POS TYPE I.
IF SY-ABCDE CS V_C1.
IF SY-FDPOS = 25.
*--I am assuming After 'Z', 'A' has to appear.
V_POS = 0.
ELSE.
*--increment to next character
V_POS = SY-FDPOS + 1.
ENDIF.
V_C1 = SY-ABCDE+V_POS.
ENDIF.
now V_C1 will have the next character in the alphabet
Message was edited by: Srikanth Kidambi Maruthi
added comments to the program
Message was edited by: Srikanth Kidambi Maruthi
2006 Jan 03 9:16 AM
Thanks a lot STEPHEN ,
Solution worked.
Regards
Saurabh.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |