How to access certain line's values from former list in a dynpro?

hi,
i generate a list after a select screen whose results look like the following list:
userA - number1 - 5points
userA - number2 - 3points
userA - number3 - 2points
     userA: 10points total
userB - number1 - 3points
userB - number2 - 4points
userB - number3 - 4points
    userB: 11points total
Now what i want to do is to let the user click on one line of the list and just simply output that line on a dynpro again.
my code looks like that (where the problem is,at least i think, that the lineselection is after all the lines are output):
  LOOP AT puge INTO puge_wa.
    LOOP AT pu INTO pu_wa.
      IF pu_wa-tipper = puge_wa-tipper.
        WRITE: /005 'Tipper:', pu_wa-tipper, 'Spieltag:', pu_wa-tagid, ' Punkte:', pu_wa-punkte.
      ENDIF.
    ENDLOOP.
    WRITE: /015 'Gesamtpunkte von Tipper:', puge_wa-tipper, ' Punkte:', puge_wa-punkte.
  ENDLOOP.
   AT LINE-SELECTION.
   call screen 0050.
so when i access pu_wa-tipper on the dynpro obviously it accesses the very last userB number3 4points row and outputs that...
sorry for giving just a very beginners question but i am thinking about the problem for not only some hours...

on your write statements make use of the HOTSPOT option.
WRITE:/ xxx hotspot,
             yyy hotspot,
After the write statement use the HIDE verb.
WRITE:/ xxx hotspot,
             yyy hotspot,
HIDE: xxx, yyy.
Handle the click in the in the AT LINE-SELECTION section.
This is an example
*---------------------------------------------------- Count Drill Down
AT LINE-SELECTION.
  GET CURSOR FIELD f
             VALUE val.
*              OFFSET off
*              LINE lin
*              LENGTH len.
  IF NOT val CO '- 0123456789'.
    CLEAR: lidet1, bidet1, rudet1, ucdet1.
    EXIT.
  ENDIF.
  IF val EQ 0 AND f IS INITIAL.
    CLEAR: lidet1, bidet1, rudet1, ucdet1.
    EXIT.
  ENDIF.
  IF NOT lidet1 IS INITIAL.
    MOVE-CORRESPONDING lidet1 TO key_rec.
  ELSEIF NOT bidet1 IS INITIAL.
    MOVE-CORRESPONDING bidet1 TO key_rec.
  ELSEIF NOT rudet1 IS INITIAL.
    MOVE-CORRESPONDING rudet1 TO key_rec.
  ELSEIF NOT ucdet1 IS INITIAL.
    MOVE-CORRESPONDING ucdet1 TO key_rec.
  ENDIF.
  fld_def = f.
  IF key_rec-rgtext = rpt_total.
    CLEAR key_rec-rgtext.
  ENDIF.
  IF key_rec-dvtext = rpt_total.
    CLEAR key_rec-dvtext.
  ENDIF.
  IF key_rec-dttext = rpt_total.
    CLEAR key_rec-dttext.
  ENDIF.
  IF key_rec-brtextextd = rpt_total.
    CLEAR key_rec-brtextextd.
  ENDIF.
  CLEAR: r_region,     r_region[],
         r_division,   r_division[],
         r_district,   r_district[],
         r_brtextextd, r_brtextextd[].
  IF NOT key_rec-rgtext IS INITIAL.
    r_region = 'IEQ'.
    r_region-low = key_rec-rgtext.
    APPEND r_region.
  ENDIF.
  IF NOT key_rec-dvtext IS INITIAL.
    r_division = 'IEQ'.
    r_division-low = key_rec-dvtext.
    APPEND r_division.
  ENDIF.
  IF NOT key_rec-dttext IS INITIAL.
    r_district = 'IEQ'.
    r_district-low = key_rec-dttext.
    APPEND r_district.
  ENDIF.
  IF NOT key_rec-brtextextd IS INITIAL.
    r_brtextextd = 'IEQ'.
    r_brtextextd-low = key_rec-brtextextd.
    APPEND r_brtextextd.
  ENDIF.
  PERFORM build_drill_down.

Similar Messages

  • How to get multiple values from the list

    I've a list of an item which I queried it from the database. I also created a button that will takes a selected items from the list when it was clicked. I used javabean to get the data from database.
    <%     // clicked on Select District Button
    Vector vselectedDistrict = new Vector();
    Vector vdistrictID = new Vector();
    String tmpSelectDistrict = "";
    tmpSelectDistrict = request.getParameter("bSelectDistrict");
    if(tmpSelectDistrict != null)
         // get multiple values from the list
         String[] selectedDistrict = request.getParameterValues("usrTDistrict");
         vselectedDistrict.clear();
         vdistrictID.clear();
         if((selectedDistrict != null) && (selectedDistrict.length != 0))
                             for(int i=0;i<selectedDistrict.length;i++)
                   vselectedDistrict.addElement(selectedDistrict);           
              vdistrictID = dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
              for(int i=0;i<vdistrictID.size();i++)
                   out.println("district = " + selectedDistrict[i]);                         out.println("district ID= " + vdistrictID.get(i).toString());
    %>
    // get vdistrict from the database here......
    <select name="usrTDistrict" size="5" multiple>
    <%     for(int i = 0; i< vdistrict.size(); i++)
    %>
         <option value="<%=vdistrict.get(i).toString()%>"><%=vdistrict.get(i).toString()%></option>
    <%
    %>          
    </select>
    <input type="submit" name="bSelectDistrict" value="Select District">
    Lets say the item that i selected from the list is 'Xplace' and I clicked on the Select District button,
    what I got is this error message:
    org.apache.jasper.JasperException: Unable to convert string 'Xplace' to class java.util.Vector for attribute usrTDistrict: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    So where is going wrong and what the message means?. Any help very much appreciated. Thanks

    These are just guesses that might hopefully steer you in directions you haven't looked in yet.
    I presume you used triangle brackets (< >) to avoid having the Jive Forum think it was the "italics" tag?
    Are you certain this: dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
    expects a Vector as its second parameter? And returns a Vector?
    I don't believe you've shown how you use the javabean, or its code? Perhaps it should be rewritten to accept an array of strings instead of a Vector?

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How To Access PAGE ITEM (single row) from HTML source

    Hi Guys,
    I have a page Item that return a string.
    I would like to show this string
    How To Access PAGE ITEM (single row) from HTML source?
    My desire final output is
    <marquee>:P1_PAGE_ITEM</marquee>
    Can please help me
    Thanks

    Hi,
    You can refer the page items in your page header as &itemname. For example, if I have page item P15_TEST, I will add the following in header:
    <marquee>
       &P15_TEST.
    </marquee>But make sure that you have a process before header to populate the value in your page item. Otherwise, there will be a null scrolling (which you can't see!) :)
    Regards,
    Zahid

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How to get actual value from LOV list

    Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
    Thanks.

    Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
    <html:select property="UserJobCompanyId"
                             disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
                             onchange="submitform();">
                  <html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>                                                     
                </html:select>and I want to get CompanyID of selected Company.
    Thanks, again.

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • How to remove value from pop list in iProcurement Page

    I need to remove a value from POP list. How can I do this? Can I do this using Perosnalization?
    While creating requisition in the approvers page there are two buttons one is Approvers and another is Add_Attachments.
    When I click Add_Attachments button it will open another page there I need enter description and select category from the pop list and define attachment.
    In the category list I need to remove one value. How do i do this.Personalization links not available in this page.
    Please help guys...
    Thanks Advance
    Kumar

    Kumar,
    First you need to find out the data source for the category pop list. Based on that we can suggest how to achieve that requirement as there are many different ways of specifying the data source for a pop list.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I update a bean value from an AJAX call?

    Hi all,
    How do I update a bean value from an AJAX call? I suppose I could write a servlet to do it. However, this seems like a common problem, so I was wondering if there was some built in solution.
    Thanks,
    Grae
    Edited by: caalip2 on Mar 30, 2010 1:07 PM

    caalip2 wrote:
    Raymond
    Basically, I would user the following. The first choice for IE, the second for Firefox.
    new ActiveXObject("Microsoft.XMLHTTP");
    new XMLHttpRequest();
    GraeDon't do this to yourself. If it were that easy there wouldn't be AJAX frameworks for JSF. Find one you like and use it. I've used a4j (part of RichFaces) successfully.

  • Access the X-axis value from Flash Chart

    Hi,
    Is there a way I can access the X-axis value from Flash Chart to populate a report in another page? My X-axis is not a direct column in the table it is computed in the query.
    X-axis is MON-YEAR computed from the Begin_Date column. I want to capture the MON-YEAR clicked by the user to populate a report for that Mon-Year.
    Here is my chart SQL.
    select 'f?p=&APP_ID.:18:&SESSION.:::::::' link,
    to_char( "VIEW"."BEGIN_DATE",'MON-YYYY') label,
    sum(decode(TYPE_Id,2,Value,0)) "Value-1",
    sum(decode(TYPE_Id,1,Value,0)) "Value-2"
    from "VIEW" where to_char( "VIEW"."BEGIN_DATE",'MON-YYYY')= to_Char(sysdate-100, 'MON-YYYY')
    group by to_char( "VIEW"."BEGIN_DATE",'MON-YYYY'),
    to_char( "VIEW"."BEGIN_DATE",'YYYY')
    order by to_char( "VIEW"."BEGIN_DATE",'YYYY')
    Any suggestions?
    Thanks

    Thanks Marco..
    I did the same thing. I found this info at Re: Charts and links
    in the forum.
    Thanks for the help again.
    Nimmi

  • How to update value stored in a table when we select a value from a list

    In my jsp page i have given
    <html:select property="function" >
         <html:option value="select">Select Actions</html:option>
    <html:option value="open">Marks as open</html:option>
    <html:option value="closed">Marks as closed</html:option>
    </html:select>
    I am using lookup dispatch action in action class
    public class LoginAction extends LookupDispatchAction{
    protected Map getKeyMethodMap() {
              Map map=new HashMap ();
              map.put("open","open");
              map.put("closed","closed");
              return map;
    public ActionForward open(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
         public ActionForward closed(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
    but when i select a value from the list,the corresponding action is not occuring.What should i put in my code??

    Put your code between the code tags, it makes it so much easier to read.
    To do that, just highlight your code and click on the "code" found between " and the circled ?.
    From what I can read of your code I don't even see a table or a list, so i have no idea what you are trying to do. You probably need to show more code.
    JSG

  • How to find max value from a list of numbers stored in a varray?

    hi,
    Can any body help me to get the max value from a list of numbers stored in a varray?
    thanks in advance....
    regards
    LaxmiNarsimha

    Yes. Could you post what you have tried before we start helping you in this?

  • Retrieve Title field values from multiple lists and add into another list

    Hi , Iam trying to retrieve Title field value from multiple lists. and add them into another list. using Javascript. Can any one help me in doing this. Below is the code.. function save() { clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = clientContext.get_web().get_lists().getByTitle('MainList'); clientContext.load(oList); clientContext.executeQueryAsync(OnSucceeded, onQueryFailed); } function GetListItemValue(listName, fieldName) { var list = oWebsite.get_lists().getByTitle(listName); var eventValue = document.getElementById(fieldName).value; eventValue = eventValue.replace(",", ""); var camlQuery = new SP.CamlQuery(); var filterdata = '<view><query><where><eq><fieldref name="Title/"><value type="Text">' + myreqValue.trim() + '</value></fieldref></eq></where></query></view>'; camlQuery.set_viewXml(filterdata); listItems = list.getItems(camlQuery); clientContext.load(list); clientContext.load(listItems, 'Include(Id)'); clientContext.executeQueryAsync(Succeeded,Failed); } function OnSucceeded() { itemCreateInfo = new SP.ListItemCreationInformation(); oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Title', 'My New Title'); var deptItemLookupField = new SP.FieldLookupValue(); //Problem in below line...I was unable to get ID var getId = GetListItemValue("Listname1", "txtboxname1"); alert("ID" + getId); if (getId != undefined) { deptItemLookupField.set_lookupId(getId); } var getId12 = GetListItemValue("Listname12", "txtboxname12"); alert("ID" + getId12); if (getId12 != undefined) { deptItemLookupField.set_lookupId(getId12); } oListItem.update(); clientContext.executeQueryAsync(itemadded, itemFailed); } function itemadded() { alert('Item added successfully'); } function itemFailed(sender, args) { alert('Item added itemFailed' + args.get_message() + '\n' + args.get_stackTrace()); }
    Raj

    Hi,
    For this requirement, you will need to retrieve all the lists objects you want firstly, then execute the requests one by one to get the value of the Title column using CAML or
    LINQ.
    How to: Retrieve Lists Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185009(v=office.14).aspx
    About
    retrieve list items:
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    You can use
    Promise in your script to make your requests sequentially:
    http://www.shillier.com/archive/2013/03/04/using-promises-with-the-javascript-client-object-model-in-sharepoint-2013.aspx
    http://www.learningsharepoint.com/2013/08/13/using-deferred-and-promise-to-handle-async-calls-in-sharepoint-client-object-model/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Values from a list

    Hello,
    I have a Question. I made an LDAP query. Now in this query I
    have a attribute called "wMUserHistory" The query for this
    attribute returns a list like this:
    cn=P148348,ou=staff,o=RUG,c=NL,
    cn=P141922,ou=staff,o=RUG,c=NL, cn=naam,ou=Adm,o=RUG,c=NL,
    cn=P137308,ou=staff,o=RUG,c=NL, cn=P218384,ou=staff,o=RUG,c=NL
    What I actually want to do is to remove the characters except
    the "Pxxxxxx", but in one case there is a name called "naam". So I
    thougt I should get every separate piece of this list:
    (cn=P148348,ou=staff,o=RUG is one piece) And remove the characters
    separate per piece and then afterwards make a list of it again so I
    can use and insert the (correct) data (user history) into a new
    table.
    I wanted to depend the characters which have to be removed on
    the total amount of characters (length) per piece (if length is 27
    .... if lenght is 28...... etc)
    Is this possible and how do I get the separate pieces from
    this list. I know how to remove characters, but I have to know how
    I can do it per piece.
    Is there someone who can help?
    Thank you in advance.
    Regards,
    Kabbi

    I've made some assumptions from viewing your data. Looks like
    cn= value is the key and each row has four columns cn,ou,o,c.
    Try this:
    <!--- *** YOUR DATA --->
    <cfset LDAP_data = "cn=P148348,ou=staff,o=RUG,c=NL,
    cn=P141922,ou=staff,o=RUG,c=NL, cn=naam,ou=Adm,o=RUG,c=NL,
    cn=P137308,ou=staff,o=RUG,c=NL, cn=P218384,ou=staff,o=RUG,c=NL">
    <cfset kounter = 0>
    <cfloop index="i" list="#LDAP_data#">
    <cfset kounter = kounter + 1>
    <cfif i CONTAINS "cn=">
    <cfset temp_cn = Replace(i,"cn=","","ALL")>
    </cfif>
    <cfif i CONTAINS "ou=">
    <cfset temp_ou = Replace(i,"ou=","","ALL")>
    </cfif>
    <cfif i CONTAINS "o=">
    <cfset temp_o = Replace(i,"o=","","ALL")>
    </cfif>
    <cfif i CONTAINS "c=">
    <cfset temp_c = Replace(i,"c=","","ALL")>
    </cfif>
    <cfif (kounter MOD 4) EQ 0>
    <!--- *** INSERT RECORDS TO NEW EXISTING TABLE --->
    <cfquery name="insert_new_table"
    datasource="yourDatasource">
    INSERT your_new_table VALUES
    ('#Trim(temp_cn)#','#Trim(temp_ou)#','#Trim(temp_o)#','#Trim(temp_c)#')
    </cfquery>
    <!--- *** DISPLAY OUTPUT --->
    <cfoutput>
    cn: #temp_cn# / ou: #temp_ou# / o: #temp_o# / c:
    #temp_c#<br>
    </cfoutput>
    <!--- reset counters and temp variables --->
    <cfset kounter = 0>
    <cfset temp_cn = "">
    <cfset temp_ou = "">
    <cfset temp_o = "">
    <cfset temp_c = "">
    </cfif>
    </cfloop>

  • Select value from dropdown list

    hi All,
    we have a bsp application MVC based, we have a dropdown list,  what we require is when user selects an entry from drop down list and presses a button, we want to select that value from drop down list and then pass it to the method that will be called when button is pressed event..
    I want to know two things
    1. How do i get the selected value from dropdown ?
    2. hw can i retain it to send it to method call in handle_event bit
    thank you all

    Hi,
    If your application is stateless you have to capture the selected value in do_handle_data and assign it to the controller class attribute and later use this value in do_handle_event directly.
    If your application is stateful, on your dropdownlist htmlb tag click F1 you can read the documentation which also shows how to capture the value of dropdownlist in do_handle_event. In the same documentation you can even find few samples provided and check those samples in your system.
    Hope this helps.
    Regards,
    Abhinav

Maybe you are looking for