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).
CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
key_data = ls_rserob
sernos = lt_rserob
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 ?