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

Reading standard text with variable

arvind_soni
Participant
0 Likes
534

I have a standard text as below :

Notification number &qmel-qmnumn& created.

In my code i will read this stndard text using function module READ_TEXT.Once read I want the internal table IT_LINES of read_text to pass to my internal table.

Loop at IT_LINES.

my_table-lines = IT_LINES-tdline.

append my_table.

endloop.

Now the problem is that my_table is getting populated with

text otification number &qmel-qmnumn& created' but I want the value of variable to be populated like 'Notification number 999999 created'.

Is there any symbol i need to maintain in the standard text.

please note that I am not going to use this in form but for sending mail.

Please suggest.

4 REPLIES 4
Read only

Clemenss
Active Contributor
0 Likes
495

Hi Arvind,

when you read the text you must know the number which actually is qmel-qmnumn. So whereever you got the number from, you can do a

REPLACE '&qmel-qmnumn&' IN my_table-lines WITH <the number you used to read the text>

I hope this will answer your question. If not, please post some more code lines of what you tried until now.

Regards,

Clemens

Read only

0 Likes
495

Hello Clemens,

Thank you for your reply!!!

But this seems to be a work around.

I want my standard text to be maintainable and user can modify it without doing any changes in the code...that means ..today he is printing QMEL-QMNUM but in future he may want to add more field with it.

I hope i am able to put my question correctly !!!

Thank you

Arvind

Read only

Former Member
0 Likes
495

Hi Avind,

I have the same requirement. Could you let me know how you had handled the scenario?

Thanks!

Naresh

Read only

arvind_soni
Participant
0 Likes
495

.