How to control formatting of include text in smartform

Hello Everyone - I have converted sales order acknowledgements from sapscript to smartform. I need to print material sales text at line level. Include text method is being used, it works in most cases. However, in some cases the Std Paragraph format coded in the include text, is being ignored and the text prints as per default standard paragraph format defined in the smart style.
The only difference I could find in the text set up, using read_text function, is that the format character for the first line. The desired formatting is achieved when the formatting character is '*', otherwise the format defaults to the standard default paragraph defined in the smart style.
Could anyone suggest if there is a way to keep the paragraph formatting consistent and always use the formatting defined in the include text.
Thanks in advance,
Anil

I have resolved this issue. The include text node was defined twice for the form and I had only assigned standard and first paragraph to one of them. The alignment error occured when the second include text was executed. Modified the second node to be same as the first and all worked as expected.

Similar Messages

  • Character format on include text in smart form ??

    hello,
    i want to apply a character format on my include text, as we do on text elements .. how to apply it on include text ??
    thanks..

    Hey dude ,
    Just go to the <b>output option</b> of the text and include the smartstyle, where you have mentioned the required charecter format. Before doing this you should have activated your smartstyle .
    Your problem will be solved.
    Regards,
    Kunal.

  • Justify include text in Smartform

    Hi All,
    My requirement is to justify(not left, right or centre but to align the texts in the complete line of the page).
    I have done the following things:
    1) Created a style in which paragraph format is justified.
    2) Used the stylr in the include text.
    But still I am not getting the desired output.Am I missing something?
    Regards,
    Jeetu
    Edited by: Jeetu on May 26, 2008 6:27 PM

    what you are doin is only to be done..
    still to be more clear hopefully u r doin this only:
    create a desired style...activate it and then in you required text module in smartform..give the name of the style( in output option tab)..
    that is what needs to be done
    Thanks
    richa
    Edited by: Richa Khosla on May 26, 2008 2:05 PM

  • URGENT......INCLUDE TEXT IN SMARTFORM......

    hi all,
          i have a long text stored in a field in database . i want to specify that firld in the include text so that it can be fetched and displayed... biut my problrm is about the display of the long text . there r certain words in the long text that is to  be dipalyed in bold or may as next paragraph..... how will i customize it....
    also if i do any change in the field by inserting a code node will that refelct.....

    Hi
    Double click on that Long Text
    it takes you to TEXT ediotr
    From MENU GOTO-> HEADER
    you will find the 4 paramaters like OBJECT,ID,OBJECTNAME and LANGUAGE
    using these 4 parameters fetch the Long Text using the fun module READ_TEXT in the driver program or in the PROGRAM LINES of the Smartform and split that long text (it_lines lines) as per your wish and make them Bold and display
    see the read_text Doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    Regards
    Anji

  • How Can I Control Format & Color Of Text Links?

    iWeb appears to colorize and/or box or underline link text according to its own "uncontrollable" set of criteria.
    How can I control the color of a text hyperlink and turn automatic link underlining OFF?

    you CANNOT do that in iWeb. there are the following ways around iWeb which solve it:
    http://www.rowan-cottage.co.uk/Site/CSSiniWeb.html
    im bringing up a video tutorial soon, so check my site in the future!
    max

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

  • How to control the height of text box

    hi,
    i want to increase the height of a input text box. if i give the text box's height 50 & width 30 then it can show its original size. But if i increase the text box height then it shows online one row? Now i want to see the multiline which i will give the height ? is there anyone who can help me?
    Please help me.
    With regards
    Bina

    Gimbal2 was right but if you want to stick using the text box... Try to include this in your text box tag "style="height:100px;" or you can convert it to css.... good luck:)..

  • How to generate formated (defined position) text and image using pl/sql and

    Hello,
    I need to use pl/sql to create a dynamic html page (or image , if possible) with defined positions for text and bar code. It is necessary because the page will be printed and it should be able to be read by one other process , OCR, that needs to have all the data in defined positions.
    Any suggestion are welcome.
    Thanks in advance,
    Emilio

    I don't think it's that easy. Notice that if you put the insert into an actual pl/sql block, you don't get the correct column pointer anymore.
    BEGIN insert into bob(col1, col2) values (123.12, 12345.12); END;
    ERROR at line 1:
    ORA-01438: value larger than specified precision allows for this column
    ORA-06512: at line 1
    Richard

  • Indent /tab position for text from INCLUDE texts in SAPscript

    Hi, ABAP colleagues!
    Need your help on this sapscript problem:  How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    Or, how to control tab positions for texts which were extracted from “INCLUDE text” commands in SAPscript?
    I defined a paragraph format with tab stop at 8 CH so that with 2 commas (,,) my text will be displayed there.  However it always appears to the left (e.g. 1st column) and not indented at the proper column for description/text (e.g. which is in second column). 
    Pls help, bec a different heading and information is not acceptable to client for the Thailand characters. 
    Above is the description of the problem.  Below are some technical details.
    For specific example, I am editing Zversion of standard sap MM form MEDRUCK Window Main -  Text Element Item Text.
    BG ,,&TTXIT-TDTEXT&
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /: NEW-PARAGRAPH BG
    So far, tried these approaches:
    PARAGRAPH
    NEW-PARAGRAPH
    LANGUAGE '2'
    THANGSAN font
    Any ideas?
    Thank you so much in advance for all your help. Our project team will really appreciate it. May the Lord bless you as we go through our SAP work!
    Sincerely,     
    Celeste

    Hello Caleste,
    Please let me know what settings you have done to solve this issue.
    Help me with steps for Spool Request/Print settings.
    Regards!!
    Surya

  • Include text error

    hi,
    how to rectify this error include text not available in form
    why this error occurs

    Hello Abdul,
    how to rectify this error include text not available in form
    This is because the Text Module / Std. Text used in this node is not available in the syst.
    1. You can cross check if the Text Module / Std. Text is available.
    2. You can supress the error by checking the "No error if no text exists" checkbox.
    Hope this is clear.
    BR,
    Suhas

  • Passing Text name in text includes dynamically in Smartforms

    Hi Experts,
    How to pass text name , text object and text id dynamically while i include text in smartforms.
    I surfed in SDN but still i am not clear.
    I am calling READ_TEXT FM in my print program. When i try to call using the variables which are used in Print program and here i import them to pass it in text module, It gives me error that no variable of that name found.
    Regards
    Swetha

    Swetha,
    it depends how many text combination you want to pass.
    if they are some 4-5 than you can simply pass them like:
    CASE &VBDKR-VKORG&.
      WHEN '1552'.
    INCLUDE ZADDRESS_1552_RT OBJECT TEXT ID ADRS
      WHEN '1454'.
    INCLUDE ZADDRESS_1454_RT OBJECT TEXT ID ADRS
      WHEN '1555'.
    INCLUDE ZADDRESS_1555_RT OBJECT TEXT ID ADRS
      WHEN '1482'.
    INCLUDE ZADDRESS_1482_RT OBJECT TEXT ID ADRS
      WHEN '1483'.
    INCLUDE ZADDRESS_1483_RT OBJECT TEXT ID ADRS
      WHEN '1484'.
    INCLUDE ZADDRESS_1484_RT OBJECT TEXT ID ADRS
      WHEN '1485'.
    INCLUDE ZADDRESS_1485_RT OBJECT TEXT ID ADRS
      WHEN '1486'.
    INCLUDE ZADDRESS_1486_RT OBJECT TEXT ID ADRS
    above example i used to pass address in script.
    else if you dont know how many combination are there than you can write perform routine.
    Amit.

  • For SAPscript INCLUDE TEXT, how to align as Paragraph format

    Hi experts and ABAP colleagues!
    Need your help on this sapscript problem:
    How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    For example, I defined BG to have tabstop at the 2nd column (or equivalent to 1st tab position) where I need to print the text, and then declared it in SE71 like below:
    However the text prints at the leftmost instead of at the 2nd col position - (8th char tab defined in par. format BG).  Hence it is not aligned to its proper heading.  Line Number instead of Description - which is not okay for client view that needs these Thai texts. 
    The technical details I included below.  Kindly examine:
    1.)  Window >Main > Text Element > Include Text command
    /E   ITEM_TEXT
    BG   ,,&TTXIT-TDTEXT&
    /:   INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /:   NEW-PARAGRAPH BG
    Note:  I used command "NEW-PARAGRAPH" and had exactly the above code in se71.  Anything missed here?  Pls. help.  Thanks.
    #2.) Paragraph Format > Tab
    No. -
      Tab Position -
    Alignment
    1            8,00 CH            LEFT
    2            28,00 CH          CENTER
    etc.
    Note:   and then i put in  ",,&TTXIT-TDTEXT&" (see above) with the 2 comma's beforehand to say that its on the 1st tab or at the 8th character where it should be printed, but does not give intended result... pls help.
    #3.) Paragraph Formats > Standard Attributes
    Left Margin - 0 cm
    Alignment - Left
    no blank lines checkbox - ticked
    Note:  Is there any more attribute i can manipulate from here to force display at the right position?
    Thank you so much in advance for all your help.  Our project team will really appreciate it.  May the Lord bless you as we go through our SAP work!
    Sincerely,
    Celeste

    Here's a thought, instead of using tabs, try writing a method that takes a string that is the starting string, a pad character, and a length and returns a string padded to that length with the specified character.
    public String padR(String src, String padChar, int len)
        // ... You get to fill in the rest suggestion try to do it without a loop
    }Have fun,
    PS.

  • How to include text

    hi i m working on smartform
    i want to include text
    for example
    <b>subject</b> : is text window
    i want to include text after colon in subject
    but include text is coming in new line
    now coming like below
    <b>subject:
    hi this is include txt</b>
    but i want like this
    b]subject: hi this is include txt</b>.
    so how can i do this please suggest me
    thanks in advanced.

    u can't  do that.
    only one way  also add  'subject to :' in standared text  than display standared text.
    one more way just store text in variable and  use this variable in smartforms.
    ph  'subject :' &variable&
    ph-paragraph format.
    kishan negi

  • Include text's paragraph format

    Hi experts,
    I have a include text in my smartforms. I'm using the smartform's form routine section to include this text, because my text is dinamically set up. After including it with the following code the paragraph and text formats are ignored. How could I apply my character and paragraph formats?
      CALL FUNCTION 'SSFRT_READ_INCLUDE_TEXT'
           EXPORTING
                I_TEXTKEY   = TEXTKEY
                I_LANGUAGES = ls_LANGUAGES
           IMPORTING
                O_LANGU     = LANGU
                O_TEXT      = lt_text
           EXCEPTIONS
                OTHERS      = 1.
      CHECK SY-SUBRC EQ 0.
      CALL FUNCTION 'SSFCOMP_CONVERT_ITF_TO_TOKEN'
           EXPORTING
                I_TEXT     = lt_TEXT
                I_NAME     = NAME
                I_LANGU    = 'H'
                I_TEXTTYPE = ''
           IMPORTING
                E_TOKEN = L_TOKEN.
      CALL FUNCTION 'SSFCOMP_WRITE_TEXT'
           EXPORTING
                NAME              = NAME
                LANGU             = LANGU
                STYLE             = STYLE
                STYLEVARI         = STYLEVARI
                TEXT              = L_TOKEN
                APPEND_MODE       = APP_MODE
                PROTECT           = PROTECT
                TEXTTYPE          = ''
           EXCEPTIONS
                NON_MAIN_OVERFLOW = 1
                OTHERS            = 2.

    Okay, I've got the solution.  L_TOKEN contains the smartforms style. I have to set it according to my form.

  • How could Adobe Form handle multiple Include Text

    Hi all,
    In abap program, I have declared a global structure *t166k and pass it to adobe form. However, the the passing parameter *t166k need to based on the looping xt166k as shown below. If this is the case, how could I handle such multiple include text?
    Thanks in advance.
        loop at xt166k where tdid ne 'F17'.
          move xt166k to t166k.
          case t166k-tdobject.
            when 'EKKO'.
              t166k-txnam(10)   = ekko-ebeln.
            when 'LFA1'.
              t166k-txnam(10)   = ekko-lifnr.
            when 'LFM1'.
              t166k-txnam(10)   = ekko-lifnr.
              t166k-txnam+10(4) = ekko-ekorg.
          endcase.
          perform get_header_text.
        endloop.
    form get_header_text.
      if t166u-druvo = '1'.
        *t166k = t166k.
    endform.                    " GET_HEADER_TEXT
    In Adobe Form
    General     
    Name     GV_HEADER_TEXT
    Description     Header Text
    Status     Inactive
    Text     
    Text Type     Include Text
    Include Text     
    Text Name     T166K-TXNAM
    Text Object     T166K-TDOBJECT
    Text ID     T166K-TDID
    Text Language     FORM_LANGU

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

Maybe you are looking for

  • HP photosmart premium C309a photos printing black and white not colour

    My printer is printing photos in black and white not colour as requested on print preferences. any ideas?

  • Trouble creating portlets.

    Hi. I�m trying to create a test portlet that need to edit the values in portlet preferences file. This should be pretty easy, but after going through examples several times I still have trouble finding out why this portlet does not work. I hope you c

  • Index & Search Tabs have garbage characters and no search box

    Index and Search Tabs have numbers in place of the "search" box. Although, the generated view looks perfect, the file (WHLST10.htm) contains the same numbers and missing search box. I am using X5 version. I import a MS Word file without an index and

  • Rendered video's file size is HUGE!!!

    Hello! I have a little problem with AE and I hope that there's something wrong with it. I had a 30 sec video which I only did some minor color correction and other small tweaks in. Before this, the file was 6 mb big, when I rendered it, it was 7.30 G

  • Serial to parallel converter in labview

    Hi. Does anybody know how to convert serial data to parallel data using labview? I already used shift registers but it's not working.