‎2005 Jul 11 6:40 PM
I want to create a PO through the BAPI 'BAPI_PO_CREATE'. I am testing it in se37. My special requirement is that, some of the line items will need be created with a delete status indicator. To accomplish this, I am populating the DELETE_IND flag in PO_ITEMS table with 'L'. However the delete status flag is not getting turned on when I look at the PO that has been created. Am I missing something here ? The BAPI documentation doesn't help. Thanks.
‎2005 Jul 11 7:54 PM
I have the same problem with BAPI_PO_CREATE. The requirement for us was to be able to mark for delete at the time of P.O. create.
After looking at the code for BAPI_PO_CREATE, the code does not mapping in the DELETE_IND fields to the table.
The newer 4.6C enjoy bapi BAPI_PO_CREATE1 maps in the delete indicator fields to the tables.
I hope this helps.
Mike V.
‎2005 Jul 11 6:53 PM
Hi;
I had to use BAPI_PO_CHANGE to delete a line item, with the code you use plus this:
MOVE: ekpo-ebelp TO po_item_changex-po_item,
'X' TO po_item_changex-delete_ind.
Maybe not the best solution, but it might point you in the right direction...
-John
‎2005 Jul 11 7:54 PM
I have the same problem with BAPI_PO_CREATE. The requirement for us was to be able to mark for delete at the time of P.O. create.
After looking at the code for BAPI_PO_CREATE, the code does not mapping in the DELETE_IND fields to the table.
The newer 4.6C enjoy bapi BAPI_PO_CREATE1 maps in the delete indicator fields to the tables.
I hope this helps.
Mike V.