Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MIGO user exit to get serial number

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Manohar2u
Active Contributor
0 Kudos

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

8 REPLIES 8

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try with MB_MIGO_BADI method LINE_MODIFY for the corresponding fields for no.serie in GOITEM.

Regards

Eduardo

0 Kudos

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

Manohar2u
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Manohar2u
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks all specially Manohar

Its resolved now.

Former Member
0 Kudos

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

former_member324070
Participant
0 Kudos

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..