Query regarding templates in smartforms

Hi friends,
In my smartforms, I have used templates to display tabular data and i have defined line no. and column no. under text elements.Now, the data that is coming in the output is repetitive that is its not looping the table although i have used an external LOOP and defined my table and work area in it.
Could anybody help me in making the loop part work?
I will certainly reward points for the desired answer. 
Thanks & Regards,
Rishi

If you have already set the internal table and the work area, i believe, it just the proper sequence of the node that get something wrong.
Moreover, place the Loop node , the Program Line node and the template node inside the main window....
The template node must be under the Loop node. See below, the proper sequence....
MAIN window
      PROGRAM LINE NODE -->place your select statements here...
      LOOP NODE  --> on the data tab, define your Internal table and workarea
           TEMPLATE NODE --> place this node, under the loop node
                text node -->this is  the first column.      Place here the field names. ex.: &wa-fieldname1&
                text node -->this is  the second column  Place here the field names. ex.: &wa-fieldname2&
                text node -->this is  the third column      Place here the field names. ex.: &wa-fieldname3&
                text node -->this is  the fourth column    Place here the field names. ex.: &wa-fieldname4&
After which, run your form...
I hope it solves your problem. Rewards if useful...

Similar Messages

  • How to handle a phrase like a single word in a query rewrite template?

    Hi there,
    i would like to handle a case like this:
    "hewlett packard" printer
    I have a custom thesaurus where {hewlett packard} is a synonym of {hp}, and viceversa of course.
    Now, i can successfully find records like "hp printer" or "printer model hp 2575 "by issuing the following query:
    select * from sale_items
    where contains(item_name,
    'SYN(hewlett packard,cust_thes) AND printer')>0
    or its equivalent form containing curly braces:
    select * from sale_items
    where contains(item_name,
    'SYN({hewlett packard},cust_thes) AND printer')>0
    My problem is that i can't find a way of successfully passing the phrase "hewlett packard" as a single word in a query rewrite template like this one:
    select * from sale_items
    where contains(item_name,
    '<query>
    <textquery grammar="CONTEXT">{hewlett packard} printer
    <progression>
    <seq><rewrite>transform((TOKENS, "SYN(", ",cust_thes)", " AND "))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype="INTEGER" algorithm="COUNT"/>
    </query>')>0
    When i run this query i get no rows.
    The same happens if i substitute curly braces with double quotes.
    So, how to get phrases to be recognized in the query rewrite template?
    Bye,
    Flavio

    I am unable to find out a way to search on the particular phrase like I have a document containing the text
    “Oracle Text is a good searching tool.” Now if searches for the phrase “searching tool”, it doesn’t return any rows but if I search for “searching” and “tool” in 2 separate queries, it gives the document.
    If any one has done it before, please tell me the solution.
    I have used the following queries to create index on BLOB column:-
    CREATE INDEX doc_ indx ON doctest(document)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('lexer doc_lexer sync (on commit) ');
    select * from doc_test where contains(document, 'searching tool') > 0;
    select * from doc_test where contains(document,'searching') > 0;
    select * from doc_test where contains(document,'tool') > 0;
    Should I specify something while creating the indexes ?
    Regards
    Inderjeet

  • Horizontal Text In Template using Smartforms

    Hi Friendz,
    Im having a problem in Template using smartforms. Actually, I need a Header Caption for this with a format  :
    COMPANY      DEPT      BASIC
    so i created a text for this...
    but once i viewed the report ,the output display is in the format :
    COMPANY
    DEPT
    BASIC
    Kindly help me with my problem...output must be in a one line with 3 columns.
    What is the purpose of  append directly,new line and new paragraph in properties of Text.Is there any technik for this text?
    Thanks in advance
    aVaDuDz

    Hi,
    usually the proceddure is we have to divide the template into three parts
    now create three text elements
    and in each text give
    company
    dept
    basic
    now go to output options and
    in the bottom of it output structure will be there
    in that line 1
    column   1 for first one
    line 1 column2 for second one
    and try to give the styles form attributes
    output options tab
    style    zstyle
    i hope it works
    regards,
    venkatesh

  • How to Merge Cells in Template in Smartform??

    Hi,
        Can somebody pls tell me how to merge cells vertically in to single cell in a Template in Smartforms..
    Regards,
    Rushikesh

    Hi Rushikesh,
    SAP does not directly provide option of merging the cells intemplate...Check out following
    to do the needful.
    1. Double click on the template node and go to table painter.
    2. say you want to merge two cells C1 & C2
    3. Click on the pencil icon above table painter to get plus type cursor now click on
       any cell from C1 or C2. The cell turns black indicating the selction .
    4. Right click -> Delete -> Cell. C1 is deleted.
    5. Again click on the pencil icon to get back the arrow cursor.
    6. Now take pointer on the boundary of cell C2. You the icon changes indicating
        the cell boundary can adjusted as per req. Do the necessary adjustment .
    7. Save and activating.
    Hope this helps you...
    Enjoy SAP.
    Pankaj Singh..

  • What is a template in smartforms

    Hi,
    All,
    can anybody expalin me about the use of template in smartforms. with some detailed description and usage of it

    HI,
    Template in smartforms is static.
    for example when you want to give heading for your table output , you can use templates..
    MATNR  WERKS    -
    > this is a template
    1000       nl09        ---> this is a table.
    1001    nl09
    Both the Templates and Tables can be used for printing texts or application data in tabular format in Smartforms.
    Templates: Templates are used in layouts when the number of rows are known and fixed.
    Tables: Tables are used to print dynamic data, where the number of rows cannot be determined in advance.
    rewards if useful,
    regards,
    nazeer

  • Disable link of BEX 3.5 query web template

    Dear All,
    we migrated all BEX queries from 3.5 to 7.x. Since our users use the BEX queries via web template, most of then have the web template links of old 3.5 queries saved as bookmarks in their browser.
    Is there a way to disable this link server side, in order to force the user to update theyr link with the new one of BEX 7.x query web template?
    Thanks

    Hi,
    > You may delete all 3.X bookmarks. The standard 3.X bookmark administration can be found in transaction RUNSCHED.
    All below options mean, that you also cannot use the Broadcaster anymore !
    > You may deactivate service /sap/bw/BEx in SICF. Users will get an ICF error message (Service not found).
    > You may create your own handler on ICF service sap/bw/BEx, providing an appropriate message for users.
    > Your can create your own redirect/logon/error page on this service.
    > Another very drastic option would be to switch off service HTTP(S) in your ICM. In this case, no web applications are available via that service on the system anymore.
    regards,
    Martin

  • Printing data in Cell of Template in Smartform??

    Hello,
          Pls tell me how to print data in a particular Cell and Row of Template in smartform??
    Pl reply urgently...
    Regards,
    Rushikesh

    Hi ,
    You have to assign text node to that and cell,
    and in that node , click on output options tab.
    at the bottom you will find output structure options.
    There you assign line and column number of that perticular node,
    Regards,
    guru
    mark helpful answers

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Query/web template coming up blank in the portal

    Hi,
    I got one requirement saying that query/web template coming up blank in the portal.I have checked in portal it is blank.
    I don't have much knowledge about portal. I am not able to find this query name in the SAP gui(dev,q prod).can we publish the query with out creating in BEx .I don't understand can you please help me to resolve ths issue.
    Thanks
    Murali

    I don't know where to find the URL that the iView is pointing to...?Please guide me .
    Finally i came to know that the base query and one of the view is not populating the data in portal other views are populating the data.the views are created based on region(usa,europe..etc).I have executed this view and base query in BEx I am getting the error "internal error receiving from the bw serverfailed bw server raised exception:SYSTEM_ FAILURE. I think due to that the data is not populating in th portal. Please let me know how to resolve this issue.
    Thanks
    Murali

  • Create Columns in Template using Smartforms

    Hi Guyz,
    Im using Template in smartforms and create 2 or more columns..but the columns must be in horizontal order like this :
    COMPANY   DEPT   BASIC
    but the column appeared vertical like this :
    COMPANY
    DEPT
    BASIC
    Another question is what is the purpose of From & To, Reference column in Details/Table Painter
    Please give me some advice..what to do..
    Will Reward points to those who will reply and help my problem
    Thanks in advance..

    The column generally apperds vertical in the screen but in the output it will be displayed in horizontal order.
    you can check the use of From to, Reference column & Table painter by referring to below link
    http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    Reward points if helpful.

  • Query regarding Cluster nodes in CC

    Hi Experts,
    We have a query regarding the cluster nodes available in the CC monitoring.
    Can two nodes of a same channel can poll at the same time?
    Kindly suggest what should be done to make a specific cluster node of a CC polls at a particular time.
    Thanks
    Suganya.

    Hi,
    There is an answered thread on this
    Processing in  Multiple Cluster Nodes
    Regards,
    Manjusha

  • Query regarding G/LAccounts in psoting

    Hi Experts,
    I have one query regarding PCP0.
    After executing PCP0,If We double click on the posting document we can see the number of G/L accounts in that posting Document.If we double click on each G/L Account it shows all the revision information indetail for all payments cumulated into that particular G/L Account.
    Some of the G/L's are appearing as single line in the posting document and if we double click for the revision information it is showing all the Wagetypes with personnel numbers and the total of each wagetype.
    Some of the G/L's we can see Multiple times for each individual.
    Can any one please explain where does we set up the the revision information for the G/L Accounts .
    Appreciate If anyone can help to know this information.
    Thanks & Regards,
    Sandhya.

    Hi Gopal,
    Counting class are assigned to the Periodic work Schedule 1 to 9 are just arbitart sequence numbers and have no meaning in general they are used for linking Pweriodic Work schedules with differences.
    You can use the class for absence and attendance counting to specify different methods of counting according to the period work schedule.
    They have no other meaning apart from that.
    Thanks and Regards
    Swati

Maybe you are looking for

  • HOW TO CONNECT WITHOUT WIFI

    HOW DO CONNECT MY APPLE TV TO MY MODERN AS I HAVE ADSL CONNECTION AND NOT WIFI, IS THERE A CERTAIN CABLE I HAVE TO BUY OR GET MADE PLEASE HELP ASAP AS VERY KEEN TO WATCH MY TV SERIES ON A LARGER SCREEN INSTEAD OF MY MAC.

  • Podcasts not synching

    Hi all I have downloaded a couple of podcast videos from itunes store and get the following message: 'Some of the videos in your itunes library were not copied to the ipod "Pauls ipod" because they cannot be played on this ipod" I have checked all th

  • Dreamweaver and Website Tonight

    Does anyone know if you can utilize dreamweaver with Website Tonight from Godaddy.com. I would like to utilize this in my website http://www.besteworld.com; however, do not know if I can or not. Best e-World

  • My Airport card suddenly stopped working

    My hard drive crashed, so a friend replaced it for me. Works fine. But my airport card is another story. Sometimes I can connect, but only for a few moments before it loses the signal and can't find it again. Do you suppose it's possible the card got

  • Will my system allow me to make this upgrade?

    Ive got a Macbook 10.4.11.  Ive  got Intel core duo 2Ghz speed processor.  Im trying to upgrade from 10.4.11 to 10. 6.  My bus speed is 667 mhz.  will work or no?