Item txt using include text smartform

Hello Friends ,
How can we print Item text from purchase order in smartform using include text . I know click on the include text mode and then write the following details .
text id = f01
lanuage = en
object = ekpo
what should i write in text name . Any other details i need to mention
Do i need to create one using SO10 . Plzzzzzzzzzzz help
Joseph

Hi,
Right click on node(on which you need the text)
Create-Flow logic-Program lines.
system gives %CODE1
there are two tabs General attributes and Conditions
click on General Attributes
Provide the Input parameters - which contains po no and item no
Provide the output parameters- globally defined Variable  ex NAME type C
write the code:
CONCATENATE ekpo-ebeln ekpo-ebelp into name
Now again right click on program line create Text.
Give text type as Include text.
provide the details
Text Name      &NAME&
Language        EN
Text ID         F01
Text Object     EKPO   
Check the box : no error
Rgd
Narsim
Edited by: Aeda N on Nov 17, 2009 11:59 AM

Similar Messages

  • Hi..how we enter standard text for smartform using include text

    hi
    guru
    ..how we enter standard text for smartform using include text..
    i know only using so10 we write text..
    in smartform it asking text-object
                                     text-id,
    so what values we should give to get text

    Hi,
       Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
    If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
    Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
    Regards,
    Shafivullah Mohammad

  • Text element with line item content and include text

    Hi All,
    How to write in smartform in single text element with line item content and include text.I am using this text element in table . Pls help me out. i am writing the include command in text element ,but this command is not enough for single line of text editor.
    thanks ,
    Rakesh singh

    I have been pulling my hair out for a few days trying to find
    this solution. This fixed my problems as well.
    I was getting ready to scrap the Report Builder altogether
    and move to SQL Server Reporting Services over this issue.
    I'm running 7.0.2 also, that version alone fixed many small
    issues like creating borders and such.
    Thanks

  • How to perform a character protect when using include text in Script form?

    In my main window I have code as below:
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE EN
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE ZH
    There is nothing wrong with language zh but...
    For English,Every word at the end of line was splited
    EG:In text,It should be "I hate Sap script"
    But it is "I hate sap scr
                 ipt"
    I noticed that there is a protect in character which is used to prevent this,But text included is a command so I can't give them a character format.In default paragraph format there is only "para protect" which can't protect word but paragraph...
    I don't want to code in abap because I have static text and included long text appear alternatively,if coding,I will use so many text element one by one to loop the tdlines...
    So,If anyone can help me?
    Thanks~

    Thanks but
    If append tdlines...It would be
    /e Text element1
    xxxxxxxxxx
    /e tdlines1
    loop tdlines
    /e text element2
    xxxxxxx
    /e tdlines2
    loop tdlines
    /e text element3
    xxxxxx
    /e tdlines3
    loop tdlines
    Too many text element....
    Is there any other solution...?

  • Smartforms -  displaying the include text restricting to spras.?

    In Smartforms i have used include text to display Header text of an invoice .
    I provided all the relevant details for the include text such as,
    1:text name:wa_vbdkr-vbeln
    2:text object-vbbk
    3: text -id-0001
    4:language-nast-spras.
    The problem is in the output it always displays english text eventhough nast-spras is Slovakian .Output should be blank if not maintained.(Header can be maintained in any language).
    Is there any possibility of displaying the text restricting to spras.
    Thanks in advance

    Hi Anji,
    Thanks for your reply .
    We use the so10 only when we have fixed data such as address then we go for it.
    But that's not my case .Header text can be changed any time for given Invoice.
    If maintained it should appear for that language if not it should be blank.

  • Include statement called by Standard text - Smartform issue

    Hi all
    I'm in a project to migrate Sap Script to Smartform and I'm facing a issue with Include texts. Some texts are actually a command that calls another text - using /: Include statemente.
    I debugged the Include text on Smartforms and I found the part of the code that simply delete any command /: (and a few other formats)
    so I really don't know if someone already found a way to make this work.
    Thanks for all help
    Andréa

    Hello Andrea, 
    As per i know in Smartform we have to use INCLUDE TEXT  for the text node . In that you can include your text object - Z_SD_AB_CLOSING. Kindly check the below screen :
    In text object put - Z_SD_AB_CLOSING.
    Language - EN
    Please try and let me know if this is not your requirement.
    Stay Awesome,
    Romit Raina

  • Smart forms include texts form me23n to smart forms

    Hi,
    I have built a smart forms and included standard texts from me23n into my smart forms using include text.
    my problem is that if my text is not maintain for that particular header the heading should not get displayed for ease i'm writing my code:-
    item text: include text ( itemno+ebelp)                              "this item text is built up using create ->text.
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    item po text: include text ( itemno+ebelp)                          "this item po text is built up using create ->text.
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    materail po text: include text ( itemno+ebelp)   
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    if the text is not maintained for item text then it's heading that is "ITEM TEXT OR ITEM PO TEXT OR MATERIAL PO TEXT " should also be not diplayed in smart forms.
    my code is able to get the data from me23n but i just want to put a condition for not displaying it's text heading also if it's data is not maintained

    You can write a Select on STXH and check whether the text is available or not.
    SELECT SINGLE * from STXH
      INTO wa
    WHERE  TDNAME = ( itemno+ebelp)  
       AND TDOBJECT = 'EKPO'
       AND TDID = 'F01'
       AND TDSPRAS = LANG.
    IF sy-subrc = 0.
      gv_text = 'X'.
    ENDIF.
    Then in Output conditions you check for this flag and display the text.
    Thanks,
    Shambu

  • About include text in sapscript form printing

    hi experts:
        I am learning about form printing,the control command-include,for example:INCLUDE ZTEST OBJECT TEXT ID ST.
    the question is:how to ceate the text?
       thanks

    Hi,
    Standard text are used to include a Fixed Note or Rules or regulation document in SAPSCRIPT.
    You can include this text any where in your SAPSCRIPT, just by using include text.
    It is created in SO10 transaction, Where you can create the standard text. Object Name --> Starting with Z, Text ID --> ST, Language --> EN
    Just enter the text you want to display inside the editor and save it.
    Then go to sapscript editor --> in Menu Include --> Text --> Standard.
    It wil get included.
    Hope this may be useful..
    Regards,
    Prashant

  • Include text to be printed in the middle of main window

    hi Gurus,
    In SAP script - i have used include text ( which is a picture ) which i need to bring it nearly to the center of the main window. ie.,
    /: INCLUDE IMAGE1 OBJECT TEXT ID ST PARAGRAPH P1
    paragraph p1, i have made the alignment as centered.
    and i have changed it to
    /: include zhex-macro-image1 object text id st ----> also didnt work 
    posnr         matnr         then this image should come.
    but still the image is coming in the begining of the new line.  i want it to be continued with the previous line.
    please guide me.
    thanks.
    Sakthi.

    >
    sakthi sri wrote:
    > hi Prakash,
    >
    > i already did what u said. but the problem is that image should come only for that material. if suppose that material is going to come as the last material then how that image will come in the last. it always comes in the same window only what we difined. thats why i am trying to push it in the main window itself.
    >
    > did u got my problem?
    As i understand the image is to be shown conditionally.
    Try:
    {code]
    /: IF posnr = 'the position you want' AND matnr = 'matrn you want'
    /: INCLUDE IMAGE1 OBJECT TEXT ID ST PARAGRAPH P1
    /: ENDIF
    {code}

  • Including delivery text item (object VBBP) in a Smartform

    Hi,
    I want to include 'Delivery Text' ( Object VBBP, Text ID 0004) into my Delivery smartform.
    I have created a Include Text Text field but what is the Text Name of this delivery text item.
    tnks for any help

    it is delivery number + item number
    delivery number should be 10 digits ,0000045677000010

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • 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.

  • Using read text fm in smartforms

    hi experts,
                  I have captured a text using Read_text Fm .now i need to use it inside a smartforms .how to do .
    i have used that code inside a program line .
    and in text i have called the field.
    declaration in form interface
    text type char20
    itab type tline
    in program lines
    data itab like TLINE occurs 0 with header line.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    * CLIENT                        = SY-MANDT
        id                            = '0001'
        language                      = 'E'
        name                          = '0080000055'
        object                        = 'VBBK'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = itab.
    LOOP AT ITAB.
    text = ITAB-TDLINE.
    ENDLOOP.
    in text
    &text&
    but the text value is not printing .but i am getting the value when i do it in SE38.
    what shall i do?
    regards,
    mani

    Hi ,
        Instead of using the FM, Use the standard functionality to print the required text provided by Smartforms.
      Create a text element, in the left top...in the drop down there is an option of include text...
    id = '0001'
    language = 'E'
    name = '0080000055'
    object = 'VBBK'
    u will get the dessired output
    Regards,
    Himanshu

  • How to include text from attachment in Me22n to smartform?

    how to include text from attachment in Me22n to smartform?

    Guys
    I thing Ur not understanding ma question
    as ur answer is right
    lemme put ma senario
    a enduser create a word file which contain tables too
    but when he enter this text in text field of PO and save it
    the tables  disappear
    The solution to this issue
    is that we added the text to attachment of PO header
    but if i want to show it in o/P form i'm not getting any text id for it
    to use in include of smartforms
    this was ma question is der any text id for it?
    as of now i hav asked ma enduser to take separte Print out of PO and attached file

  • What is the Use of Text Module Radio buton in Smartforms

    Hi all,
    What is the Use of Text Module Radio buton in Smartforms T - code ? How can we link this to our form ?
    Thanks in advance
    KR

    Text modules
    Text modules are used to centrally store texts that are used frequently in forms in the system.
    Text modules are included in forms using texts nodes. The text node can either refer to the text module or take its text. You can then change the text or add to it to suit the form.
    Text modules have the following attributes:
    They are client-independent
    They are connected to the transport system
    They are connected to the translation tools in the system
    The third attribute means that a text module can be uniquely assigned to a language using the logon language. When including a text module, you can also access translations of the text module, for example, to include an English text module in a German form.
    Reward Points if useful.

Maybe you are looking for