2016 Aug 26 1:58 PM
Hello everybody,
I am trying to change pay-to party from normal customer to one-time customer in BAPI_SALESORDER_CHANGE. When I do change with normal customers, everything works good. I have searched through the SCN and SNOTES but could not find anything that would lead to correct result.
I had read through these notes but still did not find what I need:
366265 - How should I fill the BAPI parameters?
1472089 - Cannot change partner address with BAPI_SALESORDER_CHANGE - SAPSQL_ARRAY_INSERT_DUPREC in LV05IU15
I am getting the following error: Eventhough I pass PARTNERADDRESSES and PARTNERCHANGES system wants me to fill in the address again.
It happens in function 'SD_SALES_PARTNER_MAINTAIN'. I know I am missing some parameter, but I dont know which is it.
APPEND INITIAL LINE TO LT_BAPIPARNRC
ASSIGNING <LS_BAPIPARNRC>.
<LS_BAPIPARNRC>-DOCUMENT = '12345' .
<LS_BAPIPARNRC>-ITM_NUMBER = '000' .
<LS_BAPIPARNRC>-UPDATEFLAG = 'U' .
<LS_BAPIPARNRC>-PARTN_ROLE = 'RG' . "pay-to party
<LS_BAPIPARNRC>-P_NUMB_OLD = '555444' .
<LS_BAPIPARNRC>-P_NUMB_NEW = 'CPDCUST' .
*<LS_BAPIPARNRC>-ADDRESS = .
<LS_BAPIPARNRC>-ADDR_LINK = ' 1' .
*<LS_BAPIPARNRC>-REFOBJTYPE = .
*<LS_BAPIPARNRC>-REFOBJKEY = .
*<LS_BAPIPARNRC>-REFLOGSYS = .
APPEND INITIAL LINE TO LT_BAPIADDR1
ASSIGNING <LS_BAPIADDR1>.
<LS_BAPIPARNRC>-ADDR_NO = '1' .
<LS_BAPIPARNRC>-NAME = 'Test Name' .
<LS_BAPIPARNRC>-CITY = 'Prague' .
<LS_BAPIPARNRC>-COUNTRY = 'CZ' .
<LS_BAPIPARNRC>-LANGU = 'CS' .
2016 Aug 30 9:02 AM