At Selection-screen using BADI

I have to add validation logic to some fields   (for user inputs ) on the selection screen in transaction MEAN.
There is a BADI (ADDRESS_UPDATE)which can be used to add something while address update.
Is it possible in a BADI in general to achive the AT selection Screen functionality.
let me know if u have any inputs.
Regards
Alok Pathak

Hi Alok,
In the BADI-ADDRESS_UPDATE, there are 4 methods. You have to find out which method saves the fields for which validation is required. In that method you can write code for the validation. If the validation fails you can give a message like
MESSAGE <message type> <message number>(<message class)>.
Hope this is helpful
Regards,
Sameena

Similar Messages

  • Default sales org on selection screen using set and get parameter!!

    Hi,
    I need to default value on selection screen using SET n GET parameter...logic to be used should be:
    Sales Organisation:
    This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...
    Hope i need to write the code in initialisation and what shud b the content?
    Regards
    Gunjan

    hi,
    TABLES <table name>.
      SET PARAMETER ID VKO FIELD <tablename-fieldname>.
    call transaction 'zxx'.
    try this sample program,
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    regards,
    siva
    Message was edited by:
            Shan

  • Customer screen using BADI :  ME_GUI_PO_CUST

    Hi
    I am implementing BADI : ME_GUI_PO_CUST to create custom screen at item level.
    Pls tell me the steps to be followed to get custom screen using BADI
    Thanks
    Vinay.

    Hi Vinay,
    go to transaction SE18, then enter your BADI.The in menu go to Goto -> Sample Code -> Display. You will see example of implementation of this BADI. All these examples are very well commented. Basically you will have to create your own function group with your new screen and call this screen from methods of BADI.
    Cheers

  • I want to enhance screen using BADI

    hello sap guru
    i want to enhance screen using BADI.can i enhace screen with out using SPRO transaction? is abap consultant have authorization for SPRO trasaction?

    Hi Swamy,
    You can do the same without SPRO configuration.
    For example for purchase order screen exit there will be no configuration required in SPRO.
    Basically the main difference in scenarios come depending on the type of transactions using.
    For example when using master data transactions such as MM01,XD01 etc we do have configurations do be done in SPRO.
    But while using transactional data transactions such as VA01,ME21 etc we can do directly without any configurations by using customer exits such as MM06E005(for me21n).
    Why this difference occurs i also dont know.I thought it would be of some useful to you to some extent.Do share if you find why this difference occurs.
    Have a nice day.
    Thanks,
    Surya

  • To create Dynamic Selection screen using Key Fields

    Hi All,
    We have a requirement where we want to create Dynamic selection screen using Key fileds of Z-table or any standard table.
    Please provide some solution if you have worked in this area.
    Thanks in Advance,
    Anand Raj Kuruba

    Hi,
    You can use the following statement.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
    declares a node <node> of a logical database for dynamic selections in the selection include.
    To use the dynamic selections in the SELECT statements of the subroutine PUT_<node>, you must use the data object DYN_SEL. The data object DYN_SEL is automatically generated in the logical database program as follows:
    TYPE-POOLS RSDS.
    DATA DYN_SEL TYPE RSDS_TYPE.
    You do not have to program these lines yourself. The data object DYN_SEL is available in the database program but not in a connected executable program.
    The type RSDS_TYPE of the data object is defined in the type group RSDS as follows:
    TYPE-POOL RSDS.
    WHERE-clauses ------------------------------
    TYPES: RSDS_WHERE_TAB LIKE RSDSWHERE OCCURS 5.
    TYPES: BEGIN OF RSDS_WHERE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    WHERE_TAB TYPE RSDS_WHERE_TAB,
    END OF RSDS_WHERE.
    TYPES: RSDS_TWHERE TYPE RSDS_WHERE OCCURS 5.
    Expressions Polish notation ---------------
    TYPES: RSDS_EXPR_TAB LIKE RSDSEXPR OCCURS 10.
    TYPES: BEGIN OF RSDS_EXPR,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    EXPR_TAB TYPE RSDS_EXPR_TAB,
    END OF RSDS_EXPR.
    TYPES: RSDS_TEXPR TYPE RSDS_EXPR OCCURS 10.
    Selections as RANGES-tables -----------------
    TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
    TYPES: BEGIN OF RSDS_FRANGE,
    FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
    SELOPT_T TYPE RSDS_SELOPT_T,
    END OF RSDS_FRANGE.
    TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
    TYPES: BEGIN OF RSDS_RANGE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    FRANGE_T TYPE RSDS_FRANGE_T,
    END OF RSDS_RANGE.
    TYPES: RSDS_TRANGE TYPE RSDS_RANGE OCCURS 10.
    Definition of RSDS_TYPE
    TYPES: BEGIN OF RSDS_TYPE,
    CLAUSES TYPE RSDS_TWHERE,
    TEXPR TYPE RSDS_TEXPR,
    TRANGE TYPE RSDS_TRANGE,
    END OF RSDS_TYPE.
    For more information, please check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
    Regards,
    Ferry Lianto

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • Skip the selection screen using BDCTAB call transaction

    Hi experts,
    I am using BDCTAB for call transaction SWI1 I need to skip the selection screen. Can you please tell me how to skip the selection screen using BDC call transaction?
    Thank you in advance.....

    hi,
    the first step is to pass some values to the selection screen, at least Date From and Date To; otherwise, it´ll take a long time. The second step is to emulate the Execute button, which is done with '/08'.
    PERFORM fields USING 'BDC_OKCODE'   '/08'.
    Third step is to catch the programme and screen number.

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • To run a report in background in selection screen using a new button

    hi friends iam new member to this site
    nice to meet u all
    i want to run a report in background using the selection screen of the same report and i want to keep a button in application tool bar.
    after enter the values in the selection screen by clicking that button it should move to the screen which we get generally by menu option
    program-->execute in background
    and by entering the output device and start condition it should be scheduled in the background.
    with job_open,job_submit and job_close we need variants.
    for this i tried through bp_jobvariant_schedule and
    bp_jobvariant_overview but with this we can run with variants only
    but the user wants to enter the values in selection screen and need a button to run background
    ok friends i think u understood me
    please inform soon ok bye have a nice time

    Hi Jagadish
       There are two ways for you to handle the situation.
    1. Train the users to enter the values in selection screen and manually go for backgroung scheduling.
    2. Use At user command and within that basing on the option selection selected, use FM:JOB_OPEN with sy-repid get the job number, submit the program with the values on the selection screen and lastly executing FM: JOB_CLOSE with the job number from JOB_OPEN and SY-REPID.
    Note that you have to set 'X' for export parameter something like startimmed while calling FM: JOB_CLOSE for immediate execution. Am not on SAP to give you the exact parameter.
      Hope the above info helps you.
    Kind Regards
    Eswar

  • Selection-screen using HR report category

    Hi friends,
       I have a developed HR report using PNP ldb in which i have used the HR report category to specify my selection-screen.But still my requirment is not getting fullfiled.I require 1)Company Code
                            2)Payroll Period selection block also.
    But even if i dont enter value in this payroll area it should excecute.As of now it throws an error message saying "No valid payroll area specified"
    I want to generate report for any month given in other period of the payroll Area wrt company code.

    As per your question, remember that, the period will be different for each and every Payroll area.May be same period will behave differenly like weekly, monthly, semi-monthly.. with different payroll area.
    So the parameter payroll area will always be mandatory..

  • TO HAVE USER DEFINED SELECTION SCREEN USING LOGICAL DATABASE AFI

    AFI is the logical database i need to use, but if i include the AFI is the program attributes, i get the selection screen which is already there for AFI, but i need to get the selection screen, that i have defined

    Hi ,
    you can exclude sel. from ldb with
    loop at screen - statement
    and you can include your own sel-option and parameters
    regards Andreas

  • How can i make the select-option selection screen use screen layout?

    I want to make the selection screen like follows.
    no:  xxxxxx   ~   xxxxxx.
    in the screen painter.
    can any expert tell me.
    thank you very much.

    Hi,
    In layout screen for description use text box and for input fields
    use two i/o box.Try follow like as bello code
    For ex: you are going to give date as a select-option:
    textbox      input/out field box   textbox   input/out field box  
    date      :    fkdat-low                to           fkdat-high
    in data declaretion:
    ranges:  fkdat  for vbrk-fkdat.
    in select query where statement:
         where date ge fkdat-low
         and date le fkdat-high.
    Regards,
    Ramya.

  • Validation for a selection screen used as a subscreen

    Hi friends,
    I have a screen say '0001' in that screen i have three subscreens 0002 0003 0004
    In the subscreen 0002, i have declared three selection screens 0102, 0202, 0302
    In the Application toolbar of the screen 0001 (PF Status) i have declared three push buttons A, B, C,
    On click of A i ll invoke 0102 selection screen inside the subscreen 0002.
    Similarly On click of B i ll invoke 0202 selection screen inside the subscreen 0002
    Similarly On click of C i ll invoke 0302 selection screen inside the subscreen 0002.
    I have completed till the above ...
    My problem is ........................
    The selection screens will have their own Parameters and select options .....
    some of them are mandatory & some of them not .......
    Now when i switch from one push button to another say from A to B and then again to C .... for each and every click it is asking to fill in the mandatory paramters and select options ........ and then only allowing to move to the next sel screen .......
    Needed solution:
    ~~~~~~~~~~~~~
    1. How can i avoid this message "Fill in the required fields" ?
    2. How can i validate the user entries if i take away all the "OBLIGATORY"
        additions in the selection screen declaration part
    3. Where can i write "At selection screen" validation? becoz iam using a function
        group for the creation of screens and all and have included the selection
        screen declaration in the top include of the Function group?
    Hope iam clear with my question!!
    Revert back if you need more clarrifications on the question itself
    Cheers
    Kripa Rangachari .....

    Hi,
       In the pf status - for push buttons give the type as E.
    Write the processing for this in at exit command.
    Validation should be done in AT SELECTION-SCREEN ON field.
    Reward if helpful.

  • Value from Program to Selection screen using pushbutton on Selection Screen

    Sir,
    I am creating a Selection screen for update some fields using selection screen. I have 6 fields on screen. First 3 Fields are mendaotry for fetching the data to dispay last 3 fields. I have create a push button for fetch the last 3 fields using first 3 fields.
    So Plz guide me how to do that. I have used At Selection Screen with user command. but result is zero.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FETCH'.
          IF AGSLNO-LOw is NOT INITIAL.
              SELECT SINGLE AGATE_ENTRY_NUM BTRANSPORTER_CODE  B~TRUCK_NO
                      INTO (V_GTENT_N, V_TR_CODE, V_TRUCK_NO)
                      FROM ZGATEOUT AS A
                INNER JOIN ZGATE_IN AS B ON AGATE_ENTRY_NUM = BGATE_ENTRY_NUM
                                     AND AWERKS = BWERKS
                                     AND ATRANSPORTER_CODE = BTRANSPORTER_CODE
                INNER JOIN ZTRPTR_REQ AS C ON AWERKS = CWERKS
                                     AND ATRANSPORTER_CODE = CTRANSPORTER_CODE
                WHERE C~AGSLNO = AGSLNO-LOW.
          ENDIF.
       ENDIF.
              S_GTENT_N-low = V_GTENT_N.
              S_TR_CODE-low = V_TR_CODE.
              S_TRUCK_NO-low = V_TRUCK_NO.
    Thanks.
    Ram

    Hi.,
    did you assigned user command to push button..!!
    put a break point at  IF sscrfields-ucomm = 'FETCH'. and check whether at selection screen event is triggered or not. and check the ucomm value . 
    check this help  for reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/content.htm
    hope this helps u.,
    Thanks & regards,
    Kiran

  • Ho to back on selection screen using BACK button

    Salute.
    I have a program which contains 3 screens:
    1st -- selection screen.
    2nd -- my screen, I called it 1002, When I press F8 button on I get on it. I am using cl_gui_alv_grid there with my own buttons. So when I press MY OWN the save button I get the 3d screen
    3d -- my own screen with some labels (screen name 1001).
    So when i press BACK button on the third screen I want to back on selection screen and skip second screen, but I can't, I think the problem is in the cl_gui_alv_grid because I use custom grid handler:
      METHOD handle_user_command.
        DATA :
            ls_selected TYPE lvc_s_roid,
            lt_selected TYPE lvc_t_roid.
        CASE e_ucomm.
          WHEN 'QSAVE'.
            PERFORM save_data.
            CALL SCREEN 1001.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
    Thank You.
    Edited by: kernel.panic on Nov 24, 2009 6:31 AM

    Hi Kernal,
    To go back to the First Screen (Selection Scree) use
    LEAVE TO SCREEN 0. " This makes the Program to go back from where it had started
    or Create a Tcode for your program
    CASE e_ucomm.
    WHEN 'BACK'.
    LEAVE TO TRANSACTION 'YOUR TCODE HERE' . " This will take you back to your Selection Screen
    WHEN 'QSAVE'.
    PERFORM save_data.
    CALL SCREEN 1001.
    WHEN OTHERS.
    ENDCASE.
    Cheerz
    Ram

Maybe you are looking for

  • Will not boot up get file icon on screen with ?

    not my computer so cannot give more info as I cannot speak with my granddaughter any more  till tonight. Just wondered if anyone has any ideas. It was working OK yesterday. she said she has not downloaded anything  It is a 15" MBP, with OS from Septe

  • Will there be an update that supports iOS 4.2.1?

    I have an iPod touch 2nd generation (not jailbroken), and I was curious as to if there will be an update for GarageBand that will support iOS 4.2.1, because I am a music maker, and plus I already bought GarageBand before discovering it doesn't work,

  • Passing values to anonymous pl/sql block error

    Hi, I have update_table.sql sql script which updates the table MST_TOT. The sql script is being called from unix shell script in loop with 2 parameters values. 1. str# 2. rtl#. e.g. The shell script will call 5 time sql script with different str# and

  • HT202860 changed my apple id now can't access iPhoto

    upgraded to yosemite changed apple id can not access photos

  • Service Plane in Preventive Maintainance

    I am creating service plane from the service contract, for example Quarterly require service order, i created service contract and added preventive service plane as quarterly i configured system to trigger action from contract preventive service to c