Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pick up value

Former Member
0 Likes
549

Hi Everybody,

If COEP-OBJNR is u201CKL*u201D, pick up COEP-OBJNR(6)+16.

how would i pick right value.

Regards,

sud

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
520

Hi,


Select * from COEP
into corresponding fields of table IT_COEP
where OBJNR like 'KL%'.

LOOP at IT_COEP into WA_COEP.
 WA_COEP-OBJNR = WA_COEP-OBJNR+6(16).
MODIFY IT_COEP from WA_COEP transporting OBJNR.
ENDLOOP.

Regards,

MRunal

3 REPLIES 3
Read only

Former Member
0 Likes
521

Hi,


Select * from COEP
into corresponding fields of table IT_COEP
where OBJNR like 'KL%'.

LOOP at IT_COEP into WA_COEP.
 WA_COEP-OBJNR = WA_COEP-OBJNR+6(16).
MODIFY IT_COEP from WA_COEP transporting OBJNR.
ENDLOOP.

Regards,

MRunal

Read only

0 Likes
520

thanks a lot.

Regards,

sud

Read only

Former Member
0 Likes
520

Hi

If COEP-OBJNR CP u201CKL*u201D

COEP-OBJNR = COEP-OBJNR(6)+16. ---> you can also use Temp Variable for COEP-OBJNR so that its values are intact

endif.

Cheers

Ram