Check Screen Fields in ME21n

Hi,
I have to put a check on Document type and plant combination in ME21n.
After i enter values in Doc Type and Plant and i hit enter it should perform a check.
Check Logic:
I have made a Z table and if the Doc type n plant combination does not exist in that Z table then it should throw an error.
Now my query is,
which exit or badi should i use? i cant find anything related to it.
Thanx in advance
Regards,
Shraddha

Hi shyam...
thanks for your reply...
me_process_po is only for internal use of SAP
me_process_po_cust-
actually i want plant info from item and doc type from header....which is not possible through this badi as the method in which both these parameters are there is not called at the time of enter or save.
rest no other badi is useful.
Do u know about any exit?
Regards,
shraddha

Similar Messages

  • Grayout of  component screen  fields in ME21N transaction

    Hi experts,
       I have a problem while creating subcontracting PO i want to gray out the fields of component screen...in ME21N transaction...is it possible through the screen varient or else should i go for exit  ??...could u please help me in finding  the right procedure...........
    Best Regards,
    shanker

    Go to the screen where u want to make the changes.
    Click on System -> Status. Double click on the screen Number (like 1121).
    Then on the PBO module screen click on 'Layout'. You will go to graphical screen painter.
    Then DOUBLE CLICK on the column/field you want to gray out and on Attribute part, Program Input -> Not possible .(save + activate)
    You will need an Access Key to change the standard SAP Screen...
    Fawaz

  • Screen Field Enhancement (ME21N)

    Hi
    I have done some screen enhancement in Tcode ME21N. i made 2 fields in Customer data Tab. Data is also savin.
    But i am not able to disable the fields at the time of display mode. Is there anyone who has done some enhancement in PO or faced this same problem ?
    please do tell me the solution for this.
    Regards
    Abhishek

    T160-TRTYP =  'H'   FOR ME21N
    T160-TRTYP =  'V'   FOR ME22N
    T160-TRTYP =  'A'   FOR ME23N
    IN THE exit code
    make use of this screen conditions to differentiate for Create, Change and display mode before teh logic.
    as
       IF T160-TRTYP = 'H'.
       PROCESS LOGIC ..
       ENDIF.  
    Table is T160.
    regards,
    vijay.

  • Standard screen field validation : ME21n/ ME22n

    Hi experts,
    I have a requirement in which we are supposed to do field validations while creating or changing POs/Purchase requistions.
    Suppose if at item level in Account assignment category is 'F' and the order entered by user is of type 'Z560' then in that case user will be allowed to enter only specific G/L account for eg : 712546 or 715486.
    Please guide how can that be accompalished. I couldn't find any proper exit for this.
    Thanks
    Vishal

    Hi Vishal,
    there is a very helpful BAdI for this: ME_PROCESS_PO_CUST.
    Re: user exit/ badi for me21n
    Roy
    Edited by: RobbdB on Jun 30, 2010 9:09 AM

  • 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

  • Search Help - Standard Screen Field: ME21n / ME22n

    Helow, experts.
    I have to create a search help in the standard screen field "Our Reference" (UNSEZ) in the tab  Communication to ME21n / ME22n, anyone could say me how can I code it?
    To populate this search help, I have to use 3 different tables.
    Thanks

    hi shatish
    code here in screen flow logic it will fire on F4 pressing.
    PROCESS ON VALUE-REQUEST
    module value_help.
    in program
    module value_help.
    populate the itab.
    CALL FUNCTION 'POPUP_WITH_TABLE'
                    EXPORTING
                      ENDPOS_COL         = <colvaluea>
                      ENDPOS_ROW         = <colvaluea>
                      STARTPOS_COL       = <colvaluea>
                      STARTPOS_ROW       = <colvaluea>
                      TITLETEXT          = 'VALUE HELP'
                  IMPORTING
                    CHOICE             =
                    TABLES
                      VALUETAB           = itab
                  EXCEPTIONS
                    BREAK_OFF          = 1
                    OTHERS             = 2
                  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                  ENDIF.
    endmodole.
    regards
    shiba dutta

  • ME21N to Add New Screen Fields ME_GUI_PO_CUST.

    Hi All,
            Req : To New TAB with Custom Fields for ME21N.
                     I Created a Custom Module Pool Prog with Reruired SUBSCREEn.
                     I am able to See the TAB but Unable to See the SUBSCREEN
                     and it is Displaying the RUNTIME ERROR .
    One of the programs "CL_SCREEN_VIEW_MM=============CP" or "ZGDEO_100 " is currently being developed.
    The name "SET_SUBSCREEN_AND_PROG" of the called routine may be incorrect, or the routine "SET_SUBSCREEN_AND_PROG" is not yet implemented in the program "ZGDEO_100  ".
    *SOURCE CODE OF SUBSCRIBE
    Method SUBSCRIBE.
    CHECK im_application = 'PO'.
    CHECK im_element = 'ITEM'.
    CLEAR re_subscribers[].
    ls_subscriber-name = subscreen1. ( Not Sure WHAT TO PROVIDE )
    IF Leave it as subscreen1, it Says that it is Not Declared.
    ls_subscriber-dynpro = '0100'. "SubSCREEN.
    ls_subscriber-program = 'ZGDEMO_100'. " Custom Module Pool prog
    ls_subscriber-struct_name = 'CI_EKKODB'.
    ls_subscriber-label = text-001.
    ls_subscriber-position = 5.
    ls_subscriber-height = 7.
    APPEND ls_subscriber TO re_subscribers.
    *SOURCE CODE OF MAP_DYNPRO_FIELDS                 
    MAP_DYNPRO_FIELDS Code:
    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
    LOOP AT ch_mapping ASSIGNING <mapping>.
    CASE <mapping>-fieldname.
    WHEN 'ZZMARK1'. <mapping>-metafield = mmmfd_cust_01.
    ENDCASE.
    ENDLOOP.
    CAN ANY ONE PLEASE HELP ME In THIS REGARDS.
    Note : Points Will be Awarded

    Hi Ganapati,
    Please check this link:
    http://wiki.sdn.sap.com/wiki/display/ABAP/DetailedexplanationaboutBADIandthewaystofindtheBADIwithanexample%28ME23n+transaction%29
    Thanks,
    Hung To

  • Grey out of component screen fields in sub contracting PO.

    Hi!!!!!!!! Sapers
    When i am creating subcontracting Purchase order , In this i want restrict the users to add or modify the components screen fields. what i need exactly is i want to gray out  the fields of these component screen .
    Is it Possiable? Or required any user exit?
    Please suggest
    Thanks
    Prashant

    Hi Prashant
    Please fallow the below steps
    1. Goto me21n screen and note down program? and screen? using F1
    2. Use tcode SHDO, Enter transaction code as "mE21N" goto screen variant tab and enter some name in screen variant field
    3. also enter program name and screen name then click create icon
    4. It will take you to the mm01 screen Enter reqd defauls value press Enter
    5. then it will take you to another window there you can hide required field & save
    6. come to the SHDO screen and select Transaction tab & enter some name
    7. enter you already created screen variant name & save
    8. table Standard variant tab and it might alredy taken Transaction variant which was created already
    9. now you can check ME21N
    Raju

  • Addind field in ME21n

    Hi friends ,
    I m adding field in me21n using the enhancement MM06E005  in this i m adding field in screen 0111.
    when i m going to check in me22n custom add is coming but when i m clicking custom tab a dump is coming.
    error is 'THE ATTRIBUTE SCREEN TYPE WITH THE VALUES NORMAL SCREEN AND SUBSCREEN DETERMINES THE USE OF THE SCREEN .IF A NORMAL SCREEN IS USED AS SUBSCREEN OR VICE-VERSA AN ERROR OCCURS.
    THE SCREEN SAPLXM06 011 HAS, IN THIS RESPECT AN INAPPROPRIATE SCREEN TYPE.
    PLEASE GIVE THE STEPS..N HELP ME..
    REGARDS
    YOGESH

    Hi Yogesh,
    Check the screen type of 0111 in the attribute tab. It should be Subscreen.
    Regards
    Dillip Sahoo

  • Modify fields in ME21n

    Hello All,
    I have a requirement where in I need to modify fields of me21n based on a condition:
    if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.
    I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :
    If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.
    Please suggest me a solution for any of the above two requirements.
    Any help on this would be highly appreciated.
    BR
    Ankur

    Hi,
    Why dont you check with the enhancement project LO020 in CMOD.
    Hope this would help you.
    Or use the class CL_EXITHANDLER to find out the BADI used in ME21N for your requirement.
    Regards,
    Ranjith Nambiar

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

  • Material Field in ME21N

    Dear,
    When i go to ME21N and try to create a NB PO type after when i entered the vendor in the item overview tab material field didn't appear at all. when i just opened the ME21n at that time material field was appearing whats the problem.
    Regards,
    qsm sap

    Hi,
    For the Document type NB check the screen layout and check the config in SPRO for screen layout wther this field is supress or Not. Also for ME21N layout do check this field in customozation in Define Screen Layout for PO document type. If it is not supressed check wther you are giving or by default if the Acc Assignment category is appearing other then standard.
    Also check if for other document type the Material field for this vendor is coming or not.
    Thanks
    Shashi
    Do remember to provide points if the info is helpful, irrespective the issue is resolved or not.

  • How to add additional tab or fields in ME21n

    Hi all.
    I included some fields in EKKO table.
    I want to add these fields in ME21n, ME22n, ME23n Header screens.
    How to add?
    I can't find screen exit and user exit.
    Plz, let me know how to do in detail.
    Regards,
    nam
    Message was edited by:
            Kil Nam Kim

    Hi
    It is very much possible. Please discuss with your development team with the exact requirements. They should be able to do it with screen exits.
    Reward if this helps.

  • How to create a F4 help for a report selection screen field

    hi,
    can any one guide me to create F4 help for a field in a selection screen in a report program,plz give me a sample code

    hi,
    Here are the following ways
    1.with the help of match code objects we can create the F4 Functionality for Field.
    Syntax is :
    PARAMETERS: p_org LIKE t527x-orgeh MATCHCODE OBJECT zorg.
    2. One more thing is we can do it with Search Help's also.
    3. Even we can do it HELP Views also.
    Help Views:
    You have to create a help view if a view with outer join is needed as selection method of a search help
    The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
    All the tables included in a help view must be linked with foreign keys. Only foreign keys that have certain attributes can be used here. The first table to be inserted in the help view is called the primary table of the help view. The tables added to this primary table with foreign keys are called secondary tables.
    The functionality of a help view has changed significantly between Release 3.0 and Release 4.0. In Release 3.0, a help view was automatically displayed for the input help (F4 help) for all the fields that were checked against the primary table of the help view. This is no longer the case in Release 4.0.
    As of Release 4.0, you must explicitly create a search help that must be linked with the fields for which it is offered (see Linking Search Helps with Screen Fields ).
    Existing help views are automatically migrated to search helps when you upgrade to a release higher than 4.0.
    A help view implements an outer join, i.e. all the contents of the primary table of the help view are always displayed. You therefore should not formulate a selection condition for fields in one of the secondary tables of the help view. If records of these secondary tables cannot be read as a result of this selection condition, the contents of the corresponding fields of the secondary table are displayed with initial value.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:15 PM

  • Regarding Selection-Screen Field Display

    Hi All,
    I have issues with Selection-Screen field display.
    The Actual issue is i had declared a selection screen field as: <b>s_exgen FOR embk-exgen</b>.
    <b>EMBK-EXGEN</b> is actually <b>20</b> Char length field.
    But in output display it is being shown as <b>18</b> Char field though i can type in all <b>20</b> characters.
    But <b>display</b> restricted to <b>18</b> Characters only.
    Can anybody give me the solution for the same!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    You can decrease the visible length of the field but you can not increase more than database field length. check SAP help on this :
    select-options: s_exgen FOR embk-exgen VISIBLE LENGTH 5.
    ... VISIBLE LENGTH vlen
    Effect
    This addition allows you to shorten the visible length of the corresponding screen field on the selection screen to vlen.
    Variant 2
    SELECT-OPTIONS sel FOR (f).
    Additions as in variant 1.
    Effect
    In this variant, (f) must be a field containing the name of the actual reference field at runtime. The system creates the LOW and HIGH fields as character fields with length 45. However, their appearance on the selection <b>screen is inherited from the reference field whose name is contained in field f at runtime.</b>
    Regards
    Appana

Maybe you are looking for

  • Consistent hot backup possible

    Is a consistent hot backup possible? I would like to perform hot backups while the database is in basically a read only state. I am currently using Oracle recommended backups via OEM, for example. run { allocate channel oem_disk_backup device type di

  • PDF Caching in Acrobat Reader

    Is there any way to avoid caching PDFs in temporary internet files so that sensitive documents will not be accessible to a more than one person using the same machine?

  • Pre-Mac book Pro purchasing quesiton

    Evening. I am looking to purchasing a Mac book Pro for my next 4 years at college. I was wondering if I would be able to set-up the Mac Book Pro so it's display could be used as a monitor. Could I hook up say, an Xbox 360, to the Mac and use the disp

  • How to use tcom to control vi

    how we use tcom to control vi program? we have got this tcl script from googling  but it is not running , it says to run the vi as activex server ,how can we do it? it is opening the vi but gives the error "high frequency not found in vi connector pa

  • Soap parameters

    Hi...Experts, i am doing rfc-soap scenario, we r getting the response from target(SOAP) to XI,  we want to send that response from XI to SAP Inbox. Transport Protocols is : HTTP / SMTP, which Transport Protocol is suggestable for my requirement HTTP