Skip to Content
avatar image
Former Member

MB_DOCUMENT_BADI to get Serial Number in MIGO GI

Hi Experts,

I have a requirement to validate the serial numbers in MIGO GI transactions.

I have tried MB_DOCUMENT_BADI method MB_DOCUMENT_BEFORE_UPDATE but I cant get the serial numbers. I have tried the solution from this link https://archive.sap.com/discussions/thread/1895744 but its not working for me.

I have passed the value of MBLNR and MJAHR when the FM 'GET_SERNOS_OF_DOCUMENT' executed my return value is blank(lt_rserob).

Code below:

CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
EXPORTING
key_data = ls_rserob
TABLES
sernos = lt_rserob
EXCEPTIONS
key_parameter_error = 1
no_supported_access = 2
no_data_found = 3
OTHERS = 4.

I'm getting no value found.

Can we get serial numbers from GET_SERNOS_OF_DOCUMENT even though the data are still from memory and the tables are not yet updated ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 23, 2017 at 07:48 PM

    Can you check this solution picking the data from Memory?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 23, 2017 at 03:38 AM

    hi,

    even I have the same requirement . Did u found some solution. Please update.

    Add comment
    10|10000 characters needed characters exceeded