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_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,076

Hi Experts,

I have a question about two BAPI’s for SD module.

I’m using BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE, and I cannot find a way to indicate the new VAT number (Tax Number), I have found this in BAPI_SALESORDER_SIMULATE but in the others I do not find anything.

The simulate function uses BAPIPARTNR and the others uses BAPIPARNR that does not contain the field STCEG.

Can anyone help me.

Best Regards

Nuno Rodrigues

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

Try BAPI_SALESORDER_CREATEFROMDAT1..

This BAPI has ORDER_PARTNERS-VAT_REG_NO.

G@urav.

3 REPLIES 3
Read only

Former Member
0 Likes
623

Try BAPI_SALESORDER_CREATEFROMDAT1..

This BAPI has ORDER_PARTNERS-VAT_REG_NO.

G@urav.

Read only

Former Member
0 Likes
622

Hi Nuno,

Please use the Interface parameter EXTENSIONIN to transfer the VAT number. If you want to know how to use this parameter then you can refer to the documentation attached with this Tables parameter.

1. Execute SE37

2. Enter BAPI_SALESORDER_CREATEFROMDAT2 and click on Display

3. Click on Tables tab and place the cursor on EXTENSIONIN

4. Follow the menu path GoTo->Documentation

<REMOVED BY MODERATOR>

Thanks and Regards,

Maddineni Bharath.

Edited by: Alvaro Tejada Galindo on Apr 15, 2008 11:20 AM

Read only

Former Member
0 Likes
622

Hi Maddineni Bharath,

the Interface parameter EXTENSIONIN cannot be used to transfer the VAT number. EXTENSIONIN is only for "tables" VBAK, VBKD, VBAP and VBEP.

We are using the "old" BAPI BAPI_SALESORDER_CREATEFROMDAT1.

Regards,

Hans-Martin