How to create a 'At New' like statement in smartforms...

Hello Experts,
IN my smartform, I created a table in my main window that displays
records in spfli namely countryfr, cityfrom, countryto and cityto. Now,
I sorted it by countryfr in ascending order. What I want is that when a
new country is detected it will create a horizontal line(seperator) before
the new countryfr is printed. Any help would be greatly appreciated and rewarded.
Thank you guys and take care!
Example:
Country From:
America
America
America
   <--draw underline for seperator
Bahrain
Bahrain

hi
for u r info...
in the table
DATA tab u will find sort criteria..
SAP Smart Forms: General flag
Use
Within a loop for data retrieval, the entries of an internal table can be sorted either in ascending or in descending order.
In addition, you can determine particular events for control group processing by marking the relevant checkboxes. Control groups within an internal table indicate that adjacent table lines can be divided into groups according to the contents of certain fields. The division into groups in an internal table statically depends on the sequence of the fields in the table control. The first field determines the top control group in the hierarchy, and so on. At a control break an event for form printing is triggered.
Smart Forms knows two different events at a control break: at the beginning of a sort term (AT NEW) and at the end of a sort term (AT END). As soon as you mark a sort term, the system dynamically creates an event node in the tree structure of the form; if you unmark it, the event node is deleted. The event nodes "at sort begin" and "at sort end" of a table field appear in pairs in the tree. You can add subnodes to the event nodes, for example, text nodes to display headings or subtotals at a control break.
Dependencies
The control break in Smart Forms, which is executed using events, does not correspond to the control break processing in ABAP, which uses special control structures (see also: AT command: Control break at internal tables).
See also: The Data Tab

Similar Messages

  • How to create a tree structure,like I want to create Bill/Payment Tree

    How to create a tree structure , like I want to create a Bill/Payment Tree containing a single node for all A/R related activities for a specific bill period, in reverse chronological order. Basically the tree should look like
    + Bill - Date: 03-17-2010 Complete
    +++++ CR Note - Date: 05-04-2010 Complete
    ++++++++++ Pay - Date: 05-04-2010 Frozen
    + Bill - Date: 03-17-2010 Complete
    +++++ Pay - Date: 05-04-2010 Frozen
    And finally this should be attached as tab on the control central

    The FTree package provides functions to populate the tree - look for the topic "Manipulating a hierarchical tree at runtime
    " in the online help this point to all the functions and triggers

  • How to create a HTML page like iView, thanks in advance!

    How to create a HTML page like iView, thanks in advance!
    I'm a newcomer, would you please tell me how to create a HTML page in WebDynpro ? In fact, i want create one welcome page which use html format and include some javascript.
    thanks again.

    jakinapallykrishna , thank you very much for you reply.
    The pdf file is a simple application, but i want know how create a view in HTML format (<HTML>... </HTML>), maybe use HTMLB control, i don't sure it.
    In fact, I need create a view in portal, some pictures in it, once mouse over one picture, it need change another picture replace old one. I don't know how to do it, just know it can be handled in HTML page. So, i need help.
    Thanks.

  • How to create a DVD menu like an animated Flash Menu?

    Hello.  I'm trying to figure out how to create an animated menu in Encore for a DVD, much like how menus are that are created in flash.  How can I create one in Encore for a DVD menu?  Thanks.

    Use After Effects:
    Adobe Encore * Using After Effects to enhance menus
    http://help.adobe.com/en_US/encore/cs/using/WSA5513911-0AD1-440c-BDAD-2E0E806B425E.html

  • How to create clipping paths shape like a slice of a circle?

    I want to make a DVD label by dividing the circle into 8 equal slices (like cutting a pie 4 times). In each slice I will put an actor's photo in it.
    I think I need to create 8 layers to house the 8 slices of photo, each layer gets a clipping path that is in the shape of a 45 degree slice of the circle. Once I have this setup I can paste photos into the layers and adjust the photos until it looks good in the confine of each slice.
    The question is how to create these clipping paths in the shape of a slice of the pie? I have already drawn a 120mm circle (using the elipse path tool) denoting the outside boundary of the dvd label. But I don't know how to cut it into 8 precise slices of 45 degree each. Help?

    Here's another way:
    Make a circle and a square that covers one quadrant of the circle. Select the square with the Path Selection Tool. Edit > Free Transform, using the reference point that corresponds to the center of the circle, and 90 minus the angle of the slice into the Horizontal Skew field. Hint: you can copy the results from the Windows Calculator and paste them directly into Photoshop for this. This will give you greater precision that you might care to enter by hand.
    Once you have committed the transform, select 'Intersect shape areas' in the option bar for the Path Selection Tool, and click Combine. There's your slice.

  • How to create a user new user status as closed for aWBS element

    Hi,
    Can any one explain me the process of how to create a new user status '' Closed'' for the WBS element which when trying to close has error and are not able to close. So can we create a new status inroder to close the WBs element
    Thanks nd Regards
    Sri

    Hello Srihari,
    Use OK02 transaction to create a status profile. You can create a new user status in the status profile.
    If you already have a status profile which is maintained in the master data, then you can create a new user status as closed to that status profile.
    Hope this will help you..
    Regards,
    Praisty

  • How to create service for new database

    i am working on 8i.i want to create new database instead of existing for which first service have to create.i had created parameter file and perform changes,now with oradim i am trying to create service but it is giving incorrect version bcaz i have win2000 and oradim works with winnt only.

    Goodfire wrote:
    I want after creation of a custom database to execute a script that will create a Network Service without having to go through the UI
    Its just adding those 5 lines at tsnames.ora on the client dir
    How can I do i through a script?
    So I can plant it after Create DB script and have both in 1 step.
    P.S.
    The most obvious keywords on main SE don't return something for this so it worths adding it
    keywords : how to create client network service from script oracleWrong approach.
    Better: create database template and execute dbca in silent mode.
    Also execute netca in silent mode as Harrison suggest.
    PS: Adding the 5 lines to tnsnames.ora does not create a network service, first you have to set the "service_names" init parameter and the listener will create the service when the database starts (simplified explanation).
    :p

  • How to Create and Define New faults to be used inside our BPEL Process

    Hi All,
    I have created a new BPEL process but unable to add fault handling messages which I'm unable to do because I'm not having any
    experience in creating my own custom fault or runtime faults.
    Can anybody can share any URLS of how to create and where to define these things in BPEL Process.
    Expecting a reply from ASAP. very urgent for me.
    Regards,
    CH

    Hi Arik,
    I opening in JDeveloper 11.1.1.2 but it is asking for migrations but not all migrating and unable to see the project.
    By seeing at the logs it is saying that upgrade failed.
    Please can you share any other URL other than this.
    Regards,
    CH

  • Lipstick font type or how to create lipstick font type like in this image

    looking to create a font type like this. Any suggestions how?
    Thanks

    Nothing will look as good as doing it by hand, so unless there were a lot of text, I'd do it that way.
    Here's a nice font in that vein, though:
    https://www.myfonts.com/fonts/mvbfonts/sacre-bleu/
    You could even try... cough... Mistral, but it will probably end up looking something of an 80s pastiche.

  • How to create/add my new solution/project to Source Control at VS Online?

    Hi, I'm using VS2012.  I'm logged into VS online and can open the Team Explorer in VS2012. The frustrating thing is how do I add a new solution to source control?  I click on the Solution Explorer, Right click on the solution, Select "Add
    solution to Source Control".  The a pop up dialog shows up with 3 of my Solution/projects that are there.  
    The problem is i don't want to put this new solution under any of the 3 solutions currently in Source Control in VS Online.  I want this to be a new solution/project to be saved in the source control form the root.  If I click on the Advanced button,
    edit the "Source Control Folder" path to "$/MyNewSolutionName", I then get an error message saying root folder is reserved only for team project.  How can I get a new solution/project to the source control?  I've done it before
    but it seemed to have changed.
    Okay, In Source Control Explorer, I select the root, xxxx.visualstudio.com\DefaultCollection.  I then select VS "File" menu and in the drop down I selected "New" and then "Team Project".  It takes me to a browser and
    lands at VS online.  I then type in the new team project name.  Everything is good so far.  I now returns to my VS on my local PC, I right click either the solution or the project in that solution, select "Add solution to Source Control".
     The "Add Solution... " dialog then pops up.  I selected newly created Team Project, leave everything else in default and select OK and now I get a different error message saying "Fail to create mapping, cannot map server path, $/TeamProject/projectname,
    becuase it is not rooted beneath a team project. 
    How can I fix this and just get my source into the source  control?  Thank you.
    Thank you.
    Thank you

    Assuming you map to yoursite.visualsualstudio.com/defaultcollection you will need to create a team project to upload your stuff. If you are trying to save to $/ that is team project collection level and you can only add team projects at that point.
    you can add a new team project with the below picture
    Then depending on how you have set up your workspace, and assuming locally that you are in the local workspace you can upload your project.

  • How to create console for new domain

    I created new domain according to the steps given under creating new domain in
    documentation of 6.1, Can any one help me how to get console activated for this
    new domain .At present it is not able to get the console for this domain even
    though in log files it shows console.war is deployed.
    Thanks in Advence

    Please follow the exact steps given in the following document to create a new
    Domain:
    http://e-docs.bea.com/wls/docs61/////adminguide/overview.html#1031797
    Also, if you have done so, please check if a directory called .wlstaging is created
    in the new domain directory that is created. This directory has the console.war
    file.
    This is automatically created by the WLS when creating a new domain.
    hope this helps.
    thanks,
    Mihir
    surendra wrote:
    I created new domain according to the steps given under creating new domain in
    documentation of 6.1, Can any one help me how to get console activated for this
    new domain .At present it is not able to get the console for this domain even
    though in log files it shows console.war is deployed.
    Thanks in Advence

  • How to create a single view like report ?

    Hello,
    basic task is to present a user with 2 versions of the record from the DB. User then will decide either to "approve" the newer version or disregard the changes.
    I'm thinking of presenting these rows in a 2 single view report forms.
    how do i create this type of report ?
    Thank you
    Andrew

    Andrew:
    You can create the report query as
    select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
    from table tab where record_id=<record id of old record>
    UNION
    select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
    from table tab where record_id=<record id of new record>You then add a 'Submit' button and a post-submit process to update the database based on the user's selection. The user's selection will be available in the 'f01' array.
    Varad

  • How to create a repeating region like the attachements in Gmail

    I don't even know how to begin Googling or searching here for
    this topic. But I've got a form and I want to have two fields show
    up for inputting the fabric type and then the pattern name. This
    site will allow them to request fabric swatches to see in person
    how they look and make a decision for their furniture. And if
    customers want to ask for more than one sample, I want to be able
    to have a link that says, "Request another" and when clicked, it
    creates another instance of those two fields automagically, just
    how the attachments in Gmail work.
    Is this something possible with Spry? I'd like to think it
    is, but it might need some jury rigging to ensure that the ids for
    those text inputs are all unique and such. But like I said, I don't
    even know how to begin searching for this topic since "repeating
    area" or "repeating region" brings back 1000s of unrelating
    results.
    Anyone have any experience doing something like this and
    could shed some light on it and/or point me toward some resources
    that could help out?
    Thanks!

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

  • How to create formulas in an SQL statement

    Hello,
    I am trying to create a formula in an sql statement without creating a external function.
    Here is my example :
    select (x + y) as a,
    (x + y) + 2
    from dual
    As you can see the formula “(X + Y)” is repeated.
    I would be glad to write a select statement like that :
    select (x + y) as a,
    a + 2
    from dual
    any ideas?
    Thanks

    I have a nasty feeling there is in XQuery expressions, but I'm not going there. ;-)
    michaels>  WITH t AS
         (SELECT 1 ID, 1 x, 2 y FROM DUAL UNION ALL
          SELECT 2,    3,   4   FROM DUAL UNION ALL
          SELECT 3,    5,   6   FROM DUAL)
    SELECT   *
        FROM XMLTable('declare function local:a($a,$b)
                         ($a + $b)
                       }; (: eof :)
                       for $i in /ROWSET/ROW
                       return <ROW>
                              <ID>{$i/ID}</ID>
                              <X>{$i/X}</X>
                              <Y>{$i/Y}</Y>
                              <A>{local:a($i/X,$i/Y)}</A>
                              <B>{local:a($i/X,$i/Y) + 2}</B>
                              </ROW>' PASSING XMLTYPE(CURSOR(SELECT * FROM t))
                       COLUMNS ID NUMBER PATH 'ID',
                                X NUMBER PATH 'X',
                                Y NUMBER PATH 'Y',
                                A NUMBER PATH 'A',
                                B NUMBER PATH 'B'
            ID          X          Y          A          B
             1          1          2          3          5
             2          3          4          7          9
             3          5          6         11         13

  • How to create a service partition like the original from lenovo

    hey their, i have installed windows 7 on my x200. afore i have cleaned up all partiton incl. the service partition. now my question: how can i create a service partiton with the same behaviors like the original one (access the partition via the thinkvantage button and so on). i hope, someone can help me.

    You need a set of recovery disks to re-create the partition.
    If you haven't burned them when you first got the machine, they can be purchased directly from Lenovo or other online sources.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

Maybe you are looking for