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

Dialog Text Variable

Former Member
0 Likes
1,555

I have created a dialog text in SE61. How can I add a variable in the editor?

I tried &lv_char& but this does not seem to work.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
973

May be try this way

SE61> Changed> Go to > Change Editor> ( After this Editor will change to Line editor --> here choose command (ie first column) as "AS" --> then type &lv_char&

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
973

Where did you using this dialog text, (like as "Diagnose_object" in fm popup_to_confirm) ?

Read only

former_member194669
Active Contributor
0 Likes
974

May be try this way

SE61> Changed> Go to > Change Editor> ( After this Editor will change to Line editor --> here choose command (ie first column) as "AS" --> then type &lv_char&

Read only

0 Likes
973

I am trying to use this as Diagnose object in pop_up_confirm

The editor is a line editor. I tried AS and that did not work either.

AS  Dialog Text,, &SYST-CPROG&

Instead of displaying the program name, it displays it as a string

Read only

0 Likes
973

You need to pass the value to fm Popup_to_confirm


DATA: I_PARAMETERS LIKE SPAR OCCURS 0 WITH HEADER LINE.

MOVE lv_val TO I_PARAMETERS-VALUE.   " Here lv_val is the value for parameter LV_CHAR
MOVE u2018LV_CHARu2019 TO I_PARAMETERS-PARAM.
APPEND I_PARAMETERS

Then this I_PARAMETERS to fm popup_to_confirm under tables PARAMETER along with your DIAGNOSE_OBJECT name

Read only

0 Likes
973

That worked. Thank you.