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

Include statement called by Standard text - Smartform issue

deiamolina
Contributor
0 Likes
980

Hi all

I'm in a project to migrate Sap Script to Smartform and I'm facing a issue with Include texts. Some texts are actually a command that calls another text - using /: Include statemente.

I debugged the Include text on Smartforms and I found the part of the code that simply delete any command /: (and a few other formats)

so I really don't know if someone already found a way to make this work.

Thanks for all help

Andréa

1 ACCEPTED SOLUTION
Read only

romit_raina
Active Participant
0 Likes
814

Hello Andrea, 

As per i know in Smartform we have to use INCLUDE TEXT  for the text node . In that you can include your text object - Z_SD_AB_CLOSING. Kindly check the below screen :



In text object put - Z_SD_AB_CLOSING.

Language - EN


Please try and let me know if this is not your requirement.


Stay Awesome,

Romit Raina

3 REPLIES 3
Read only

romit_raina
Active Participant
0 Likes
815

Hello Andrea, 

As per i know in Smartform we have to use INCLUDE TEXT  for the text node . In that you can include your text object - Z_SD_AB_CLOSING. Kindly check the below screen :



In text object put - Z_SD_AB_CLOSING.

Language - EN


Please try and let me know if this is not your requirement.


Stay Awesome,

Romit Raina

Read only

0 Likes
814

Hello Romit

Actually it is exactly what was in the form and wasn't working. The point is that inside this standard text has another INCLUDE statement to call another standard text. In this case the Z_SD_AB_CLOSING is the text to another standard text.

I found a solution but I`m not sure if this is the best solution but works.

Before the text I called the function READ_TEXT and read all lines to find an statement /: . If found I read the first word and check if it is 'INCLUDE' if include I split all the command in different variants and then I use this variants to call the Include text. It worked properly.

Thanks

Andréa

Read only

0 Likes
814

That's Great !!!