Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms text in smartforms text

Former Member
0 Likes
11,332

Hi guys,

I'm looking for a way to insert a smartforms text into a smartforms text.

With the old sap forms this kind of reference was possible.

Can anyone help me out?

Thanks,

Christian

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
9,429

This Help article states that even in the standard / SAPScript texts the control statements are not executed by Smartforms:


This text type corresponds to the SAPscript statement INCLUDE. However, SAP Smart Forms does not allow any control statements in include texts. They are simply ignored when the form is processed.

Including SAPscript Texts - Smart Forms - SAP Library

The text modules do not have any control statement functionality either (Help article for them is right next to the one above). What you are asking is not feasible from what I see.

However, I'm not sure what could be the scenario that would really require this. If you need to build a text from several "blocks" then you can simply insert multiple text modules in the form. And you can even set the text to continue from the same line, so that the transition is seamless.

25 REPLIES 25
Read only

Chintu6august
Contributor
0 Likes
9,429

Hi,

in the general attributes of the text you can include texts using the field text type(drop down) using the following option

1. Text element

2  text module

3  include text

4  dynamic text

and using editor u can also include texts.

thank you!!

Read only

0 Likes
9,429

Hi Chintu,

thanks for your reply.

I'm not looking for the steps to insert a smartforms text into a form, but to insert a smartforms text into a smartforms text.

Regards

Christian

Read only

0 Likes
9,429

I hope exactly you need to, copy past it from one smart form text to another smart form text

Read only

0 Likes
9,429

Hi NewB,

is my understanding from your post right, that you recommend to copy the plain text from the smartforms text and past it to the other smartforms text?

If your answer is yes, my question is, why to use smartforms text bricks in general?

Regards

Christian

Read only

0 Likes
9,429

May i know what is the meaning of Text bricks never heard.

Read only

0 Likes
9,429

Hi,

i think that is not possible.

thank you!!

Read only

0 Likes
9,429

Typical German to English translation

I just meant a smartforms text.

Read only

Former Member
0 Likes
9,429

The corresponding code in SapScript is


INCLUDE <TEXT> OBJECT TEXT ID <ID>

Read only

0 Likes
9,428

Hi,

you can achieve the same using the text type drop down.

thank you!!

Read only

0 Likes
9,428

Hi Chintu, for example, I have a smartforms text A and a smartforms text B. I want to include B in A and A to a form. Your screenshot shows only the step to include A to the form. Regards, Christian

Read only

0 Likes
9,428

What you are referring to as "Smartform text" is commonly called "standard text" (STXH/STXL table). It can be included in a Smartform using a Text node with the option "Include text", as Chintu posted above.

This should be described in the documentation and in any Smartform book out there. Even if something got lost in translation, the word "Include" used in both cases should provide a clue. Google -> "include text in Smartform site:sap.com" returns over 5000 hits. Kindly make sure to search before posting, going forward.

Read only

0 Likes
9,428

Nope.

Sorry jelena,

Goto transaction Smartforms,  select the bottom of the three options.  That is your smart texts.  In there you not only specify the text but the smartstyle to use as well.

Ricj

Read only

0 Likes
9,428

It's "text module", not "smart text", at least in EHP6:

There is really no such term as "smartform text". It's either "text module" (see the screenshot above) or "standard text" (SO10). Both can be used in Smartforms. SAPscripts AFAIK can only use standard text.

I was replying to the post that was showing an example in SAPScript (INCLUDE...). That would be "standard text" and Include option in the Smartform. Of course, one could use a text module instead but it's not exactly the same.

I guess it'd make sense to wait for OP to come back with a clarification. So far everyone seems to be sufficiently confused.

Read only

0 Likes
9,428

Apologies Jelena - I was answering without the benefit of a SAP Screen to look at - but to my disgrace I call them Smarttexts anyway....

(Oops )

Read only

ashraf_usmani
Participant
0 Likes
9,428

Hello Christian,


Could you please more specify your requirement,

As I know there is no option in smart form text module to use reference.

you may use upload and download functionality instead of reference.

Regards

Ashraf Usmani

Read only

Former Member
0 Likes
9,428

Hi Christian,

In the Smarttexts editor,  click the pencil to the left of the text control.

This will place your text in full screen mode.

Then in the 'Goto' menu select 'Change Editor'.

This will then change the editor to the old style editor.

Hit the return key to get a line with the format field open.  Copy an include line example from somewhere else.  Don't forget the tag is '/:'.

Now.  I've shown you how to get an include in the text.  Whether it works or not is up to you to find out.

Rich

Read only

Former Member
0 Likes
9,428

Hi,

first of all sorry for the confusion and for the usage of wrong terms.

Jelena was right, when she said, that the right term is text module. That's what I meant.

As Ashraf and Richard mentioned, I want to use a text module inside a text module, like a reference.

With SAPScript, the command was /: INCLUDE ... which can be used inside a standard text (SO10).

But with text module under smartforms this command is not usable, because it is interpreded as text and not as a command.

So my question, how can I use a text module inside a text module under smartforms?

Thank you very much!

Regards

Christian

Read only

0 Likes
9,428

Hello Christian,


Please follow below step may be it will help you:


Step : 1



Step : 2




then insert this text module to your smart form.


Note : i am not sure it will work 100% but you can try it.


Regards

Ashraf Usmani


Read only

0 Likes
9,428

Hi Ashraf,

thank you for your reply.

It seems to work. I try it out and be back soon.

Regards

Christian

UPDATE: When I include the text module into a form and do a test print with program FP_TEST_00, the included text module is displayed, but the referenced text module is not displayed.

It seems that smartforms or rather adobe forms will ignore the "/:" command.

Message was edited by: Christian Hannemann

Read only

0 Likes
9,428

Ashraf - that is exactly what I said....

Read only

0 Likes
9,428

Hello Christian,


May be you have to pass language as well.


Regards

Ashraf

Read only

0 Likes
9,428

That didn't work as well.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
9,430

This Help article states that even in the standard / SAPScript texts the control statements are not executed by Smartforms:


This text type corresponds to the SAPscript statement INCLUDE. However, SAP Smart Forms does not allow any control statements in include texts. They are simply ignored when the form is processed.

Including SAPscript Texts - Smart Forms - SAP Library

The text modules do not have any control statement functionality either (Help article for them is right next to the one above). What you are asking is not feasible from what I see.

However, I'm not sure what could be the scenario that would really require this. If you need to build a text from several "blocks" then you can simply insert multiple text modules in the form. And you can even set the text to continue from the same line, so that the transition is seamless.

Read only

0 Likes
9,428

Hi Jelena,

thank you very much for your effort.

Well, the point was not why to use this, because there're always several ways to achieve what you want. But for me it was about to find out if it works or not.

Thanks to all who helped to find out.

Regards

Christian

Read only

prabhu_04
Explorer
0 Likes
9,428
  • Dynamic Text: Using the dynamic text type we can display the complete table type whichever is assigned to it.
  • Text Element: This is static.
  • Include Text: It is the standard text element. (t-code: SO10).
  • Text Module: When we want to use same Text multiple time, we go for text module.