cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion Routine in AMDP for MATERIAL (MATNR)

darshan_shah01
Explorer
0 Kudos

Hi Team,

How can we use 'CONVERSION_EXIT_MATN1_INPUT'  in AMDP, where we need to convert Material No, into internal formant ? we have to avoid loop

darshan_shah01
Explorer
0 Kudos

Solution that I found to be better and used:

I created a new CDS on MARA with this code:

SELECT FROM mara {
key matnr,
LTRIM(matnr, '0') AS Converted_matnr
}.

and used that CDS.

junwu
Active Contributor
0 Kudos
use that sql view in your amdp? if yes, i think it is nonsense.
View Entire Topic
ANKA
Explorer
0 Kudos




We cant directly use the Function Module in AMDP.

But we can try like this below

SELECT LPAD ('end', 15, '12345') "lpad" FROM DUMMY;
SELECT LPAD ('end', 2, '12345') "lpad" FROM DUMMY;
 
darshan_shah01
Explorer
0 Kudos

We also have materials like 80139T911071 and 231, where the function module output is 000000000000000231 for 231, and 80139T911071 is the same. What should we do in this case?