Validation on Mutliple select

Hi
I have one combo box and one list box.
I am facing problem to select muttiple option values in List Box based on the
selecting the combo box fields.
So can any body tell me how to acheive the above problem.
Can any body pls provide any code or guidelines ..
For Ex :: Combo box has Add,Minus,Multiply
On select of Minus JList should be Mulitply select else Single select
Thanks

Hi,
Check this code....
DATA: r_ebeln TYPE RANGE OF ekpo-ebeln WITH HEADER LINE.
SELECT-OPTIONS:  s_ebeln FOR ekpo-ebeln.
AT SELECTION-SCREEN ON s_ebeln.
  LOOP AT s_ebeln.
    APPEND s_ebeln TO r_ebeln.
    SELECT *
           FROM ekpo
           WHERE ebeln IN r_ebeln.
    ENDSELECT.
    IF sy-subrc NE 0.
      MESSAGE 'Wrong Entry' TYPE 'E'.
    ENDIF.
    REFRESH r_ebeln.
  ENDLOOP.

Similar Messages

  • Unable to recognize document as valid XSDCheck the selected category

    w.r.t the thread below,  any solution expert..
    Unable to convert imported document to WSDL      --- PI 7.1
    in Pi 7.0 XSD is working perfectly... in XML spy its not showing any error. but when i want to upload in 7.1 its giving errror like
    Unable to convert imported document to WSDL
    Reason:
    Unable to recognize document as valid XSDCheck the selected category
    what change i should make in the xsd... so that it can be imported in 7.1

    Hi
    What you can do is (in XML Spy) generate a sample XML file from your schema. Make sure you tick of for "Generate all elements".
    From the sample XML file that you get, generate a schema (Generate DTD/Schema). This new schema will be different to the one you have, but importing it in PI should work.
    When you use it in your message mapping, just make sure that you choose the correct field as the top node and also check that all fields are there (they were in my case and worked as a glove..:).
    regards Ole

  • This Certificate not valid for the selected purpose

    I have installed on my Windows 7 (64 bit Professional w/SP1)
    a Self-Signed CA (IDS_MstrCert)  that has been accepted by the system certificate "store".  via mmc & certmgr
    I generated this CA on my Redhat Linux 7 server using the openssl utilities. 
    It shows: This certificate is intended for the following purpose(s):
    All issuance policies
    All application policies
    It is enabled for ALL purposes (However I did not generate with ALL purpose set)
    Under Certification Path:
    Certificate Status: This Certificate is OK
    I have also installed a Client Certificate (winxclient) (also generated by my Redhat Linux 7 server)
    That has been "signed" by my CA (IDS_MstrCert)
    I added it successfully to the system certificate "store" via mmc & certmgr.
    However when I open the certificate I see the following message: This Certificate not valid for the selected purpose
    When I view the Certificate path I see the following:
    IDS_CA                          (friendly name for the CA)
        |-----> VPNIKEv2cli     (friendly name for the client certificate)   
        Certificate Status: This certificate is OK
    In the Intended Purposes field: ServerAuthentication, ClientAuthentication
    How do I resolve this problem ?   This Certificate not valid for the selected purpose
    When I attempt my vpn/ikev2 connection (using machine certificates) I get the 13806 error.
    Best Regards
    Guy Rich

    Hi,
    In my opinion, this is not Windows system problem. You need to make troubleshoot with the Certificate.
    I made a research with this error message, the link below might be helpful:
    http://support.persits.com/show.asp?code=PS030304105
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

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

  • Validating field on  selection screen

    wht is the meaning of validation
    how to validate a particular field on selection screen
    suppose parameters:p_vkorg like vbak-vkorg.
    how to validate p_vkorg.
    pz give me coding

    Hello pavan,
    Validation means "checking whether the input which u are gining to the selection secreen is valid or not". means...
    Lets take your example only...
    parameters:p_vkorg like vbak-vkorg.
    in selection screen you will give inout in that parameter....
    users can give any input... lets suppose I'll give input as ABC... which is not in the table VBAK. No need to excute the code once we came to know that the input is not there in the table. So we will do validation like...
    at selection-screen on p_vkorg.
    select * from vbak where vkorg = p+vkorg. " This is the case with Parameter.
    at selection-screen on p_vkorg.
    Select * from vbak where vkorg = p+vkorg. " This is the case with Selct-option.
    if the input that u r giving is present in the table... the above stmt will execute successfully, otherwise not.
    You can make use of System variable SY-SUBRC and you can go ahead with ur coding...
    Reward If Helpful
    Regards
    Sasidhar Reddy Matli.
    Message was edited by:
            Sasidhar Reddy Matli

  • Suggest the way while validating fields in selection-screen

    Hi Experts,
    I am not able to open multiple selection screen for select-options because when i tried to open, it triggers AT selection-screen event in which some validations are happened.
    If any of the validation fails, it will give message.
    Please suggest me the way how i can avoid that.
    Thank you very much for your help
    Regards
    Gopal

    Hello,
             I believe you are talking about the Multiple Selections Option.
             There are two cases here. For both the Cases, use the Following Logic in the At-Selection Screen Event.
    If your Select-Options Variable is not declared as OBLIGATORY, then use this Logic.
    In the At Selection-Screen Event, check the following Condition.
          IF SY-UCOMM NE SSCRFIELDS-UCOMM.
              Message 'Enter atleast 1 Value' Type 'E'.
          ENDIF.
          This will avoid throwing an Error when you click on the Multiple Selections Option.
    If your Select-Options Variable is Declared as Mandatory, the above logic does not work. So, what you can do is,
    Do not make it Obligatory. But use the below Logic.
    IF S_MATNR is Initial.
        CHECK NOT SY-UCOMM EQ SSCRFIELDS-UCOMM.
        Message 'Enter atleast 1 Value' Type 'E'.
    ENDIF.
    Hope it was helpful.
    Thanks and Regards,
    Venkat Phani Prasad Konduri
    Edited by: Konduri Venkata Phani Prasad on Sep 12, 2008 2:48 AM

  • Module Pool Screen:Want to do Validation on listbox selection w/o Hitting Enter

    Dear Team,
    I want to write some code(Check & validation) at the time of listbox selection(any value) without Hitting enter.As when i am trying to put '/H' It's not taking me inside the program (but after listbox selection & enter hit i could go into program).
    Plz suggest me how can i go inside the program once i select value from list box without hitting enter.
    Thanks in advance.
    Santosh

    Dear Arun,
    Perfact!!!
    It's working
    Thanks a lot...
    Santosh

  • Validation Check in Select Options

    Hi All,
         I have a select-options variable. I want to write a check that the user doesnot enter any values other than 04,03 and 07. Can i write this validation check because the select options table can have many values in the option field and two values in the sign field.
    Thanks & Regards,
    Rahul Rathi

    i,
        use below logic
         select-options s_matnr for mara-matnr no intervals.
       at selection-screen.
      ranges r_matnr for mara-matnr.
      R_matnr-LOW = '04'.
      r_matnr-sign = 'I'.
      r_metnr-option = 'EQ'.
      append r_matnr.
      R_matnr-LOW = '03'.
      append r_matnr.
      R_matnr-LOW = '07'.
      append r_matnr.
    clear r_matnr.
    select single matnr from mara into mara-matnr
         where matnr in r_matnr.
    if sy-subrc <> 0.
    message e00 'enter values in range '03,04,07'
    endif.
    or
    you can default this value
    at selection-screen output.
      ranges r_matnr for mara-matnr.
      R_matnr-LOW = '04'.
      r_matnr-sign = 'I'.
      r_metnr-option = 'EQ'.
      append r_matnr.
      R_matnr-LOW = '03'.
      append r_matnr.
      R_matnr-LOW = '07'.
      append r_matnr.
    clear r_matnr.
    s_matnr[] = r_matnr[].
    Regards,
    amole

  • Costing run: std validation contingent upon selection?

    (This is a repost to the correct forum)
    Gents hi,
    I always thought the parts that will have their std changed (validated) though a costing run (then CQ24) would have to be selected in the costing run. Here seems to be a situation where the raw material are to have their std changed, even if the only parts selected in the costing run are the HALB and FERT.
    Is that a surprise to you?
    Thanks for your time
    KR-Loï

    Hi
    If you run the cost estimate from CK40N - It releases the Cost for all materials involved i.e. FERT / HALB/ Raw mats etc
    however, if you run cost estimate from CK11N & CK24 - It would release only for the material for which cost estimate is run
    In Ck40N - you can stop the system from releasing cost for raw mats... In the Step SELECTION of Ck40N - You specify the Plant / Mats....
    Using the Multiple Selection option for MATERIALS, you can specify a range of mats in the Exclusion list.. These will not be costed then....
    br, Ajay M

  • Validation check in selection screen

    Hi experts,
    I have a selection screen in which there are 2 radio buttons S1 n S2, and a text field (Parameter) namely P_PATH.
    I am using a method (CALL METHOD cl_gui_frontend_services=>file_save_dialog) for selecting a file to save some
    data in the XLS format.
    Once the user selects S2, and presses the F4 help in the parameter P_PATH, this method is called.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title      = p_title
          default_file_name = p_filename
          file_filter       = l_file_filter
          initial_directory = p_download_path
        CHANGING
          filename          = p_filename
          path              = p_download_path
          fullpath          = p_full_path
          user_action       = g_user_action    "save or cancel
        EXCEPTIONS
          OTHERS            = 1.
    The  g_user_action given here has a value of 9 in case the user selects the CANCEL button in the pop up that asks for the file name to be given for saving the file.
    My req. is that when  g_user_action = 9. then the selection screen should be displayed back, with the S1 being selected (instead of the earlier S2).
    I have done the below coding, but its not working. Is there something that I am doing incorrect?
    SELECTION-SCREEN: BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
    PARAMETERS: s1 RADIOBUTTON GROUP rad2 DEFAULT 'X' USER-COMMAND ac,
                s2 RADIOBUTTON GROUP rad2.
    SELECTION-SCREEN: END OF BLOCK b4.
    DATA: g_s1 type c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
    PERFORM get_download_path
    AT SELECTION-SCREEN OUTPUT.
    if g_s1 = 'X'.
      s1 = 'X'.
      s2 = ''.
    endif.
    FORM get_download_path
    the above method is called**
    IF g_user_action = 9.
    g_s1 = 'X'.
      exit.
    endif.
    ENDFORM.

    Hello Ajay,
    As Advait has pointed out already AT SELECTION_SCREEN OUTPUT event (or the PBO) does not trigger after the ON VALUE-REQUEST (or the POV) event.
    You have to use the FM: DYNP_VALUES_UPDATE to update the selection-screen value.
    FORM get_download_path
    ** the above method is called**
      data: dyname like d020s-prog,
            dynumb like d020s-dnum.
      data: it_dyfields type standard table of dynpread,
               st_dyfields type dynpread.
    IF g_user_action = 9.
      dyname = sy-repid.
      dynumb = sy-dynnr.
      CLEAR s2.
      s1 = 'X'.
      move 'S1' to st_dyfields-fieldname.
      move  'X'  to st_dyfields-fieldvalue.
      append st_dyfields to it_dyfields.
      move 'S2' to st_dyfields-fieldname.
      CLEAR st_dyfields-fieldvalue.
      append st_dyfields to it_dyfields.
      call function 'DYNP_VALUES_UPDATE'
           exporting
                dyname               = dyname
                dynumb               = dynumb
           tables
                dynpfields           = it_dyfields
           exceptions
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                undefind_error       = 7
                others               = 8.
      check sy-subrc eq 0.
    endif.
    ENDFORM.
    Check this out.
    BR,
    Suhas

  • Validation for the select option value range of selection screen

    Hi All.
    if i wish to validate the selection screen parameter for a value range(select options),is it possible?
    what should i write in code.Also,m using FM DD_DOMVALUES_GET to get the values for a specific domain name.
    Please reply.

    Hiii,
         Yes it is possible.... Can you give me the piece of code ... about the select option
    and also the value range against which you want to validate the select option.
    So that i can help you with the coding tips...
    Thanks in advance..

  • Equipmentwise Item codes for mutliple selection

    In IB03, do we have option for multiple equipment selection. We wants to have detail for all equipment in a plant in single report.
    Also confirm, can we have single report for all BOM type i.e to have report for equipment with equipment/material BOM type.
    Thanks
    DON

    Hi,
    You cant get the BOM for multiple equipment in SAP standard report.
    You have to do the modificationin in Transaction code CS15 report.Copy the CS15 programe and develop a new report for multifple equipments.Either you can download the IH01 structure and can get the BOM for the required material
    AR
    Edited by: Amit  Rana on Mar 14, 2010 1:39 PM

  • Date validation in the selection screen

    Hi
    I am new to all this..so pls help me with this...
    I need to validate my input field in the selection screen to have the format as YYYYMMDD i.e user is allowed to enter the date in this format only!!
    Now how to validate this kind of a format??

    Hi
    That's INPUT format just one used to save a date, so u need to check it only.
    It's the same if you used a DATS format, because its INPUT FORMAT is the same, for example, output format of SY-DATUM is DD.MM.YYYY, but input format is YYYYMMDD, so:
    PARAMATERS: P_DATE LIKE SY-DATUM.
    AT SELECTION-SCREEN.
    IF P_DATE < SY-DATUM.
      MESSAGE E208(00) 'Error'.
    ENDIF.
    In your case the INPUT and OUTPUT format are the same so:
    PARAMATERS: P_DATE(8) TYPE N.
    AT SELECTION-SCREEN.
    IF P_DATE < SY-DATUM.
      MESSAGE E208(00) 'Error'.
    ENDIF.
    Max

  • Validation of a field in select statement

    In selection screen, skunag(vbrk-kunag) and swerks(vbrp-werks) fields are there.these two fileds are obligatory.
    If skunag field values start with 'P'.I have to remove the initial 'P' in that values,because I have to validate that field with ztable-kunag.
    i have written folllowing way.but no result.
    AT SELECTION-SCREEN ON SKUNAG.
    PERFORM check_skunag.
    form check_skunag.
    data: p_kunag(10) type c.
    if not skunag is initial.
        p_kunag = skunag+4(4).
        move p_kunag to skunag.
    endif.
    endform.
    one more thing this skunag filed is also using in another form for database selection.In this form i want to use the above skunag field, after validation....
    form gatherdata.
      SELECT vbeln kunag zuonr vkorg waerk fkart FROM vbrk INTO CORRESPONDING FIELDS OF TABLE itab
            WHERE vbeln IN svbeln
           AND   kunag IN <b>skunag</b>.
    endform.
    how can i write the above scenario...
    thanks in advance,
    fractal

    Looks like skunag is a select-option. In that case, it will be very difficult to validate it because if the user enters a range like P00001 to P99999, how are you going to validate this against the Z table.
    First you will have to restrict the user from using ranges. That you can do by defining your skunag with no-intervals. Then you will be able to validate that easily as user can only enter single values, no ranges.
    You need to have your validation in AT SELECTION-SCREEN ON <b>skunag-low</b>.
    In your FORM check_skunag, you need to change the code as follows
    data: p_kunag(10) type c.
    LOOP AT skunag.
    *-- only if the first character is P
      CHECK skunag-low+0(1) = 'P'.
      p_kunag = skunag-low+1(remove the first P)
    *-- check against the Z table with p_kunag
      SELECT KUNAG FROM ztable WHERE kunag = p_kunag.
      IF sy-subrc <> 0.
    *-- invalid KUNAG
        DELETE skunag.
      ELSE.
    *-- If you want to move the value without P back into
    *   your skunag then do the following
        MOVE p_kunag to skunag-low.
        MODIFY skunag.
      ENDIF.
    ENDLOOP.

Maybe you are looking for

  • "Invalid column type" error while calling pl/sql function in AM

    Code written in AM is ... String MISSING_TIME_SHEET_CALL = "begin ? = missing_time_sheet(?,?,?,?); end;"; CallableStatement timeSheetStmt = txn.createCallableStatement(MISSING_TIME_SHEET_CALL, 1); timeSheetStmt.registerOutParameter(1,Types.BOOLEAN);

  • How to send data to labview code at run time while using with (or executing the sequence)the teststand

    Hello I am new to the Teststand. I am using labview8.0 with teststand 3.1 I have developed some labview codemodules as vi's without using the teststand utility library pallete Now i have to run them in teststand. While executing them(as a sequence) i

  • Web service fault:  could not find a target service

    I'm attempting to invoke a method on a web service. I instantiate the web service and call the method as indicated in the first three lines of the attached code (where sf_cred is a simple structure). The first two lines are fine, but the call to the

  • Arithmetic Overflow/Underflow and Divide by Zero Errors

    We're having problems similar to those posted below (see links), especially "Help: Divide by Zero Errors" to which no one has addressed. <br /><br />Here's our situation: On our form, we have two columns that sum the rows above them, called<br /><br

  • How could you screw up podcasts so badly?

    I have a touch for one reason - to download an listen to podcasts. Whatever you did to podcasts in itunes - please change it back. The person who made the decision to make podcasts an app is on acid and has obviously never downloaded a podcast in the