Include in smartform.

Hi..
how do you write include in a smartform? for exmplae this is the include statment i have:
INCLUDE &VBDKA-ZTERM& OBJECT TEXT ID SDTP PARAGRAPH L.
Regards,
Srihari.

With the help of include command you can do the same.
Procedure
Create a text node in the navigation tree of the Form Builder.
Enter a unique name for the node and a node description (for example, letter).
On the General Attributes tab, choose Include Text as text type.
Since you use a text node exclusively to edit a text element, an included text, or a text module, the system only stores information on the selected type. When you change the text type, the system therefore asks for your confirmation.
In the Text Key box, identify the include text.
To identify individual text objects, use the search help in this field.
The search help for the Text Name field allows you to include the attributes of SAPscript texts in the search.
Use the Language field to specify the language of the text you want to include.
If necessary, format the include text in the Paragraph Formats box:
The style that is assigned to the text node contains the format for the standard paragraphs (' * '). If you specify a paragraph format in the Standard paragraph field, you override this format for all standard paragraphs in the include text with this paragraph format.
In the First Paragraph field, you can set a paragraph format for the first paragraph of the include text and thereby override the setting in the style. If the Standard paragraph field is empty, all standard paragraphs in the include text are also formatted with this paragraph format.
In the Begin list box, choose whether you want the text to start with a new paragraph or just in a new line. You can also choose to append the text directly to the end of the current paragraph.
Select the No Error if Text Does Not Exist checkbox if you want the form to be printed even if the include text you refer to does not exist in the system. Otherwise, processing is terminated and an error message appears.
If required, use the output options tab to maintain attributes for the style, box, and shading of the text.
http://help.sap.com/saphelp_nw2004s/helpdata/en/03/7560efcf0d11d3b565006094192fe3/content.htm
http://www.erpgenie.com/abap/smartforms_detail.htm
http://saplab.blogspot.com/2007/09/simple-smartform-tutorial.html
Please reward points for the same.

Similar Messages

  • 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

  • Dynamic Textid Include in Smartform

    Hello Everybody,
    i want to include text in my smartform
    the text id name will be number of my billing document no which will be dynamic.
    in sapscript we can insert this way
    INCLUDE &ZTDNAME& OBJECT TEXT ID ST.
    but if in smartform i had try same but not working
    can anybody pls suggest me what will be the paragraph format for include text id in smartform
    and why my text id's text not coming..

    U might have created a text element and wrote this sapscript command.
    In smartforms this is done differently,
    First create a text.
    Now select type of text in the drop down as include text.
    Now it will ask u for text id and object language etc.
    check this smartform document
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    see page 46 for include texts
    Edited by: Kartik Tarla on Jun 13, 2009 12:51 PM

  • Problem using text element with type TEXT INCLUDE in smartforms

    Hi,
    I am working on smartform.
    My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
    It works Fine only when I put exact value of TDNAME in Text Name field.
    But in my case TDNAME can vary according to value of AENNR from Table AENR.
    So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
    HELP ME OUT.
    ANSWERS WILL BE AWARDED..
    Tushar

    Hi Tushar,
    When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
    Deepak Charanyan

  • 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

  • How to display smartform in web.

    Hi,
    I am displaying the report in web . now i included the smartform ti it.
    I want to display the smartform in web.
    Plz give me the solution .
    Regards,
    Rani.

    1. Create a smart form in the R/3 side
    2. Now create a function module with the corresponding export parameter:
    3. Make sure that the function module is marked remote enabled. 
    4. In NWDS  create an Adaptive RFC model which points to the FM created in R/3 under the webdynpro application
    5. Now create an application and view inside it to display the PDF and Insert a frame inside the view
    6. Create a  value node and an attribute say url of type string inside that node and bind it to the source
    7. In the doInit() method place the following code
    >    ZTest_Pdf_1_Input input = new ZTest_Pdf_Input();
    >    wdContext.nodeZTest_Pdf_Input().bind(input);      
    >    try {                       
    >            wdContext.currentZTest_Pdf_InputElement().modelObject().execute();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >  wdContext.currentInternalElement().setUrl(convert(wdContext.currentOutputElement().getBin_File()));       
    Inside that view create a method to convert the string to url so that it can be passed as a string to the setUrl method of the currentContextElement() , say convet(byte[] doc_content) which return a string.
    Inside that methos write the following code,
    >         String url = "";
    >           WDWebResourceType webResType = WDWebResourceType.PDF;
    >            IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
    >            try {
    >                        url = webResource.getURL();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >            return url;
    Hope It will be helpful
    Regards,
    Sam Charles J.

  • How to Call Smartform from User defined Transaction

    Hi All,
    my requirement is users enters the  data in the module pool program and clicks on the save and generate smartform button and the data is updates the database tables and  updated data should be printed on smartform
    Can anyone Please tell me How to link Smart Program with module pool program.
    Regards,
    Prasad.

    In smartforms , right click any window and create->flow logic->program lines, then the screen for program logic appears. In the left most corner there a icon named statement struct.
    Click the statement struct icon, it will show the screen for pattern, there give the function module name that you want to include in smartforms
    case okcode.
    when 'SAVE'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING FORMNAME = P_FORM "Your form name
    variant = ' '
    direct_call = ' '
    IMPORTING FM_NAME = FM_NAME
    EXCEPTIONS NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    EXIT.
    ENDIF.
    calling the generated function module
    CALL FUNCTION FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = CPARAM
    OUTPUT_OPTIONS = OUTOP
    USER_SETTINGS = SPACE
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    IMPORTING
    JOB_OUTPUT_INFO = TAB_OTF_DATA
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endcase.
    endform.
    endcase.

  • How to create Standard text for terms and conditions of po print form

    Hi anybody,
      I want create Terms and condtions inside smartforms PO FORM , how do i create terms and conditons and how use font size? I don't want hard code inside smartforms , I will create seperate texts for terms and condition after i include inside smartform.
    How i will do ? anybody please tell me.
    Thanks
    S.Muthu.

    Hi Subramaniyan,
                             U an create an include text node in your smartform.And terms and conditions is the header level text,so i suppose you have to give the inputs as follows :
    Text Name         &**-EBELN&
    Text Object       EKKO
    Text ID              xxxx
    Language          &**-SPRAS&
    is the data at your end .To simplify more follow the following.
    1> go to your purchase order from me23n
    2> open any purchase order and click on the terms and conditions text.
    3> go to GOTO option of the text.and click on the HEADER.
    4> U will find the attributes of the text which you will have to pass to the Include text in your smartforms.
    The long texts arestored in STXH table.
    Reward Points if useful.
    Cheers,
    Deepthee Kasal

  • Colour a line in so10

    hello,
         I have created a standard text in SO10 which I Include in Smartform.  Is it possible to colour one of the lines in RED.
         The command FONT COLOR = 'RED' does not work.
         Please help me with this problem.
    thank you,
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 13, 2010 9:50 AM

    No, but  in so10 you can type your line (sapscript editor) like:
    some text <r>red text<//> some text  (just one slash...)
    and when you include this text in your smartform, it takes the r definition from the style you have assigned in the smartform properties.
    Edited by: Diego Alvarez on Jan 13, 2010 4:54 PM
    Edited by: Diego Alvarez on Jan 13, 2010 4:54 PM
    Edited by: Diego Alvarez on Jan 13, 2010 4:55 PM

  • Smartforms: How to CC email & Include a few lines of Text in Body of email?

    I have created a smartform and have it outputting PDf documents and sending then via e-mail and it all works great.  Except u2026 now I would like to CC someone and also have a few lines of text in the e-mail.  Does anyone have any ideas?
    Here is my code:
    IF p_mail = 'X'.
        wa_ctrlop-device = 'MAIL'.
        PERFORM mail_recipient_object.
        PERFORM mail_sender_object.
        PERFORM mail_appl_object CHANGING g_mail_app_obj.
      ENDIF.
      LOOP AT my_table.
        CONCATENATE 'ECS' comp_year izhr_emp_comp_summary-emp_lname INTO wa_outopt-tdtitle separated by space.
        CALL FUNCTION func_mod_name
          EXPORTING
            CONTROL_PARAMETERS      = wa_ctrlop
            MAIL_APPL_OBJ           = g_mail_app_obj
            MAIL_RECIPIENT          = email_recipient
            MAIL_SENDER             = email_sender
            OUTPUT_OPTIONS          = wa_outopt
            USER_SETTINGS           = u2018Xu2019
          IMPORTING
            DOCUMENT_OUTPUT_INFO    = document_output_info
            JOB_OUTPUT_INFO         = t_otfdata
          TABLES
            I_MYTABLE                 = imy_table
          EXCEPTIONS
            FORMATTING_ERROR        = 1
            INTERNAL_ERROR          = 2
            SEND_ERROR              = 3
            USER_CANCELED           = 4
            OTHERS                  = 5.
       ENDLOOP.
    Determines the Recipent of the E-Mail
    FORM mail_recipient_object.
      CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
        EXPORTING
          ip_mailaddr       = email_address     "E-mail Addr:Input Screen
          ip_type_id        = 'U'               "Internet Address
        IMPORTING
          ep_recipient_id   = email_recipient   "Recipient Obj Key
        EXCEPTIONS
          invalid_recipient = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        MESSAGE e531(0u) WITH text-003.                      "Error E-Mailing
      ENDIF.
    ENDFORM.    "mail_recipient_object.
    *Sender of E-mail
    FORM mail_sender_object.
    CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
        EXPORTING
          ip_sender      = sy-uname             "User Logged in
        IMPORTING
          ep_sender_id   = email_sender
        EXCEPTIONS
          invalid_sender = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        MESSAGE e531(0u) WITH text-e15.                      "Error E-Mailing
      ENDIF.
    ENDFORM.    "mail_sender_object.
    *Creates Mail Application Object to E-Mail Smartform
    FORM mail_appl_object CHANGING g_mail_app_obj.
      SELECT SINGLE * FROM soud WHERE sapnam LIKE sy-uname AND deleted = ' '.
      IF sy-subrc NE 0.
        CALL FUNCTION 'SO_USER_AUTOMATIC_INSERT'
          EXPORTING
            sapname            = sy-uname
          EXCEPTIONS
            no_insert          = 1
            sap_name_exist     = 2
            x_error            = 3
            sap_name_not_exist = 4
            OTHERS             = 5.
      ENDIF.
      CLEAR sofmfol_key.
      sofmfol_key-type = 'FOL'.
      sofmfol_key-year = soud-inbyr.
      sofmfol_key-number = soud-inbno.
      bor_key = sofmfol_key.
      IF NOT bor_key IS INITIAL.
        swc_create_object folder 'SOFMFOL' bor_key.
        IF sy-subrc = 0.
          swc_object_to_persistent folder g_mail_app_obj.
          IF sy-subrc NE 0.
            CLEAR g_mail_app_obj.
          ENDIF.
        ENDIF.
      ELSE.
        CLEAR g_mail_app_obj.
      ENDIF.
    ENDFORM.    "mail_appl_object.

    Get rid of the smartform-based mail sending code if you can.  That interface is quite old, simplistic, and inflexible (i.e., you can't do what you're asking).  I would use class CL_BCS.  It's especially much easier once you have developed a (custom) standard email wrapper class for sending various types of emails, including smartform-based PDF-attached emails.  You can even go with HTML and dress-up your emails a bit.

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

  • How to include the page header in smartforms

    Hi,the text element of the type include text is placed in the main page in header.
    this text element extending to several pages.
    The user wants to include page header only  on pages where this element displays.
    EX:in the page they are 5 elements include text will appear from 3rd page.
    then they want to display the page header only from 3rd page.
    IS it possible?
    Message was edited by:
            hymavathi bomma

    Hi!
    You have to define more header objects.
    You can use conditions, which object appears. You can use a flag variable for this: gv_header_flag.
    Based on this gv_header_flag, you can tell the Smartform, which header to print.
    And you have to fill gv_header_flag with correct values in some ABAP code, entered into your Smartform, before you print your header.
    Regards
    Tamá

  • Regarding include long (standard) text in Smartforms for Purchasing RFQ...

    Hi,
    I have trans code me42 (RFQ).....
    For EBELN = 6000000026 i have 2 line items say having 2 material numbers and their quant, units and delivery date etc....
    Ok Now I select first line item and then i go to item -
    > Texts------>text overview
    I get item text and Material PO text. And then I double clik on any one of the text it goes to text editor and then i Go to----> Header.
    I get the text id-- A01
    textname-- 600000002600010
    text object-- EKPO
    language-- EN
    Now I have all the information other than item text and material Po text.
    I just kno it is sumthing related to include text but I dont kno how to display it in layout....
    What is the procedure step by step?
    First tell how to declare it in smartforms and then in calling program from wer i m goin to display.
    Please tell me step by step both in smartforms and calling program.
    Also For one line item 'text name' is 600000002600010, text ID is A01A03 and For other line item it is 600000002600020  and text ID is A01 A03.

    Just write the code within smartform by using program lines..
    pass ur rfq number and item number to form routine.
    in the form routine call read_text Function module ,this fm will get the text ..

  • Smartforms: how can I include a jpg picture stored an a web server ?

    I want do include a business graphic (JPG) in a smartforms window. The picture is created by a web serves and stored on a web server.
    the jpg-picture can be loaded on by an http-adress.
    How can I include the picture in the smartforms form ?
    thanks
    Richard

    hi,
    use transction SE78 to upload the picture .
    Then use it in smartforms.
    regards,
    guru

  • To Include Standard Text in TEXT Field of SMARTFORM

    Hi,
             I  have a requirement to include a Standard text inside a TEXT field. The name of standard text is ZSD_CMR_&VSTEL&_STATISTICAL  where for VSTEL we should put the respective work area field like ZSD_CMR_&W_LIKP-VSTEL&_STATISTICAL .
    But while executing the Form its giving Error that STD text does not exist.
    The Requirment is like - shipping point (LIKP_VSTEL) of the delivery to identify the standard text. So, if a doucument for a delivery for shipping point 3114 is printed, it should come with the contents of ZSD_CMR_3114 STATISTICAL  In case the shipping point is 3112 it shoukd be ZSDCMR_3112 _STATISTICAL.
    Can you please let me know how to include Std Text inside the TEXT, I mean SYNTAX .
    Regards
    Avi

    Hi Avi,
    Lets take the example the standard text <b>'ZSD_CMR_3114 _STATISTICAL'</b> then with this standard text get the TDOBJECT,TDNAME,TDID and TDPRAS from <b>STXH</b> table.
    In the Smartform, goto <b>TEXT->General Attributes Tab</b>.
    Select <b>Type</b> to be I<b>nclude Text</b> from the drop down list.
    Then give the Text Name, Text Object, Text ID and Language.
    Your Standard Text whcih you maintain in S010 will be displayed in the smartform window.
    Regards,
    Tushar
    Message was edited by:
            Tushar  Marshall Dass

Maybe you are looking for

  • A huge amount of businesses missing from Apple maps

    Hi all, I like so many other people am posting up about the new Apple Maps that have been forced upon us. I've been aware of the major mistakes on the news, ie misplaced towns and railway stations but I think there is a bigger problem that isn't bein

  • After put the Android on Nokia N-9 Please neeeeeee...

    After downloading the Android on Nokia N-9 you switch the device off and when you run This is then remain Nokia signal and then comes back the same image again Is there a solution to this problem Attachments: 2-27-2013 2-15-15 PM.png ‏178 KB

  • How can i get the list of DB02's Table spaces-overview?

    Dear Experts,        Could you help me about how can i get the list of DB02's Table spaces-overview? which function module can do it? Thanks a lot

  • My phone is froze on home page

    i updated my iphone 3g and it will not come back on to nomal service it says somthing about red snow

  • Cant Print PDF

    Hi I have a customer who has a windows 7 machine with the latest version of adobe reader She can print to the printers using other applications such as word/pain/test printing. Everyone in the office using the same printer can print pdf documents fin