Ganesh - Try this logic
Define these variables
data: V1 type c VALUE 'A' ,
v2(2) TYPE N VALUE '01',
v3(3) type c.
Assuming you in a LOOP.
concatenate v1 v2 into v3." v3 is A01
V2 = V2 + 1.
concatenate v1 v2 into v3." V3 is now A02
* When v3 increments to A99 this logic will kick in - :
IF V3+1(2) = '99' AND V3(1) = 'A'.
MOVE: 'B' TO V1,
'01' TO V2.
CLEAR V3.
ENDIF.
When A get to 99, next loop will start incrementing from B01.
ENDLOOP.
Hope this helps -
frank
--- In [EMAIL PROTECTED], "ganesh.bhondave" <[EMAIL PROTECTED]>
wrote:
>
> Hi group,
>
> I am having one problem.
>
> While incrementing a variable of length 3, I need to increment it
up to
> 999
>
> Then after that it should be incremented as A01 to A99 and B01 to
B99
> and next on ..
>
>
>
> I tried it using ASCII value but was not successful can anyone help
me
> in this ?
>
>
>
> Thanks and regards
>
> Ganesh
>
>
>
>
>
>
**********************************************************************
******************
>
> Note: The information contained in this message may be privileged
and confidential and thus protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
replying to the message and deleting it from your computer. Thank you.
>
>
**********************************************************************
******************
To unsubscribe from this list, send a to mail to
[EMAIL PROTECTED] or go to http://groups.yahoo.com/group/ABAP
Comments about the list can be sent to [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/ABAP/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
