BADI for MIGO update - Data not getting saved in table sometimes

Hi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating  GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
Instead Of Updating The Gate Entry Item Table Now
Update The Gate Entry Header Table. Update The
Value Of The Field MBLNR With Current Document Number
Generated Updating the header table ZMM_GATE_ENTRY
    SELECT SINGLE *
      FROM ZMM_GATE_ENTRY
      INTO WA_ZMM_GATE_ENTRY
     WHERE GATEENTRYNO EQ GS_EXDATA_HEADER-GATEENTRYNO
       AND WERKS       EQ GS_EXDATA_HEADER-WERKS
       AND GYEAR       EQ GS_EXDATA_HEADER-ENTRY_DATE+0(4).
Check To Ensure That Once A Gate Entry Number
Is Associated With A GR It Cannot Be Reused
    IF WA_ZMM_GATE_ENTRY-GR_NUMBER IS INITIAL.
      WA_ZMM_GATE_ENTRY-REFERENCE = GS_EXDATA_HEADER-REFERENCE.
      WA_ZMM_GATE_ENTRY-REFWERKS  = GS_EXDATA_HEADER-WERKS.
      WA_ZMM_GATE_ENTRY-GR_NUMBER = IS_MKPF-MBLNR.
      WA_ZMM_GATE_ENTRY-GR_YEAR   = IS_MKPF-MJAHR.
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt updates data sometimes and does not updates the data sometimes
    ELSE.
      MESSAGE E901(ZMM) WITH GS_EXDATA_HEADER-GATEENTRYNO WA_ZMM_GATE_ENTRY-GR_NUMBER.
    ENDIF.
Plz suggest some soln?
Regards,
P.S.Chitra

Hi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating  GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt in code updates data sometimes and does not updates the data sometimes
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Aug 10, 2010 11:33 AM

Similar Messages

  • Bom item data - Document assignment not getting saved in table STPO

    Dear All,
                  As per out customer requirement, they want to display assigned drawing documents of Bom items in CS11. But it is not reflecting in cs11 eventhough we have assigned documents in Bom item detail overview Document assignment tab page. Moreover this is not getting saved in table STPO.
                   Waiting for solutions
    Thanks & Regards
    Dhananjay Kulkarni

    Please understand my customers requirement,
                               Presently they are assigning drawing document of each mat in material master. And if they want to see the drawing of each component of bom through Bom maintenance then they double click on component in bom, goes to mat master then additional data then document data and then drawing. In this way they need to open minimim 5 windows, which they want to make minimum 2 windows.
              In bom they are having more than 300 components. This is not possible to define document as component with item category D of so many components. One more idea I given to them is to club all drawings in one document and define that document as component with item category D, but in this way they can't identify  the individual drawing with part name.
              One more idea I given to them is to assign drawing document of individual component in item overview - Document assignment tab page from where they can open the drawing but it needs to open minimum 3 windows. So they are ready to assign drawing document in item overview - Document assignment tab page but they want, it should reflect in CS11 document column, from where they can easily open the drawing document.
              One more thing I observed that, assigned document to item overview - Document assignment tab page is not getting saved in Table STPO. I can't see this field content in STPO, which may be the reason that it is not reflecting in CS11.
             Is anything missing from Document management system?
    Please think and reply friends it's Urgent.
    Thanks & Warm Regards
    Dhananjay Kulkarni

  • Offline Form - Data not getting saved.

    Experts:
    I am working on Adobe Offline Form.
    When I do some changes to the offline form and save it , the same data is not getting saved.
    After saving, if I close the form and reopen it again, I am not able to see the data.
    What could be the reason?
    Thanks
    Rajeshwar

    Same question was asked less than 2 days ago. And prior to that, it's been asked about 50 times now. Learn how to SEARCH before posting AND then you will get help.

  • Data not getting saved in SPM UI

    Hi,
    We have installed and configured SPM 2.1 SP3.. We ahve one issue.. Under Data Management-->Global Setting, we enter the path of import and export folders. When we save them, it doesnt get saved..
    Please let me know the root cause of this issue.. I have tested the connectivity between ABAP and JAVA.. Seems to work fine..
    Thanks
    Thilip Kumar

    Hi Thilip,                                                         
    Could you please check to see if you have an active Data Upload & system created? Without this the files will not show up.                      
    The Active Data Upload can be created from the menu item  Data Management > Data Upload Workbench > Manage Data Uploads          
    Click on New Data Upload and enter in all the required information and select the "Set as active" checkbox.                               
    For Systems goto Data Management > Global Settings and in the Systems tab create a new system.
    Thanks & Regards,
    Ankur

  • Issue with Home Address and Phone of ESS(data not getting saved)

    Hi Everyone,
    We have a issue with ESS HomeAddress and Phone.  when we edit and save data, its showing a message that data is saved.  but the data is not getting updated in the backend and the view also is showing old data only.  Pleas help us, if anyone came across this type of issue.
    Thanks & Regards,
    Ravi

    Please check the fields you are editing are not marked as unused in
    V_T588M
    V_T588MFPROPS
    V_T588MFPROPC
    Best wishes
    Stuart

  • Data not getting inserted into table Hxt_Add_Assign_Info_F

    Hi,
    Can any one tell me as to when data is inserted into the table Hxt_Add_Assign_Info_F.
    Lately this table has not been getting updated.
    Thanks
    Zicky

    Hi Sharath,
    Thanks alot for the info, it seems that data had not been entered for certain employees in that form and hence the problem.
    Even then, I guess it will be a day or 2 before they will be able to see their in/out timings.
    Regards
    Zicky

  • Data not getting into internal table

    Hi experts,
    I have a query as given below:
      IF equipment_number IS NOT INITIAL.
        SELECT        eqart
                            equnr
                            invnr
      FROM  equi INTO table lt_equi
        FOR ALL ENTRIES IN equipment_number
        WHERE equnr = equipment_number-equipment_number.
        IF lt_equi[] IS NOT INITIAL.
          SELECT kunnr name1
            FROM kna1
          INTO CORRESPONDING FIELDS OF TABLE lt_kna1
          FOR ALL ENTRIES IN lt_equi
          WHERE kunnr = lt_equi-kunde.
        ENDIF.
    No data is coming in lt_kna1 table,
    I have changed the data declaration of lt_kna1. Earlier it was declared sa TYPE SATNDARD TABLE of kna1,
    and I changed it to:
      types: begin of ty_kna1,
              name1 type kna1-name1,
              kunnr type kna1-kunnr,
             end of ty_kna1.
    data: lt_kna1  TYPE TABLE OF ty_kna1 with header line,
    After doing this change, the problem started coming. Earlier the data was coming correct in it_kna1.
    How to solve this issue?
    Thanks,
    Ajay.

    Hi Ajay,
    Your field declaration is not in the sequence of the database table in KNA1.  Please correct it & also refer to domain directly instead of referring to field. Just do as below :-
    types: begin of ty_kna1,
    KUNNR type KUNNR,
    NAME1 type NAME1_GP,
    end of ty_kna1.
    Also check the value of the field KUNDE in lt_equi-kunde . It migh be because of CONVERSION EXIT .
    Bohn
    As to answer yuor query KUNDE in EQUI is same as KUNNR in KAN1.
    Regards
    Abhii

  • BADI ME_GUI_PO_CUST-- Data not getting saved after adding tab at Header

    Hi,
    My requirement is to add an additional tab at header level  and a field in that tab. I used the BADI  ME_GUI_PO_CUST and implemented it. I can see the tab and the field in it at header level.But when i try to save it , its popping up message 'Data is not changed' and when i check in ME22N, changes are not reflected. I went through the example and copied this example into BADI and accordingly made changes for header. When i keep break-point in TRANSPORT_FROM_MODEL and other methods except SUBSCRIBE and MAP_DYNPRO_FIELDS,its not stopping. Please guide where i am going wrong.
    Regards
    K Srinivas

    HI,
    Use the perform
    perform set_header_data(saplmepo) using ekko.
    Thanks,
    Shailaja Ainala.

  • Inbound Idoc - Date fields not getting saved

    Hello,
    I have created inbound idoc scenario in SAP. I receive Idoc from non SAP system to SAP system.
    then data from IDoc is saved into different tables, for that I have written one function module (attached to process code)
    One of the segments in IDoc type has date as a field. It is of type sy-datum.
    When I receive Idoc in SAP only date fields are not getting saved in tables.
    Is anything specific need to be done for date fields? please advice.

    check which format you are getting into sap and make sure you are coverting in into required format.

  • Added new fields in vendor master in xk01 but data is not getting saved

    Hi experts,
    To add new fields in vendor master i have followed the following steps :
    1.) Appended a structure ZRTGS in LFA1 table with required fields and activated
    2.) Added new button in xk01( vendor master ) using spro -> logistics-general -> business partner -> vendors ->
    control ->adoption of customer's owaster data fields -> prepare modification free-enhancement of vendor master record
    Created a screen group ZR and defined label tab pages with function code ZRTGS and saved entries
    3.) Created a implementation for BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.
    4.) Created a program with my own subscreen for the required fields
    The button is getting displayed in XK01, XK02 and XK03 respectively. Whenever the button is clicked the subscreen with
    the fields is also displayed. But whenever i try to save the data in either XK01 or XK02 it is not getting saved in to the
    database table LFA1.
    Request your help in this regard.
    Thanks in Advance.

    Hi,
    You may need to check this include .
    EXIT_SAPMM06E_008  -->Import Data from Customer Subscreen for Purchasing Document
    Thanks,
    vamshi

  • Contact person Rel.ship Data not getting updated in B2B Web User Mngt

    Hi CRM Gurus,
    Need some help on Web User Management functionality.
    Sub: Contact person Relationship data not getting updated when we change the company (to wich contact person belong to) in ISA CRM 5.0 Web User Management.
    we are currently on CRM ISA 5.0 and using Web User Managment for our B2B scenario. New creation of users is working fine. But when we want to change the company (Sold to pary) for the existing contact person, the relationship data in CRM is not getting updated and the below are the details.
    Contact person No: XXXX (has a Relationship: "Is contac person for YYYY company in CRM)
    Company/Sold to Party: YYYY (has a relationship "Has contact person XXXX in CRM).
    When I chage the contact person's (XXXX) company  from  YYYY to ZZZZ,
    - Relationships of the new assignment for ZZZZ in CRM not getting updated.
    - Old Records in YYYY is not getting deleted (i.e. relationships.
    - There is No relationship data appear in XXXX.
    Appreciate any inputs on the same.
    Thanks,
    Rahul >>>

    Hi Rahul,
    I'd suggest you running a session trace / ABAP debugging to see if some information is not getting passed from the Java stack onto the ABAP stack. An alternate move would be to create a new OSS customer message.
    Cheers,
    Ashok.

  • Team view data not getting refers for some user

    Hi,
    We are facing an issue in team view app for mss,  manager's are seeing details of employees not belonging to their Org Unit/ data not getting refreshed. This seems to be the Cache related issue where the data of perviously logged in user is displayed to the current user till browser cache are cleared manually.
    User don't have permission to clear browser cache. Is there any work around.The issue is coming only for some users.I have enable the 'ABAP HTTP Security session Enabled' property of the system used.
    Regards
    Pallavi

    Hi Karthik,
    in the first view I execute the BAPI and in the second view I show the results. In the second view I also submit the modified data via another BAPI.
    As I execute and display result of same BAPI in two different views I have bound the same model node to both of these views. Let me give you some sample code for understanding what have I done.
    In the first BAPI's search action handler I have written:
              Zsr_Packnr_Validate_Components_Input input = new Zsr_Packnr_Validate_Components_Input();
              wdContext.nodeZsr_Packnr_Validate_Components_Input().bind(input);
              input.addT_Version(new Zsr_Packnr_Field_Values());
              input.addT_Zsr_Genbr(new Zsr_Packnr_Field_Values());
    input.setZsr_Gmc(globalMaterialCode);
              input.setZsr_Mrc(mrc);
              input.setZsr_Ctry(country);
              input.setZsr_Dc(distributionChannel);
              input.setZsr_Div(commercialSegment);
    wdContext.nodeOutput_Validate().invalidate(); //as u suggested
              wdContext.currentZsr_Packnr_Validate_Components_InputElement().modelObject().execute();
              wdContext.nodeOutput_Validate().invalidate();
    In the second BAPI I just display the output node from the same Model context node (its mapped to the second view too).
    But as I said whenever I update some values in the result set and submit it the data gets submitted properly. But when I press the search button again, the previous set of data gets populated, not the just updated data.
    If anybody has some idea on why the second time search BAPI execution still shows the previous set of result it will be a great help to me.
    Thanks for all your help.
    Shubhadip

  • When I download software updates why do they appear on the desktop (and in devices) and not get saved to the HD (I click install to HD but they don't go there)

    when I download software updates why do they appear on the desktop (and in devices) and not get saved to the HD (I click install to HD but they don't go there)

    Double-click the white Adobe Reader Icon to open a new windows.
    Double-Click the "Adobe Reader X Installer.pkg" file inside.
    If it has already been installed it will notify you and say that it has been installed already.
    If you no longer have those files go here to get the latest version of Adobe Reader.
    http://get.adobe.com/reader/
    Let me know how that all goes and if you have any hang ups.
    ON TO THE NEXT POINT OF INTEREST
    It sounds to me from researching the other white 'icon' you have that you are trying to install a copier by the brand of Rico Aficio.
    Possibly the Aficio 2090/2105.
    If so the install CD/Driver download for that copier must have also wanted you to install Adobe Reader to view the User Guides/ Documentation included.
    If you are trying to install said device then double click the white icon labeled Ricoh_Aficio...double click the installer file inside of that.
    It should run a setup/install window like Adobe Reader did then go from there. If it has already been install also you can go to your System Preferences -> Printers to see if it installed correctly and is working properly.
    You can get to system preferences by clicking the Apple icon very upper left on your screen and selecting it from the drop down.

  • MessageRadioButton Value is not getting saved

    Hi All,
    I am facing an issue with Radio Button data.
    When the page loads all the "No" buttons will be selected by default.When I select "Yes" radio buttton and click on "Save", all the radio buttons will get reset to "No" and same value will get passed further. Value of "Yes" button will not get saved.
    Please help me in resolving this issue.
    Thanks,
    Akshata

    Give it a shot by trying this. Hope this helps you.
    OAMessageRadioButtonBean personButton =(OAMessageRadioButtonBean)webBean.findChildRecursive("Person");
    personButton.setName("partyTypeGroup");
    personButton.setValue("PERSON");
    personButton.setSelected(true);
    OAMessageRadioButtonBean orgButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("Org");
    orgButton.setName("partyTypeGroup");
    orgButton.setValue("ORGANIZATION");
    To retrieve the value of the Radio button, which is selected use the below
    System.out.println("Radio Button Value : "+ pageContext.getParameter("partyTypeGroup"));
    Also, if on click of button, you should once again set the radio button by calling setSelected() to retain the same look n feel, else, the selection wud jump to the other radio button.
    Basically, developer guide says, that you cannot assign the group name or checked/unchecked value to the Radio button declaratively). For more information read
    Radio Group / Buttons in Developer guide.
    Thanks
    Saurabh
    Edited by: SaurabhAg on Mar 22, 2012 12:58 AM

  • Document type created not getting saved

    Hi all,
    In DC10 I created document type and saved but its not getting saved?
    I gave document type as CD and description as COREL DRAW and tried to save it, but its not getting saved and asking to fill the required fields so I filled
    Version no. Inc as   1
    class Type  as      017
    and class  as     cl0001
    and in Field selection:
    Class data as display
    document status as *Display and then tried to save but the save option is in hide mode.
    what is a characteristic and why do we require and how to give the naming convention or numbering to it?
    Because I cant see the previously created chars?
    Please answer
    Thx

    Thanks Aby for answering
    how to name the class and class type ?
    I can see the class types but not class, is it a number or any other name ?
    How to create character and what is the naming convention?
    if I created a class and class type and character for a document type in DC10 then will they be shown in display screen CV03N?
    Thx

Maybe you are looking for