2007 Dec 20 2:49 PM
Hi,
I'm using BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order. I'm trying to associate two street fields :
- Street/House number and
- Street2
at ship to party partner function.
The ORDER_PARTNERS function only receives field
Street/House number. How can i input Street2 using this BAPI?
Best regards,
PCastro
2007 Dec 20 3:24 PM
There will be no street2 in sales order for partners.
where do you want to feed the value?
2007 Dec 20 3:34 PM
In the address form, of the ship-to-party partner of the sales order.
Using t-code VA02, i can see all the street2, street3, street4, ...fields.The data for this form is an entry in ADRC table especific of the partner ship to party of the sales order.
Regards
2007 Dec 20 3:37 PM
Well, try to create an address in customer master ship to party. Pass the Address number - You might get that address here. instead of passing whole address just pass the address number. you can see the address number in ADRC table.
2007 Dec 20 4:00 PM
The question is, the ship-to-party has the same customer code as the sold to party, hence if i change the adress of the ship to party, i will be changing the adress of the sold to party, which we do not which to change
2007 Dec 20 4:12 PM
Well, in that case check out this table parameter
PARTNERADDRESSES
in the same BAPI.
2007 Dec 20 4:47 PM
Use Tables Parameter PARTNERADDRESSES
STR_SUPPL1 = Street 2
STR_SUPPL2 = Street 3
LOCATION = Street 5
Hope it helps.
Lokesh
Edited by: Lokesh Aggarwal on Dec 20, 2007 4:47 PM
2007 Dec 20 4:58 PM
Hi Lokesh,
But how do i relate this specific data with the address of the ship to party of the sales order...
Regards
2007 Dec 20 5:19 PM
Address Number is the key and is the first field in table PARTNERADDRESSES. There will different address numbers for Ship to and Sold to.
You can get the Address number (ADRNR) of the partner from table VBPA based on the partner function.
Lokesh
Pls. reward points to helpful posts...