2009 Oct 20 3:53 PM
Hi,
I'm trying to change partner address in an order using the Bapi BAPI_SALESORDER_CHANGE. I have searched the known threads but did not found a solution.
my requrirement is to change partner address without passing address number to 'PARTNERADDRESSES' parameter
This is brief about my requirement.
Our requirement is sales order executin from ECC6 to ECC5 i.e. when a sales order is created in ECC6 it should be created in ECC5 when we save order in ECC6, so in a similar way even changes done in EC6 sales order should be reflectedin ECC5 (whichi includes ATP also) so during this process a user can add additional line items with different ship_to party address, so for newly added line item in ECC6 during VA02 (change process) address number will not be there in ECC5 so i can not pass address number in ECC5 during address change using BAPI_SALESORDER_CHANGE.
since stock is not maintained in ECC6 we are doing above process i.e. sales order execution from ECC6 to ECC5.
so in order to change partner address for newly added line item in ECC6 i will not be having adrees number in ECC5 so can any body plz let me know how to change address of a parter without passing address number to 'PARTNERADDRESSES' parameter of
'BAPI_SALESORDER_CHANGE'.
If any body has faced this and found a solutin for this plz let me know.
Hope you understood my requirement.
Hi,
I'm trying to change partner address in an order using the Bapi BAPI_SALESORDER_CHANGE. I have searched the known threads but did not found a solution.
my requrirement is to change partner address without passing address number to 'PARTNERADDRESSES' parameter
This is brief about my requirement.
Our requirement is sales order executin from ECC6 to ECC5 i.e. when a sales order is created in ECC6 it should be created in ECC5 when we save order in ECC6, so in a similar way even changes done in EC6 sales order should be reflectedin ECC5 (whichi includes ATP also) so during this process a user can add additional line items with different ship_to party address, so for newly added line item in ECC6 during VA02 (change process) address number will not be there in ECC5 so i can not pass address number in ECC5 during address change using BAPI_SALESORDER_CHANGE.
since stock is not maintained in ECC6 we are doing above process i.e. sales order execution from ECC6 to ECC5.
so in order to change partner address for newly added line item in ECC6 i will not be having adrees number in ECC5 so can any body plz let me know how to change address of a parter without passing address number to 'PARTNERADDRESSES' parameter of
'BAPI_SALESORDER_CHANGE'.
If any body has faced this and found a solutin for this plz let me know.
Hope you understood my requirement.
2009 Oct 20 3:57 PM
Long story short..... If you change address in SAP... SAP will create address number.
I think you got it
2009 Oct 21 9:10 AM
HI Sampath,
you are right Sampath, SAP will create address number but that is only during creation time i.e. when you pass required data through 'partners' tables parameter while using 'BAPI_SALESORDER_CREATEFROMDAT2' creation BAPI, i passed the same data to through 'partners' tables parameter to BAPI_SALESORDER_CHANGE' but its givinng error 'SAPSQL_ARRAY_INSERT_DUPREC' so we can not use 'parameters' tables parameter while adding new partner addresses, so we need to use 'PARTNERCHANGES' and 'PARTNERADDRESSES' tables parameter and PARTNERADDRESSES tables parameter require address number. if you have faced such issue earlier i.e. adding new partner addresses while using BAPI_SALESORDER_CHANGE' plz let me know.
Regards,
M, Manohar
2009 Oct 21 10:20 AM
then fetch the address using a remote function module.
fetch the address number and then pass this address number to the bapi
there are so many bapi's which are there to fetch address numbers