Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MANIPULATING INTERNAL TABLE...

Hello,

I have a internal table I_TAB[] as follows:

ID--VALUE---ATTRIBUTE

P1--36--


D

P3--34--


Y

P9--32--


J

I want to do a mass change in the ID value of this internal table such that, all the IDs get changed

to 'PA' as follows. I don't want to loop at the internal table, pas value to work area and then one by one from peformcne standpoint.

ID--VALUE---ATTRIBUTE

PA--36--


D

PA--34--


Y

PA--32--


J

Regards,

Rajesh.

Tags:
Former Member
Former Member replied

You need to use work area as follows... otherwise i guess its not possible.. Do F1 on Modify and explore

Try this...


DATA: WA_ITAB TYPE ITAB.

WA_ITAB-ID = 'PA'.
MODIFY ITAB FROM WA_ITAB TRANSPORTING ID.

Thanks,

SKJ

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question