‎2008 Sep 30 7:07 AM
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.
‎2008 Sep 30 7:26 AM
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.
‎2008 Oct 01 5:36 AM
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.
‎2008 Sep 30 7:43 AM
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
‎2008 Nov 05 8:37 AM