Dynamic formating in smartforms

I'm just curious if there is a possible to create a dynamic formatting in Smartforms. What I mean saying dynamic? Lets imaging that I've a strucure where I've following information;
LINE_NUMBER
TEXT
This structure is used to build a table, where I can assign one or more text to one line.
So my example data in this table will be:
LINE_NUMBER | TEXT
1 | my first item
1 | first item description
1 | some other text
2 | second item
2 | second item extended name
2 | second item additional text
2 | second item summary text
and so one...
So I can have varying texts number assigned into one line (max 8).
Now I want to use paragraph, with 8 prepared tabs.
Now the problem comes, how to pass this texts into tableline inside smartform and do not prepare separate lines for 1,2,3... elements?
Any idea? It is possible to prepare data in variable which looks like:
1,,my first item,,first item description,,some other text
and display this data in such way, that commas will be recognized as tabs formatting in paragraph instead displaying them?

hi..try this...
create table->create a line type as required.
loop at itab containing ur data.
in the main area of the table create a row:
right click on main area->table line
in the output options of the row assign the line type from the drop down. in the condition of the row give the condition wa-LINE_NUMBER = 1.
similarly create other rows(table lines) giving the conditions 1 to 8.
that is you will have 8 table lines with conditions:
row1 condition -> wa-LINE_NUMBER = 1
row2 condition -> wa-LINE_NUMBER = 2
row3 condition -> wa-LINE_NUMBER = 3
row8 condition -> wa-LINE_NUMBER = 8
so if line_number = 1 then row 1 will be use..
if its 8 then row 8 will be used......
inside the rows u can use different text elements with different para formats...

Similar Messages

  • Dynamic character format in SMARTFORMS

    Dear Gurus,
    I want to make a dynamic character format in smartforms. I did it in SAPscript and success.
    what I did in program before passing to smartform :
    d_note = '<XX> dynamic text </>'
    and pass it to SAPscript and smartforms :
    &d_note&
    in SAPscript I made new character format XX as BOLD and UNDERLINED. it works for SAPscript. the output become  = dynamic txt
    unfortunately when I do this in smartforms, it is a fail although I have set new character format XX as bold and underline in smartstyles. the output become = <XX> dynamic text </>
    any guru has a solution for this smartform?

    Hi Sendy,
    You cant use tags (eg- <XX>) in smartfomrs like you did in sap scripts. Use your style in the smartform( form attributes) with all character formats and paragraph formats which you need. When you create a new text module in the smartform you will get two drop down lists for the paragraph formats and character formats in the top of the editor. Type your text there and highlight then choose 'XX'(or any other character format) character format from the drop down list.
    Hope this would help.
    Cheers,
    Jeewana

  • How to display dynamic signature in Smartforms?

    Hi,
    Someone could help me in displaying dynamic signatures in SmartForms?. The signature is an attached file to the document. I already have the binary file but I don't know how to display this as an image in the Smartforms.
    Thanks in advance,
    Oliver
    Message was edited by: Oliver Vera
    Message was edited by: Oliver Vera

    Please give me the reply.
    I have an image content in one internal table.I want to display that image in the smartforms.
    plaese please.

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

  • How to create paragraph format in smartforms

    Hi All,
    Let me know how to create paragraph format in smartforms?
    Thanks&Regards
    Mahesh

    Hi
    When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
    In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
    Open transaction <b>smartstyles</b>.
    Create a new style.
    Upon creating a new style you will see 3 folder structures under style name.
    1. Header data
    2. Paragraph format
    3. Character format
    To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
    Indents and spacing
    Fonts
    Tabs
    Numbering and outline
    Here you can provide the look you want.
    Now add this smartstyle in your smartform's form attribute.
    You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
    Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
    Any more questions you can ask me directly mailing me.
    Please do reward points if satisfied.

  • Whats mean by multiple page formats in smartform?

    Hi! 
      Can u pls tell me whats mean by multiple page formats in smartform?
       Thanks
        Imran.

    Hi Imran,
    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    go with tcode:smartforms,specify some name and go with create.place the cursor on 'Pages and windows' folder.on right side we will have option page format:go with f4 .u will find many page formats.
    Reward points if helpful.
    Regards,
    Omkar.

  • Issue in populating dynamic values in smartform

    Hi Experts,
    I am facing some serious alignment issue while populating dynamic values in smartform.
    Through table, I am populating  dynamic values in smart form. If my internal table contains 20 records , first 10 records are populating in first page and remaining records are populating in next page properly. But here issue is whenever that first 10 records are populated in first page system automatically leaves empty row at the end of page. Ideally it should not happen. please tell me how to solve this issue.
    thanks
    Karthik

    Hi,
    I was wondering how are the bold lines output, if you only have one line type... is the Table node executed multiple times under the loop node, where the bold text is implemented as separate text node..? It should IMO actually not affect the output of the table in any negative way if it's done so - just curious
    With the "protect" I meant this baby:
    You could also try to download and attach only the (upper) node involved in the output of table instead of whole form, if there is something in the form that should not be seen publicly...
    cheers
    Janis

  • Dynamic formatting of Process Success Message

    I have read through some of the threads that have already been raised re dynamic formatting of the process message and haven't seen how/if I can do what I would like.
    I have a form with multiple process buttons which call a package and return an error code and message.
    I then wrote a function to take the error code and message and a couple of other fields to format an appropriate response.
    The process may return successfully but still have the error codes set (or may be null). I did note that could raise_application_error but would still have to go through some process to format the response.
    But when I use the function as the response message it is just treated as a text string.
    So for example I get
    Action Processed.nva_batch_validate.format_response( 'VALIDATE', VALID, , );
    rather than
    Action Processed - Validation Successful
    or
    Action Processed.nva_batch_validate.format_response( 'SUBMIT', 'APPROVED','-20004' , ' Some error with submission' );
    rather than
    Action Processed - Submit failed Some error with submission
    How can I get the Process Success Message to recognize that this is a function not text?
    Or can I have another process which just uses my format_response that would put message into the Action Processed.
    I don't want to have to go done the raise_application_error as I'd have to format the response within each procedure that is called and who knows what other issues this would raise.

    anonymous - Create an item, say P1_MSG and set its value in your page process, after your API calls, like :P1_MSG := Action Processed.nva_batch_validate.format_response( 'VALIDATE', VALID, , );
    Then put &P1_MSG. in the process success message field.
    Scott

  • Dynamic Formatting

    I am interested in creating a report that allows the columns and format of those columns to change dynamically.
    For example in one instance the report would contain 3 columns
    Name, Address, Phone Number
    In this example we may want to highlight the Name column
    In another instance the report could contain 2 columns:
    Oder Id, Credit Card Type
    In this example we don't want any highlighting
    In another instance the report would contain 4 columns:
    Name, Order Id, Payment Amount, Account Status
    In this example we want to display the words GOOD if the Account Status column = 1 and Bad if the Account Status = 0
    We have mocked up a report using the Cross Tab type however I am not able to dynamically format each column when the report runs.
    I know I could create six separate reports however, that leaves me in a bad position when upgrading the report(s). Also if I need to introduce another report I have to create and maintain yet another report.
    Any help would be appreciated.

    Hello Wayne;
    I'm not sure if you actually want to work with a crosstab report or if that is an idea you have re. the modification. If it is a crosstab, you want to have a look at [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note. The note discusses the RAS SDK, but RAS is way more featured than CR, so same applies for CR.
    Other than that, if you want to vary the number of columns in a non crosstab report, you'd have two choices;
    1) RAS SDK. See the sample links in [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples] wiki (Report Modification heading)
    2) Using CR SDK. You'd create a report with a number of empty formulas. Then at runtime populate the formulas with the fields;
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    Ludek

  • Design Landscape format in smartforms

    Can anyone explain how to design Landscape format in smartforms.
    Regards,
    Kaaviya

    It's right there on the first screen of transaction SMARTFORMS.
    Please look before asking here.
    Rob
    Corrected TX
    Edited by: Rob Burbank on Oct 20, 2008 12:38 PM

  • HP2000-299 laptop hard drive dynamic format

    Working on a hp2000-299 laptop, restored the hard drive to factory.  Everything works alright. Went to back it up and find the restore is done in the dynamic format which makes it pretty much useless for backing up.
    How does one convert dynamic to basic disk format?.  Is there an option when restoring that i missed?
    Have only come across 3-4 dynamic formats in last 10 years.  Anyway i need to convert it
    Any info welcome

    When you look at the hdd in Windows using Disk Management how is the hdd shown?
    If the hdd shows as dynamic in Disk Management,boot with a utilty cd to convert it. Download the Bootable CD iso here .Get ImgBurn here to burn the image to cd.
    Ghost has always had problems with HP's partitioning scheme in my use,even before the newer 4 primary partition layout but I have seen owners use Paragon with no problems.
    If you haven't burned a Recovery DVD set I would do that before too much messing around with partitions.Changing the hdd partitions will break the F11 recovery function.Create a set of operating system recovery discs
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Customizing font size ,format in smartform....

    Hi,
         I m tried to create new style,and created t zstyle with paragraph format as A1 Arial, bold Italic
    and character format as C1 Times, Bold with font size  as 15, and standard paragraph has A1.
    I checked and activated it succesfully.
      I used this zstyle in Form attributes>output options>style> zstyle, and n the specified windows and tables.
      But the output hasn't changed to the new style format,i m getting only the standard format, nothing has changed ...
    so, give me a soln how to do this and ay corrections i have to make....
    Thanks & Regards,
    BDK....

    Hi,
    Check these points
    1. Make sure the Smart style is active.
    2. Have you applied the Paragraph and Character format to smartform text. Just mentioning the style as zstyle in attributes will not cause any change.
    Character format must be specified like <B>Terms of Prices  :</>
    3. Try the print preview with actual printer and not with "LP01" or "LOCL"
    Regards

  • Regarding dynamic formatting on column

    Hi All,
    i have a requirement from client.
    He selects column from prompt and one of the report column changes dynamically.
    i have to do different data formatting for different column .
    so how to do dynamic formatting on same column that, shows different value on basis of prompt selection.
    Please reply.
    Regards,
    manoj

    Hi Manoj,
    generally you can achieve dynamic changes in your dashboard by creating a presentation variable prompt as part of your dashboard prompt and then using the prompt value to change your report.
    For example, you can create a prompt with values 5,10,25 in it and based on it create a report where you can switch between the top 5,10 or 25 records, depending on your selection.
    Because you did not specify what sort of formatting you require, it is hard for me to be more specific.
    Again, generally, if you cannot achieve the desired effect with Presentation Variables, you should resort to JavaScript, assuming the result is worth the effort.
    Cheers,
    Janis R

  • How to change dynamically style in smartforms

    Dear All,
              I had a requirnment to select different styles in smartforms depending on some condition, can u plz suggest me any solution for this.Thanking you.
    With best regards
    Gaurav Lashkari

    Hi,
    Goto Transaction smartform.
    Place radio button on style, then give <b>style name</b> and
    create it.
    In paragraph format right click and create node.
    Give some name it wil create a node.
    Double click on that node than u can
    change your style by using font tab.
    You can create any number of node.
    Save and activate.
    Then in your smartform->form attributes->output options
    Give your <b>style name</b>.
    Then place the cursor on the text to be modified and
    select your style from paragraph format.
    Thanks.

  • New Page Format in Smartforms

    Hi All,
    I am working on smartforms.
    I have created a new page format of width 25 cm and width 30cm according to client's requirement.
    Smartform is  for customer invoice which is a pre-printed and i have to get data into that.
    In sform i have given the my own page format name.
    Now problem is am getting print preview correctly but while giving print its givivng the error
    ' OUTPUT COULD NOT BE ISSUED' and print is not coming.
    Please help me regarding this issue.
      Thanks in advance.
    Regards,
    Murthy.

    Hi,
    I have checked it but its ok.
    I have created page format through SPAD only.
    Regards,
    Murthy.

Maybe you are looking for

  • Can i delete my itunes store account and create a new one?

    i have an itunes account open already but its old and full of old downloads and songs which are not relevant to me anymore. id like to delete my account and open a new one, is this possible? if not, how could i make a new account with the same email

  • How do I reset the included calendar on iphone 4s.

    How do I reset the included calendar on iphone 4s.  It currently shows the date as Jan 1, 2513BE, and since it is an "included app" do not know how to delete it and reinstall.

  • Cloning Oracle Applications Release 11i

    Hi, for Cloning Oracle Applications Release 11i , is it ncessary to copy jre, oui and oraInventory directories from source database tier file system to trget ? Many thanks before.

  • Copying Applications between devices

    Is there any way to pull a specific app from an iPod Touch and "copy" it to my iPhone without the two devices having the same exact apps?  I paid for an app on my iTouch that I want to also have on my iPhone, but don't want to over-write my entire iP

  • OPS 를 SINGLE NODE로 변경하는 방법

    제품 : ORACLE SERVER 작성날짜 : 2004-08-13 OPS 를 SINGLE NODE로 변경하는 방법 ================================== Purpose OPS system은 기본적으로 single node의 database와 같은 datafile set을 가지게 됩니다. 여기서는 seconary node를 제거하여 OPS system을 single node로 변경하고자 할 때의 방법에 대해 알아봅니다. S