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_SALESORDER_CREATEFROMDAT2

former_member667396
Participant
0 Kudos
314

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

8 REPLIES 8

former_member191735
Active Contributor
0 Kudos
183

There will be no street2 in sales order for partners.

where do you want to feed the value?

0 Kudos
183

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

0 Kudos
183

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.

0 Kudos
183

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

0 Kudos
183

Well, in that case check out this table parameter

PARTNERADDRESSES

in the same BAPI.

Former Member
0 Kudos
183

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

0 Kudos
183

Hi Lokesh,

But how do i relate this specific data with the address of the ship to party of the sales order...

Regards

0 Kudos
183

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...