Check Box Question

Hi everyone. Quick question. I am curious if there is a way for my iTunes to shuffle and play songs that do not have the box checked. I like to keep certain songs/albums unchecked so I can switch up what's on my iPhone, but still have the ability to shuffle through while listening on my laptop.  Thanks in advance.

No this is exactly how unchecking is supposed to work. Unchecked songs wil not sync or play as part of a playlist.
If you want to add new music to your device set up a Smart playlist with the correct criteria and sync that.

Similar Messages

  • Another check box question

    For some reason all my songs have become unchecked. I don't know why. Is there an easy way to recheck them all. Rather than having to click in every box? It seems that because the aren't checked Genius will not recognize them. They were all working until today.
    Thanks in advance

    Flushkie wrote:
    I copied 250 gig of music from my old pc hard drive to my desktop. I just imported them to iTunes by adding them to my library. Now that the music is all in iTunes, I can delete the large music file on my desktop?
    This is another topic that should have it's own thread.
    To answer your question. It depends on if you had <iTunes/Preferences/Advanced/Copy files to iTunes Media folder when adding to library> checked. If the files were copied then you have duplicates and the files on the desktop can be deleted. If the files were not copied then the files on the desktop ARE your music files.
    Tracy

  • How do I create a check-box matrix question using Acrobat XI Pro?

    I would like to insert a question that is a 10 x 10 matrix that allows respondents to select multiple boxes in each row.  For example, the "add item > rating scale" feature formats a matrix the way I would like, although it only seems to allow for radio buttons.  With this feature, respondents can only select one item per row.  Is there any way to use this feature with check-boxes rather than radio buttons?  Or a different feature to create a matrix that allows for multiple selections per row? 
    Thanks so much,
    Andy 

    I created a 30 page Form in Microsoft Word with 20 to 30 check boxes on each page using the Zapf Dingbats Font.
    When I used Acrobat XI Pro to automatically convert the form it fails to create usable check boxes.
    It worked properly about 3 times on test pages but it will not do it again.
    Manually inserting check boxes one by one on 30 pages is mind numbing to say the least.
    Why doesn't the software work properly anymore?

  • Editing radio button / check box in MC question in DesignTemplates?

    Anyone an idea, how can I change these radio button / check box in MC question in a DesignTemplates?

    Hi there
    I don't believe this aspect may be controlled by a Design Template. Probably because this is an aspect that may vary from question to question. It deals with question functionality as opposed to simple visual elements.
    If you feel strongly this should be considered as part of a Design Template function, I might suggest you put it forward to Adobe.
    Click here to visit the Wish Form/Bug Reporting Form
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Check Box/ItemListener question

    Hello all,
    I'm trying to create a GUI for a program that I've been working on for some time. In the program, various sections can be run depending on what variables are present in the input file AND whether or not certain previous sections have been selected to run. I'm trying to represent this with a menu comprised of check boxes, where if the proper sections have been selected other boxes become enabled accordingly. I tried to get this behavior simply by saying in itemStateChanged() that if stp1bt3 is selected and stp1bt1 has just been selected, to enable stp2bt1. For some reason, stp2bt1 isn't enabled whenever I try this. Any help would be greatly appreciated, as I'm sure it's something very small that I have to add to this. Here is the code I have:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CheckGUI extends JPanel implements ItemListener {
    private JCheckBox stp1bt1;
    private JCheckBox stp1bt2;
    private JCheckBox stp1bt3;
    private JCheckBox stp2bt1;
    private JCheckBox stp2bt2;
    private JCheckBox stp2bt3;
    private JCheckBox stp3bt1;
    private JCheckBox stp3bt2;
    private JCheckBox stp3bt3;
    private JCheckBox stp3bt4;
    private JCheckBox stp3bt5;
    private JLabel emptyLabel;
    private JLabel step1Label;
    private JLabel step2Label;
    private JLabel step3Label;
    private boolean s1b2, s1b3, s2b1, s2b2, s2b3, s3b1, s3b2, s3b3, s3b4, s3b5;
    public CheckGUI(boolean s12, boolean s13, boolean s21,
    boolean s22, boolean s23, boolean s31,
    boolean s32, boolean s33, boolean s34,
    boolean s35){
    s1b2 = s12;
    s1b3 = s13;
    s2b1 = s21;
    s2b2 = s22;
    s2b3 = s23;
    s3b1 = s31;
    s3b2 = s32;
    s3b3 = s33;
    s3b4 = s34;
    s3b5 = s35;
    emptyLabel = new JLabel("");
    stp1bt1 = new JCheckBox("Button 1");
    stp1bt2 = new JCheckBox("Button 2");
    if (s1b2 == false){
    stp1bt2.setEnabled(false);
    stp1bt3 = new JCheckBox("Button 3");
    if (s1b3 == false){
    stp1bt3.setEnabled(false);
    stp2bt1 = new JCheckBox("Button 1");
    stp2bt1.setEnabled(false);
    stp2bt2 = new JCheckBox("Button 2");
    stp2bt2.setEnabled(false);
    stp2bt3 = new JCheckBox("Button 3");
    stp2bt3.setEnabled(false);
    stp3bt1 = new JCheckBox("Button 1");
    stp3bt1.setEnabled(false);
    stp3bt2 = new JCheckBox("Button 2");
    stp3bt2.setEnabled(false);
    stp3bt3 = new JCheckBox("Button 3");
    stp3bt3.setEnabled(false);
    stp3bt4 = new JCheckBox("Button 4");
    stp3bt4.setEnabled(false);
    stp3bt5 = new JCheckBox("Button 5");
    stp3bt5.setEnabled(false);
    step1Label = new JLabel("Step 1");
    step2Label = new JLabel("Step 2");
    step3Label = new JLabel("Step 3");
    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    add(step1Label);
    add(stp1bt1);
    if(s1b2 == true)
    add(stp1bt2);
    else
    add(emptyLabel);
    if(s1b3 == true)
    add(stp1bt3);
    else
    add(emptyLabel);
    add(step2Label);
    if(s2b1 == true)
    add(stp2bt1);
    else
    add(emptyLabel);
    if(s2b2 == true)
    add(stp2bt2);
    else
    add(emptyLabel);
    if(s2b3 == true)
    add(stp2bt3);
    else
    add(emptyLabel);
    add(step3Label);
    if(s3b1 == true)
    add(stp3bt1);
    else
    add(emptyLabel);
    if(s3b2 == true)
    add(stp3bt2);
    else
    add(emptyLabel);
    if(s3b3 ==true)
    add(stp3bt3);
    else
    add(emptyLabel);
    if(s3b4 == true)
    add(stp3bt4);
    else
    add(emptyLabel);
    if(s3b5 == true)
    add(stp3bt5);
    else
    add(emptyLabel);
    public void itemStateChanged(ItemEvent e){
    Object source = e.getItemSelectable();
    if (source == stp1bt1){
    if(e.getStateChange() == ItemEvent.SELECTED && stp1bt3.isSelected() && s2b1 == true){
    stp2bt1.setEnabled(true);
    public static void main (String args[]) {
    JFrame f = new JFrame ("CheckBox Test");
    JPanel j = new CheckGUI(true,true,true,true,true,true,true,true,true,true);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    f.getContentPane().add (j, BorderLayout.CENTER);
    f.setSize (150, 450);
    f.show();
    }

    Hello,
    My dear frind you have to add the item listener fro an item to do dymaic changes in the check box.
    So for now i have added it.. check it down
    i have also placed the system.out.println(....);
    Alll THe Best
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CheckGUI extends JPanel implements ItemListener {
    private JCheckBox stp1bt1;
    private JCheckBox stp1bt2;
    private JCheckBox stp1bt3;
    private JCheckBox stp2bt1;
    private JCheckBox stp2bt2;
    private JCheckBox stp2bt3;
    private JCheckBox stp3bt1;
    private JCheckBox stp3bt2;
    private JCheckBox stp3bt3;
    private JCheckBox stp3bt4;
    private JCheckBox stp3bt5;
    private JLabel emptyLabel;
    private JLabel step1Label;
    private JLabel step2Label;
    private JLabel step3Label;
    private boolean s1b2, s1b3, s2b1, s2b2, s2b3, s3b1, s3b2, s3b3, s3b4, s3b5;
    public CheckGUI(boolean s12, boolean s13, boolean s21,
    boolean s22, boolean s23, boolean s31,
    boolean s32, boolean s33, boolean s34,
    boolean s35){
    s1b2 = s12;
    s1b3 = s13;
    s2b1 = s21;
    s2b2 = s22;
    s2b3 = s23;
    s3b1 = s31;
    s3b2 = s32;
    s3b3 = s33;
    s3b4 = s34;
    s3b5 = s35;
    emptyLabel = new JLabel("");
    stp1bt1 = new JCheckBox("Button 1");
    stp1bt2 = new JCheckBox("Button 2");
    if (s1b2 == false){
    stp1bt2.setEnabled(false);
    stp1bt3 = new JCheckBox("Button 3");
    if (s1b3 == false){
    stp1bt3.setEnabled(false);
    stp2bt1 = new JCheckBox("Button 1");
    stp2bt1.setEnabled(false);
    stp2bt2 = new JCheckBox("Button 2");
    stp2bt2.setEnabled(false);
    stp2bt3 = new JCheckBox("Button 3");
    stp2bt3.setEnabled(false);
    stp3bt1 = new JCheckBox("Button 1");
    stp3bt1.setEnabled(false);
    stp3bt2 = new JCheckBox("Button 2");
    stp3bt2.setEnabled(false);
    stp3bt3 = new JCheckBox("Button 3");
    stp3bt3.setEnabled(false);
    stp3bt4 = new JCheckBox("Button 4");
    stp3bt4.setEnabled(false);
    stp3bt5 = new JCheckBox("Button 5");
    stp3bt5.setEnabled(false);
    step1Label = new JLabel("Step 1");
    step2Label = new JLabel("Step 2");
    step3Label = new JLabel("Step 3");
    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    add(step1Label);
    add(stp1bt1);
    if(s1b2 == true)
    add(stp1bt2);
    else
    add(emptyLabel);
    if(s1b3 == true)
    add(stp1bt3);
    else
    add(emptyLabel);
    add(step2Label);
    if(s2b1 == true)
    add(stp2bt1);
    else
    add(emptyLabel);
    if(s2b2 == true)
    add(stp2bt2);
    else
    add(emptyLabel);
    if(s2b3 == true)
    add(stp2bt3);
    else
    add(emptyLabel);
    add(step3Label);
    if(s3b1 == true)
    add(stp3bt1);
    else
    add(emptyLabel);
    if(s3b2 == true)
    add(stp3bt2);
    else
    add(emptyLabel);
    if(s3b3 ==true)
    add(stp3bt3);
    else
    add(emptyLabel);
    if(s3b4 == true)
    add(stp3bt4);
    else
    add(emptyLabel);
    if(s3b5 == true)
    add(stp3bt5);
    else
    add(emptyLabel);
    stp1bt1.addItemListener(this);
    stp1bt2.addItemListener(this);
    stp1bt3.addItemListener(this);
    stp2bt1.addItemListener(this);
    stp2bt2.addItemListener(this);
    stp2bt3.addItemListener(this);
    stp3bt1.addItemListener(this);
    stp3bt2.addItemListener(this);
    stp3bt3.addItemListener(this);
    stp3bt4.addItemListener(this);
    stp3bt5.addItemListener(this);
    public void itemStateChanged(ItemEvent e){
    Object source = e.getSource();
    if (source == stp1bt1){
         /*      System.out.println(e.getStateChange() == ItemEvent.SELECTED);
              System.out.println(stp1bt3.isSelected());
              System.out.println(s2b1 == true); */
    if(e.getStateChange() == ItemEvent.SELECTED && stp1bt3.isSelected() && s2b1 == true){
    stp2bt1.setEnabled(true);
    public static void main (String args[]) {
    JFrame f = new JFrame ("CheckBox Test");
    JPanel j = new CheckGUI(true,true,true,true,true,true,true,true,true,true);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    f.getContentPane().add (j, BorderLayout.CENTER);
    f.setSize (150, 450);
    f.show();
    }

  • Question: How can I implement check box in workflow?

    Can I implement check box, drop down menu etc in workflow?

    Hi,
    There is no quick and easy way to do this.
    Although the OA Framework / PL/SQL document approach to a dynamic notification is only intended to be read only rather than bi-directional, it can be used to provide this kind of functionality.
    Once the fields have been completed, you would need to include a custom mechanism to respond to the notification (by calling WF_NOTIFICATION.respond), rather than having the users use the standard buttons.
    I've done similar with PL/SQL documents in the past - rendering the contents how we needed them to, and then essentially having an HTML form submit which invokes a PL/SQL procedure passing the values selected as parameters. The code then does whatever it needs to do, and responds to the notification by calling the appopriate API.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Check Box Selection Questions

    Is it possible to make a selection with a check box, and then have it select a predetermined selection from a drop down menu?
    e.g. If I select "Los Angeles" from a series of office locations in my check boxes, can it automatically select an address from a drop down selection for that Los Angeles Office?
    Thanks for any help in advance
    Aaron

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Question Related to Check-box in Dialog Program

    Hi All-
    I desgined check box in Table Control... In my Internal table I have 41 records, When user click on Select all button it selects only first 14 records from the table control...When the user uses page-down, then click on Select all, selects remaining 14 records and so on...
    But how to select all the records at a time instead of using page-down...
    Please advice me how to solve my problem!!!!
    Thanks,
    Sony

    I would not suggest doing it like that.  Instead move the MODULE USER_COMMAND outside of that loop.
    *  Screen Flow Logic 
    PROCESS AFTER INPUT.
    LOOP AT i_x002 .
    ENDLOOP.
    MODULE user_command_0600 .
    *  Module coding
    MODULE user_command_0600 input..
    CASE sy-ucomm.
    WHEN 'SELA'.
    loop at i_x002.
    i_x002-flag = 'X'.
    MODIFY i_x002.
    endloop.
    WHEN 'DELA'.
    loop at i_x002.
    i_x002-flag = space.
    MODIFY i_x002.
    endloop.
    ENDCASE.
    endmodule.
    Regards,
    Rich Heilman

  • Apex Question: Check Boxes

    How do you choose multiple check boxes from a set of them?

    How do you choose multiple check boxes from a set of
    them?There is an apex forum you know...
    http://www.rittmanmead.com/2004/03/31/adding-checkboxes-to-report-rows-using-html-db/ will show you that behind the scenes APEX sets up a collection that you can inspect the members of in code.
    Niall Litchfield
    http://www.orawin.info/

  • Many check boxes list(question modified)

    hi dear,
    i want store the many check box values in database
    i am giving example
    i have one input list box
    if i click on that list box many check box will come.which is already stote in the database
    location
    bangalore
    chennai
    hyderabad
    mubai
    .now i will select bangalore,chennai and it will show in the list box .that value i want store in the database for particular record along with emp id.
    how to store pls help me.

    You can see my answer in your previous post: how store in database  list of multiple check boxes values
    With af:selectManyChoice the same, as with af:selectManyCheckbox:
    <af:selectManyChoice value="#{backingBeanScope.rpoDangerObjectBean.licensedActionsSelected}"
    label="#{bindings.LicensedActionsClsVO.label}"
    id="smc2" simple="true"
    contentStyle="width:440px"
    autoSubmit="true"
    disabled="#{pageFlowScope.disabledMode}">
    <af:forEach items="#{bindings.LicensedActionsClsVO1.rangeSet}"
    var="item">
    <f:selectItem itemValue="#{item.Num}"
    itemLabel="#{item.Code} #{item.Name}"
    id="si66"/>
    </af:forEach>
    </af:selectManyChoice>

  • Return Item and Free goods check box in purchase order

    Hi Guru:
    I just got the question regarding the return item and free goods check box,my question is that if I check the free good check box,then the price of the matieral will be charged to zero,however,if I want to issue the return purchase order to the vendor,does I need to check the return box first and then issue the return order to the vendor? Then go to MIGO transaction to select the movement type 122 to return the goods,what's the whole precedure for returning the goods to the vendor,can anybody tell me,very appriated!

    Hi,
    Retun to vendor through have two types....
    One is you have Po created, vendor send the item in that few items have rejected so you need to return the item to vendor......
    here in MIGo chose returrn to vendor selce the PO numbere.... system automaticaly take the movent type 122....
    sencond type is Retun PO..... In Po while creting the PO tick the return indication..
    If you do the GR system will pick 161mopvent type.. ( GR returns)...
    REgards
    anand

  • Turkish Character and Check Box "?" Problem in XML Publisher

    In aplication and XML Publisher I must use Turkish Characters e.g. 'ş','ı','ğ','ç','ö' and check boxes. In html preview there is no problem, I can see all of them correctly. Hovewer in PDF preview in XML Publisher and also PDF output in Oracle Application all these Turkish Characters and Check Boxes looks like question mark (?). How can I solve this problem ?
    Thanks for helps....

    Hi Tim,
    Related to Special Italian characters, when I try with "Courier New" font with static data,the XML Preview display those characters.But when those chars come from XML source file,they get vanished.I tried two cases:
    Case1 ) IN EBS,I have attached courbi.ttf(font file) to the template manager(followed as per instructions in Font mapping section in User Guide).
    When I try running the report ,its getting completed with Warning.
    Case 2) I have also modified xdo.cfg ( as per Doc ID:400755.1 www.metalink.oracle.com)-
    In both cases ,I am not acheving the desired results.
    Please let me know where I am going wrong.
    Thanks and Regards,
    Kaveri

  • Pdf's display check boxes wrong

    I was able to post this question as it was not asked before. This is incorrect. A thread on this was closed on 2/28/2013 see here...
    https://support.mozilla.org/en-US/questions/951196
    I am presently using FireFox V 23.0.1
    When opening up a PDF with preselected check boxes, instead of a check box the #4 is placed in the box (I know totally random). The previous link has screen shots that represent the problem.
    The previous thread, it was closed with a vague declaration that the problem was A) fixed or B) being addressed. This problem should now be considered pervasive as 4 verions have gone by with no correction.
    Further PDF documents seem to have all sorts of bugs in them not the least of which is that editable fields for forms are un-editable when viewed in FireFox. If the Adobe API for working with PDF's is lacking, no worries. Please just declare this and state bug fixes for PDF's are low priority due to their hair-pulling, eye gouging, frustrations. I/We will not like the answer but will understand (I code too).
    Any thoughts on the cause of this? It ain't cookies or browser cache.
    Thank you for your attention on this matter...and your general awesome-es-ness.

    The built-in PDF viewer still lacks many features of the Adobe plugin.
    A slightly updated version (compared with Firefox 24) is available on the Add-ons site here: https://addons.mozilla.org/en-US/firefox/addon/pdfjs/
    A development version that contains the latest changes is available from this page (scroll down to Browser Extensions): https://github.com/mozilla/pdf.js
    I haven't tested those to see whether they change the problems you're encountering.
    One of the complexities of researching issues with the Javascript-based PDF viewer is that problems are tracked both on the github site and in the traditional bug tracking system...

  • Access 2010 - If Then Else Statement to display text within text box upon Check Box True/False condition

    I have a form called myForm. On this form is a check box called myCheckBox. I also have a text box labeled myTextBox. I have assigned a macro, myMacro, to run upon selection/click of myCheckBox. The macro is an If statement which determines if myCheckBox
    is checked or not checked and spits out a value, "Yes" or "No" for example, into the text box.
    I am not able to get text to display into the text box although I am not receiving any errors when I run the macro. This may be a fault in my logic and would like help resolving where the problem lies. I am fairly new to Access so this could be something
    simple.
    My code is as follows:
    If Forms!myForm =  True Then
      Forms!myForm!myTextBox.Value = "Yes!"
    ElseIf Forms!myForm = False Then
      Forms!myForm!myTextBox.Value = "No!"
    Else
      Forms!myForm!myTextBox.Value = " / ERROR / " 
    End if
    Thanks!

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, the issue is more related to coding/programing, you'd better post your question to the MSDN forum for Access
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=accessdev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How to show check box in ALV grid??

    Hi All,
         I am using an option edit in the feild catalogue which allows me to change the values in a few columns in the ALV list.
    What I want is to be able to show a check box in a few columns which user can check and use the value X in the program for the later processing....
    Can somebody tell me how to show a check box in the ALV screen in the changeable format??
    Win full point by answering this typical question..
    Thanks - Chandan

    hi go through the fallowing code.
    *& Report  YGS_ALV_BOM                                                 *
    REPORT  YGS_ALV_BOM                             .
    TABLES : MAST,STKO,STPO.
    TYPE-POOLS: SLIS.
    TYPES : BEGIN OF TY_MAST,
            CHECK_BOX,
            MATNR TYPE MAST-MATNR,
            WERKS TYPE MAST-WERKS,
            STLAN TYPE MAST-STLAN,
            STLNR TYPE MAST-STLNR,
            STLAL TYPE MAST-STLAL,
            END OF TY_MAST.
    TYPES : BEGIN OF TY_STKO,
            STLTY TYPE STKO-STLTY,
            STLNR TYPE STKO-STLNR,
            STLAL TYPE STKO-STLAL,
            STKOZ TYPE STKO-STKOZ,
            BMENG TYPE STKO-BMENG,
            BMEIN TYPE STKO-BMEIN,
            END OF TY_STKO.
    TYPES : BEGIN OF TY_STPO,
            LIGHTS,
            STLTY TYPE STPO-STLTY,
            STLNR TYPE STPO-STLNR,
            STLKN TYPE STPO-STLKN,
            STPOZ TYPE STPO-STPOZ,
            IDNRK TYPE STPO-IDNRK,
            MENGE TYPE STPO-MENGE,
            MEINS TYPE STPO-MEINS,
            END OF TY_STPO.
    DATA : IT_MAST TYPE TABLE OF TY_MAST,
           WA_MAST TYPE TY_MAST,
           IT_STKO TYPE TABLE OF TY_STKO,
           WA_STKO TYPE TY_STKO,
           IT_STPO TYPE TABLE OF TY_STPO,
           WA_STPO TYPE TY_STPO.
    DATA : lt_fieldcat TYPE slis_t_fieldcat_alv,
           ls_layout TYPE slis_layout_alv,
           ls_event TYPE slis_alv_event,
           lt_event TYPE slis_t_event,
           it_sortinfo type slis_t_sortinfo_alv,
           ls_header TYPE slis_listheader,
           lt_header TYPE slis_t_listHEADER.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    SELECT-OPTIONS : S_MATNR FOR MAST-MATNR.
    START-OF-SELECTION.
    PERFORM GET_DATA.
    PERFORM BUILD_FIELDCAT USING LT_FIELDCAT.
    PERFORM BUILD_LAYOUT.
    END-OF-SELECTION.
    PERFORM DISPLAY_DATA.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form GET_DATA .
    REFRESH : IT_MAST.
    SELECT MATNR
           WERKS
           STLAN
           STLNR
      FROM MAST
      INTO CORRESPONDING FIELDS OF TABLE IT_MAST
    WHERE MATNR IN S_MATNR.
    endform.                    " GET_DATA
    *&      Form  BUILD_FIELDCAT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form BUILD_FIELDCAT USING LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA  : L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    REFRESH : LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 1.
            L_FIELDCAT-FIELDNAME = 'MATNR'.
            L_FIELDCAT-TABNAME = 'IT_MAST'.
            L_FIELDCAT-REF_FIELDNAME = 'MATNR'.
            L_FIELDCAT-REF_TABNAME = 'MAST'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 2.
            L_FIELDCAT-FIELDNAME = 'WERKS'.
            L_FIELDCAT-TABNAME = 'IT_MAST'.
            L_FIELDCAT-REF_FIELDNAME = 'WERKS'.
            L_FIELDCAT-REF_TABNAME = 'MAST'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 3.
            L_FIELDCAT-FIELDNAME = 'STLNR'.
            L_FIELDCAT-TABNAME = 'IT_MAST'.
            L_FIELDCAT-REF_FIELDNAME = 'STLNR'.
            L_FIELDCAT-REF_TABNAME = 'MAST'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
    endform.                    " BUILD_FIELDCAT
    *&      Form  BUILD_LAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form BUILD_LAYOUT .
    CLEAR LS_LAYOUT.
    LS_LAYOUT-BOX_FIELDNAME = 'CHECK_BOX'.
    LS_LAYOUT-BOX_TABNAME =  'IT_MAST'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form DISPLAY_DATA .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = SY-REPID
       I_CALLBACK_PF_STATUS_SET       = 'PF_STATUS'
       I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
    *   I_STRUCTURE_NAME               =
       IS_LAYOUT                      = LS_LAYOUT
       IT_FIELDCAT                    = LT_FIELDCAT
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = IT_MAST
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DISPLAY_DATA
    FORM PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'YSTATUS' OF PROGRAM SY-REPID
                               EXCLUDING RT_EXTAB.
    ENDFORM.
    FORM USER_COMMAND USING RF_UCOMM TYPE SY-UCOMM
                      SELFIELD TYPE SLIS_SELFIELD.
      CASE RF_UCOMM.
          WHEN '&NEXT'.
           PERFORM GET_DATA_BOM .
           PERFORM BUILD_FIELDCAT_BOM USING LT_FIELDCAT.
           PERFORM BUILD_LAYOUT_BOM.
           PERFORM DISPLAY_DATA_BOM.
      ENDCASE.
    ENDFORM.
    *&      Form  GET_DATA_BOM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form GET_DATA_BOM .
      CLEAR   : WA_STPO,
                WA_MAST.
      REFRESH : IT_STPO.
      DATA  : IT_CHECK TYPE TABLE OF TY_MAST.
      LOOP AT IT_MAST INTO WA_MAST.
          IF WA_MAST-CHECK_BOX EQ 'X'.
             APPEND WA_MAST TO IT_CHECK.
          ENDIF.
      ENDLOOP.
      SELECT STLTY
             STLNR
             STLKN
             VGKNT
             IDNRK
             MENGE
             MEINS
        FROM STPO
        INTO CORRESPONDING FIELDS OF TABLE IT_STPO
         FOR ALL ENTRIES IN IT_CHECK
       WHERE IDNRK EQ IT_CHECK-MATNR.
    CLEAR WA_STPO.
       LOOP AT IT_STPO INTO WA_STPO.
         SELECT SINGLE * FROM MAST WHERE MATNR EQ WA_STPO-IDNRK.
         IF SY-SUBRC = 0.
           WA_STPO-LIGHTS = '2'.
         ELSE.
           WA_STPO-LIGHTS = '1'.
         ENDIF.
         MODIFY IT_STPO FROM WA_STPO.
       ENDLOOP.
    endform.                    " GET_DATA_BOM
    *&      Form  BUILD_FIELDCAT_BOM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form BUILD_FIELDCAT_BOM USING LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA  : L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    REFRESH : LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 1.
            L_FIELDCAT-FIELDNAME = 'STLTY'.
            L_FIELDCAT-TABNAME = 'IT_STPO'.
            L_FIELDCAT-REF_FIELDNAME = 'STLTY'.
            L_FIELDCAT-REF_TABNAME = 'STPO'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 2.
            L_FIELDCAT-FIELDNAME = 'STLNR'.
            L_FIELDCAT-TABNAME = 'IT_STPO'.
            L_FIELDCAT-REF_FIELDNAME = 'STLNR'.
            L_FIELDCAT-REF_TABNAME = 'STPO'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 3.
            L_FIELDCAT-FIELDNAME = 'STLKN'.
            L_FIELDCAT-TABNAME = 'IT_STPO'.
            L_FIELDCAT-REF_FIELDNAME = 'STLKN'.
            L_FIELDCAT-REF_TABNAME = 'STPO'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 4.
            L_FIELDCAT-FIELDNAME = 'IDNRK'.
            L_FIELDCAT-TABNAME = 'IT_STPO'.
            L_FIELDCAT-REF_FIELDNAME = 'IDNRK'.
            L_FIELDCAT-REF_TABNAME = 'STPO'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
            L_FIELDCAT-COL_POS = 5.
            L_FIELDCAT-FIELDNAME = 'MENGE'.
            L_FIELDCAT-TABNAME = 'IT_STPO'.
            L_FIELDCAT-REF_FIELDNAME = 'MENGE'.
            L_FIELDCAT-REF_TABNAME = 'STPO'.
            APPEND L_FIELDCAT TO LT_FIELDCAT.
    endform.                    " BUILD_FIELDCAT_BOM
    *&      Form  BUILD_LAYOUT_BOM
    *      text
    * -->  p1        text
    *<--  p2        text
    form BUILD_LAYOUT_BOM .
    CLEAR  : LS_LAYOUT.
    LS_LAYOUT-LIGHTS_FIELDNAME = 'LIGHTS'.
    LS_LAYOUT-LIGHTS_TABNAME = 'IT_STPO'.
    endform.                    " BUILD_LAYOUT_BOM
    *&      Form  DISPLAY_DATA_BOM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form DISPLAY_DATA_BOM .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = SY-REPID
    *   I_CALLBACK_PF_STATUS_SET          = ' '
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND_BOM'
       I_CALLBACK_TOP_OF_PAGE            = 'TOP9'
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = 'ALV_BACKGROUND'
    *   I_GRID_TITLE                      =
    *   I_GRID_SETTINGS                   =
       IS_LAYOUT                         = LS_LAYOUT
       IT_FIELDCAT                       = LT_FIELDCAT
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         = 'X'
    *   I_SAVE                            = ' '
    *   IS_VARIANT                        =
    *   IT_EVENTS                         =
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   I_HTML_HEIGHT_TOP                 =
    *   I_HTML_HEIGHT_END                 =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          = IT_STPO
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 1
    *   OTHERS                            = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DISPLAY_DATA_BOM
    FORM TOP9 .
    CLEAR   LS_HEADER.
    REFRESH  LT_HEADER.
    LS_HEADER-TYP = 'H'.
    LS_HEADER-INFO = 'BILL OF MATERIALS'.
    APPEND LS_HEADER TO LT_HEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = LT_HEADER
       I_LOGO                   = 'ENJOYSAP_LOGO'
    *   I_END_OF_LIST_GRID       =
    ENDFORM.
    FORM USER_COMMAND_BOM USING RF_UCOMM_BOM LIKE SY-UCOMM
                      SEL_FIELD TYPE SLIS_SELFIELD.
        CASE RF_UCOMM_BOM.
          WHEN '&IC1'.
          SET PARAMETER ID 'MAT' FIELD WA_STPO-IDNRK.
          SET PARAMETER ID 'WRK' FIELD WA_MAST-WERKS.
          SET PARAMETER ID 'CSA' FIELD WA_MAST-STLAN.
          CALL TRANSACTION 'CS03' AND SKIP FIRST SCREEN.
        ENDCASE.

Maybe you are looking for