Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CREATE - Delete Indicator

Former Member
0 Likes
784

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
498

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.

2 REPLIES 2
Read only

Former Member
0 Likes
498

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

Read only

Former Member
0 Likes
499

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.