2008 Aug 19 6:30 AM
Hi Experts,
We decided to have a deletion utility program for Sales orders.
The program should take sales order numbers from a source file, and delete one by one, also the program should generate process log details at the end.
For creating the above program i need to create a new program or there is any BAPI for deleting the Sales Orders.
Thanks & Regards,
Ramana
Hi Experts,
We decided to have a deletion utility program for Sales orders.
The program should take sales order numbers from a source file, and delete one by one, also the program should generate process log details at the end.
For creating the above program i need to create a new program or there is any BAPI for deleting the Sales Orders.
Thanks & Regards,
Ramana
2008 Aug 19 6:44 AM
Hi,
BAPI_SALESORDER_CHANGE
SALESDOCUMENT = Sales Documnet Number
BAPISDH1X-UPDATEFLAG = 'D'. "For delete Sales Order
Thanks,
Durai.V
2008 Aug 19 6:59 AM
Hi Durai,
Thanks for your Reply.
But can you Explain in detail how to give BAPISDH1X-UPDATEFLAG = 'D'.
We have to change that BAPI or need to create a program.
Thanks,
Ramana
2008 Aug 19 7:04 AM
Hi,
Possible UPDATEFLAGS:
BAPISDH1X-UPDATEFLAG = 'D'.
U = change
D = delete
I = add
If you go to SE37 give BAPI_SALESORDER_CHANGE --> Display ---> In application tool bar Last Buttion Function Module Documentaion --> Here you get some usefull information.
Dont Change the BAPI Just pass the Header X = 'D'.
Try this Sample Program.
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY.
DATA: i_hdrx TYPE bapisdh1x.
i_hdrx-updateflag = 'D'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_inx = i_hdrx
TABLES
return = i_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP.
Thanks,
Durai.V
Edited by: Durai V on Aug 19, 2008 8:22 AM
2008 Aug 19 6:58 AM
2008 Aug 19 10:56 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |