Skip to Content
0
Apr 15, 2014 at 10:16 PM

How to populate partner function for stock transport order in ME21n/ME22n

357 Views

Please advise is there any way we can determine the partner functions to be populated in ME21n.

I have gone through sap note 117537 they said it is not required and not available in SAP standard way.

Then tried implementing user exit EXIT_SAPMM06E_013 and populating the required partner functions in XEKPA[].

It is getting triggered and i can see the values in table but after save i go and see in display ME23N i can't find any partner functions.

Later i found some interesting thread in SDN use exit: EXIT_SAPMM06E_012 and get the values from (SAPLMEPO)XEKPA[] in case of ME23N.

even this is not working.

DATA it_ekpa LIKE ekpa OCCURS 0 WITH HEADER LINE.

DATA name(50) VALUE '(SAPLMEPO)XEKPA[]'.

DATA name1(50) VALUE '(SAPMM06E)XEKPA[]'.

FIELD-SYMBOLS <f1> TYPE any .

IF sy-tcode+4(1) = 'N'.

ASSIGN (name) TO <f1>.

ELSE.

ASSIGN (name1) TO <f1>.

ENDIF.

it_ekpa[] = <f1>.


Any idea ?



Thanks,

Mahesh gattu