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 text *INSIDE* header text

Ronnn
Participant
0 Likes
1,965

Hi All,


in the smartform for the invoice I try to call a header text. Everything in the header text is printed, but not the standard text inside the header text.

So, in the header text we have a line like:

/: INCLUDE ZSD_STANDARDTEXT OBJECT TEXT ID ST LANGUAGE EN

The call in the smartform is with 'include text' where the corresponding object 'VBBK' and ID 'Z020' etc is called.

Is this possible anyway?

thanks & regards,

Ron.

1 ACCEPTED SOLUTION
Read only

omer_sakar
Participant
0 Likes
1,764

Hi Ron,

You can insert standart text like this :

And you can insert header text like this :

6 REPLIES 6
Read only

omer_sakar
Participant
0 Likes
1,765

Hi Ron,

You can insert standart text like this :

And you can insert header text like this :

Read only

0 Likes
1,764

Hi Omer,

thanks for your fast reply. I know how to insert the texts into the smartform, but thanks. My situation is slightly different. I have a standard text inside of the header text. And this does not seem to work.

So, when I goto the invoice -> header -> texts, and double click on it, I have:

/: INCLUDE STANDARD_TEXT OBJECT TEXT ID ST LANGUAGE EN etc.

Read only

0 Likes
1,763

I got it now. So how do you insert a standart text inside header text?

If you insert without "Expand Immediately" context of header text like this :

INCLUDE EXP_DOCUMENTS OBJECT TEXT ID ST LANGUAGE EN

If you insert with "Expand Immediately" context of header text like this :

Regular Cartons

Special Cartons

Badatz Kosher

Regular Kosher certificate

Passover Kosher certificate

Veterinary documents

Read only

0 Likes
1,763

I guess using the 'expand immediately' is obligatory? I don't want it to be expanded immediately. Because if I do that, then the text is no longer maintained it at one place.  *(SO10)* 

Read only

0 Likes
1,763

Hi Ron,

smartforms is not able to Interpret commands which are stored in old TLINE formatted texts. You will need to write some ABAP coding scanning the longtext for /: INCLUDE and read the text yourself.

Regards

Oliver

Read only

0 Likes
1,763

Thanks. So, I will read the header text with the FM READ_TEXT and scan the TLINE table for any include text; and print it.

I guess this is the only option. Thanks for thinking along with me!

regards,

Ron.