Skip to Content
avatar image
Former Member

MIGO Enhancement for line item validation

Hi Experts,

We need to do a validation during goods movement for transfer posting against manual reservation, after fetching all the line items entered in MIGO, we tried using the method IF_EX_MB_MIGO_BADI~POST_DOCUMENT. The reason to do the validation is to restrict processing of the same reservation line item twice in the same MIGO document. We are able to view the line items in the table IT_MSEG but not all the fields are populated such as IT_MSEG-WEMPF. Is the any other method or table we can use to access the RSNUM and RSPOS values of all the line items at the same time before document is posted.

Thanks and Regards,

Satheshkumar.P

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 27, 2017 at 07:28 AM

    Let us assume you could do this validation.

    The user would then probably try to post this as an individual movement by starting MIGO again after the initial movement was posted.

    Is that then okay that he references the same reservation?

    Or does the user then get a standard error message?

    Assuming there is a standard error message, had you already searched for OSS notes, maybe it is just a bug that SAP does not check it within the same document.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2017 at 11:00 AM

    Allowed error message types in this method are 'A' termination or 'X' short dump message, use will be very very happy. IMHO you should try another method IMHO. Look for a method where GOITEM-RSNUM/RSPOS are available?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2017 at 07:54 PM

    Did you try these Badi's MB_CHECK_LINE_BADI or MB_DOCUMENT_BADI?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ashok,

      I tried checking MB_CHECK_LINE_BADI or MB_DOCUMENT_BADI by setting break point but i am unable to find values in XMSEG tables while posting the document in MIGO.