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

clarification required

Former Member
0 Likes
419

hi friends,

1.should we take care of BADI and userexit in the upgrade .currently we r upgrading from 4.7 to ECC6

2.i need to read matnr from database table deleting leading zeros

for Example in database 00001122.

through select query i should resd only 1122 alone how to read.is ther any way

thanks in advance

regards,

raj

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
395

Hi,

2. data v_matnr type mara-matnr.

v_matnr = '1122'.

unpack v_matnr to v_matnr.

select * from mara into table itab where matnr = v_matnr.

you can use conversion_exit_* fm also.

Read only

Former Member
0 Likes
395

2.i need to read matnr from database table deleting leading zeros

for Example in database 00001122.

through select query i should resd only 1122 alone how to read.is ther any way

DATA v_matnr LIKE mara-matnr VALUE '00001122'.

SHIFT v_matnr LEFT DELETING LEADING '0'.

SELECT *

FROM mara

INTO ls_matnr

WHERE matnr EQ v_matnr.

Regards

Wenceslaus

Read only

former_member404244
Active Contributor
0 Likes
395

Hi,

no need to takecare of the userexits or badi's it will be upgraded to newversion.

First retrieve the data from db and then use FM

CONVERSIONEXIT_ALPHA_INPUT OR

CONVERSIONEXIT_ALPHA_OUTPUT .to delete the leading zeros.

Regards,

Nagaraj