Skip to Content
avatar image
Former Member

Bapi Simulate sales order problem

dear all my friends .

I have use the bapi of ( BAPI_SALESORDER_SIMULATE ) which is interface for ( bapi_salesorder_createfromdat1) and it dos't create ORDER_CONDITIONS_IN so that i can Simulate order with adding manual condition so that can effect the netvalue of the material . is there is a bapi or a function module that simulate the order creation with condition on price like

( bapi_salesorder_createfromdat1) but in the simulaton mode .

thanks for support

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 12, 2012 at 07:58 PM

    i have found asolution for the frist part but i have a problem when ading acondition type (Zxxx) for example twice in the same line item of ORDER_ITEMS_IN in field cond_type and cond_type1 so that i can add to condition at the same line item in the same line . can any one help me

    Add comment
    10|10000 characters needed characters exceeded

    • Use BAPI_SALESORDER_CREATEFROMDAT2.

      Use its parameter TESTRUN = 'X' to have simulation mode instead of real creating.

      To have multiple condition records for the same condition type / sales order item I would try filling the field COND_COUNT of ORDER_CONDITIONS_IN table with sequential numbers (1,2, etc.).

      regards

  • avatar image
    Former Member
    Jan 13, 2012 at 08:54 PM

    dear madhurao123

    thank you for replay i want to add two manual conditions in one line item using bapi_salesorder_simulation to see the net price of the material after add the two conditions if i add two different type conditions it work right if i pass two conditions with the same type it accept only one for Example i want to add condition (ZMOD) on line item twice first to add fixed value and the second a percentage value at the same time it accept one .

    dear Maciej DomagaƂa

    In the BAPI_SALESORDER_CREATEFROMDAT2 i can use the test run flag and it run correctly but the function dos't return the price of the material after EXECUTION .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 14, 2012 at 06:28 PM

    yeas iam able and it work correctly in another BAPI but dos't return the net price of the material .

    Add comment
    10|10000 characters needed characters exceeded