How to use loop inside table in smart form

Hi All
i have to use page break at the end of each pernr. i got table in smart form and print cells on event on sort begin. it is working ok . i have an other itab in  as well .which i want to the same page with respect to the pernr no.
but the problem is as i loop the 2nd itab. it prints all the record what it has.
e.g  i have two pernr 54 and 55.
the records of itab1 prints on page1 and page 2 properly. now i loop at itab2 it also have relevent records of above said pernrs. but i m unable to control those pernrs and loop print all the records on both pages.
if u get some thing out of it kindly help me
Regards
ammad

hi,
Place the second loop ie. itab2 inside the first loop of itab1.  And in the conditions tab of looping itab2 give the condition for checking the pernr.
try to implement this logic.
loop itab
  at new pernr
    new-page
  endat.
    loop at itab2 where pernr eq itab-pernr.
   endloop.
endloop.
revert back for further queries.
regards
Rajitha.

Similar Messages

  • How to use protect and endprotect in smart form

    hi to all experts,
                        im still begineer in smart form , i have two headings like
    company_code:              purchase doc no:
    after this i have a table to be displayed with four columns
    what i want is the whole data should not be split by a page break
    i know this can be achieved by using protect and end protect in sap scripts how to implement in smart form

    probably u have the table inside a loop or a folder or something....
    see this
    Page protection attribute
    Switch for page protection.
    Use
    Page protection switch.
    In some cases you may want to avoid that text is divided by a page break. Therefore, you can protect text sections with a page protection.
    Page protection can extend to
    a paragraph
    a text node
    all output within a folder, for example, several text nodes combined in this folder.
    a line type (table node)
    If on the current page there is not enough space left for the protected text, it is displayed entirely on the next page.
    So u can page protect a line in table...
    in the table node..goto tables tab and click the details tab-->select the line type and check the 'no page break'
    check box

  • How to use Multiple Logos in One Smart Form?

    All,
    I have a client where they will have 2 logos for, e.g. "Invoicing" and want the form to decide which logo to print (based on plant code).
    We are using Smartforms.
    They want to use one form and based on the plant code - the form should determine which logo to print in the upper left corner of the invoice - how do you do this?
    This is not like having text to print on the form in the same place - my understanding is the logo is NOT some variable you can "clear" in the program and then use the logo you wish to show up on the printout.
    Does this have something to do with using multiple layouts within the same form?  You define a layout for each logo and then within the Smartform logic determine which layout to print?  And if that is true - does someone have sample code of how they determined which layout to use?
    Thanks - and as always - points rewarded where helpfull!
    Scott

    Hi Scott,
    Create two Graphics in Smartform window & place them wherver you want in the smart form.
    Now in Graphics node, you can find  'Conditions' tab, under this you can give the conditions.
    Hope this clue wil help you
    Regards,
    Sujatha

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • How to use own created STYLE at SMART FORM

    Hi all,
    i am making a smart forms in which i want to use my own created STYLE even tough i already copied my style from the existing one and activate it it but when i m going to use it at SMART FROM,it give me  SMART FROM default style.i can't understand what is the issue and why it is not showing in smart form even i have already activate it.
    Thanks & Regards,
    sappk25

    Thanks every body,i have resolved it by my own self.
    Thanks & Regards,
    sappk25

  • How to use a check box in smart forms????

    Hi All,
    Pls let me know how to use check boxes in smartforms.....??
    there are check boxe available which are crossed (i.e,, selected checkboxes) in the smartforms..
    But i need a checkbox which are not selected.( i.e.., which are not crossed).
    Its really urgent...
    Quick responses are highly appreciable..
    Bye

    Refer this thread
    Re: how to display symbols in smartforms
    We can create symbols in smartforms. For this, change the editor to text editor and then goto insert->characters->SAP Symbols and select the symbol you want.
    You cannot see the symbols in print preview, it'll appear only on a hard copy.
    You can also create as Text Element. In the left side of the right window,you can see a icon called Editor.Click it.
    Then in the Menu,
    go to->Change Editor
    Then in the menu,
    Insert->Characters->Displayable characters,select the character you want.Otherwise,if you want to insert SAP Icon,select that option instead of Displayable Character.

  • How to use loop inside mx:webservice tag

    Hi to all,
    I'm using some webservices. i just want to pass XMLChildren
    to the request element of webservice tag.
    for that,
    <mx:WebService id="WES3" destination="applicantws"
    useProxy="true" fault="Alert.show(event.fault.faultString) ,
    'Error'" >
    <mx:operation name="ZhrFunApplicantCreate"
    result="onResult2(event)" resultFormat="e4x" >
    <mx:request>
    <education>
    { samplexml.children() }
    </education>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    but the problem is samplexml contains many children when i
    embed that samplexml inside websrvice it is taking only the
    firstchild of that samplexml.so i need to loop through the
    samplexml inorder to fetch & bind all the childs of that
    samplexml.
    How do i do that??
    can anyone please please please bring me the solution...
    Thanks in advance..
    regards,
    Thenmalar. v

    Hi,
    You can achieve this by UDF,
    inputs are E1IDB02 BA-FIIKWAER,E1EDKA1 BE-NAME1
    yes then suggest MIDE(E1EDKA1 BE - STRAS,1,35)
    IF E1IDB02 BA-FIIKWAER = CNY
    then MID(E1EDKA1 BE-NAME1,12,11)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)<=35
    then MID(E1EDKA1 BE-STRAS,1,35)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)>35
    then MID(E1EDKA1 BE-NAME1,36,35)
    Regards
    Chilla

  • HOW TO USE LOOP INSIDE A Button.add_Click()

    this is the code This do the work at one time only . I WANT  TO DO ONE ONE Kindly Help me
    $btn.Add_Click({
    #########NGM############
    If (Test-Connection 192.168.35.9 -Quiet -Count 3)
    $btn1.Backcolor="GREEN"
    else
    {$btn1.Backcolor="RED"} 
    ###########KPK############
    If (Test-Connection 192.168.35.249 -Quiet -Count 1)
    $btn2.Backcolor="GREEN"
    else
    {$btn2.Backcolor="RED"}
    #########ANN##########
    If (Test-Connection 192.168.35.201 -Quiet -Count 1)
    $btn3.Backcolor="GREEN"
    else
    {$btn3.Backcolor="RED"}
    ###########ANR#############
    If (Test-Connection 192.168.35.241 -Quiet -Count 1)
    $btn4.Backcolor="GREEN"
    else
    {$btn4.Backcolor="RED"}
    ##############VBM################
    If (Test-Connection 192.168.35.242 -Quiet -Count 1)
    $btn5.Backcolor="GREEN"
    else
    {$btn5.Backcolor="RED"}
    ###############KKN############
    If (Test-Connection 192.168.35.243 -Quiet -Count 1)
    $btn6.Backcolor="GREEN"
    else
    {$btn6.Backcolor="RED"}
    ############POR################
    If (Test-Connection 192.168.35.206 -Quiet -Count 1)
    $btn7.Backcolor="GREEN"
    else
    {$btn7.Backcolor="RED"}
    #############NGN##############
    If (Test-Connection 192.168.35.207 -Quiet -Count 1)
    $btn8.Backcolor="GREEN"
    else
    {$btn8.Backcolor="RED"}
    ###########VEL################
    If (Test-Connection 192.168.35.207 -Quiet -Count 1)
    $btn9.Backcolor="GREEN"
    else
    {$btn9.Backcolor="RED"}
    ##############ADY#############
    If (Test-Connection 192.168.35.176 -Quiet -Count 1)
    $btn10.Backcolor="GREEN"
    else
    {$btn10.Backcolor="RED"}
    #########APT#################
    If (Test-Connection 192.168.35.218 -Quiet -Count 1)
    $btn11.Backcolor="GREEN"
    else
    {$btn11.Backcolor="RED"}
    ##########MYL#################
    If (Test-Connection 192.168.35.217 -Quiet -Count 1)
    $btn12.Backcolor="GREEN"
    else
    {$btn12.Backcolor="RED"}

    Just for clarification, you want to click this button and have this event run continuously rather than just the 1 time it happens? If that is the case, then you can just use a While statement:
    While ($True) {
    #Do Stuff
    If you wanted to stop this action, you would need something else instead to stop the action (not tested but might work):
    $btn.Add_Click({
    If ([bool]$Script:Run) {
    $Script:Run = $False
    } Else {
    $Script:Run = $True
    While ($Script:Run) {
    #Do Stuff
    The other issue is that this is happening on the UI thread and will probably cause some performance issues (UI lockup) so you may want to look at some sort of multithreading to take the load off of the UI.
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How to create a table in smart form.

    Hi Folks,
    I need to create a table in  smart form with the following fields:-
    vbrp-arktx,vbrp-fkimg,komv-kbetr,komv-kwert.
    Please let me know how to create a table and how to name the columns,size,and the select query for the same.
    All answers will be duly rewarded.
    K.Kiran.

    Hi,
    Following Links gives Details of Smartforms and how to create tables -
    smartforms - very useful link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    FAQ
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Siddhi

  • How to use LOOP(Until) step in a Workflow

    Hi,
    How to use LOOP(Until) step in a Workflow?
    What are the steps involved in using the step LOOP(Until).

    Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
    You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
    What exactly is it you are having trouble understanding about the use of it?

  • How to add empty rows in table in smart form

    how to add empty rows in table in smart form?
    plz help me regarding this
    send me ur queries to [email protected]

    You will need to add some extra rows to the internal table that your table is displaying.  Use a program node to append additional rows with a key but no argument.
    Alternaively a template may me more suitable for your requirement than a table.
    Finally, please do not include you e-mail address in your question.  Your question and the answers provided to it are for the benefit of everyone in the Community.
    Regards,
    Nick

  • How to use a Sybase table in Oracle SQL statement?

    How to use a Sybase table in Oracle SQL statement?
    Sybase version : 11.9.2.4
    Oracle version : 10.2.05
    Thanks.

    user12088323 wrote:
    How to use a Sybase table in Oracle SQL statement?
    Sybase version : 11.9.2.4
    Oracle version : 10.2.05
    Thanks.Any Oracle client connected to the Oracle database can access Sybase data through the <font style="background-color: #FFFFCC">Database Gateway for Sybase</font> (it requires an additional license) or the <font style="background-color: #FFFFCC">Database gateway for ODBC</font> (it's free).
    The Oracle client and the Oracle database can reside on different machines. The gateway accepts connections only from the Oracle database.
    A connection to the gateway is established through a database link when it is first used in an Oracle session. In this context, a connection refers to the connection between the Oracle database and the gateway. The connection remains established until the Oracle session ends. Another session or user can access the same database link and get a distinct connection to the gateway and Sybase database.
    Database links are active for the duration of a gateway session. If you want to close a database link during a session, you can do so with the ALTER SESSION statement.
    To access the Sybase server, you must create a <font style="background-color: #FFFFCC">database link</font>. A public database link is the most common of database links.
    SQL> CREATE PUBLIC DATABASE LINK dblink CONNECT TO
    2  "user" IDENTIFIED BY "password" USING 'tns_name_entry';
    --dblink is the complete database link name.
    --tns_name_entry specifies the Oracle Net connect descriptor specified in the tnsnames.ora file that identifies the gatewayAfter the database link is created you can verify the connection to the Sybase database, as follows:
    SQL> SELECT * FROM DUAL@dblink;
    Configuring Oracle Database Gateway for Sybase
    <font style="background-color: #FFFFCC">{message:id=10649126}</font>

  • How to use a SAP table in Validation Look Up

    Hi Experts,
    I my job for every record in the input data set I need to check for the value of the data set column in the SAP table.
    I am using a validation transform and am using the "Exists in Table" option, where I am specifying the column in the SAP table to look up.
    It is giving me an error BODI-1112468 saying that SAP table cannot be used in Validation Look up.
    Please suggest any other way to resolve it.
    Thanks in advance.

    user12088323 wrote:
    How to use a Sybase table in Oracle SQL statement?
    Sybase version : 11.9.2.4
    Oracle version : 10.2.05
    Thanks.Any Oracle client connected to the Oracle database can access Sybase data through the <font style="background-color: #FFFFCC">Database Gateway for Sybase</font> (it requires an additional license) or the <font style="background-color: #FFFFCC">Database gateway for ODBC</font> (it's free).
    The Oracle client and the Oracle database can reside on different machines. The gateway accepts connections only from the Oracle database.
    A connection to the gateway is established through a database link when it is first used in an Oracle session. In this context, a connection refers to the connection between the Oracle database and the gateway. The connection remains established until the Oracle session ends. Another session or user can access the same database link and get a distinct connection to the gateway and Sybase database.
    Database links are active for the duration of a gateway session. If you want to close a database link during a session, you can do so with the ALTER SESSION statement.
    To access the Sybase server, you must create a <font style="background-color: #FFFFCC">database link</font>. A public database link is the most common of database links.
    SQL> CREATE PUBLIC DATABASE LINK dblink CONNECT TO
    2  "user" IDENTIFIED BY "password" USING 'tns_name_entry';
    --dblink is the complete database link name.
    --tns_name_entry specifies the Oracle Net connect descriptor specified in the tnsnames.ora file that identifies the gatewayAfter the database link is created you can verify the connection to the Sybase database, as follows:
    SQL> SELECT * FROM DUAL@dblink;
    Configuring Oracle Database Gateway for Sybase
    <font style="background-color: #FFFFCC">{message:id=10649126}</font>

  • Dynamic Table in SMART FORMS

    Dear,
    I just want to pass dynamic internal table to smart form which i have created in print program.How it is possible and i am also using border for field in layout.
    Anuj Modi

    Hi Anuj Modi,
    Smart forms are not really dynamic (except if you are talking about the number of lines), could you please explain what rendering you want to achieve exactly?
    Sandra

  • Table in smart form

    hi abapers
    i have one small doubts
    is it necessary to maintain an internal table in data tab of tables(in smart forms). it doesnot give error in activation but give dump while running.
    pls clarify
    madhu

    hi,
    the Table Node is provided in the smartfrom to print thadata in the Internal table. without tabel it is no use to create a table node.. as in the above post while the activation may be  u won't get the error..
    if you want a loop without a table in ur layout then go for LOOP node.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

Maybe you are looking for

  • Easiest and/or best methods for generating XML output (not with a report)

    Hi, several of our EBS customers (11.5.10) are converting their PDF reports to use XML/BI publisher to produce output. The data stream comes from a report that generates the XML output, and then the XML template is applied. This works great ... no pr

  • Creating subcontroller in application class function

    i am using a certain subcontroller quite frequenly in my BSP-app. I wrote this function to craete the subcontroller: method create_sc.   data lorv_subcontroller type ref to zcl_bla.   lorv_subcontroller ?= create_controller( controller_name = 'bla.do

  • WWW Location of the Novell Client for XP supporting IP Gateway Services

    When connecting Windows XP workstations to the SBS 6.0 server through the Novell Client 4.9SP1a for Windows XP, there are no services within 4.9 for IP Gateway included. As many of you know, by using BorderManager as the Firewall/NAT/IP/IPX Gateway t

  • New Install Contribute 4 won't run

    I am doing some work from home for my boss. She gave me her version of Contribute 4 to use so that I can update our website whenever I have the time. I have tried 2 times to install the software and run it. Both times, the installation wizard told me

  • Photo carries unwanted gray edge

    Hi,   I'm on CS3 and I know this might be simple but here it is. I did a layer Mask over a photo to brush a soft white edges around it to make a feathering effect. I know I could do feathering more directly, but the layer masking method seems to offe