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 to delete line items

sivakrishna_boddapati
Participant
0 Likes
2,239

Hi Experts ,

I have a report program to display purchase requisition line items with quantity in alv grid , there I have a check box(delete) field when user check this check box that line item should be deleted from purchase requisition(me52n). can any one help me, is there any function module or bapi to perform this operation .

Thanks,

Shiva.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,435

Hi Shiva,

You can use this BAPI to delete PR line item.

BAPI_REQUISITION_CHANGE

BAPI_REQUISITION_DELETE

Regards,

Raghava.Channooru

Hi Experts ,

I have a report program to display purchase requisition line items with quantity in alv grid , there I have a check box(delete) field when user check this check box that line item should be deleted from purchase requisition(me52n). can any one help me, is there any function module or bapi to perform this operation .

Thanks,

Shiva.

4 REPLIES 4
Read only

Former Member
0 Likes
1,436

Hi Shiva,

You can use this BAPI to delete PR line item.

BAPI_REQUISITION_CHANGE

BAPI_REQUISITION_DELETE

Regards,

Raghava.Channooru

Read only

Former Member
0 Likes
1,435

Use "BAPI_REQUISITION_CHANGE". Existing list of LIne items should be filled in the structure "REQUISITION_ITEMS_OLD" & New list of line items should be included in the structure "REQUISITION_ITEMS_NEW"

OLD - will contain the records currently in database.

NEW - fresh list of records (in your case exclude the line item which is to be deleted)

Regards

Vinod

Read only

Former Member
0 Likes
1,435

Hi

see thsi link

Regards,

Pravin

Read only

sivakrishna_boddapati
Participant
0 Likes
1,435

Thanks