Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CUSTOMERCONTRACT_CHANGE partner address data

488

Hello ALL,

I need to change some address data for WE Partner number in a  customer contract using the bapi BAPI_CUSTOMERCONTRACT_CHANGE.

For examploe, I try passing  these fields to the FM:

SALES_DOCUMENT = 0000291113

CONTRACT_HEADER_INX-UPDATEFLAG = U

PARTNERS-PARTN_ROLE = EM

PARTNERS-PARTN_NUMB = 0000040000

PARTNERCHANGES-DOCUMENT = 0000291113

PARTNERCHANGES-ITM_NUMBER = 000000

PARTNERCHANGES-UPDATEFLAG = U

PARTNERCHANGES-PARTN_ROLE = EM

PARTNERADDRESSES-STREET = 18 de julio

PARTNERADDRESSES-HOUSE_NO = 1567

PARTNERADDRESSES-FLOOR = 202

But i get the error : VPD 005 You cannot delete partner function Ship-to party (mandatory function in Release order-procedZAB)

I don't try to delete the partner WE, only modify it the addreess!

Thanks and regards.

3 REPLIES 3

Former Member
0 Kudos
99

You are tring to update ship to party (WE) but in partner role you are passing value EM.

"PARTNERCHANGES-PARTN_ROLE = EM"

Is it correct? i think you should pass WE / SH.

0 Kudos
99

I am passing WE effectively, because the function doing the translation. This is not the problem.

The problem is that the function or the parameters sent by me, don't changing the address data in the WE partner.

I tried with VOPA transaction, deactived the obligatory option in this partner function, but it work incorrectly, the function deleted the WE partner in the contract !

I need to change some data like street, house num, floor, from the current WE Partner.

 

Thanks!

Former Member
0 Kudos
99

Hi Yenia ,

Check "VOPA" T-code for Partner Function also check these Notes.

Note  1639331 - Error "VPD 005" You cannot delete partner function X

         1866487 - VPD 005 'You cannot delete partner function Ship-to party'

Regard's

Smruti