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@

Similar Messages

  • How to Make ERFMG field zero initially in MIGO Transaction?

    Dear Friends,
        In MIGO, ERFMG(Qty in Unit of Entry) field to be zero initially once we enter Purchase Order number for the movement type=103 .
         The Reason for this, one of our user has posted a GRN for the whole Open PO Quantity. If the ERFMG field is zero initially, then the user will enter correct Quantity.
         We tried a BADI - "MB_MIGO_BADI" by making ERFMG = 0. But the system is giving Zero even after we enter a value/Number in this field.
         Please Provide a Solution for this issue.
    Thanks & Regards,
    Sathisha

    Hi Mythili,
    Try at these User Exits.
    MBCF0007  Customer function exit: Updating a reservation
    MBCF0010  Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    Thanks & regards,
    Dileep .C

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

  • Fields in MIGO - BATCH and Valuation Type

    Hi all,
    I would like to know the meaning of the following fields in MIGO.
    BATCH - Charg
    Valuation Type - Bwtar
    Which is the impact of each field?
    Should they have the same value in TRA MIGO?
    Which means that only the BATCH field is entered and the Valuation Type empty?
    Thanks you very much!!

    valuation type  comes into the game If a material is subject to split valuation.
    you can for example split the valuation based on origin, e.g. internal produced and external procured.
    this is more a financial thing.
    the batch is the level to segragate the stock of a material. e.g. each GR can be a new batch. so you can manage the stock by FIFO rules and by shelf life.  this is a logistics thing.
    Both can be used on their own, or together.
    if you want manage your materials by batches, but dont need split valuation, then you only have to take care about batch number, and the valuation type field in the batch record stays empty.
    if you manage material by batch and you use split valuation, then the split valuation type is a mandatory field in the batch record and you may have to enter batch and valuation type, but usually the valution type is defaulted from customizing.
    The tricky part is if you only use split valuation, because then the valuation type becomes the batch number. this is sometimes a bit confusing.

  • 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

  • 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

  • How to add a new field in migo transaction (header level)

    hi guru's
    can you please tell me how to add a field in migo transaction?
    i want to add a field in header data and that too under "general" tab. i dont have data regarding that field.
    and when we enter a value for that field in migo, it has to take .
    thank you.

    Hi, My problem is allmost like the one you are discussing here....
    I have appended MKPF for my Z-fields and created a sub-screen (Design the screen). I am calling this screen in PBO_HEADER. Now i can see my newly created tab along with fields.
    Now the problem is:-
    1. How I can transfer that data entered in screen fields back to my BADI.
    2. How to update my z-fields in MKPF table along with standard fields. I have tried using FM - 'J_1IEXGM_BADI_POST_DOCUMENT' in Method - POST_DOCUMENT, but its not updating table record in MKPF for Z-Fields.
    Please advice.....
    Thanks

  • Disabling fields in migo

    Hi Friends ,
    I want to disable line item fields like quantity for a given line incase of outbound delivery in migo. Please help me out how to do it using the badi MB_MIGO_BADI.

    Hi Madhvi,
    Go through the following links.
    Hiding Custom Fields in Migo
    How to modify items fields with MB_MIGO_BADI or enhancement point
    Hope this helps.
    Regards,
    Manish

  • How to populate the TEXT field in MIGO

    Hi folks,
    While creating material document in MIGO or MB01, i am inserting some data in TEXT ( Field in line item level ). This text data is disappearing , once mat doc is created.
    how to populate the TEXT field in MIGO?Is there any cusomisation?it's urgent .
    Regards
    pabi

    Hello Pabitra,
    I had a similar issue in my Project.
    Please verify if the SMOD enhancement MBCF0002 (EXIT_SAPMM07M_001) is active in your system.
    If this is the case, verify from two angles:
    a) Whether the Enhancement was accidentally activated - If yes, then De-activate the same
    b) If there is some logic coded in the User Exit, but, the Text is somehow not determined...even the existing content in the text field (input to EXIT_SAPMM07M_001) will get vanished.
    Hope that your problem will be resolved by this.  Pls reward points.
    With Regards
    Vijay Gajavalli

  • Required entry field External Vendor number is Empty

    HI All,
    For my client scenario I need to use TRUST module Business partner Number (Role: General Business Partner) for our Fx-Real estate because When ever Employee join in company  General Business partner  will created and for TRUST requirement they are assigning customer role for BP and subsequently in FI vendor master will create for Employee.
    So as per client requirement I need to  use same Business partner  with role of Land lord with vendor account  and I will give link this Business partner to FI vendor master.
    But While assigning Landlord with vendor account role for that business partner system showing the error Required entry field External Vendor number is Empty.
    Solution is highly appreciated.
    Thanks in advance,
    CM

    Hi AP,
    Thanks for the reply and I tried to give Existing Vendor Number in Vendor General Data Tab and saved it but BP could not saved with Vendor Number and system not given any message also.
    Kindly help me
    Regards,
    CM

  • Show region if field in recordset is NOT empty

    Hi
    Ive been using dreamweaver's built in "show region if
    recordset is not empty," but now i need to change the code so that
    it "shows the region if a field in the recordset is empty"
    Does anyone know how to do this ?
    below is my code for "show region if recordset is not empty"
    recordset: rsUser
    field to filter:image
    <div id="avatar">
    <?php if ($totalRows_rsUser > 0) { // Show if
    recordset not empty ?>
    <img src="uploadedImages/userImages/<?php echo
    $rsUser->Fields('image'); ?>" height="92" width="92">
    <?php } // Show if recordset not empty ?></div>
    basically if the field "image" from rsUser is empty i dont
    want the image to show.
    thanks

    Use the Show If recordset Is Empty server behavior.
    <?php if ($totalRows_rsUser == 0) { // Show if recordset
    empty ?>
    <p>Empty</p>
    <?php } // Show if recordset empty ?>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "Kamesh192" <[email protected]> wrote in
    message news:epkqn2$gr2$[email protected]..
    > Hi
    >
    > Ive been using dreamweaver's built in "show region if
    recordset is not empty,"
    > but now i need to change the code so that it "shows the
    region if a field in
    > the recordset is empty"
    >
    > Does anyone know how to do this ?
    >
    > below is my code for "show region if recordset is not
    empty"
    >
    > recordset: rsUser
    > field to filter:image
    >
    > <div id="avatar">
    > <?php if ($totalRows_rsUser > 0) { // Show if
    recordset not empty ?>
    > <img src="uploadedImages/userImages/<?php echo
    $rsUser->Fields('image');
    > ?>" height="92" width="92">
    > <?php } // Show if recordset not empty
    ?></div>
    >
    > basically if the field "image" from rsUser is empty i
    dont want the image to
    > show.
    >
    > thanks
    >
    >

  • Required entry field "Trip Activity Type" is empty

    In Travel management , when I create a travel request, Activity Type is a required field, I select a activity type when I try to save the travel request I get  this error.
    Required entry field "Trip Activity Type" is empty
    Message no. PTRA_WEB_INTERFACE078

    Hi,
    I think you have to maintain activity type for that year. check KP06 and KP26.
    Regards

  • Additional fields in MIGO transaction

    Hi Everybody,
      We have a requirement where we need to have additional fields in MIGO transaction when the user chooses 'distribute qty' option to split the quantity, the normal screen shows the following fields,
    1. Qty in UnE
    2. Stock type
    3. Movement type
    4.Stor location, we need Serial number, Drum number in Screen number 1000 of SAPLMIGO program,  Can any one tell me how do I achieve this functionality,
    Rgds,

    The only option I see is design your own custom screen with the required fields and call it as popup ( Modal Dialog Box ) from user exit ZXMBCU02 .
    This user exit will be triggered when you click on "CHECK" or "SAVE" button.
    There is no way to modify MIGO screen itself , so maybe you will have to pass the item number etc from MIGO and have a table control on your custom screen for data entry.
    For saving data into database donot use this exit as a user may just check and go out and you will unnecssarily push the data into z table . In this exit do an export to memory for your custom fields.
    In another exit ZXMBCU01 , do an import from memory and update the required Z table . This exit is called while updating material document in update task.
    However to goto popup screen for displaying chnaging custom fields you will have to press "CHECK" button , maybe a user training issue.
    Cheers

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

Maybe you are looking for