‎2016 Sep 26 8:42 AM
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
‎2016 Sep 27 4:24 PM
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.
‎2016 Sep 26 8:51 AM
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!!
‎2016 Sep 26 8:58 AM
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
‎2016 Sep 26 9:00 AM
I hope exactly you need to, copy past it from one smart form text to another smart form text
‎2016 Sep 26 9:25 AM
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
‎2016 Sep 26 9:30 AM
‎2016 Sep 26 9:32 AM
‎2016 Sep 26 9:36 AM
Typical German to English translation
I just meant a smartforms text.
‎2016 Sep 26 9:50 AM
The corresponding code in SapScript is
INCLUDE <TEXT> OBJECT TEXT ID <ID>
‎2016 Sep 26 10:45 AM
Hi,
you can achieve the same using the text type drop down.
thank you!!
‎2016 Sep 26 11:47 AM
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
‎2016 Sep 26 6:30 PM
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.
‎2016 Sep 26 9:29 PM
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
‎2016 Sep 26 10:17 PM
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.
‎2016 Sep 27 8:22 AM
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 )
‎2016 Sep 26 12:57 PM
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
‎2016 Sep 26 4:26 PM
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
‎2016 Sep 27 6:33 AM
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
‎2016 Sep 27 7:07 AM
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
‎2016 Sep 27 7:16 AM
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
‎2016 Sep 27 8:21 AM
‎2016 Sep 27 8:46 AM
Hello Christian,
May be you have to pass language as well.
Regards
Ashraf
‎2016 Sep 27 9:38 AM
‎2016 Sep 27 4:24 PM
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.
‎2016 Sep 28 6:56 AM
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
‎2020 Sep 17 3:06 PM