Skip to Content
0
Former Member
Jul 07, 2011 at 10:48 AM

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

504 Views

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.