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.

Similar Messages

  • JPA Error:Could not get a value to be injected from the factory

    HI friends ,
    I am  trying to replicate the example JPAEXample01 using JPA in CE1 from  the blogs written by
    Sabine Heider/Adrian Görler.
    During the testing of the method create employee i am getting the following error.
    "Could not get a value to be injected from the factory."
    I tried couple of examples using the above process, still held up with same error.
    Any pointers to trouble shoot this ?
    Thanks in advance
    Chandra Dasari

    HI Isaias Cristiano Barroso,
    There are lot of enries most of them pertaining to properties set to yes or no.
    out of which therre are tow errors. the log is as follows
    Message Info: Failed (javax.management.MBeanPermission,#[:j2eeType=trace,name=EndToEndCentralMBean,],isActive,getGuidByName,getTraceLevelByName,getTraceLevelByName,importTrace,isFileExistsLocally,removeTraceFile)java.lang.reflect.InvocationTargetException
    Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
    category: com.sap.security.core.role.PermissionData
    Location:com.sap.security.core.role.PermissionData.get(ClassLoader)
    Frankly the above log is above my understanding ,Prob it may help to you undertand my the issue
    Thanks once again

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I have the same problem with the right click and do not have the ask toolbar installed on my system?

  • How to get default values on selection screen(multiple ranges)?

    i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
    all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...

    Hi Suresh,
    You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
    Simply write the following code
    tables : <name of the table from which the field belongs>
    select-options <fieldname> for <tablename>-<fieldname>.
    <fieldname>-sign = 'I'.
    <fieldname>-option = 'BT'.
    <fieldname>-low = '7000'.
    <fieldname>-high = '8000'.
    append <fieldname>..
    similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
    If using range replacethe select-option with the range statement.
    Thanks.

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

  • How to get Multiple Values for a key from a session object?

    Hi,
    It might seem dumb but I am facing a problem here with the session object. I'll paste the session object's content from the netbeans "Local Variables" window for clarity -
    Name Type Value
    hsession StandardSessionFacade #66
    session LWSFSession #69
    inherited
    attributes Hashtable #80
    [0] Hashtable$Entry "cart"=>#115
    key String "cart"
    value DummyCart #115
    item null
    submit null
    v Vector
    [0] String Full Metal Jacket
    [1] String As Good As It Gets
    [2] String Tim
    What I want is to get the values "Full Metal Jacket", "As Good As It Gets" and "Tim" from the session obejct?
    The problem I am facing is that if I do a session.getAttribute("cart"), I'll get a single value in return. What will that value be? Will it be "item", "submit" or "v"? And if I want all the values in v above, how can I get them?
    Thanks.

    None of the above.
    HttpSession.getAttribute() will return what you put into it using HttpSession.setAttribute(). In your case, it'll return an Object which you need to cast to DummyCart. Then you can access the data in DummyCart using the API of the DummyCart class.
    hth

  • How to get status of a sub process from the parent process.

    Hi,
    I want to get the status of a subprocess from the parent process (i.e. success or failure).
    How can I get this.
    Thanks in advance.
    Bye

    have a look at the workflow built-in vars:
    WF_ACTION_ERROR and WF_ACTION_RESULT or WF_CASE_RESULT
    WilfredS

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

  • How to get physical number of selected row on the screen.

    Hi,
    We have block defined with Numbers of Records Displayed = 3. In the same time the data set contains 10 records. We would like to know how to get a number of row selected on the screen. i.e. in our case that the number will be always between 1 and 3 independent of the current row position in the data set.
    Best regards,
    Constantin.

    You can calculate that number by subtracting :SYSTEM.CURSOR_RECORD and GET_BLOCK_PROPERTY('BLOCK', TOPMOST_RECORD)

  • How to retrieve DB values using select-options

    Hi all,
            I have problem to run this code for getting select option values in runtime.  Is there any function, methods or structure to know this?  I didnot get DB values when I click select-option button.
            I would like to display DB field values when i click select-option pushbutton.  select-option values while programs working in runtime.
    Example Code:
    REPORT  ZBAPUSHBUTTON.
    data: lryrctno type ZLRYRCT-ZEBELN,
          LDRIVER_FN type ZLRYRCT-DRIVER_FN,
          LZDELDT TYPE ZLRYRCT-ZDELDT,
          LZLRYNO TYPE ZLRYRCT-ZLRYNO,
          LZDRIVERID type zlryrct-ZDRIVERID.
    DATA: LRYRCT TYPE ZLRYRCT.
    SELECTION-SCREEN PUSHBUTTON 10(10) LB1 USER-COMMAND PB1.
    SELECTION-SCREEN PUSHBUTTON 25(10) LB2 USER-COMMAND PB2.
    SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE T1.
    PARAMETERS: PLRYCTNO like lryrctno,
              PDR_FN LIKE LDRIVER_FN,
              PZDELDT LIKE LZDELDT,
              PZLRYNO LIKE LZLRYNO.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 200 TITLE T2.
    select-options: slryctno for lryrctno,
                    sdr_fn for ldriver_fn,
                    szdeldt for lzdeldt,
                    szlryno for lzlryno,
                    pzdrid for lzdriverid no intervals.
    SELECTION-SCREEN END OF SCREEN 200.
    INITIALIZATION.
    T1 = 'SELECT CHECK BOX AND RADIO BUTTON'.
    T2 = 'SELECT PARAMETERS'.
    LB1 = 'PARAMETER'.
    LB2 = 'SELECT-OPTION'.
    AT SELECTION-SCREEN.
    CASE SY-UCOMM.
    WHEN 'PB1'.
    CALL SELECTION-SCREEN 100.
    select single * from zlryrct into lryrct where zebeln = plryctno.
        if sy-subrc = 0.
          message 'primary key already exists. enter different lorry rect. no.' type 'W'.
        endif.
        LRYRCT-ZEBELN    = PLRYCTNO.
        LRYRCT-DRIVER_FN = PDR_FN .
        LRYRCT-ZDELDT    = PZDELDT.
        LRYRCT-ZLRYNO    = PZLRYNO.
        INSERT INTO ZLRYRCT VALUES LRYRCT.
        if not sy-subrc = 0.
          MESSAGE 'Insert not possible' TYPE 'W' .
        endif.
    WHEN 'PB2'.
    CALL SELECTION-SCREEN 200.
        select * from zlryrct into lryrct where
                 zebeln in slryctno and
                 driver_fn in sdr_fn and
                 zdeldt in szdeldt and
                 zlryno in szlryno.
          write: / lryrct-zebeln, LRYRCT-DRIVER_FN, LRYRCT-ZDELDT, LRYRCT-ZDELDT, LRYRCT-ZLRYNO .
        endselect.
    ENDCASE.

    What you are looking for is called "search help" (SE11 transaction), you may reuse an existing one (it must be attached to data element, or structure component as foreign key, etc.) Please look at SAP documentation and forums. You may also program it yourself by using AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...

  • How to get modified values in selection screen

    address data  is filled in selection screen by default.
    if  we want to change the address on selection screen
    and pass it to another variable .how to handle this  please let me know

    Hi,
    Change the value of address in the selection screen by delting the default value and replcaing it by new 1.
    Then assigh this value of that variable to the new variable
    new_variable = variable.

  • How to get more then 2 Appearance options for the overall look and fell?

    How can this be possible instead of either Aqua or Gray?

    MobileDev wrote:
    "Apple’s Limited Warranty for iPhone excludes coverage for damage resulting from accident, unauthorized service and unauthorized modifications."
    Apple's iPhone Warranty is referring to hardware modifications, because it is just a hardware warranty. It explicitly denies covering software, even to the point of saying even the iPhone OS is not covered by any warranty.
    When you update the iPhone software to 1.1.1 or later you'll see this message
    "Apple has discovered that some of the unauthorized unlocking programs available on the Internet may cause irreparable damage to the iPhone's software. IF YOU HAVE MODIFIED YOUR iPHONE'S SOFTWARE, APPLYING THIS SOFTWARE UPDATE MAY RESULT IN YOUR iPHONE BECOMING PERMANENTLY INOPERABLE. Making unauthorized modifications to the software on your iPhone violates the iPhone software license agreement, and the inability to use your iPhone due to unauthorized software modifications is not covered under your iPhone's warranty."
    Jason

  • How to get initial value of Child View from Parent View in ADF?

    Hi,
    I am typically from a Oracle forms background and new to ADF.
    In ADF,how can I populate the initial value for a new record in child view from the parent view?
    For example.. using standard Departments and Employees tables which has parent child relation ship.
    If I want to create a new employee.. how do I get the initial value for department_id of my employee record(employee table) from departments table in ADF?
    Thanks in advance
    Vishnu

    USer, please tell us your jdev version!
    If  you have setup the data model in a way that it reflects this relationship (should be automatic if you use the 'create business components from table' wizard) this is pretty easy.
    To check this, open the application module and select the data model. On the right side you see departments view and under it indented the employees view. This indent shows you that the employees view is a child of the departments view. This is all you nee for the model layer.
    In the UI you open the datacontrol and open the departments view. One node it the employees view (as child). Now, if you work on a department (e.g. you drag the department view onto a page and drop it as form), you can add a button to create a new child (employee) by opening the employee node in department and drag the createInsert operation onto the page and drop it as button.
    Then create a new page and drop the employees view (the child from departments view) on to the page and drop it as form. This form will then display the new row for thew employee of hte department.
    Last thing to do is to add anavigation case from the departments page to the employees page and select this on the CreateInsert button.
    The form should have the DepartmentId pre-selected.
    Timo

  • How to get row number of selected entry from OVS search result

    Hi,
    Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
    Regards,
    Jatin

    Hi,
    You can get the selected record to <ls_selection> structure in co phase 3.
    From that structure you can get what ever field you want.,
    check the below code for reference,
    << Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
    hope this helps u.,
    Thanks & Regards,
    Kiran
    Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

Maybe you are looking for

  • SC error while creating a service request

    Hi experts, I am on SRM 7 , ECS . I am trying to create a service request in the shopping cart through SC full functionality/operational purchaser. I am getting the  error when i clcik on the  "supplier/service agents" SRDBIQCI02 http://srdbiqci02.ss

  • Problem in deploying the application on NWDS

    Hi, I am getting a problem "Deployment aborted" when deploying a webdynpro application in NWDS sneak preview.When I looked at the log file says Aborted: development component 'test'/'local'/'LOKAL'/'0.2007.08.09.13.30.27'/'0': Cannot login to the SAP

  • Problem calling Stored Procedure returning SETOF UDT (Using Spring)

    I am using Spring's StoredProcedure class to call a stored procedure from a PostgreSql database. It returns a set of user defined data types. I'm having a problem in parsing the results returned. The user defined data type : CREATE TYPE process_state

  • How to download Firefox 3.6.17

    Firefox 6.0 started crashing unpredictably two days ago and has continued to crash since after I did a restore point back to when it was working OK and before a Adobe Flash Player was updated to 10.3. Several suggestions on the Firefox Help forum sug

  • Write metadata "instructions"

    Hi I´m trying to edit the metadata "instructions" in some photos vieweb by Bridge. At true, I need to preserve what´s already written in this field, then add some more things via script. Here´s my try: var doc = app.document; doc.selectAll(); var sel