How to find out the selected item in the lsit

Hi all,
How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmer

This sample program uses a checkbox as selection,  you could also use a HOTSPOT.
report zrich_0002 no standard page heading.
data: imara type table of mara with header line.
data: check_box(1) type c,  
   report_lines type i.
start-of-selection.
* Create the gui status with BACK button in standard place
* and a READ button in the application toolbar
  set pf-status 'CHECK'. 
select * into corresponding fields of table imara           from mara up to 100 rows.
loop at imara.   
write:/ check_box as checkbox, imara-matnr, imara-matkl.  
hide imara-matnr. 
endloop.
  report_lines  = sy-linno - 1.
top-of-page. 
write: 'List of materials'.  uline.
top-of-page during line-selection.  write:  'Material.....'.  uline.
at user-command. 
case sy-ucomm.  
when 'READ'.   
  check_box = space.    
set pf-status 'CHECK' excluding 'READ'.
      do report_lines times.       
read line sy-index field value check_box.    
   if check_box = 'X'.        
write:/  'You have selected material',
imara-matnr.       
endif.   
  enddo. 
endcase.
Regards,
Rich Heilman

Similar Messages

  • How to find out which data control do the page layout components come from?

    hi,
    work in Jdev 11.1.2.3
    After have drag and drop data control into pages designer, how to find out which data control do the page layout component (such as a field in form layout) come from?
    --i cannot find data control related information in the property pallete for the page layout component.
    Regards.

    This information can be found in the page definition file.
    Select the field in the page and then click the binding tab.

  • HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?

    I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?

    As Jim said View > Show Duplicates
    or
    Option + View > Show Exact Duplicates

  • How to find out particular work item is trigger by particular transaction

    Hi,
    can any one tell how to find out particular work item is trigger by particular transaction. in swfrevtlog we ill get custom obj type and also super business obj type,but i need to identify this work item id is triggered by this transaction. can any one help,
    Thanks in advance

    Hi,
    Sorry, but I don't believe that's possible. Even if you can identify the program, there could be multiple transactions that executed it.
    The only possible way, I think, would be to add an enhancement / badi which uses the callstack to determine the calling transaction at the time he event is raised (and then stores it somewhere).
    But that's not very elegant.
    Why do you need to know the triggering transaction? To influence the workflow? If so, another approach might be this:  pass the transaction code as an additional parameter to the workflow event & then pass that to the workflow.
    cheers
    Paul

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How to find out if your Mac has the new Virus ?

    How to find out if your Mac has the new Virus, and how to fix it ???

    Helpful Links Regarding Flashback Trojan
    A link to a great User Tip about the trojan: Flashback Trojan User Tip
    A related link in the tip to a checker: Malware Checker Dowload Link
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
    For now I recommend the User Tip from etressoft to detect and remove:
    Checking for and removing the "Flashback" trojan
    Kaspersky Flashback Trojan Site:Flashback Trojan Detection and Removal
    Also see Apple's article About Flashback malware.

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

  • Getting the value of the selected items of the shuttle

    Hi Steve,
    How to get the selected items of the shuttle in the backing Bean upon clicking submit button?
    Regards,
    Gareth

    Check the ADF Developer Guide and the SRDemo
    application for a sample of using the shuttle
    http://download.oracle.com/docs/html/B25947_01/web_com
    plex008.htm#CEGHACEDHow to get the values from leading list. I have a pop-up with selectManyShuttle. The leading list values are retreived from from emailTable and there is no default values in the trailing List. When I click ok in the popup, the selectedValues is null.
    here is my code:
    <af:form>
    <af:selectOneChoice label="" valuePassThru="true" valueChangeListener="#{backingpsEmailUserContact.refreshSelectedList}" id="usercontactid" autoSubmit="true">
    <af:selectItem label="User" value="user"/>
    <af:selectItem label="Contact" value="contact"/>
    </af:selectOneChoice>
    <af:panelHorizontal valign="bottom" partialTriggers="usercontactid">
    <af:selectManyShuttle
    trailingHeader="Chosen"
    leadingHeader="Email"
    trailingDescShown="true"
    leadingDescShown="true"
    size="10"
    value="#{backingpsEmailUserContact.selectedValues}" >
    <f:selectItems value="#{backingpsEmailUserContact.allItems}"/>
    </af:selectManyShuttle>
    <af:commandButton text="Ok" action="#{backingpsEmailUserContact.cmdOk}" id="cmdOkid" partialSubmit="true"/>
    </af:panelHorizontal>
    </af:form>
    backingBean method
    public void cmdOk(){
    Object selectedList = this.getSelectedValues();
    // for (int i = 0; i < selectedList.size();i++){
    // System.out.println((String)selectedList.get(i));
    }

  • How to find out which cube/ods has the code

    hi,
    I want to find out which cube/ods has the start routine/update rules written in it.  Is there a table or Tcode to find out the code instead of opening each cube/ods to find out whether there is code in it or not.
    Thanks,
    Sam

    hi Sam,
    take a look
    /message/3483792#3483792 [original link is broken]
    try RSTRAN, field STARTROUTINE
    related tables
    RSAROUT
    RSAABAP
    RSAABAPINV
    RSAROUTT
    Technical name of start routine
    Re: How to get info about a GP* program?
    Re: Search for start, update rule, etc. that uses infoobject
    if couldnt find out, you can use ST05 'sql trace', open 2 session, one for create start routine, and one for ST05, activate with option 'sql trace', then create start routine and 'deactivate trace' and 'display trace', and check out the tables list
    hope this helps.

  • How to find out users inapproprate access in the system

    Hi Experts,
    Please any on help me out how to find out the inappropriate critical/sensitive Access is granted to all end users.
    Regards,
    Reddy v.

    Hi Siddhesh,
    Thanks for your reply.
    I already used  the SUIM T-code, but unable to find out users, those who have critical / Sensitive authorization, could you please help me to find out the same by using SUIM,
    We will  able to get the critical / Sensitive authorization users details by executing RSUSR005.
    It display all Usres those who have critical / Sensitive authorization.
    But I want to know is thier any other way to find out the same.
    If any one help me to find out it will usefull for me for the security issue.
    Thanks
    Prakash

  • How to find out Which LineItem is having the wrong data

    Hi All,
    This is Idoc--File scenario
    Iam sending the Idoc from R/3 and it may have several Line items and related data.
    If One line item data is wrong also the Idoc will be errored Out in MONI,for this i used UDF in mapping  to through the Exceptions. So i have to goto WE05 in R/3 and i have to check each and every line item for wrong data and then i will repost it.
    the thing is how can i find out the Particular line item is caused for this Error.
    REgards

    Hi Sarvesh,
    No, in MONI it will not take us to the correct Lineitem which is having the wrong data.
    That is only the problem here.
    Any Views.........
    Regards

  • How to find out whats ur answer for the security question but they send the email to a different email account

    im trying to find out whats my security answer but there sending to a different account that i dont know about but i want them to send it to my email account please help me get my security answers

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • How to find out whether certain items are /will be rendered?

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

  • How to find out an Inventory Item History

    Hi All,
    Greeting you all.
    I would like to know is there a way to find out the whole history of an Inventory Item starting from the Copying or Applying template.
    I'm looking for a way by which we can Identify whether an Inventory Item has been created by copying from some other Item or by Applyiing some template.
    Thanks in advance.
    Thanks / Shekhar S
    Edited by: user12121192 on Aug 26, 2010 1:50 PM
    Edited by: user12121192 on Aug 26, 2010 1:51 PM

    Hi Mcertini,
    Thank you for your response.
    I'm not looking for the Item cost history.
    I'm looking for the Item creation source.
    How an Item got created, Manually OR By Copying from another OR By Applying a template OR By Importing Items etc?
    Thanks
    Shekhar S

Maybe you are looking for