cancel
Showing results for 
Search instead for 
Did you mean: 

User exit for add partner in delivery document when execute then tx-vl06

Former Member
0 Kudos

Hi,

I try to add new partners in delivery document when I execute the transaction vl06. For this, I use the user exit MV50AFZ1 where I implement the code that add new registers in table XVBPA. This solution doesn't work because it doesn't add new partners in delivery document.

...

CLEAR XVBPA.

XVBPA-MANDT = '010'.

XVBPA-VBELN = LIKP-VBELN.

XVBPA-POSNR = '000000'.

XVBPA-PARVW = 'ZC'.

XVBPA-PERNR = '00000045'.

XVBPA-ADRNR = '0000000000'.

XVBPA-LAND1 = 'ES'.

XVBPA-ADRDA = 'D'.

APPEND XVBPA.

CLEAR XVBPA.

XVBPA-MANDT = '010'.

XVBPA-VBELN = LIKP-VBELN.

XVBPA-POSNR = '000000'.

XVBPA-PARVW = 'SP'.

XVBPA-LIFNR = '0000000491'.

XVBPA-ADRNR = '0000083037'.

XVBPA-LAND1 = 'ES'.

XVBPA-ADRDA = 'D'.

APPEND XVBPA.

...

Please, anybody knows others solutions.

Thanks for your help.

Xevi G.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

check this EXIT_SAPLV09A_004

Former Member
0 Kudos

Hi Ram Ki,

It doesn't work. When I execute the transaction vl06g, the flow doesn't pass for this user exit.

Thanks for your comment.

XeviG.

Answers (1)

Answers (1)

mitra2483_sap
Explorer
0 Kudos

Update XVBPA-UPDKZ = 'I' to insert new record. 'D' for Delete and 'U' for update