Adding Field in MIGO

Hi,
Can anyone please tell me that how to add my own field with any type means like numeric or text in the general tab on the screen migo and it should be saved in some table.
Thanks,
Usman Malik

BAdI: Maintenance of Extenral Detail Subscreens for Transact
Use
Application component: MM-IM-GR; MM-IM-GI
With the Business Add-In (BAdI) MB_MIGO_BADI, you can extend the interface of the goods movements transaction ( MIGO) with additional tabstrip controls for the detailed information (detail tabstrips) and header information (header tabstrips). It is possible for an external application
to display an additional detail tabstrip with own subscreen (max. 10 lines) in MIGO
to display an additional header tabstrip with own subscreen (max. 3 lines) in MIGO
The program name, screen number and tab page text can be determined dynamically. Different screens can therefore be controlled according to the mode (for example, change mode, display mode, goods receipt, goods issue).
Pushbuttons
It is not possible to implement pushbuttons in the MIGO menu, but you can, however, implement pushbuttons directly on the external subscreen. The OK code from MIGO is forwarded to the external application so it can react.
Cursor Control
So that the cursor stays on the same subscreen after you press Continue, if it was positioned there before, the external application in the own PAI must hold the cursor positioning (on the same screen 'yes'/'no'; if 'yes', on which field), to set the cursor in PBO again.
Requirements
If you use the BAdI MB_MIGO_BADI in MIGO to update customer-own data, in addition to the material document, to the database, you should note the following:
The BAdI MB_MIGO_BADI is only active in transaction MIGO.
If you post goods movements with other transactions (for example, with MB01, MB1C, VL02N), you must ensure that customer data is also updated, if necessary.
You can do this by using the BAdI MB_DOCUMENT_BADI (Creating a material document) to post the goods movements with the transactions mentioned above.
Note that otherwise, posting the goods movements will lead to inconsistencies between SAP system data (for example, in stocks, material documents, FI documents) and customer data.
To avoid these inconsistencies, we recommend posting all goods movements with transaction MIGO.
Standard settings
In the standard system, the Business Add-In is not active.
There is no default code.
The Business Add-In is not filter-dependent.
The Business Add-In can be used more than once.
Activities
To activate the Business Add-In, you must create an active implementation. Do this in Inventory Management and Physical Inventory Customizing and choose the relevant activity under Maintain Customer-Exits and Business Add-Ins.
For more information about this procedure, see the SAP Library under
Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Note that the Business Add-In can be used multiple times and therefore all active implementations are called and run through.
Create Implementations
BAdI definition MB_MIGO_BADI was created with transaction SE18.
Using transaction SE19, you can create an implementation for this BAdI. You can provide the methods with customer-defined code.
The BAdI definition can be used several times. In MIGO, five additional tabstrip control were defined for the detail screen, and five additional tabstrip controls for the header information. In other words, up to five different implementations can be created.
Recommendation
We recommend that you do not install the external application data directly in the implementation, but enclose it in function modules. You assign the screen with the subscreens to the corresponding function group; see the example implementation.
Example
For easier comprehension, an example code has been created for the BAdI MB_MIGO_BADI. The example implementation class isCL_EXM_IM_MB_MIGO_BADI.
To activate the example implementation, use transaction SE19 to create a new implementation and then activate it. Copy the example code with Goto -> Sample Code -> Copy.
The tabstrip controls MIGO BAdI Example are then displayed in MIGO for the header and detail information.
On the tabstrip control for the detail information, you can enter an additional quantity (and unit of measure). Both are saved in table MIGO_BADI_EXAMPL.
The text field SGTXT can also be changed. An example shows how an external application can change the data from the GOITEM (item data in MIGO) structure.
On the tabstrip control for the header information, you can enter an additional number. This is saved in table MIGO_BADI_EXAMP2.
Further notes
Documentation for BAdI methods:
Initialization and registration of external detail screens:
INIT
PBO of detail screen
PBO_DETAIL
PAI of detail screen
PAI_DETAIL
Insert / change line (GOITEM)
LINE_MODIFY
Delete line (GOITEM)
LINE_DELETE
MIGO reset (delete all internal data)
RESET
Post a goods movement
POST_DOCUMENT
Check item data for goods movement
CHECK_ITEM
Mode of transaction MIGO (action, reference document, etc.)
MODE_SET
Status information and header data
STATUS_AND_HEADER
Save held data
HOLD_DATA_SAVE
Load held data
HOLD_DATA_LOAD
Delete held data
HOLD_DATA_DELETE
PBO of header screen
PBO_HEADER
PAI of header screen
PAI_HEADER
Check item data for goods movement
CHECK_HEADER
You can also call the documentation on the BAdI method via the menu, by carrying out the following steps:
1. Choose the tab page Interface.
2. Double-click on the relevant method.
3. Click on the right mouse button and choose Component documentation.
PLZ REWARD POINTS IF DIS HELPS

Similar Messages

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • Possibility of adding new fields to migo transaction

    Is there a possiblity of adding new fields in migo transaction so that we can enter the base price of items in po.
    Also Can we send mail to relevant authorization if there is difference in price entered in the po and the value entered in GR

    Hi, You can use BADI 'MB_MIGO_BADI' for adding custom fields at item as well as header level .
    or Check SAP Note 339448 - MIGO: settings of table control
    2-You can not do any thing related to price in MIGO, since you cannot enter any manual values in MIGO, it will always pull from PO or MIRO (in case of Imports).

  • ERFMG Field in MIGO to be EMpty Initially.

    Hello Guys,
    I currently have a situation where I require the Quantity in UoM (ERFMG) field in MIGO need to be Empty/Zero when the user enters the PO number Initial for movement type 103 only. This should be active only for Goods Receipt->Purchase Order (103 movement type). The reason for this is because, one of the user has posted a GRN for a whole Open PO Quantity.
    We actually tried a BADI to get this - MB_MIGO_BADI by making the field ERFMG=0. But the result was, the system is giving a Zero even after we enter a value/number in the field.
    Pls give me a solution to this issue.
    Regards
    Venk@.

    Hi Dev,
    We have tried that by adding the Initial. But now the system is proposing the Open PO quantity.
    Posted the code for reference. Pls check and let me know.
    Regards,
    Venk@

  • How to add a new additional field in MIGO

    Dear Sir,
    As a business requirement , we are required to capture some additional information related to Material packing /sizes  at the time of MIGO . This information need to be captured /input at the Item level during the MIGO .
    We request sap gurus , to kindly guide as what steps need to be followed for adding a new field and also will it require a Z-table also to save the data pertaining to new added field .
    Regards
    B Mittal

    Hi ,
    Create a BADI implementation for MB_MIGO_BADI  .
    Create a program with the screen type sub-screen in SE80 and design the layout for the custom fields.
    Declare the custom fields in a Z**TOP include.
    Under the PBO method declare the program name and screen number as shown below: 
    gf_class_id = 'MIGO_BADI_IMPLEMENTATION_CIN'
    e_cprog = <program name>
    e_dynnr = <screen number>.
    e_heading = <heading>
    Under PAI method declare the field to u2018Xu2019. 
    e_force_change = 'X'.
    Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
    Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item .For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY. 
    In order to do any validations to the custom fields, go to transaction SE80 and mention the program Name created and in PROCESS ON VALUE_REQUEST create a module and provide the validations required for those custom Fields. 
    order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value in the method LINE_MODIFY and if that flag = u2018Xu2019, use  
    LOOP AT SCREEN.
    IF SCREEN-NAME = <NAME>.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
       Retrieve the values from the Z table matching the key field (production order number) and pass the value of the custom field on to the screen.
    Thanks,
    Shailaja Ainala.

  • How to add a new Field in MIGO

    Dear Sir,
    We have a requirement of adding a new FIELD in MIGO under the "Detail Data" . The purpose is that at the Item level , we should be able to mention some additional information . For the new Field , an additional Tab has to be created . The Field must except long Text type data and during MIGO Save , the Custom Field data must be saved in Z table .
    We request , SAP experts to kindly guide us as how can we do this . A step wise guidence would be highly helpful .
    We assure full points for the suggested solution please .
    Regards
    B Mittal

    Hi,
    1.Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘Information system’.
    2.Then mention the particular package name of the transaction you need to enhance. Then you will be shown the list of Enhancement components for that particular package.
    3.Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development
    4.Go to transaction CMOD and create a project
    5.Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar
    6.Click on the components in Application Toolbar.
    7.Here you will be shown the function module exits, screen exits and Include tables.
    8.Click on the custom screen in which it suits the requirement of adding the custom field to the layout.
    9.Click on layout and go to get from dictionary and select the field you need to add and click ok.
    10.Place the field in the layout and activate it.
    11.After that you come back and check the respective function module in which you need to implement the code.Therfore we have chosen the Exit_sap_XXX
    12.Now, code has to be written in the function modules EXIT_SAPMMXX_00X so that data flows to and fro between the main SAP program and custom sub screen program. Double clicking on the exit we get the following screen
    Double click on the include and write the required code inside it. Then activate it.
    Now come back and activate the entire project.

  • Regarding - add a new field in migo transaction

    Hai guys,
         i need to add  one field in MIGO transaction, can u pls tell me the step by step procedure for adding the new field in migo transaction.
    Regards,
    N.selvamuthukumar.

    Hi Selvamuthu,
    It is possible using the BADI MB_MIGO_BADI to add Additional tabs in header and/or item as required
    MB_MIGO_BADI  -> BAdI in MIGO for External Detail Subscreens
    See the documentation below...........
    With the Business Add-In (BAdI) MB_MIGO_BADI, you can extend the interface of the goods movements transaction ( MIGO) with additional tabstrip controls for the detailed information (detail tabstrips) and header information (header tabstrips). It is possible for an external application
    to display an additional detail tabstrip with own subscreen (max. 10 lines) in MIGO
    to display an additional header tabstrip with own subscreen (max. 3 lines) in MIGO
    The program name, screen number and tab page text can be determined dynamically. Different screens can therefore be controlled according to the mode (for example, change mode, display mode, goods receipt, goods issue).
    To read the complete documentation  --go to se18 --click on BADI -- enter -- MB_MIGO_BADI----Display
    inside click on "DOCUMENTATION" button and there is a complete documentation step by step
    in addition to it ...--go to se18 --click on BADI -- enter -- MB_MIGO_BADI----Display ->
    on the top menu -> "GOTO" -> sample code -> "Display"
    in will get the "methods" tab..see the description
    Initialization and Registration of Ext. Detail Screens
    PBO of Detail Screen
    PAI of Detail Screen
    Add / Change a Line (GOITEM)
    Delete a Line (GOITEM)
    MIGO Reset (Delete All Internal Data)
    Post Goods Movement
    Check Item Data of Goods Movement
    Mode of Transaction MIGO (Action / Reference Document)
    Status Information and Header Data
    Save Held Data
    Load Held Data
    Delete Held Data
    PBO of Header Screen
    PAI of Header Screen
    Check Header Data of Goods Movement
    Publish Item Data After Processing
    sample code is given in these methods..so when we create a custom badi implementation of our own go to the sample code and copy the required code in the corresponding methods as required
    double click on the method..for eg:IF_EX_MB_MIGO_BADI~PBO_HEADER  in the sample code to see code....in this particular method we can see how method calls an external program and screen to create a new tab in MIGO...use code from mainly the following to get a new header/item tab
    PBO of Header Screen
    PAI of Header Screen
    PBO of Detail Screen
    PAI of Detail Screen
    Pls take some time to analyse the code or flow but we can have the tabs in the header/item level
    Hope it helps
    Regards
    Byju

  • Adding field in Report Painter

    Hello Gurus,
    I am working in the Report Painter PR20-001.
    My requirement is to add a new column in the output of the report but even when i am able to add a new field and save it on the reports execution i am unable to view the added field in the output.
    Kindly tell me the entire procedure to add a new field in the output of the respective report painter output.
    Regards,
    Swati.

    Hi,
    Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
    now its just done run the report and test it!
    If you still not make it refer to standard report of such kind, you will surely get it....
    Regards,
    Sayujya

  • Newly added field not getting displayed in ALV output

    Hi All,
       I'm adding one more field/column to be displayed in an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA: BEGIN OF it_salary OCCURS 0,
            pernr LIKE pa0000-pernr,
            ename LIKE pa0001-ename,
            rtext like lv_rtext, -
    added field
            waers LIKE pa0008-waers
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = driver
          i_internal_tabname     = 'IT_SALARY'
          i_client_never_display = 'X'
          i_inclname             = driver
        CHANGING
          ct_fieldcat            = lv_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = driver
          it_fieldcat             = lv_fieldcat[]
          i_default               = 'X'
          i_save                  = 'A'
          is_variant              = lv_tmplt
          is_layout               = lv_ls_layout
         i_callback_user_command = 'USER_COMMAND'
        TABLES
          t_outtab                = it_salary
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    The newly added field is not getting populated in the lv_fieldcat table. Tried running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off and logging in but of no help.
    Please provide suggestion for this issue.
    Regards,
    Sridevi S

    Hi,
    Fieldcat is buffered - so use
    I_BYPASSING_BUFFER = 'X'
    Since a while CL_GUI_ALV_GRID is available which does NOT need any fieldcat (is determined internally using RTTI). It is worth playing around whith this class if you have some time. This class is recommended for ALV Output by SAP (but no edit is possible - was never supported officially).
    A simple use would be:
    data: gt_output type standard table of (adjust!).
    *simple ALV output
    data go_alv type ref to cl_salv_table.
    data go_functions type ref to cl_salv_functions_list.
    data go_columns type ref to cl_salv_columns_table.
    data go_column type ref to cl_salv_column_table.
    *Exceprion handlig
    data: go_exception  type ref to cx_root,
          gv_errortext   type string.
    ** fill table gt_output ...
    ** ALV output
    if not gt_output is initial.
        try.
            call method cl_salv_table=>factory
              importing
                r_salv_table = go_alv
              changing
                t_table      = gt_output.
          catch cx_salv_msg into go_exception.
            gv_errortext = go_exception->get_text( ).
            message gv_errortext type 'A'.
        endtry.
    * enable all standard ALV functions
        go_functions =  go_alv->get_functions( ).
        go_functions->set_all( ).
    * hide MANDT
        go_columns = go_alv->get_columns( ).
        go_column ?=  go_columns->get_column( columnname = 'MANDT' ).
        go_column->set_technical( ).
        go_alv->display( ).
    Kind regards,
    Holger

  • Added fields not appearing in the DSO transformations.

    Hi,
    I have added three new info objects into data fields in the DSO then activated and not appearing added fields in the transformations.
    Please suggest me,
    regards,
    Jayapal.

    Hi Jayapal,
    i dont know whether it would help you...you can give a try on it.
    Instead of deleting the Transformation, just delete the mappings if any in the transformation.
    Goto DS->Fields Tab-->In the Column Template info Object. Try mapping corresponding IO with the Source IO.
    Then it will show a pop up give Copy . Activate the DS.
    Goto Info Provider>Select the Transformation> If it is active-->reactivate it by clicking the Pencil Icon with glass and click activate icon.
    If its not active, then reactivate it again by clicking the Pencil Icon with glass.
    Let me know if it Works... Cheers
    Regards,
    Syed
    Edited by: shameer83in on Nov 20, 2009 12:10 PM

  • Data Loading to added fields in DSO.

    Hi experts,
    I have a DSO1 with 5 fields and DSO2 with 8fields.
    I want to load data to DSO2 from DSO1 for the added fields in DSO2 also for the records in DSO1.
    thanks in advance.
    with regards,
    KPS Moorthy.

    Hi Moorthy,
    What are the Fields u want to MAP to the DSO2 from DSO1.??
    Is it that u want to derive some filed from DSO1 to DSO2.!!!
    PL provide some more info
    SVU123

  • UDM_SUPERVISOR: Adding fields and data at customer item level

    Hi
    I am having the same issue with newbie82_c; I need to populate the added fields in transaction UDM_SUPERVISOR.
    I know that the previous thread was tagged as answered already but the solution to the issue was not indicated in the thread.
    Here are the scenarios:
    - i've added fields in the item level invoice worklist of the customers by enhancing structure FDM_COLL_INVOICE_ALV (appending fields to FDM_COLL_INVOICE)
    - thru the implementation of the BADI FDM_COLL_SEND_ITEMS, i was able to retrieve the data specified by the user (Reference Keys in FB05)
    - i've populated CT_EXT_ITEMS with the retrieved data
    Now I need these data to be displayed in the added fields in UDM_SUPERVISOR.
    What ABAP object/s is/are responsible for populating the process receivable details?
    Thank you in advance for the assistance.
    Edited by: JPLCaliuag on Dec 19, 2008 8:31 AM

    Hi K.R.Reddy,
    Can you kindly provide me with a working solution for this? I'm currently facing a similar issue for a similar BAPI (in my case it's BAPI_CUSTOMERRETURN_CHANGE) and can't seem to update the custom fields in VBAK. I have put in necessary values in the EXTENSIONIN table as well as updated the UPDATEFLAG indicator to 'U' and although it says that the order is saved, it seems to overwrite the custom field with its original value.
    The custom field seems to get updated correctly when I use BAPI_CUSTOMERRETURN_CREATE but when I make changes using BAPI_CUSTOMERRETURN_CHANGE, it gets overwritten with the original value.
    Any help is appreciated.
    Thanks and regards,
    Adeline.

  • Newly added field in the data Source not getting populated

    Hello All,
    We have added few fields in the Data Source. The Data Source is based on the InfoSet. We have included the field in the Infoset and have updated the code to fetch the value for the newly added fields.
    When we perform the test extraction for this Data Source in RSA3, the newly added fields are not getting populdated with the value. In the system generated query's selection list, the newly added fields are not selected.
    Please let mw know how to get the newly added field selected in the system generated query of the infoset.
    Regards,
    -Purnima

    Hi,
    As you said you have added the filed in Info Set. Have you included the same in data source? try if not.
    If you are trying to create a query in source system to check the data. I guess in R/3 (ECC) then you have to include the new field in slection critera (ther is an option available on top menu).
    I would suggest before creating any query go to RSO2 select the data source. Display the field structure and check if the filed is there or not. You maysee Infoset level data directly by data display from top menu. Try that optionas well to check.
    I hope it will help.
    THanks,
    S

  • Hide Unwanted Excise Fields in MIGO & J1IEX

    In our business process, the duties such as NCCD and SED are not required and consequently we don't want these fields to appear in MIGO and J1IEX so that users can't put any value by mistake.
    Can any one provide some idea what the settings required for this?
    Thanks in advance

    Hi,
    To hide some fields in MIGO, NEED to do configuration settings. Then you can hide the required fields. The pathway as follows...
    SPRO->SAP REFERENCE IMG->NATERIAL MANAGEMENT->INVENTORY MANAGENET AND PHYSICAL INVENTORY->SETTINGS FOR GOODS MOVEMENT(MIGO)---> FIELD SELECTION FOR MIGO(CHACK THE RADIO BUTTON FOR HIDE AGAINST THE REQUIRED FIELD).
    By following path way you can hide the required fields in MIGO.
    For J1IEX also there are options to hide the fields. I hope this will clear your issue. Thanking you.

  • Hide/Suppress Cost center field in MIGO and MB1A for movement types 551&552

    Hi All,
    Can anybody tell me how to suppress or hide the cost center field in MIGO or MB1A for movement types 551 and 552?
    I did below settings and it worked fine for only MB1A and for MIGO still it is showing cost center field.
    IMG > Materials Management > Inventory Management and Physical Inventory >Goods Issue/Transfer posting > Define screen layout > select movement type to change the option.
    Also I did gothrough the settings for Enjoy transaction (MIGO) there we have only option to make fields either  "Required entry" or "Optional entry" and we don't have an option to hide/suppress.
    Please advise or help me .
    Thanks in advance!
    Regards,
    Praveen

    Hi
    The cost center field is a required field in mvt type 551 as you are scrapping materials, some cost center will need to take the cost of this operation.
    Anyway, you first need to make the field as optional for example, before you move.
    One option is that you create a screen variant in Tcode SHD0 for MB1A, where 551 is setup as constant (with content) , and mark Cost center as invisible and assign this screen variant to a transaction in SE93.
    regards
    Sidi

Maybe you are looking for

  • Cannot get the audio tracks to stay in sort order

    Grrr... I importted CD #1 of an audio book and it looks fine in the playlist and fine in the shuffle. But, when I go to play it, it tries to start with the last item. Then, when I go back into Itunes, they are in reverse order. I sort them (did look

  • Year Order Problem in Chat

    Hi , I made chart by using cross tab  but  my problem is its displaying 2014 first then 2013. I have added group by month in cross tab and displaying month name-year . Please refer my old post . 2 Groups In Chart  Report -Thanks -Rajesh N

  • Remove registration information MacOs Tiger

    Hi there, perhaps this shouldn't be the place to ask for this, but I think it's incredible that telephonic support from Adobe Spain is not giving me answers for this problem. I've registered a Flex Builder 3 Trial using a bought Flex Builder 3 Standa

  • Web Analysis loads Financial Reporting

    <p>I want to load from Web analysis, financial reporting. I can doit if i use an service launch executable. But I need to send thename of my report. I don´t know where I can do it. Couldanyone help me?</p><p> </p><p>Thanks</p>

  • Dhcpcd changes hostnames: renders X unable to open ANY programs...

    At a random point after logging into my computer, dhcpcd (even after being disabled and stopped on login) kills and restarts my wifi. When this happens, X no longer allows me to open ANY GUI-based programs and I have to log out or reboot in order to