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

About BAPI_SALESORDER_SIMULATE.

Former Member
0 Likes
1,978

Hi,

I am using 'BAPI_SALESORDER_SIMULATE' to simulate a sales order. But I also want to consider the 'Alternative tax classification' (VBAK-TAXK1).

I do not want to create an order, I simply want to simulate it with 'Alternative tax classification' consideration so that I get the pricing condition types accordingly.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
911

Is BAPI_SALESORDER_SIMULATE not solving your purpose for alternative tax classification?

Well, one more option could be use BAPI_SALESORDER_CREATEFROMDAT2

and then BAPI_TRANSACTION_ROLLBACK to avoid creation of salesorder.

Hope it helps.

G@urav.

Read only

0 Likes
911

Hi Gaurav,

The FM 'BAPI_SALESORDER_CREATEFROMDAT2' does not return me the Condition Types that I require.

I want a FM that can return the Condition types based on Alternative Tax Classification field. The FM 'BAPI_SALESORDER_SIMULATE' returns the condition types with Alternative Tax Classification = ' ' (Default).

Now I want say Alternative Tax Classification = '-' and based on this parameter, I want to view the Condition types.

Thanks.

Read only

Former Member
0 Likes
911

Hi,

Refer it's documentation:

FU BAPI_SALESORDER_SIMULATE

____________________________________________________

Short Text

Sales Order: Simulate Sales Order

Functionality

This method has the same interface definition as the BAPI_SALESORDER_CREATEFROMDAT1 function but differs from it in that here the sales order is not updated.

Here you can determine availability and pricing. This data is displayed in the ORDER_ITEMS_OUT table.

Notes

1. For 46A, the following enhancements have been made:

a) New output tables:

ORDER_SCHEDULE_IN Schedule line data input

ORDER_CCARD_EX Credit card data output

ORDER_SCHEDULE_EX Schedule line data output

ORDER_CONDITION_EX Conditions output

MESSAGETABLE Warning table (XVBFS)

b) Sales area determination

c) Order entry with ship-to party

If no sales area is entered in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If no clear sales area can be created, you will receive a system message, and the sales order will not be created.

Parameters

ORDER_HEADER_IN

CONVERT_PARVW_AUART

SALESDOCUMENT

SOLD_TO_PARTY

SHIP_TO_PARTY

BILLING_PARTY

RETURN

ORDER_ITEMS_IN

ORDER_PARTNERS

ORDER_SCHEDULE_IN

ORDER_ITEMS_OUT

ORDER_CFGS_REF

ORDER_CFGS_INST

ORDER_CFGS_PART_OF

ORDER_CFGS_VALUE

ORDER_CFGS_BLOB

ORDER_CCARD

ORDER_CCARD_EX

ORDER_SCHEDULE_EX

ORDER_CONDITION_EX

ORDER_INCOMPLETE

MESSAGETABLE

EXTENSIONIN

PARTNERADDRESSES

Exceptions

Function Group

2032

Regards,

Shiva Kumar

Read only

Former Member
0 Likes
911

-