cancel
Showing results for 
Search instead for 
Did you mean: 

FM for Material number conversion from R/3 to APO in R/3

Former Member
0 Kudos

Hi,

Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.

Please suggest to win full points.

Thaniks in Advance,

Chandan Dubey

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Chandan,

Conversion Exits:

CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros

Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.

For example:


data : v_matnr type matnr,            "R/3 Material
       v_apo_matnr(40) type c,        "APO Material with 40 length
       v_zeros(22) type c. value '0000000000000000000000000000'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       EXPORTING  INPUT          = v_matnr
       IMPORTING  OUTPUT         = v_matnr.

concatenate e_mantr v_zeros into 
            v_apo_matnr. 

Regards,

Naveen.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chandan,

Below is path to specify the output format.

Tcode : spro

Navigation :

Advanced Planning Optimization->Product->Specify Output format of Product Number

Regards,

Siva.