2007 Nov 08 6:02 PM
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.
2007 Nov 09 1:38 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |