Get values in 1 parameter by selecting values from 2 param at selection scr

Hi all
Please help me out in getting values at selection screen .
as, i am using a search help in one parameter field of selection screen and by selecting one value from their i want that corresponding values should come in the second parameter .
specificaly I have a parameter field (PERNR) , i attached one search help with this field through match code statement using table (pa0001) .
i have one more parameter field at selection screen - Designation , which is of type PSTXT of text table T528T with respect to PLANS for particular employee .
i want that when i select particular pernr using search help , their corresponding designation will display on the selection screen .
Please guide me how to solve it .
Thanks & Regards

Hi,
There are two options.
Create your own search help with these TWO as EXPORT paramters and then
create a strucutre with these two fields or select one which is already there and then make Search help assignment at the strucutre level and then map the EXPORT paramters of search help to Strucutre fields, then if you select PERNR you will automatically get the Designation.
Else what you can do is
Create AT SELECTION-SCREEN ON VALUE-REQUEST FOR pernr.
In this event code in such a way that once you select your pernr using this you make a query to get the Designation and then assign the value to the Designation field.
Regards,
Sesh

Similar Messages

  • Switchin to selection screen from end-of-selection

    Hi Experts,
        I am creating a report, where I generate an ALV output. From selection screen, I am going to some 4, 5 output screens.
    selection screen -> output screen1 -> output screen2 -> output screen3.
    Can I go to selection screen from output screen 3. In output screen 3 I have pf-status also. When the back button, in the triggered code what I have to write to switch to selection screen.
    Thanks and regards,
    Venkat.

    Hi
    1.Make your selection screen as screen no.100.
    2.selection screen(100) -> output screen1 -> output screen2 -> output screen3.
    3.Make separate pf-status for each screens.
    4.In the PAI of your 3rd screen write
    CASE SY-UCOMM.
      WHEN 'BACK'.
         LEAVE TO SCREEN 100.
    ENDCASE.
    Hope this had helped you.
    Regards
    Hareesh Menon

  • Listing values which a parameter has not been able to find

    Hi again everyone,
    I listed a topic about this a short while ago, and thanks to those who answered it. I don't think I explained the problem very well, so here it is again, this time as an example in simplified terms.....
    In a table I have a column called 'Code'. There are 6 records in the table under 'Code': 11, 22, 33, 44, 55, and 66
    I create a parameter and allow multiple values. This parameter then forms a part of the selection criteria.
    A user enters the following values into the parameter: 11, 22, 33, 77, 88 and refreshes the report.
    The report displays the records 11, 22 & 33.
    Now....I need a formula field (I think) to say " No records were found for 77, 88"
    Any ideas
    Regards
    Roger

    Hi Roger,
    There is a really great sample report avialable on the SAP downloads... thingie... called "Create Fake Records", and I suspect that this will be the easiest way to accomplish what you're looking for.
    It's in a zip file called cr9_subrep_smpl.zip, and fair warning... it's complecated.
    Another option would be to create a manual running total that counts the number of records for each code value. If the value of that running total is zero, then you could display a string. This might actually be easier.
    I'm sure if you search the forum for 'manual running total' there are multitudenous code samples.

  • Ssrs 2008 'select all' option to be selected for a parameter

    In a new ssrs 2008 report, the problem is all reports are not selected from the parameter called 'report' when the report runs automatically.  When the report executes, there is nothing displayed in the parameter selection  dropdown box. The user
    has to click the down arrow to select which reports they want to execute.
    Here is the siutation for the ssrs 2008 report:
    In a new SSRS 2008 report, I want to be able to allow the user to select which report they  would like to see generated by selecting the report name from a dropdown list. This is a multi-valued parameter and the parameter name is called 'report'. I
    would like the default value to be for all 5 reports to be selected.
    All 5 reports will be on the 'main' report. There will be no subreports. Each report will have its own unique matrix and the matrix will be visibile based upon what is selected in the parameter called 'report'.
    My question is how can I make the 'default' value for the parameter called 'report' have all the reports selected?
     Normally to get all multivalued parameter values selected you create a dataset and run a query against a table. However in this case, there is no table to query. The user just selects what report(s) they want executed.
    Here is the code that is used:
    1.Right-click the multiple parameter ‘repot’ to open the Properties dialog box.
    2.Specify the values below in the Available values:
     Label: report1                                                
    Value: report1
     Label: report2                                                
    Value: report2
     Label: report3                                                
    Value: report3
     Label: report4                                                
    Value: report4
     Label: report5                                                
    Value: report5
    3.Specify the values below as the Default Values:
     report1   report2   report3   report4   report5
    4.Right-click the ‘report1’ to open the Tablix Properties dialog box.
    5.Select Visibility in the left pane, type the expression below in the “Show or hide based on an expression” textbox:
     =iif(InStr(join(Parameters!report.Value,","),"report1")>0,false,true)
    6.Use the expressions below to control the visibility of the ‘report2’, ‘report3’, ‘report4’, ’report5’:
     =iif(InStr(join(Parameters!report.Value,","),"report2")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report3")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report4")>0,false,true)
     =iif(InStr(join(Parameters!report.Value,","),"report5")>0,false,true)
    Thus can you tell me how all values from the 'report' parameter can be selected automatically  when the ssrs report is executed?

    Pass default value as below and see
    =Split("Report1,Report2,Report3,Report4,Report5",",")
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Filter value adds quotation to my set value

    This is happening to me from time to time and I am curious if it is a known bug. (SQL2012)
    I created a filter on my tablix to filter certain text values from my dataset. For example, I have a device_family column and this is a text value. Sometimes it is a family A sometimes B, C and so on.
    On my tablix, I created a filter for the family column and used "IN"; and the expression is as follows: "A", "B", "C"
    Note: I did not use any "=" at the beginning.
    From time to time, this filter expression turns into this: """A""", """B""", """C"""
    This is affecting my report. I can fix it manually by going under the tablix and fix the properties but even if I save my work, there is no guarantee that it will not happen again.
    Is this a bug or I am doing something wrong? Thanks,

    Hi Masavran,
    Based on your description, you are experiencing the problem that the Filter values add quotation automatically whiling add a filter to the “Device_fanmily” column, right?
    I have tested it on my local environment, we can reproduce this issue. Based on my research, there are two workarounds to avoid this issue. One is using Split function on the value textbox. Another one is using parameter on the value textbox. The steps below
    are for your reference.
    Method One
    Replace the filter value(“A”,”B”,”C”)  by using an expression
    =split(“A,B,C”,”,”)
    Method Two
    Right click the Parameters in the Report Data to select the “Add Parameter”.
    In the Name and Prompt textbox type: DeviceFamily.
    Select the “Allow multiple values” and “Hidden” check box.
    In the left pane, Click “Available Values” to add available values for the Parameter.
    In the left pane, Click “Default Values” to add default values for the Parameter.
    Right click “Tablix Properties” and select “Filters”.
    Click Add and In the Operator dropdown-list select “In” ,In the Value textbox type:[@DeviceFamily].
    If you still have any question, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to get password for itunes in order to restore from backup?

    Original PC crashed and is now dead. I'm now using a different laptop. I De-Authorized all PC's from ITunes accoun, authorized the laptop and I connected my 3Gs to do the IOS update. I am now locked out of my phone. ITunes is on the "set up your iPhone" screen. A message states "This computer has previously been synced with an iPhone or another iOS device." I select "Restore from the backup" selection and I am asked to enter a password. I don't know the password and now I can't use my Phone. What needs to be done to fix this?

    You should be able to:
    Backup the device to the new installation
    Transfer your purchases into a newly authorized library
    Recover any other media using third party tools as suggested in this post from forum regular Zevoneer
    Restore the device from the backup
    This process should switch the association of the device to the new library, preserving the data and settings in your apps.
    May also be prudent to attempt a backup to iCloud directly from the device before you start... Settings > iCloud > Storage & Backup > iCloud Backup > On. It won't save any media but it would preserve the general account settings and documents in case anything goes wrong while you are trying to extract your other data.
    When you get it all fixed, make a backup!
    tt2

  • Select time from view

    i have a doubt as will a select based on a view will take more time than a select on 2 tables with a union.
    View will be:-
    create view1 as
    select column1 from table1
    union
    select column1 from table2
    so, will a
    select * from view1
    take more time than a
    select column1 from table1
    union
    select column1 from table2
    Please help in solving the doubt as it is urgent.
    regards.

    If it's that urgent why didn't you just rustle up a test case for yourself? You could have done that in the time it took you to post, let alone wait for my slow fingers to type one up and compose this reply. We are all volunteers here and there's no SLA.
    Here is a test case. Obviously the stats are different, that's because of the data in the buffer cache, but the EXPLAIN PLAN is identical (except for the VIEW bit), so the two queries should execute in a similar timeframe.
    Cheers, APC
    SQL> SET autotrace TRACEONLY
    SQL> SELECT col1 FROM t_10K
      2  UNION
      3  SELECT col1 FROM t_5k1
      4  /
    10000 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=43 Card=15000 Bytes=
              60000)
       1    0   SORT (UNIQUE) (Cost=43 Card=15000 Bytes=60000)
       2    1     UNION-ALL
       3    2       INDEX (FAST FULL SCAN) OF 'T10K_PK' (UNIQUE) (Cost=3 C
              ard=10000 Bytes=40000)
       4    2       TABLE ACCESS (FULL) OF 'T_5K1' (Cost=3 Card=5000 Bytes
              =20000)
    Statistics
            750  recursive calls
              0  db block gets
            213  consistent gets
             71  physical reads
              0  redo size
         132870  bytes sent via SQL*Net to client
           7825  bytes received via SQL*Net from client
            668  SQL*Net roundtrips to/from client
             16  sorts (memory)
              0  sorts (disk)
          10000  rows processed
    SQL> CREATE VIEW v1 AS
      2  SELECT col1 FROM t_10K
      3  UNION
      4  SELECT col1 FROM t_5k1
      5  /
    View created.
    SQL> SELECT * FROM v1
      2  /
    10000 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=43 Card=15000 Bytes=
              195000)
       1    0   VIEW OF 'V1' (Cost=43 Card=15000 Bytes=195000)
       2    1     SORT (UNIQUE) (Cost=43 Card=15000 Bytes=60000)
       3    2       UNION-ALL
       4    3         INDEX (FAST FULL SCAN) OF 'T10K_PK' (UNIQUE) (Cost=3
               Card=10000 Bytes=40000)
       5    3         TABLE ACCESS (FULL) OF 'T_5K1' (Cost=3 Card=5000 Byt
              es=20000)
    Statistics
             19  recursive calls
              0  db block gets
             54  consistent gets
              0  physical reads
              0  redo size
         132870  bytes sent via SQL*Net to client
           7825  bytes received via SQL*Net from client
            668  SQL*Net roundtrips to/from client
              3  sorts (memory)
              0  sorts (disk)
          10000  rows processed
    SQL>

  • How to select  data from cube by BAPI

    Hi
    now i want to select data from cube by selection
    and the parameter is BAPI'S import.
    I want to know how can i select data from which table the storage  the cube's data
    Thank you for your help !!

    Hi,
    You can use FM: RSDRI_INFOPROV_READ.
                               BAPI_CUBE_GETDETAIL
    Pls Check the below weblog
    /people/dinesh.lalchand/blog/2006/06/07/reading-infocube-data-in-updatetransfer-rules
    Regards,
    CSM Reddy

  • Select in From-Clause with JPQL

    Hey,
    I'm new to JPA development. How can I transform the following SQL-Statement:
    select a from
    Gpsj a,
    (select c.tsid, c.wsid, max(c.gdat1) maxgdat from Gpsj c where c.tsid = '901' group by tsid, wsid) b
    where a.tsid = b.tsid
    and a.wsid = b.wsid
    and a.gdat1 = b.maxgdat
    I can't find any expression for using a (select-statement in a from-clause)
    thanks
    Nikolai

    JPQL does not support sub-selects in the from clause. You can use a native SQL query for this in JPA.
    James : http://www.eclipselink.org

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • Get all the values from a multiple select in a multipart form

    Hi there!
    I am using a form with enctype="multipart/form-data" in order to upload files from the form.
    I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
    The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
    Using servlets I have used this method:
    public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
    Is there a way to get all the values of a multi-valued parameter?
    Thanks a lot!
    Stefano

    Hi
    I have got solution for this problem so, I am listing here logic
    assume tag name of html
    <select name="moption" multiple="multiple">
    iterate it in as
    String moption="";
    boolean cnt=true;
    while(itr.hasNext())
    FileItem fi=(FileItem)itr.next();
    if(fi.isFormField())
    if(fi.getFieldName().equals("moption"))
    if(cnt==true)
    moption=fi.getString();
    cnt=false;
    else
    moption=moption+","+fi.getString();
    If wants more help then mail me your problem
    at [email protected]
    Thanks!
    Anand Shankar
    Edited by: AnandShankar on 6 Nov, 2009 12:54 PM

  • SelectManyShuttle: get selected values

    Hi all.
    My task is to make declarative component (or any other reusable solution) which contains select many shuttle component and should do some processing of selected values (both id and label). While doing this, I found that shuttle component returns to bean always & only item indexes, nothing more.
                  <af:selectManyShuttle label="" id="sms1"
                                        styleClass="AFStretchWidth"
                                        value="#{MyBean.selected}"
                                        valueChangeListener="#{MyBean.shuttleChangeListener}"
                                        valuePassThru="true">
                    <f:selectItems value="#{attrs.items}" id="si1"/>
                  </af:selectManyShuttle>First of all, I tried MyBean.setSelected and found it's called with List<Integer> instead of List<SelectItem> or any similar. These integers was selected rows' 0-based indexes. Then I tried to set valuePassThru, but it triggered a mocking effect only: setSelected receives List<String> with same 0-based index values stringified. At last, I tried valueChangeListener & newValues - all was the same, both in JDeveloper 11.1.1.5 & 11.1.2.1 with corresponding ADFs. Googling got me a lot of links - say, Need to get the selected values from the selectManyShuttle - but nothing I can use.
    Maybe I should get a model and iterate it, but in several tries (say, ((MyBean)this).getAttribute('items')) I failed to locate it. Anyway, I'd be glad to see any working solution.

    It cannot been casted itself, but FacesCtrlListBinding can. Thank you, Timo & Frank, all correct. I changed component's parameter from ListOfValueModel items to model itself, and after it code like
        FacesContext ctx = FacesContext.getCurrentInstance(); 
        ExpressionFactory ef = ctx.getApplication().getExpressionFactory(); 
        ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{attrs.items}", Object.class); 
        Object list = ve.getValue(ctx.getELContext());    
        for (int i: getSelected() /* list.getSelectedIndices() is empty now */ ) {
          Row row = ((JUCtrlListBinding)list).getRowAtRangeIndex(i);
        ...works.

  • How to get selected value from a listbox

    Hi !
    I use following code to fill in my LISTBOX with values :
    AT SELECTION-SCREEN OUTPUT.
      val-key = 1.
      val-text = '0016'.
      APPEND val TO list_values.
      val-key = 2.
      val-text = '0028'.
      APPEND val TO list_values.
      val-key = 3.
      val-text = '0035'.
      APPEND val TO list_values.
      val-key = 4.
      val-text = '2001'.
      APPEND val TO list_values.
      val-key = 5.
      val-text = '0515'.
      APPEND val TO list_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = 'p_list'
                  values = list_values.
    My question is - how to get a selected key/text value ? i dont need it to be done dynamically - i just need it in START OF SELECTION to perform tasks.
    Thx in advance.

    Unfortunetly it does not work
    i Define parameter as follows :
    PARAMETERS:
      p_list AS LISTBOX VISIBLE LENGTH 10.
    Then i add values to it :
    AT SELECTION-SCREEN OUTPUT.
      val-key = 1.
      val-text = '0016'.
      APPEND val TO list_values.
      val-key = 2.
      val-text = '0028'.
      APPEND val TO list_values.
      val-key = 3.
      val-text = '0035'.
      APPEND val TO list_values.
      val-key = 4.
      val-text = '2001'.
      APPEND val TO list_values.
      val-key = 5.
      val-text = '0515'.
      APPEND val TO list_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = 'p_list'
                  values = list_values.
    Then when i add a blank section :
    AT SELECTION-SCREEN ON p_list.
    I set a breakpoint in START OF SELECTION block - but the value is empty no matter what do i select.
    Actually when i select value from the list and hit enter key on selection screen the selection in a listbox goes empty :/
    Whats the cause of this ?
    Edited by: Jacek Zebrowski on Feb 26, 2009 12:38 PM

  • How to get the selected values from multiselected list

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

Maybe you are looking for