02-18-2011 7:20 AM
Hi Experrts:-
I need to change the status of serial number (equipment number ) during Migo (good receipt,Transfer posting).
I have checked all the user exits and number of badis but i am not getting serial number at run time if i get serial numbar
in exit od badi i will change the status
I have used following badi:-
MB_DOCUMENT_BADI
MB_MIGO_ITEM_BAdI
Thanks
02-18-2011 9:57 AM
Use this FM in GET_SERNOS_OF_DOCUMENT in BADI MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE to get serial numbers from memory.
Edited by: Manohar Reddy Kallem on Feb 18, 2011 9:57 AM
02-18-2011 9:43 AM
Hi
Try with MB_MIGO_BADI method LINE_MODIFY for the corresponding fields for no.serie in GOITEM.
Regards
Eduardo
02-18-2011 11:05 AM
i implement this badi I am getting every thing but not serial number. can you tell me exact field name in CS_GOITEM structure where i get serial number.
Edited by: dilipgupta on Feb 18, 2011 12:05 PM
02-18-2011 9:57 AM
Use this FM in GET_SERNOS_OF_DOCUMENT in BADI MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE to get serial numbers from memory.
Edited by: Manohar Reddy Kallem on Feb 18, 2011 9:57 AM
02-18-2011 11:14 AM
Thanks
Please can you explain more i found badi MB_DOCUMENT_BADI but what is MB_DOCUMENT_BEFORE_UPDATE. there in no badi
exist like MB_DOCUMENT_BEFORE_UPDATE .
Please also tell me what all parameters i have to pass in GET_SERNOS_OF_DOCUMENT.
02-18-2011 11:21 AM
Ok
BADI - MB_DOCUMENT_BADI
method - MB_DOCUMENT_BEFORE_UPDATE
You need to pass following to this function module
.
ls_rserob-taser = 'SER03'.
ls_rserob-mblnr = ls_mkpf-mblnr.
ls_rserob-mjahr = ls_mkpf-mjahr.
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..
Remember - this triggers in update mode - so need to debug in 'update debugging' mode to trigger this method.
02-24-2011 7:17 AM
11-23-2011 10:44 AM
Hello,
I am working on a requirement to get the serial numbers entered manually or automatically while posting a goods receipt in tcode MIGO.
I have tried to use the same steps suggested by Manohar..ie, using the FM GET_SERNOS_OF_DOCUMENT' within the BADI MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE. But the FM returns NO_DATA_FOUND exception ...Can you please let me know how you solved this issue?
Thanks
07-23-2014 3:19 PM
Hi ,
m also using GET_SERNOS_OF_DOCUMENT
but not getting serial number.
need to get serial number in MIGO.
how to pass parameters to this fm.
KEYDATA-TASER = 'SER03' "Goods mvmnt
KEYDATA-SDAUFNR = ??
KEYDATA-POSNR = ??
CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
EXPORTING
KEY_DATA =
TABLES
SERNOS =
EXCEPTIONS
KEY_PARAMETER_ERROR = 1
NO_SUPPORTED_ACCESS = 2
NO_DATA_FOUND = 3
OTHERS = 4
please guide..