How to give loop to the template

hello,
i had created smartform, in that i had created the template. Now the driver program had passing two records. But the template at a time will process the one record. So can we please specify how to loop into internal table which is coming into smartform from driver program. I had check in the driver program the internal table conatins two record but at the time of execution ie after passing to smartform it is taking latest record ie second record.

HI,
Let me say the clear picture..
Let us take the table below
Fields:
matnr werks lgort   -
This is the template static value
1001   09    1001         -
This is an internal table
1003   09    1001     
Template just takes static values you cannot loop into it..
please define a table by right click and pass the values.
rewards if useful,
regards,
nazeer

Similar Messages

  • How to give colors to the top-of-page in ALV Grid

    How to give colors to the top-of-page in ALV Grid
    in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    I_LOGO = 'ENJOYSAP_LOGO'
    IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    please help mee

    HI Kranthi,
    Check out teh foll. link,
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    Hope this helps.

  • How to give colors to the top-of-page in ALV List Display

    how to give colors to the top-of-page in ALV List Display....

    Check this blog.........
    It provides your required output...........
    /people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
    See the point 7 for complete code...
    Regards,
    Pavan

  • May i know how to give rewards to the questions?

    hi all gurus,
    actually i  don't know how to give rewards to the questions?
    so, can anybody pls... let me know that...
    thanks
    arun

    Hi Arun,
    You will have Radio buttons left to the answers.
    Plz select one of the radio button among the four radio buttons.
    1) If you felt one of the answer solves your problem, reward them with Solved problem. Close the thread once it is solved/answered.
    2) If you felt one of the answer solves helps you very much, then reward them with Very Helpful answer.
    3) If you felt one of the answer helps to your problem, then reward them with Helpful answer.
    Rewarding points to a contributor gives a token of recongition to him/her and makes them to contribute more on Forums. Even a single word 'Thanks' also makes them comfortable. As many contributors are spending their time apart from their regular activities. So its always a good thing to recognise/appreciate them.
    Thanks,
    Vinay

  • How can give permissions to the users in wiki?

    Hi, in wiki how can give permissions to the users, i need to give one of the users full control for wiki only ( not the server ), so how can make this user wiki admin?.

    No answer!!??
    I Need to put one of staff as Wiki Admin then he can manage it ( Delete, Edit ...etc ), Wiki Creators users can't full admin the Wiki.
    Please help.

  • Multi-record block (how do I loop through the block)

    I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
    reports that they want to run. When they click on <NEXT> button, I create a multi-record
    control block and display each record on the second screen using
    go_block;
    clear_block;
    move data;
    create_record;
    The user then selects on the second canvas which reports to run now and which to run later via
    a LOV. When they press the <RUN> button, I want to start at the first record and either run the
    report or schedule it. Then I want to move onto the second and the third until all selected reports
    have been handled. I know I should use a loop but can't seem to make it work.
    So my question is, How do I loop through the records in a multi-record control block, pass the information
    for that one record to a parameter form and then execute the request? Each control block record contains
    10 parameter fields.
    Thanks.
    Bob

    go_record(1);
    << do your processing >> -- This is executed only for the first record.
    if :system.last_record = 'TRUE' then -- If the 1st record is also the last record.
    RETURN;
    end if;
    LOOP
    next_record;
    << do your processing >>
    if :system.last_record = 'TRUE' then
    EXIT;
    end if;
    END LOOP;
    I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
    reports that they want to run. When they click on <NEXT> button, I create a multi-record
    control block and display each record on the second screen using
    go_block;
    clear_block;
    move data;
    create_record;
    The user then selects on the second canvas which reports to run now and which to run later via
    a LOV. When they press the <RUN> button, I want to start at the first record and either run the
    report or schedule it. Then I want to move onto the second and the third until all selected reports
    have been handled. I know I should use a loop but can't seem to make it work.
    So my question is, How do I loop through the records in a multi-record control block, pass the information
    for that one record to a parameter form and then execute the request? Each control block record contains
    10 parameter fields.
    Thanks.
    Bob

  • How do I find out the template that was used to create a new page?

    We inherited a website from a previous developer. It is in ASP. When
    we try to change say the background color of a page it says the page uses a template the changes we make will
    not be changed. There is a template folder but each of the templates in it give us
    the same message. There is also a New Templates folder but each of the templates there give us the same e
    rror message when we try to chang them.
    If I open say the home.asp page how can I tell what template was used to create the page?

    I tried to change the background color of all the include pages I found like header.asp, etc. None of the includes are the main template. Is there another way to find out that it is?
    Thanks alot.

  • How to exit Loop in the middle

    I have a requirement of exiting a loop in between, if a particular condition is satisfied. How do i achieve this in workflow? I thought of using 'Process Control' but it has no option to exit a loop from the middle....is there a way out?

    Hi,
    Loop runs until a condition is met.
    So to exit a loop you need to set a condition as false at a step and then it would exit.
    To do so, you can set a flag value in the loop processing. When ever the flag is initial keep on processing the loop and when you want the loop to exit, just set the value of the flag.
    Hope this helps!
    Regards,
    Saumya

  • JDev 10.1.3.4: How to properly loop through the rows of a VO?

    Hi,
    This is a newbie question. Using JDeveloper 10.1.3.4 I am trying to loop through the rows of a view object. I am sure that the VO returns the following rows in that order:
    200809
    200902
    200906If I use this code (where termsOpen is the VO instance):
    while (termsOpen.hasNext()) {
       System.out.println(termsOpen.getCurrentRow().getAttribute("Term"));
    }it proves to be an endless loop and I get "200809" printed on the console endlessly. The API says that hasNext() "does not move the current row". A book says that the pointer initially is at row 0. I wonder why it prints the first row. So the code is changed to:
    while (termsOpen.hasNext()) {
       Row currRow = termsOpen.next();
       System.out.println(currRow.getAttribute("Term"));
    }But now I get only the last two rows printed on the console, and do not get to see the first row:
    200902
    200906What's wrong?
    Thanks for helping!
    Newman

    Hi, Branislav,
    Thank you for the suggestion.
    I tried that also. When the code is
    while (termsOpen.hasNext()) {
       System.out.println(termsOpen.getCurrentRow().getAttribute("Term"));
       termsOpen.next();
    }I get only the first two rows and last row is dropped:
    200809
    200902To get all the three row, I end up using this code:
    System.out.println(termsOpen.first().getAttribute("Term"));
    while (termsOpen.hasNext()) {
       Row currRow = termsOpen.next();
       System.out.println(currRow.getAttribute("Term"));
    }But that shouldn't be the way of doing the work. If I use a block of 50 lines of code to process each row, the code will have to be written once before the while loop and another time inside the while loop.
    The book which says that the pointer starts at the row slot before the first row is found on the internet, on p.469. It makes sense to me that the pointer starts at row 0. But unfortunately the actual copy of JDev 10.1.3.4 I am using behaves otherwise.
    Newman

  • ABAP webdynpro how to give spacing between the UI Elements in a view

    Hi Expert,
    I am very new to webdynproapplication development. I am stuck in changing the look of the ui  elements of the view.
    Cud anyone explain  how  to set the spaces  between the  UI Elements on  a View is there any method ?
    I have set the Layout property  to Matrix layout. But here I am unable to set the spacing between the deffernet elements  as it is taking it automaticaaly  and I am not able to allign  all the  Elements.
    Need your help!.............thank you
    Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Apr 15, 2011 10:17 PM

    Hi anushree.,
    If u are using matrix layout:
    In Layout Data select MatrixHeadData to display UI in next line.,
    If u want to give space  between UI elements in the width enter 50, 60, 70 or what ever space u want.
    Also in the vGutter u can select medium ,  large ,  medium with rule  to give space between UI elements.
    n if u want to give space between lines  ., in the height enter 30 40 or whatever spacing between lines u want.,
    Matrix layout is a good layout., and u can play with colspan , hAlign, vAlign, vGutter, width and height options.,
    If u dont like the layout with these options then use Grid layout., where u can give custom spacing., with the help of Left Padding, Right Padding, Top Padding, Bottom Padding.
    reply if u need some more clarifications.,
    Thanks & Regards
    Kiran

  • How to give a checkbox the value "row number" (like [row selector])

    I like to define a checkbox with htmldb_item.checkbox and give the checkbox the value 'row number'.
    It has to be the row number as displayed. Therefore I cannot use rownum or row_number() because the htmldb sorting functionality change the sequence after the row numbers are given.
    How can I give the checkbox this value, or as alternative how can I get the current row (checkbox element) in javascript from the checkbox onclick event.

    Vikas,
    Thanks a lot.
    This works.
    I use this number also to construct javascript and I walk in problems which are also solved now.
    therefore for anyone else who also want to use '#ROWNUM#'. keep in mind that for the sql #ROWNUM# is just a string and should be treated as a string therefore use quotes around it. The #ROWNUM# string is translated after executing the query, when the page is constructed from the result of the query.
    Fred.

  • How to give input to the vi references

    I'm using vi server to call sub vis.Here by i attached the code.I want to pass one array control also ahile calling the vi.How to do that.
    Attachments:
    main1.vi ‏68 KB
    Horizontal_bar.vi ‏139 KB

    Thank u very much.
    --- Please don't call me "u". The word is "you".
    Whether can i use set control value in the case of call by reference node.
    When you CALL BY REFERENCE, you wire the terminals just as if you were calling it conventionally. Look in frame 2 of my demo.
    Also please clear me whether using run continously is an efficient mode or putting the login in a while loop.
    I have no idea about your "login", but "run continuously" is not a good idea for a finished program. It's intended for debugging, and testing subVIs, but not as a way of operating. For one thing you can't use it in a built application.
    If you need to coordinate several VIs, you need a global b
    oolean variable, called PROGRAM RUNNING" or something.
    Set it TRUE first thing, when the program starts, before you launch all the parallel VIs.
    Set it FALSE when the user clicks the QUIT button on the main panel.
    Each independent loop should check the value of this global and stop if it is TRUE.
    For making an exe file.which is the better way either making the exe of main appln or making exe of library which has alltogether all subvis."
    The library method is only useful if the library can be used by more than one main application. If you have one main application, then use the everything-in-one-file approach - it's easier on everybody.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How Do Give one Clip the same DISTORT properties as another clip?

    I have 30 graphics- all the same size- and I'm shrinking/distorting each of them to fit on a TV screen i the background - How do I give all 30 graphics the same properties, so I dont have to go in and copy and paste 10 different numbers in each box for each image?
    I've tried right click "copy" from the distorted graphic - then right click "paste properties" to the undistorted graphic - but it doesn't give me the same effect...
    anybody help me with this???

    the graphics were all the same size - i exported slides from a keynote presentation - each as a separate JPEG - I then took one and scaled it down and distorted it to fit the TV screen in the background - its the same requirements for each shot, as its a wide tripod shot - but when I paste it with "basic motion", "scale" and "distort" - its smaller and not in the right place - theres no other way around it?

  • How to give color to the display of keyfigure based on condition using exception.

    Dear Friends.
       I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
    What I am trying to do is :
       in Query designer :
       I have PO Quantity and Delivered Quantity. 
      if PO Qnantity > Delivered Quantity
        then Delivered Quantity field should be colored as "BAD3" in exception.
    but here proble is in exception
      I have alert level , operator, and  value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
    but for value field I dont have PO Quantity for that I have to supply one formula variable,
    When I created a forumula  and did this way
    FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
    Please help me How I can solve my problem
    I will greatly appreciate your any help.
    Thanking you
    Regards
    Naim

    Thank you so much for your replies,
      I did following way and it helped me to solve my issues.
      I created one formula and under formula I use boolean < funtion to compare the values.
    like following way.
    ( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
    here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
    Thanks again for your replies
    Regards
    Naim

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

Maybe you are looking for

  • Error exporting NUMBER RANGE DEFINITION

    Hello and HAPPY NEW YEAR,   I have made a Number Range Definition object but I cannot export it through the transport system, this what I can see in the transport system: S17K900461    Autonumbers for DPM Demand file          04.01.2007 2:49         

  • Revisit Old Color Problem: PDF export

    Hello, I found two archived threads about the same problem, but I don't see a real fix aside from a bootstrap.  In Keynote, when I "duplicate" a slide that has certain colors on it and then edit the copy, the exported to PDF has some of the colors ch

  • What pixel size for A5 on iPad 2?

    I need to make some A5 leaflet in Photoshop Touch on my iPad 2. I don't know what pixel size to use for A5. I was told 2480x1754 but this prints way too small on my printer. Any ideas?! Thanks.

  • Delay in Opening Menu in SBO!

    Dear All, I am facing a typical problem in my system, when I am opening any menu as manager login, all the the menus are opening properly. But when I switch the user then SBO is traking too much time for opening any menu even some time for adding A/R

  • Live recording with iPod?

    Hi - Someone I met boasted he could plug a stereo microphone (a Sony model, with a 1/8" plug) into his 60GB model (an older one, whichever generation had an 1/8" input) and with no hacking/wizardry/voodoo could record directly to the unit. 1) Was he