on 02-15-2010 10:54 AM
Hello experts,
can anybody pleas ehelp me with the Smartforms text modules?
I have created some text modules, I use variables in the texts. I use SSFRT_READ_TEXTMODULE function module to read these texts but I need the texts to have the variables filled. How can I do that? I have some ZSTRUCTURE filled and use &ZSTRUCTURE-FIELD& in my text and need to fill the values. I have tried searching, but find only tousands of smartform tutorials but no info about the texts.
Thank you all, have a nice day,
regards, Otto
Hi Otto,
You don't need to use a function module to read the Text Module into your smartform.
Create a Text node in the form and change the 'Text Type' using the drop down to 'Text Module'. Enter the module name as either a literal or variable.
Provided the variables you use in the Text module are known to the smartform they will be populated at runtime.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because I am in a hurry and my colleagues encouraged me to do so, I have implemented a simple REPLACE function looping at the text and at the data the same time to fill the variables. If anybody can suggest a better approach, I would be glad and benefit from it the next time.
I though this is so often used function to have a standard text with variables and a filled data structure that there must be a function module to merge these into a text with variables like the way it works in Adobe forms texts etc. But I haven´t found such a FM.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not going to use the text in a smartform (well, little bit old technology for me, there are Adobe forms, right?). I need to use it as a email text. So I need to get the text into ABAP and fill it with DDIC structure data. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.