Screen field (MEPO1211-KONNR) not populated user exit ZXM06U43

Hi Expert,
                  I have to check  Outline agreement (EKKO-KONNR) in the user exit ZXM06U43 when creating or changing PO. one screen field (MEPO1211-KONNR) is provided for that. But value is not populated  into that field(MEPO1211-KONNR) for this user exit ZXM06U43, its always blank. Infact hole structure (MEPO1211) is blank for this exit. 
So can anybody provide me the screen field name so I can get the value of KONNR in this exit.

Hi,
In the user exit - EXIT_SAPMM06E_012, YOU CAN ONLY DO CHECKS/VALIDATIONS;
you have a paramter I_BSTYP which hold the type of the document(PO/Out Agreement/PR).
Paramter I_EKKO will hold the data entered on the screen. It will be the incoming data which can be used to validate.
TO PASS THE DATA, CHECK the below exit:
EXIT_SAPMM06E_018 : Import Data from Customer Subscreen for Purchasing Document
EXIT_SAPMM06E_007/EXIT_SAPMM06E_006: Export Data to Customer Subscreen for Purchasing Document Header
Hope this helps
Regards
Shiva

Similar Messages

  • How to use a screen-field when applying BADI or User Exit to a T Code

    Hi Experts,
    I need your help on this problem.
    I have created a BADI for the transaction code miro. I have got the Exit name on which the enhancement has to be done. I want to perform a check on a text field (Scrren field name INVFO-SGTXT).
    When my break point occurs i enter INVFO-SGTXT in the field to check the value present in it. But it shows that no such field exists.
    My Basic doubt is how to use a value entered in a text field in a tcode while performing a User Exit or BADI on it.
    Do I have to declare it. If yes please mention how?
    Thanks in advance guys.

    Hi,
    The first question here would be... do you plan on having multiple implementations down the road because if not there really isn't any reason to create a BADI inside the exit.  If that is the case then add the field as an importing parameter in your BADI interface and then you should be able to see it inside the BADI at your break-point.
    Regards,
    Ryan Crosby

  • Modify a value of a field in dynpro, from a User-Exit

    Hi guys, i have a problem and i wish you can help me.
    In transaction IW32, I am using EXIT_SAPLCOIH_002 to generate a stock transfer order with BAPI_PO_CREATE1. Once this bapi is used, it gives me the number of the document created.
    I need to put this number in the field PMSDO-BSTKD (Customer purchase order number) of the dynpro.
    First, i tried to modify directly the database (from table pmsdo), but naturally, the dynpro is not updated and when i save the document, it overwrites with a blank value.
    Then I tried to use a field symbol directly to the variable of the program of the dynpro, like this:
    FIELD-SYMBOLS: <rv_bstkd> TYPE pmsdo-bstkd.
        ASSIGN ('(SAPLCOI3)PMSDO-BSTKD') TO <rv_bstkd>.
        <rv_bstkd> = ls_return-message_v2.
    But its has no effect in the screen.
    Lastly, i tried to use two FM C14Z_DYNP_WRITE_FIELD and C14Z_DYNP_READ_FIELD
    With the "READ" one, I can read the value on the screen. Then with the "WRITE" one, i can write a new value. (that i can, once again, read it, with the new value!). But when I exit the user exit and return to view the screen, the field is still in blank (or with the previous value).
    Any, Ideas? I would be grateful for any suggestions.
    Thanks in advance.

    Hi Jguerra,
    Please try FM 'IQS1_FILL_WA_FROM_BUFFER'.
    Please see a sample code, am not sure about it, but i just give a try.
    data: Lv_VIQMEL like VIQMEL.
    CALL FUNCTION 'IQS1_FILL_WA_FROM_BUFFER'
           EXPORTING
                I_QMNUM        = CAUFVD_IMP-QMNUM
                I_AKTYP        = 'V'
           IMPORTING
                E_VIQMEL       = Lv_VIQMEL
           EXCEPTIONS
                NUMBER_INITIAL = 1
                OTHERS         = 2.
    check sy-subrc = 0.
    if Lv_VIQMEL-MSAUS is initial.
        move 'X' to NO_RELEASE.
    endif.
    Regards,
    Antony Thomas

  • Cannot see fields in datasource after creating user exit

    Hi,
    I have created a view from table and then created a generic datasource from this view. aftre that i appended the extract structure with my key figures (3 fileds) and then populated it by user exit. Now i can see that data is being extracted by user exit( in debug mode), but i dont see the fields in the datasource.
    What am i doing wrong,
    Please help.
    Thanks

    Hi Raj,
    In case the previous post did not work check whether you have the entries for the fields (newly added) in the table ROOSFIELD for your datasource.
    You may need to write a small ABAP program to resolve your issue:
    To resolve your poblem you would need to write a small ABAP program:
    tables ROOSFIELD.
    Update ROOSFIELD set SELECTION = 'X' where
    OLTPSOURCE = '<your datasource name>' and
    FIELD = '<field which is hidden/missing>'.
    Execute the program for each of the field and check the entries in RSO2.
    Bye
    Dinesh

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • PDF file opening with blank fields - the field values are not populated.

    Recently, our users have been facing this issue, "data not populating in the PDF fields".
    We are using FDF in PHP to load the PDF templates and apply the data to the PDF fields. This works fine on many adobe versions but showing empty fields in few adobe versions. For e.g It worked fine with Adobe Reader 10.1.3 but did not work in 11.0.
    This has been critical now as it is showing empty fields in IE11. Can you please help me overcome this issue.
    Thanks!

    All I can suggest is to try the latest Reader versions, i.e. 10.1.11 or 11.0.8.

  • Problem in RESETing certain fields in ME22 Upon editing : User EXIT FOR PO

    I am working on an user exit which should reset the order quantity in Me22 if user tries to modify it. Suppose the original qty is 200 KG and user tries to modify it to 100 KG, it should be reset back to 200 KG upon save. I tried user exit EXIT_SAPMM06E_013 and EXIT_SAPMM06E_017. I tried to over write new values of that field with old values. ( Eg. YEKPO-MENGE to XEKPO-MENGE). But still the  PO document is saved with XEKPO-MENGE . Is there any other process overwriting it back or is it losing it scope outside my Include ? Here is my code in EXIT_SAPMM06E_013.
    Also tried putting YEKET-MENGE to XEKET-MENGE. Still did not work. Then i moved to EXIT_SAPMM06E_017. Tried to copy i_ekpo_old-menge to i_ekpo-menge. Still did not help.
    I had similar problem with Sales order too. I figured out that along with YVBAP-KWMENG copy to XVBAP-KWMENG, i had to do YVBEP-CMENG to XVBEP-CMENG and it worked fine.
    *   INCLUDE ZSWI_NOMIT_PO_VALIDATION
       DATA: i_wa_xekpo  TYPE  uekpo,
             i_wa_yekpo  TYPE  uekpo,
             i_oijnomi TYPE  oijnomi.
       DATA: i_wa_yeket  TYPE ueket,
             i_wa_xeket  TYPE eket,
             i_eket      TYPE eket OCCURS 0 .
       DATA :i_tabix TYPE sytabix.
       CONSTANTS: c_char_i VALUE 'I',
                  c_char_e VALUE 'E',
                  c_char_f VALUE 'F',
                  c_char_p VALUE 'P',
                  c_char_v VALUE 'V',
                  c_bulk_order(2) VALUE 'ZB',
                  c_po_change(4)   VALUE 'ME22',
                  c_pon_change(5)  VALUE 'ME22N'.
       IF i_ekko-bstyp = c_char_f     AND    " Purchase orders
          i_ekko-bsart = c_bulk_order AND    " Bulk orders
          sy-batch IS INITIAL         AND    " In foreground
          ( sy-tcode   = c_po_change   OR    " PO Change
            sy-tcode   = c_pon_change   ) .   " Enjoy PO Change
         CLEAR: i_wa_msg .
         REFRESH: i_message .
         LOOP AT xekpo INTO i_wa_xekpo .
           i_tabix = sy-tabix.
           READ TABLE yekpo
                INTO i_wa_yekpo
                WITH KEY ebeln = i_wa_xekpo-ebeln
                         ebelp = i_wa_xekpo-ebelp .
           IF sy-subrc EQ 0 .
             CLEAR: i_oijnomi .
             SELECT SINGLE * FROM oijnomi
               INTO i_oijnomi
              WHERE docnr  = i_wa_xekpo-ebeln
                AND docitm = i_wa_xekpo-ebelp
                AND docind = c_char_p .
             IF sy-subrc EQ 0. " TIED TO A NOMINATION
               IF i_wa_xekpo-menge NE i_wa_yekpo-menge .
                 xekpo-menge = i_wa_yekpo-menge.
                 MODIFY xekpo FROM xekpo INDEX i_tabix
                 TRANSPORTING menge .
                 READ TABLE yeket INTO i_wa_yeket
                            WITH KEY ebeln = i_wa_xekpo-ebeln
                                     ebelp = i_wa_xekpo-ebelp .
                 xeket-menge =  i_wa_yeket-menge.
                 MODIFY xeket FROM xeket INDEX i_tabix
                 TRANSPORTING menge .
               ELSEIF i_wa_xekpo-werks NE i_wa_yekpo-werks .
                 MODIFY xekpo FROM i_wa_yekpo INDEX i_tabix
                 TRANSPORTING werks.
               ENDIF .
             ENDIF .
           ENDIF .
         ENDLOOP .
        ENDIF .

    Hello Shareen,
    You cannot modify any Purchase order fields (Header and Line)with these function exits EXIT_SAPMM06E_XXX in 4.6C. They can  only be used for validations or outbound scenarios such as updating a custom table. Probably in later versions, you may be able to do that. When we had such a requirement, we ended up creating a custom enhancement.
    Thanks,
    Venu

  • Creation of new field with the absense of user exit

    Helllo Abapians,
    For one of the T.Code , i dont find any user exits for that T.code.but one customized field is there to that T.CODE.
    How it is possible???

    hi,
    Plz refer to the program on the link to find the user exit.
    http://www.erpgenie.com/abap/code/abap26.htm
    Regards
    Sumit Agarwal

  • Access request creation - select roles screen - field boxes were not aligned

    I'm not sure if this is really the screen of SAP GRC 10.1 access request creation. The field boxes were not aligned. Is there a note to fix this issue? Thank you.
    Regards,
    Jenilyn

    Hi Mohamed,
    Even I used Google Chrome, it's the same. Still facing the same issue. Is there any other way to solve this issue?
    Thank you.
    Regards,
    Jenilyn

  • Re: Changes to screen field date was not updated

    Hi,
    I had a dialog screen showing a valid from date as 10.10.2007. I changed it to 15.10.2007 and click on other details tab. when I returned, it is still showing the old values.
    When I did a DEBUG, upon changing and hitting enter key, the new dates for the screen field is not changed. it is still showing the old date for the screen field.
    why is it so?
    I think this is the cause of why the old values is still displaying. How can I get the field updated to my internal table. It need to be filled with the new values before I can updated to my internal table and then re-displayed again.
    How to get the new values into the screen field?

    Hi..
    As i understatnd this field is in TABLE Control.
    In that case you must Update the Internal table in the PAI .. Inside LOOP .. ENDLOOP.
    Process After Input.
      LOOP AT ITAB.
       Module Update_itab.  "Calling the module
      ENDLOOP.
    <b>In Module pool</b>
       Module Update_itab INPUT. 
        modify itab from wa index TABCON-CURRENT_LINE.
       ENDMODULE.
    Note: Here WA is the work area of the Screen fields and TABCON is the Table control variable.
    <b>Reward if Helpful.</b>

  • Order save flow(r3 outbound) not executing user exit

    hi experts,
    i want to enhance the middleware flow for orders flowing from r3 to crm. i created a function module(user exit) in r3 for that and registered it in tables tbe24 and tps34. surprisingly the customer save (in r3) flow executes that function module but order save doesnt. please give me your expert comments on this. suitable points will be rewarded.
    thanks in advance,
    sagar.

    Hi Venkat,
    i tried doing that also. in fact i am changing the existing orders only. i changed the existing customers and found that that user exit is being executed but when i changed the existing orders i could not see it executing that user exit. Any guess?
    Thanks for quick response,
    sagar.

  • Screen field char value not possible

    Hello,
    I have a text field in my screen. This field is associated with a table field of type CHAR with lowercase possible.
    The problem is that when the user starts the text for example with a ! the field gets erased. If the user writes a normal text it is accepted.
    Anyone knows how to prevent this?
    Thank you,
    Nuno Silva

    Hi ,
    For character fields, you can suppress this behavior by setting the 'Without template' attribute for the field.
    If you do this, the system does not interpret any characters of the input.
    The attribute is located in the Screen Painter (transaction SE51) among the attributes of the relevant field.

  • Is it possible to get the fields in to our user exit .....?

    Hi All,
        In the user exit some structures are passed as import parameters in the function module. but we want other than those structure fields in to our user exit. that means those fields are dynamically populated in to the transaction.based on those fields we have to trigger one dialog window. so how to get those fields in to our user exit.
    -Prasanth.M
    Ex: Transaction: IW31/IW32
        Enhancement Name: IWO10009
        Structure Name: CAUFVD.
    But i want these fields ACPOS,WRTTP,BELTP,WRT00 to WRT16. these fields are in PMCO table.but i want these fields before updating the PMCO table,not from the PMCO table. based on these fields we have to trigger user exit.
    Message was edited by:
            prasanth Kumar

    Hi,
    here i am giving my requirement.
    Please look in to this and let me know how to solve the problem.
    1.     Check ordertype
          a.     If ordertype = REP1 set planned cost limit field to 450
          b.     If ordertype = MUT1 set planned cost limit field to 5000
    2.     Check the planned costs for value category KostenTalis
           Check table PMCO for the order
              i.     PMCO-ACPOS = KostenTalis
             ii.     PMCO-WRTTP = 1
             iii.     PMCO-BELTP = 1
             iv.     PMCO-VORGA = KPPP
              v.     PMCO-WERT00 -> PMCO-WERT16, check if one of the fields  WRT00 till WRT16 is filled with a value
         a.     No, exit
         b.     Yes, go to 3
    3.     Are the total costs for Talis > planned cost limit field euro?
         a.     No, do nothing and end this user-exit
         b.     Yes, show the pop-up and place the total planned costs in the variable <costs>
    and already i had given tr and user exit.i think its sufficient to solve the issue.
    still u have any more doubts kindly let me know.
    -Prasanth.M

  • Vendor User Exit at Initial Screen

    Dear friends
    When a vendor is created through XK01, I would like to control that if u201CAccount Group 1000u201D is entered then Purchasing Organization and Company Code fields must be mandatory before skipping them empty at initial screen. Although I found a user exit that controls the data on saving but itu2019s too late since after creation of vendor workflow will be triggered and until itu2019s approved no changes will be allowed.
    Looking forward to your advice and thanks in advance.
    Thanks and Best Regards,

    Hi,
    Following are userExits of T-code XK01,
    RFKRRANZ            User exits: Accounts Payable Information System
    SAPMF02K            User exits: Vendor master data
    To Activate User Exit or Implement it,
    Use T-CODE CMODE.
    First Check whether enhancement is assigned to a project in CMOD.
    If it is not assigned, then  assign it to a project by creating Project in T-Code CMOD.
    After Assign Enhancement in project click on Components Button on Application bar of CMOD.
    Click on Function Exit and Active the Include present in USER EXIT.
    Write Your Code in the include fresent in UserExit.
    There is a Active button at application Bar of T-code in CMODE  to activate the exit.
    Thanks & regards,

  • User Exits Notes

    I dont know abt user exits.
    I need some notes on User exits
    Plz send some notes on it.
    Regards,
    Vimal

    Hi Vimal,
    User exits :
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    What is User Exits and Customer Exits?
    Difference between user exits & customer exits:
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks. *-- Mani
    The following document is about exits in SAP :-
    The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications.
    SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Types of Exits
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    Menu Exits
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    Function Module Exits
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.
    These calls have the following syntax:
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field. Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100.
    The field exit concept lets you create a special function module that contains this logic.
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number.
    In 4.6c, you can use "RSMODPRF" program to create field exits.
    An example of a user exits :-
    MODULE user_exit_0001 INPUT
    CASE okcode.
    WHEN 'BACK OR EXIT'.
    CASE sy-dynnr.
    WHEN '100'.
    SET SCREEN 0.
    LEAVE SCREEN.
    WHEN '200'.
    Note that you can write any code that satisfy your needs. ****
    But in this case, this was wrote as a sample code for reference sake. ****
    And you can test it. ****
    SET SCREEN 100.
    LEAVE SCREEN.
    ENDCASE.
    ENDCASE.
    Reward if useful.
    Thanks
    Aneesh.

Maybe you are looking for

  • SQl Error while executing query in BEx

    Hi All, We are executing a Report in Bex 7.0 and we get the selection screen once i give the slections and execute it after running for few mins ( say 3 mins), its giving the below error message. Error Sql: 1578 Error ORA-01578 ORACLe DATA BLOCK Corr

  • How to restore Itunes account after Hard Drive replacement programme

    I was part of the Hard Drive replacment programme by Apple after which I have set up my computer as normal to find all the music, filmas and apps have gone from my Itunes Acccount can anyone help

  • Use as a media streamer?

    I have a 'spare' 1.66ghz core duo mini. I am trying to determine if I could use it as a media streamer to my TV. ie I want to use the rascal for external services like netflix and amazon... Some questions: 1) My cable connection is a nominal 4mbs/sec

  • Newbie for load XML to oracle11g

    I'm a newbie for developer. Can anyone tell me? Can i load this xml file to oracle11g? Can i use sql loader? Or i should convert to other format first? the example of xml as below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mdc SYSTEM "MeasData

  • Photostream is not copying into my library

    In photostream preference I have the option selected to automatically import photostream photos to library but it does not seem to be doing this.  Any suggestions as to why?