Application Development and Automation 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: 
Read only

Bapi BAPI_SALESORDER_CREATEFROMDAT1, Sales Order populating issue.

Former Member
0 Likes
1,114

Hello,

I am trying to create Sales Documents for the CPD(One time customers) by using the Bapi ‘BAPI_SALESORDER_CREATEFROMDAT1’. Here I am getting all the data that needs to populate into the sales order, from an external file.

Issue: The issue is that I am not able to Populate value ‘House Number’ in the

Partners tab. While creating the Sales order thorough VA01 I amable

to enter values in Street and House Number separately where as through

Bapi {In Structure- BAPIPARTNR}not able to pass values to ‘House

Number’. I am able to send rest all data .

Kindly suggest the way in populating these values{I am looking House Number and also VAT reg Number} through this Bapi or is there any other Bapi through which I can do the same.

Regards,

Pavan.

Hello,

I am trying to create Sales Documents for the CPD(One time customers) by using the Bapi ‘BAPI_SALESORDER_CREATEFROMDAT1’. Here I am getting all the data that needs to populate into the sales order, from an external file.

Issue: The issue is that I am not able to Populate value ‘House Number’ in the

Partners tab. While creating the Sales order thorough VA01 I amable

to enter values in Street and House Number separately where as through

Bapi {In Structure- BAPIPARTNR}not able to pass values to ‘House

Number’. I am able to send rest all data .

Kindly suggest the way in populating these values{I am looking House Number and also VAT reg Number} through this Bapi or is there any other Bapi through which I can do the same.

Regards,

Pavan.

1 REPLY 1
Read only

Former Member
0 Likes
498

Hi Pavan,

If u check the description of the street field u'll c "House number and street" (both in VA01 and in the BAPI structure). When u enter data online (through the transaction) u get extra options, but unless u enter more addresses (then it is saved as extended data in ADRC table) it is saved in this field.

Do this check: go to XD02 (customer change) and write something in the "street" and "house number" fields separately. Now go to SE16 on table KNA1 (Customer master data) and enter the same customer number. Check the street field ("stras") content - u'll see the content of <b>both</b> of the fields u entered in it together. This is the standard SAP way, so what u also have to do is concatenate both house number and street to the "street" field in BAPIPARTNR structure and it's enough - u don't have to c them (in the transaction) in the 2 fields separately.

As for VAT reg Number - it's the last field - "VAT_REG_NO" - on the same structure BAPIPARTNR.

Pls award points if helps

Igal