04-08-2010 12:52 PM
Hi,
I'm creating different order types in a program using FM: SD_SALESDOCUMENT_CREATE.
Immediately after creating orders, I want to delete billing blocks for certain type of orders.
For this I used FM: SD_WF_ORDER_DEL_BILLING_BLOCK.
This FM is directly raising errors instead of raising exeptions and so my program is ending abruptly.
Is there any way to delete billing blocks?
Thanks and Regards,
Ravi Valluri
04-08-2010 12:54 PM
Hi..
between the 2 function do a commit work or call BAPI_TRANSACTION_COMMIT.
regards
Marco
04-08-2010 12:58 PM
Hi...
FM: SD_SALESDOCUMENT_CREATE doesn't contains intenal commit. so the order created is not stored in database tables. So, call BAPI_TRANSACTION_COMMIT after calling FM: SD_SALESDOCUMENT_CREATE.
Regards,
Lokeswari.
04-08-2010 1:01 PM
Base on the criteria, remove the billing block while creating the sales order using "SD_SALESDOCUMENT_CREATE".
Fill the structure sales_header_in-bill_block = ' ', sales_header_inx-bill_block = 'X' to remove the billing block.
And execute "BAPI_TRANSACTION_COMMIT" after executing "SD_SALESDOCUMENT_CREATE"
Regards
Vinod
04-08-2010 7:01 PM
Hello Ravi,
What kind of error are you getting?
One thing you can def. do (if not already done and as adviced by others here is to use 'COMMIT WORK and WAIT'.
Thanks,
Neeraj
04-26-2010 7:36 PM