cancel
Showing results for 
Search instead for 
Did you mean: 

VAT Registration number export

Former Member
0 Kudos
535

Hi, I'm working on a B2C project, where the customer requested an optional fields to be exported to the SAP ERP via the DataHub, namely: VAT Registration number and company name of the buyer. I have a problem with sending the VAT Registration number using the functionallities provided by DataHub and saporder extenstion.

DataHub's saporder extension uses BAPI_SALESORDER_CREATEFROMDAT2 function call to create the order in the SAP ERP. The function though does not allow for setting the STCEG field - that is the VAT Registration number field in customer's address. Also separate customer replication, from what I've found out does not allow to easily send the required information.

Has anyone been in a simillar situation and sorted that out? Any suggestions would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

VolkerLe
Explorer
0 Kudos

The BAPI BAPI_SALESDOCU_CREATEFROMDATA1 contains in structure / table SALES_PARTNERS the VAT reg. number (VAT_REG_NO). I have not used that myself. With BAPI_SALESORDER_CREATEFROMDAT2 it seems you need to program the VAT reg. by using the EXTENSIONIN table. You transport there any field but an ABAP coder needs to program in a user exit the field transfer to correct place. But I would not even know where you put that. In a B2C scenario where you would have a VAT reg. number. So there are customers that are actually a company. For your second part, I assume you use DEBMAS message for master data integration. DEBMAS06 for example contains the VAT reg. numbers in segment E1KNASM.