Screen modification in ME21N

Hello people,
I am facing a problem when creating Customer Screen in ME21N.
I am able to create the customer screen and added my fields in the customer screen at item level in transaction ME21N. However, my problem is that i m not able to retrieve the value i put in my custom fields.
I have a date field, when i input a date and press enter, the value disappears from the screen. What i want to do is that when i input the date, i should be able to pass the value to my custom table when the PO is saved.
Any help would be appreciated and awarded.
Regards,
Sandeep Salaria

Hi Sandeep ,
Write the table population logic in the below BADI
ME_PROCESS_PO_CUST :   Enhancements for Processing Enjoy Purchase Order: Customer
Thanks.
Note:Reward Points if you find useful.

Similar Messages

  • Selection screen modification based on various buttons in selection screen

    Hi,
    I have 1 query related with Selection screen modification.
    In my Report Program,I have created GUI Status for my selection screen
    Now 2 buttons in application toolbar are coming on selection sceen.
    For this i used,'At selection screen output' event.
    And there are 2 blocks on selection screen.
    If user press button1 then block2 should not display.
    and if user press button2 then block1 should not display.
    but the problem is i m not getting reqd result and also while doing debugging its not showing me sy-ucomm value.
    Any pointers on this.
    Thanks,
    Mamta

    Hi Mamta,
       have it in a group then you can write code accordingly see sample example,
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS       : p_r1 RADIOBUTTON GROUP rad
                            USER-COMMAND clk DEFAULT 'X'.            " upload Radio Button
    SELECTION-SCREEN COMMENT 5(35) text-003.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 001 WITH FRAME TITLE text-001.
    PARAMETERS: p_upl       LIKE rlgrap-filename MODIF ID a           "Upload File
                             DEFAULT 'c:\temp\parbmat.xls',
                p_werks     like t001w-werks MODIF ID a,              "Plant
    PARAMETERS: p_rest      LIKE rlgrap-filename MODIF ID a           "Dwonload File Path
                             DEFAULT 'c:\temp\Success.xls'.
    SELECTION-SCREEN : END OF BLOCK 001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_r2 RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 5(35) text-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS     : p_plant  LIKE marc-werks MODIF ID b.                "Plant
    PARAMETERS     : p_lgort  LIKE mard-lgort MODIF ID b.                "Storage Location
    PARAMETERS     : p_vkorg  LIKE mvke-vkorg MODIF ID b.                "Sales Organization
    PARAMETERS     : p_vtweg  LIKE mvke-vtweg MODIF ID b.                "Distribution Channel
    SELECT-OPTIONS : s_mat FOR  mara-matnr MODIF ID b.                  "Material No No
    SELECT-OPTIONS : s_dat FOR  mara-ersda MODIF ID b.                  "Date on Record Created
    PARAMETERS     : p_down LIKE rlgrap-filename MODIF ID b
                      DEFAULT 'c:\temp\Material Master.xls'.           "Download File Path
    SELECTION-SCREEN : END OF BLOCK 002.
    AT SELECTION-SCREEN OUTPUT.
    *Inactive Fields depending on the radio button
      LOOP AT SCREEN.
        IF p_r1 = 'X'.
          IF screen-group1 = 'B'.
            screen-active = 0.
          ENDIF.
        ELSEIF p_r2 = 'X'.
          IF screen-group1 = 'A'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM
    Edited by: suresh suresh on Jul 28, 2009 12:42 PM

  • Capture Screen message while ME21N

    How can I capture the PO Number while executing Me21N.
    In one report I am called ME21N. SAP Displays message PO <PO Number > Created. I want to capture the PO Number and wanted to do further processing.
    I tried to get data from SYST MSGV1, MSGV2 MSGV3 MSGV3. But all variables are blank.
    I cant use set and get parameters. Because if user exit PO creation without creating the PO then get parameter picks the last created PO number.
    CALL TRANSACTION 'ME21N'.
    EBELN = ???????

    I have to Call Just ME21N and then user will create the PO mannually. after he saves the PO I want the PO number for further processing.
    by using the following code I can Capture the PO number, but the problem is that it will behave like a BDC with differnet screen attribute.
    Note i_BDCDATA table is blank.
    DATA : EBELN TYPE EBELN.
    CALL TRANSACTION 'ME21N'
    USING i_bdcdata
    MESSAGES INTO i_messtab.
    *CLEAR i_messtab.
    *SORT i_messtab DESCENDING by msgtyp.
    *READ TABLE i_messtab  WITH KEY msgtyp = 'S'.
    *IF sy-subrc = 0 .
    EBELN = i_messtab-msgv2.
    I just want to capture the screen value after ME21N.

  • How to add new field to Screen Modifications

    Hi,
    I want to get P0002-CNAME in screen modifications of Infotype 02. At present i have other 23 fields for which i can set display attributes. This new field is to be added in infotype 02 and also some coding is to be put for this. How this can be achieved ?
    One solution is to enhance infotype and add some Z field,but i would like to use the existing structure field.
    Please let me know proper way for this.
    Thanks.

    Hi,
    I want to get P0002-CNAME in screen modifications of Infotype 02. At present i have other 23 fields for which i can set display attributes. This new field is to be added in infotype 02 and also some coding is to be put for this. How this can be achieved ?
    One solution is to enhance infotype and add some Z field,but i would like to use the existing structure field.
    Please let me know proper way for this.
    Thanks.

  • Hide "Administratior" in IT 0001 through screen modification

    Hi Gurus,
    I have requirement where client wast us to hide Administrator section which have three administrators field from IT 0001. Please help me to understand that is it possible through screen modification.
    If not then what is the other solution?
    Regards,
    Amit Jain

    Hi Subhash,
    FIrst go to the IT001 screen... go to SYSTEMS -
    STATUS and get the program name and screen number
    then on
    Go to SPRO..
    Personnel Management > Personnel Administration > Customizing User Interface > Change Screen Modification >
    Select the program name and screen number which you got from IT0001
    then click on magnification screen and select the Hide radio button for ADMINISTRATOR field.
    Hope this helps...
    Ajay

  • At-selection-screen modification

    Hi Experts,
    I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item number field.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-005.
    SELECTION-SCREEN: position 32.
    parameter:p_sh type c radiobutton group rg.                "Sales header
    selection-screen: comment 35(15) for field p_sh.
    selection-screen: comment 60(20) for field p_vbeln.
    parameter:p_vbeln like vbak-vbeln MODIF ID gp5.            "Sales Document
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: position 32.
    parameter:p_si type c radiobutton group rg.                "Sales Item
    selection-screen: comment 35(15) for field p_si.
    selection-screen: comment 60(20) for field p_posnr.
    parameter:p_posnr like vbap-posnr MODIF ID gp6.            "Sales Document Item
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: skip.
    This is the selection screen  code where for sales document i have assiged Modif id GP5 for Item Modif id GP6.  so when i check radio button p_sh ( header ) then sales document ( p_vbeln) shoudl be active for input .
    if i check p_si (item) then both saleds document (p_vbeln) and p_posnr both have different group names i.e GP5 & GP6 should be active. i.e screen-inpu = 1.
    I have written the following code for header but for item i am unable to make screen-input = 1 for two different groups. how to do that?
    LOOP AT SCREEN.
        IF ( P_SH NE 'X' AND SCREEN-GROUP1 EQ 'GP5' ) OR
           ( P_SI NE 'X' AND SCREEN-GROUP1 EQ 'GP6' ).
          screen-input = 0.
          MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    This code is working when i click header radio button but for when i click item radio button (p_si) only item field is active i am unable to make sales docuemnt active at same time. please help me in this regard.
    Regards,
    sunil kairam.

    Hi,
    Check this piece of code changed a bit.
    PARAMETERS : p_ct  RADIOBUTTON GROUP grp .
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr,
    PARAMETERS : p_sh RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln  FOR vbak-vbeln,                
    PARAMETERS : p_si  RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln1  FOR vbak-vbeln,
                                   s_posnr   for vbak-posnr.
    IF p_ct  IS NOT INITIAL .
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF p_sh IS NOT INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
    now one more  ELSEIF p_si  IS NOT INITIAL
    now make s_vbeln1 and s_posnr as input 1 and rest others as input 0.
    endif.
    Regards,
    Nagaraj

  • Screen Badi in ME21N

    Hi Experts.....
    I have implemented a screen exit in ME21N Transaction to add custom fields. With this I could get an extra custom tab in which I have included my fields. Now my req is to get multiple tabs as the fields are more in number. So I wanted to implement this using a BADI. I have searched the BADI named ME_GUI_PO_CUST.
    in this I have passed the screen no and program name and label name along with element as PO and name of view as HEADER. But I cannot see an extra TAb in header details. I also created the subscreen and the corresponding program...
    Can anyone help me to implement a screen badi in ME21N.
    Thank you in advance

    Hi Shakti,
    The BADI ME_GUI_PO_CUST has an example implementation class CL_EXM_IM_ME_GUI_PO_CUST. Check the method SUBSCRIBE to see how the BADI can be subscribed.
    The reason why your custom screen is not appearing is probably because your BADI implementation is not active or the custom screen has not be subscribed properly.
    The code inside method SUBSCRIBE of your BADI implementation should be as follows:
      DATA: ls_subscriber LIKE LINE OF re_subscribers.
    * we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    * each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = 'ITEMSCREEN1'.
    * the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
      ls_subscriber-program = 'SAPLMEPOBADIEX'.
    * each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    * a label can be defined
      ls_subscriber-label = 'BAdI customer'.
    * the position within the tabstrib can be defined
      ls_subscriber-position = 5.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    To impelement multiple tabs you have to subscribe each tab differently using the parameter
    ls_subscriber-name
    of the BADI
    and also name each tab differently using
    ls_subscriber-label
    Let us assume that you have to implement three tabs, then you have to subscribe each tab with a different name and also label each tab differently.
    You can name subscribe the first tab with name ITEMSCREEN1 label BAdI customer, subscribe 2nd tab with name ITEMSCREEN2 label BAdI customer'2 and subscribe 3rd tab with name ITEMSCREEN3 label BAdI customer3.
    Mention a different positions for each tab.
    Like say for BADI customer1 ls_subscriber-position = 5., for BADI customer2 ls_subscriber-position = 6. and for BADI customer3 ls_subscriber-position = 7..
    Also append the subscribe data three times for the three tabs.
    This will display three tabs with names BADI customer1, BADI customer2 and BADI customer3.
    Hope the above information helps.
    Regards,
    Abhisek.

  • Screen exit for ME21N

    Hi friends,
      I need steps to create screen field in ME21N using the BADI ME_PROCESS_PO_CUST. Can anybody suggest me how to implement this.
      Thanks in advance
    Regards
    Srikanth S

    Hello Srikanth,
    To created a screen exit you can use either a BADI or a USER EXIT.
    BADI : ME_GUI_PO_CUST
    USER EXIT: MM06E005
    GO to transaction SMOD
    and type MM06E005 and press display.
    once inside the user exit, click on components, there you have function Module exits, screen exits and includes.
    On the screen exits, you have to decide where you want to add the screen field, whether its on header or item level.
    THE go to SE80, type the screen name as the program name. IT will give you all the objects for the particular program.
    Choose screens, and then the relevent screen. Go to layout and add the field you want. Save and activate.
    You also need to add the field in the Cl_include so that you could pass data and retrive data.
    Write the relevant code in Function Modulte Exits.
    ITEM LEVEL:
    EXIT_SAPMM06e_016
    EXIT_SAPMM06e_017
    EXIT_SAPMM06e_018
    Now you have to add the relevant code in the PAI and PBO module.
    Reward if useful.
    Regards,
    Sandeep Salaria

  • Screen Modification Problem ...

    While i am Working on Screen Modification i set Field  ABKRS as Out Put Field in IT001 .But Now Client asking just we need that field Out Put Field as one Emp Group  remaing as required Field,
    How Should i do.Is it possiable through IVWID Feature?

    Hi, you can make the field ABKRS required field for one EE sub group by modifying feature (PE03) P0001 some thing like below and then make corresponding entries in V_t588m.
    On feature, MOLGA> EE subgroup> give your EE sub group with a return value like 10A and then OTHERWISE as return value like 10. Then you make entries in V_t588m table with corresponding return value in feature as variable values in T588M and field selection as RF or out put field only.
    To create entriy in T588M, do as below:
    Goto SM30> V_T588M
    Click on Maintain.
    Module pool name as MP000100
    Feature P0001 and give appropriate alternative screen .....say 2000
    Create two entries in this view with variable you created above in feature P0001 (return value) and set proper selection RF or out put.
    Regards,
    Alen

  • Screen Modifications for Travel Privileges (0017) screen

    Hi all,
    I am trying to change the screen modifications for Travel Privileges with module pool MP001700.  The problem is I can't find the module pool through the IMG>Personnel Management>Personnel Administration>Customization User Interfaces>Change Screen Modifications. If not here, where/how can I do this?
    Your help is much appreciated.
    Thanks.
    Regards,
    Eric

    Hi guys,
    Thanks for the replies but I was looking to do screen modifications preferably by non ABAP methods. I have found the solution where you need to create the module pool manually and the fields selections will appear.
    Regards,
    Eric

  • Screen Modifications

    hi,
    for any global implementtion prj, if i wanted to have different fields in the infotypes, how to do this using screen modifications? and also what is the purpose of variable key in  Change view " Infotype Screen Control"
    for ex for US in IT0001, i wanted to hide Contract Field, for other country i wanted to dispay that field in IT0001.
    Thanks

    Hi Novice,
    When you press F1 in any field you will get technical information.by pressing F9 or clicking the technical information icon.
    Gather the information on program name and screen number. Table name and field name.
    In IMG  under personnel management -> personnel administrationt-> ustoming User interfaces->Change Modifications ->
    Select your module pool  Screen and Feature that is Table like IN case of infotype 0002 it is P0002 and select details
    You will find radio button to hide the fields.
    Warm REgards,
    Kapil

  • Screen Modifications Recruitment Module

    Dear All,
    I wanted to make screen modifications for Intial entry of basic data's initial screen and even organisational assignment and other recruitment infotypes. But unable to find any pertaining to them. Can any one suggest me on this...
    Regards,
    Rajasekar

    Hi,
    Check feature MASSN via PE03: Determining the Fast Entry Dialog Module.
    And check the return value in table TDCT, you will find the screen and program call by PB40 Initial Entry of Applicant Data.
    And you can create your own dialog module to adjust the initial screen or change the exist one.
    Hope helps,
    Chen Jian

  • Data hidden by screen modification

    Hi Experts,
    I am facing a problem, I have created a record in IT0016 (Contract elements) and saved it. Now when I am chossing Period as "All" in the overview, it is not showing any data, however when I go to "display" I can see the input data with a message below "Data is hidden by Screen Modifications".
    I tried searching table T588M but didn't understand anything. I need to change it asap.
    Please suggest steps and help.
    Thanks,
    Megha

    Hi Jignya,
    It is as bmentioned below:
    Screen      Feature     Variable Key     Alternative screen     Next Screen
    3000          P0016                 40                  3000                          0
    I have maintained feature also, still its not showing.
    Please suggest.
    Above are the screen shot for the same.
    Thanks,
    Megha.

  • Screen Modifications in VA31 - Scheduling Agreement

    Dear Experts,
    This is regarding screen modification.where our requirement is to add two  fields in VA31.
    In VA31 , as soon as we creates Scheduling Agreement,we add material in item level in overview screen .after double clicking on line item ,system moves to the next screen where in schedule tab we enters scheduling details .after double clicking on that line item, system displays one more screen which contains schedule line data where now three tabs are there :Sales/Shipping/Procurement .
    Our requirement is to add two more fields in any of this tab or add one more tab .
    as i tried for screen exits ,but i am not able to find any screen exit.
    Can anybody suggest me the way in order acheive above target.
    with Regards,
    Rajesh Chaskar

    Hi Rajesh,
    In SD module enhancements are generally done using User Exits.
    In Program SAPMV45A the screen number 0312 can be used to add custom fields.
    Then you can use the following Inlcudes in Program SAPMV45A to write your requisite code.
    INCLUDE MV45AOZZ.             " User-modules PBO
    INCLUDE MV45AIZZ.              " User-modules PAI
    INCLUDE MV45AFZB.             " User-forms
    INCLUDE MV45AFZZ.             " User-forms
    You would need to get access key from SAP before going ahead with User Exits.
    Hope the above information will help you in meeting your requirement..
    Regards,
    Abhisek.

  • Re:Screen Modifications

    Hai Experts,
    we are doing screen modifications for infotypes that we can use through PA30,
    i want to know whether its possible to make screen modifications while performing actions(pa40),
    if possible what is the procedure.
    Regards,
    Chiran Reddy.

    Hai Navneet,
    Thank you for your reply,i want to know that if we perform any screen modifications througgh module pool program,its impact will be both on pa30 and pa40 also.
    my requirement is that in an infotype
    some fields will be active while hiring
    same fields will be inactive while promotion
    same fields will be hidden while transfer.
    for the above process,is there any solution.
    Regards,
    Chiran Reddy.
    Edited by: chiran reddy on May 9, 2008 6:14 AM

Maybe you are looking for

  • ORA-600 [17069] error while running catrelod.sql to downgrade 11g database

    Hi, We are downgrading our 11.2.0.2 database to 10.2.0.4. We have successfullly run catdwgrd.sql without any errors in 11g env. While running catrelod.sql in 10g env we are facing the following error: SQL> @?/rdbms/admin/catrelod.sql TIMESTAMP COMP_T

  • How to implement F4IF_INT_TABLE_VALUE_REQUEST in search help User Exit?

    Hi, I need to enhanse search help and add F4 functionality to display list of company codes when cursor is in PBUKR field. I put F4IF_INT_TABLE_VALUE_REQUEST into the user exit but nothing works. I get error that PROCESS is not defined. If I remove t

  • HELP PLEASE IPOD ITUNES

    Hello all, I need desperate help on a life or death matter so any help would be much appreciated. OK - I had my itunes (4) on my work computer I no longer have that computer or that itunes. I have all my music still stored on my ipod. How do I get al

  • JSP includes

    Hello. I have some jsp pages that include other jsp pages using the @include directive. The included files reference variables in the parent jsp and I am getting compiler errors on the include files. What is the best practice here? How can I get a cl

  • Mail Doesn't Up With Latest E-mail

    I'm not sure this is a problem, but it's something I find strange about Apple Mail. When I open the application, my Inbox is highlighted in the "Mailboxes" list on the left, which is good. And I can see a list of all the messages in my Inbox to the r