Skip to Content
author's profile photo Former Member
Former Member

Which field can identify that a line item of a SO is been deleting in Exit.

Hi guys,

When we delete a line item in a sales order in VA01 or VA02, the system will call the user exit USEREXIT_CHECK_XVBAP_FOR_DELET. But the deleted line item will not be removed from XVBAP at once and XVBAP-UPDKZ still is 'I', anybody can tell me which field can identify that the processing line item was deleted or not?

Thanks in advance!

Tim

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 07:20 PM

    Try using MV45AFZZ USEREXIT_SAVE_DOCUMENT and look at either XVBAP-UPDKZ or YVBAP-UPDKZ.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 20, 2007 at 06:53 PM

    The purpose of this user exit is to verify something <b>before</b> the deletion, so naturally, no items have been deleted yet and no indicator set. Both XVBAP-POSNR and VBAP-POSNR contain POSNR of the item being deleted in that user exit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 12:28 AM

    Thans you guys firstly.

    Just as Jelena said, so i modify the field XVBAP-UPDKZ to 'D' manually in USEREXIT_CHECK_XVBAP_FOR_DELET, and then thru LOOP AT XVBAP WHERE XVBAP-UPDKZ = 'D' to get line item amount in USEREXIT_CHECK_VBAP to check if the total line item amount exceed the limit i set,<b> but this manual action looks like it will cause weird issue</b> . So can you tell me there is any field can identify that a line item was deleted or not <b>in USEREXIT_CHECK_VBAP</b>?

    Thanks so much for your kindly help.

    Tim

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.