Report Selection screen variable validation

Hi
I have three customer selection on my report input screen. My requirement is I need to check uniqueness of those there customers during input itself.
i.e. input for cust 1 != cust 2 != cust3. those must be distinct.
How can I do. Please help.
Regards
Dolly

CASE i_step.
    WHEN 3.
data: wa_cust1(10),  "assuming 10 is the size of customer.
        wa_cust2(10),
        wa_cust3(10).
      READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR1'. "First Variable
      wa_cust1 =  wa_i_t_var_range-low.
      READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR2'. "2nd Variable
      wa_cust2 =  wa_i_t_var_range-low.
     READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR3'. "3rd Variable
      wa_cust3 =  wa_i_t_var_range-low.
    IF wa_cust1 = wa_cust2 OR wa_cust1 = wa_cust3 OR wa_cust2 = wa_cust3.
          CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
          EXPORTING
            i_class  = 'CD'
            i_type   = 'E'
            i_number = '121'
            i_msgv1  = 'Please enter 3 different customers'
          EXCEPTIONS
            dummy    = 0
            OTHERS   = 0.
      RAISE no_processing.
    ELSE.
          EXIT.
    ENDIF.
ENDCASE.
please use this code as it is and put ur customer size in declaration and 3 varaibles as shown above..

Similar Messages

  • BEx web report selection screen entries retain when closing and opening the report again

    Hello all,
    please help me in the below query.
    Till last month the entries we made in BEx web report selection screen are retained in the selection screen even when we close the web report and open it again from portal without logging off. But recently this functionality is missing and the entries in selection screen are not remembered when we close and open the same report again. It is a good feature for the users. Have you come across this issue?

    No...I think i can reframe the question very clearly......For ex:  we are opening a Bex Web report...so initally we would be prompted by the variable selection screen...in which we have to give the entries(Values) for those variables like Cal month, Sales org, Company code, etc.....Later on the report will get open based on the values we have given......
    Now if we close the particular report without logging off then if i try to open the same report that selected values are missing.....earlier it used to remember the values we have given until we log off....But now that functionality is missing....It was very useful feature.....Can you please tel me what can be done to resolve this??
    I hope the explanation would be clear now.

  • Global Variable for selection screen variable

    Hi All,
    We need to create a report where calendar day has to be included in the selection screen.Later after executing the report we should be able to retrieve the selection screen input for calendar day and modify it and use the modified one for other calculations.Can somebody help me out in finding the global variable in the variable exit where we find all the inputs for selection screen variables....
    Regards,
    Shravani

    shravani,
    I_vnam will store the varaible names...if you have varaible in the query...
    please use this code for ur help...
    DATA: ww_der_date LIKE sy-datum,
            wzdate LIKE sy-datum,
            wzact_gi_dte TYPE /bi0/oiact_gi_dte.
      wzact_gi_dte = sy-datum.
      IF i_step = 2.
        READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam =
        'ZNODAYS'.
        ww_der_date = sy-datum - wa_i_t_var_range-low.
            CLEAR wa_i_t_var_range.
        IF i_vnam = 'ZVAGIDCUSTEXIT'.
          CLEAR l_s_range.
          l_s_range-low    =  ww_der_date .
          l_s_range-high   =  wzact_gi_dte.
          l_s_range-sign   = 'I'.
          l_s_range-opt    = 'BT'.
          APPEND l_s_range TO e_t_range.
          CLEAR l_s_range.
        ENDIF.
      ENDIF.
    in this case user will enter no.of days in ZNODAYS and that being is used in calculation and used in the next varaible....

  • Hiding Screen fields in a Report selection screen

    Hi Experts,
    I have a requirement to hide/disable  screen fields in a report selection screen when the user clicks on some radio buttons .
    Here is the scenario,
    1) There are 4 radio buttons four radiobuttons in one group on the selection screen:--  
    Block no:1
    PARAMETER: r_not  TYPE c RADIOBUTTON GROUP a1 DEFAULT 'X'.
    PARAMETER: r_prgs TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_remv TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_noresp TYPE c RADIOBUTTON GROUP a1.
    2) Based on the user clicking/selecting the radio buttons no.2,3 nad 4 i need to hide some fields in the other selection block
    in the selection screen.The parameters are as follows:
    Block no:2( These fields need to be hidden/disabled)
    PARAMETER: r_occ(3) TYPE c OBLIGATORY DEFAULT '1'.
    PARAMETER: r_and TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_or  TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_days(3) TYPE c OBLIGATORY DEFAULT '1'.
    Thanks

    Contd.....
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM.   
          "When Customer button is clicked set flag 1
        WHEN 'FC01'.
          L_FLAG = '1'.
          "When Sales Order button is clicked set flag 2
        WHEN 'FC02'. "Sales order
          L_FLAG = '2'.
          "When Execute button is clicked set flag 4
        WHEN OTHERS.
          L_FLAG = '4'.
      ENDCASE.
    AT SELECTION-SCREEN OUTPUT.
    CASE L_FLAG.
        WHEN '1'.  "When Customer button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '2'. "When Sales Order button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL2'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '3'.   "When Refresh button is clicked
          LOOP AT SCREEN.
            "Set the all Blocks as active
           IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3' OR SCREEN-GROUP1 = 'BL1'.
              SCREEN-ACTIVE = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN OTHERS."When Execute button is clicked
          "Set the Sales order and Customer Block as inactive
          LOOP AT SCREEN.
            IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      ENDCASE.
    ENDFORM.      

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • Add a button in report selection screen

    Hi Experts,
         I want to add a userdefined button in report selection screen....so far i have written code like this,...
    TABLES : sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
    PARAMETERS: P_ID LIKE ZBAPITABLE-ID,
                P_NM LIKE ZBAPITABLE-NAME.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (11) TEXT-001 FOR FIELD R1.
    PARAMETERS: R1 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-002 FOR FIELD R1.
    PARAMETERS: R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-003 FOR FIELD R1.
    PARAMETERS: R3 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-004 FOR FIELD R1.
    PARAMETERS: R4 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN: FUNCTION KEY 1.
    MOVE 'SAVE' TO sscrfields-functxt_01.
    If i use code like this button was added in application tool bar
    but in my selection screen i have  two blocks ....in first block i have input fields, and in second there is set of radio buttons...Just below that i want to put one button ....how it is possible...
    can anyone plz help me?
    Regards,
    veena.

    Here's th docu link:
    [Pushbuttons on the Selection Screen|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm]
    Regards,
    Clemens

  • Object text not coming in report selection screen

    Hi,
    i have an object task type for which text has been loaded.this is included in one reports selection screen.But in F4 only kee is displayed and not text.If check button is pressed text is displayed besides key.Also text doesnt come after report is executed.
    please help.
    Thanks,
    Prasanna N.

    Hi Prasanna,
    In the Query Designer goto the properties of the required object that you want to display key and text for it, Select the Key and Text Display option. Then you can see in report key and text for that object.
    Hope this helps.
    Veerendra.

  • Problen in report selection screen

    Hi ,
    I had a problem in the report.In the report selection screen user asking to keep page no option.So when they select the page no in the selection screen,so from that page number report out put should display.
    how to do this.
    Thanks,

    If you generating the LIST using the classical approch you cah use the SCROLL LIST keyword for this purpose.
    Like:
    DATA: L_PAGENO TYPE I.
    L_PAGENO = 3.
    START-OF-SELECTION.
      DO 100 TIMES.
        WRITE: / SY-ABCDE.
      ENDDO.
      SCROLL LIST INDEX 0 TO: PAGE L_PAGENO.
    TOP-OF-PAGE.
      WRITE: 'Top-of-page'.
    Regards,
    Naimesh Patel

  • ECCS : custom characteristics into standard report selection screen

    Hello guys,
    I have added a custom characteristic which is also a subasignment to the EC-CS module.
    This field now appears into the standard report selection screen as expected.
    I want to define this field as a mandatory selection field, do you know if this is possible? (exemple of standard report CX34A)
    Thank you in advance for your help
    best regards
    Pascal.

    Hi Thereza,
    This field is already flaged
    I have found the following solution : create a variant and assign it to the standard transcation with transaction SE93..
    Best regards

  • Call report selection screen in module pool program with tab strip control

    Hi,
    Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
    Thanks
    Mano

    Hi,
    Refer std program:
    demo_sel_screen_in_tabstrip.
    demo_sel_screen_with_tabstrip.
    Call your program with SUBMIT stmt form module program.
    Reward points if this Helps.
    Manish

  • Table Control on a report selection screen -not a dialog transaction screen

    Hi
    Does anyone know of a way to have table control functionality on a report selection-screen? The program needs to be able to run as a background job (ie cannot be a dialog transaction) and we need to be able to save variants with the selection-screen values.
    Any help would be appreciated.
    The key point is we want to allow the user to enter a dynamic number of rows of table data on the selection-screen, save a variant containing that data and execute the program with the variant as a background job.
    Thanks
    Nicole Knight

    Hi Nicole,
    The main problem is how to persist the data.  If you are not able to create a couple of tables then you could always utilise TVARV instead.  On a similar line to my original post you could have the button call a dialog transaction.  In here you could do your normal GUI table control.  When saving the data simply transpose each column into a separate select-option held on TVARV keyed by the 'variant name' + fieldname.  Then retrieve and transpose this back when executing the report.
    Other methods could be storing the data in cluster xy (see EXPORT TO DATABASE command).
    This seems a bit overkill for what would be a couple of maintenance dialogs.
    Cheers,
    Pete
    PS. The view cluster is just a way of hierarchically performing table maintenance across multiple related tables.  It offers a good UI for this purpose (header and item config tables) and is utilised extensively in the IMG.

  • Number of Entries icon should come on report selection screen

    Hi,
    In my requirement, I want Number of Entries icon on my report selection screen.
    Means when i insert the required selection parameter's, then i want to see the total number of entries, which is come after the execution of my report.
    Please let me know that how can i do it...
    Regards..

    HI.
    Check the link display number of line items in my report at the title bar
    I have extract the part from the above link.
    if u want to display the no of line items, as shown in SE16, u create a SET STATUS with a push button with name No of Entries on the report screen.For that status, u write the code as to display no of lines in ur table by using either
    DESCRIBE TABLE itab LINES lin.
    lin gives the no of line items.
    or
    select count(*) from vbap.
    write sy-dbcnt.
    U got require output, when ur pressing No of entries button, then this will display on the output screen.
    Thanks and Regards
    Sachin Sharma

  • Storing Selection Screen variables in TVARVC

    Hi,
    When we execute Bex Query, how do you save input values from Selection Screen variables into TVARVC table dynamically.

    Anita,
    you need to write code in STEP = 2 in the customer exit where you can move values to TVARVC

  • Reports(Selection screen events)

    Hi guys,
    What are the 11 selection screen events?

    Hai Raj Singh
    Here is the Report Event
    Check it
    This is the order of execution in Classical/Interactive Report Events
    Classical Reports
    Reports which are properly formatted  (header, footer, page numbers etc.,) with the help of one or more external events like top-of-page,end-of-page etc., are called as CLASSICAL REPORTS.
    Standard list.
    Output of Report program is nothing but Standard list. It consists of one continuous page of 60,000 lines.
    To restrict number of lines per page.
    Report Zxxxxx line-count 25.
                   OR
    Report Zxxxxx line-count 25(3).
    ( In this case 3 lines are reserved for footer)
    To restrict Output width.
    Report Zxxxx line-size 125.
    To suppress standard page heading.
    Report Zxxxx no standard page heading
    Above all at a time:
    Report Zxxxx line-count 25(3)
                           line-size 125
                           no standard page heading.
    Screen Events               List Events
    Initialization.           Start-of-selection
    At selection-screen.          Top-of-page.
    At selection-screen on <field>.     End-of-page.
                        End-of-selection.
    We can initialize the selection-screen with calculated default values under this event.
         Initialization.
         s_date-high = sy-datum.
         s_date-low = sy-datum - 15.
         Append s_date.
    We can validate all the inputs on selection screen fields under this event.
         At selection-screen.
         If s_carrid-low is initial or
             s_connid-low is initial or
             s_date is initial.
         < ... code for validation... >.
         Endif.
    We can validate a particular field input on selection screen under this event.
         At selection-screen on s_carrid.
         If s_carrid-low < > ‘LH’.
         <… code for validation…>
         Endif.
    If any of the other event comes before
    ‘Select…Endselect.’ statements, then to break
    that event, we require this S-O-S event.
    Start-of-selection.
    Select * from ……
    Endselect.
    If we need some portion of the output (like
    column headings) to appear in all the pages,
    then we use this event.
    Top-of-page.
    Write:/ ‘Carrier’,10 ‘Connection’ 20 ‘Date’.
    If there is no external output statement before
    ‘Top-of-page’ event, then this event will not
    work.
    Once the cursor reaches the last line of the
    page, automatically this event will be triggered.
    Report Zxxx line-count 25(3).
    In this case line numbers 23, 24 and 25 are
    reserved for footer.
    Once the cursor reaches 23rd line, this event
    will be triggered.
    End-of-page.
    Write:/ sy-uline(75).
    Write:/ ‘This is end of page:’,sy-pagno.
    Write:/ sy-uline(75).
    This event is used for concluding part of List.
         End-of-selection.
         Write:/ ‘This is end of the Report’.
    Interactive Report
    A simple report or even a classical report  displays a clustered list with all the  requested output at one go.
    What ever it is displayed, it is final. That means, the user can not interact with with that list.
    A simple report or even a classical report  displays a clustered list with all the  requested output at one go.
    What ever it is displayed, it is final. That means, the user can not interact with with that list.
    In the interactive reports, we can create as many as 21 lists.
    The first list is called ‘Basic list’ and all the successive lists are called ‘Secondary lists’. Each list is again an interactive.
    The Basic list is not deleted when secondary list is created.
    A secondary list may either overlay the basic list or appear in an additional dialog window on the same screen.
    The system variable associated with list number is ‘SY-LSIND’.
    For basic list SY-LSIND = 0 and for secondary lists, SY-LSIND varies from 1 to 20.
    User can interact with the list by the following ways.
    Double clicking or single click and pressing F2 (function key) or single click with ‘hotspot on’.
                   OR
    Selecting from menu bar or from application tool bar.
    All the events used in classical reports can be used in Basic List.
    The event ‘End-of-page’ can be used in Secondary Lists also.(the other six events can not be used in secondary lists)
    You can not place ‘select-options’ in secondary lists.
    The following additional events are
    applicable to secondary lists.
    Top-of-page during line-selection.
    At line-selection.
    At user-command.
    When you double click on any field in the basic list, you will be navigating to secondary list with detailed information pertaining to clicked field.
    As such we need to store the clicked field information at some variable.
    ‘Hide’ temporarily stores the content of clicked field for later use.
    The default title of the out put is the text what we enter during creation of program.
    This title can be changed using:
    SET TITLEBAR ‘AAA’.
         GUI status includes:
    Menu bar
    Application tool bar and
    Activating standard tool bar
         GUI status can be created using
    SET PF-STATUS ‘BBB’.
    You can have 8 menus ( out of which, 2 menus are reserved for ‘System’ and ‘Help’).
    Each menu can have 15 menu items.
    Each menu item can have 3 levels of submenus.
    You can create 35 items in application tool bar.
    Thanks & Regards
    Sreenivasulup

  • Assign characteristics to report selection screen in COPA

    Hi all,
    it seems there are 2 ways to assign characteristics to a selection screen of a COPA report:
    1. Go to the form, KE35, double click on a column header and assign characteristics here and check the flag for entering variables. It seems I have to do that for all headers?
    2. Goto KE30 - change the report and assign characteristics here and check the flag for entering variables.
    What is the difference between those two ways? Where do I need to assign my characteristics? I seem in the 1 option I'd have to do it for all headers?
    Thanks
    Anne

    Hello
    Create some authourization checks for the user. Try to check with BASIS team.
    Also check if you can default entries for a particular user.
    reg

Maybe you are looking for

  • Composite Input Driver Problems

    Okay< so I have a HP Media Center PC m7060n and on the front, it has an input for composite (yellow, red, and white) and everytime I connect my Wii there..I go to WinDVD Creator to see the display..but then..under devices..composite input is not ther

  • Howto or best practice guide

    I am ready to start testing NSM, mainly for management of home directories but I cannot seem to find anything about the network design/requirements for this product. I can see the install guides but nothing about server requirements. Do I need a dedi

  • Enforce static Singleton from Abstract/Interface??

    Hi, I'm trying to describe an interface IMyInterface which enforces all concrete subclass implementations to have a singleton "getInstance()" method whose method signature is always this "getInstance". So declaring the interface Interface IMyInterfac

  • Still can't install CS4 Design Premium on Windows 8.1

    Did what you said. I uninstalled, used your cleaner tool and reinstalled. Still have the same problem. Would be nice if I could actually get some real help.

  • External RFC or external IDOC pdf ?

    hi, there used to be a pdf guide on SDN about either external RFC connection with XI or non SAP IDOC system connection with XI does anyone have this guide or link to it? thank you, Regards, Michal Krawczyk