Skip to Content
author's profile photo Former Member
Former Member

Smartform,How to include a variable of a text into a text modul in SAP 4.6c

Hello friends,

i would like to include a text within a smartform into a text modul using a variable. The variable contains the name of a sapscript text (SO10-text).

I have already seen an example:

*INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS

But i can not edit this command. How can i include such kind of commands? There are a patter function available within transaction smartforms or something like this.

daniel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 06:39 AM

    hi,

    in smartforms Text element - > general attributes - > choose text type (text element / text module / include text )

    *INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS

    in your requirement choose include text

    textname &TVKO-TXNAM_ADR&

    textobject TEXT

    text id ADRS

    language EN

    is this your problem or i understood somthing wrong

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Daniel,

      Sassi hit the nail on the head. Just one point though, when you are passing variables into a Include Text Text Node, you must click on the little arrow button inthe Text Key box.

      For example, let's say you want to pass a variable in the Text Name, you will put &TEXTNAME& into the field, but to the right of the field you will see a little "Arrow" button. If this "Arrow" button is pointing to the right, the SmartForm is expecting a hard coded value, if it is pointing to the left, you can pass in a variable. To make the arrow switch click on it. You will notice that the text field now expands up to the "Arrow" button and the drop down function is now gone.

      Hope this helps.

      Cheers,

      Pat.

      PS.Kindly assign Reward Points to the posts you find helpful.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:16 AM

    thx very helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 06:40 AM

    Hello Daniel,

    No commands can be used in text editor,

    you can change the text type as "Include Text" instead

    and can give the text name, text object and text id in that node, u no need to create a text module for this,

    hope this solves..

    have a nice day.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.