Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

refreshing the internal table

Hi all,

I am writing a logic in an user-exit for Sales order,

Suppose there are 5 line items in sales order, and for each item the user exit is getting executed.

The user-exit contains the below statements.

Loop at xvbpak where ( partner eq '18' or partner = '19')."this is header internal table.

if sy-subrc eq 0.

move xvbpak to xvbpap.

xvbpap-posnr = xvbpaf-posnr. "passing the current line item number to xvbpap table..

append xvbpap.

clear xvbpap.

endif.

endloop.

This statement would be executed for each item in the sales order to copy header partner into item partners.

Once it completes, i have to delete the entries from header partner internal table xvbpak.

How can i write logic for deleting the entries from xvbpak after processing all items in the sales order.

The internal table xvbpaf contains all items in the sales order.

Thanks,

Deno

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question