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

SE61 - Dynamic Variable

former_member194669
Active Contributor
0 Likes
3,585

All,

I had created a Dialog text using transaction SE61 that contains a dynamic variable


Data Sheet not printed for Sales Order Number &WA_OUTPUT-VBELV&

This diagonose object i am calling in function module POPUP_TO_CONFORM

like


  call function 'POPUP_TO_CONFIRM'
    exporting
      titlebar              = text-t01
      diagnose_object       = p_dobject     "<<==== Here

But the issue while calling the function module i am not getting the dynamic variable &WA_OUTPUT-VBELV&

in the display is it showing like the following


Data Sheet not printed for Sales Order
Number &WA_OUTPUT-VBELV&   "<=Here i need in display the sales order to be displayed

11 REPLIES 11
Read only

former_member226519
Active Contributor
0 Likes
2,402

I think it is a edit problem. you have to mark WA_OUTPUT-VBELV as variable ot only typing &WA_OUTPUT_VBELV&.

you will see the variable with gray background.

Read only

0 Likes
2,402

I tried to use variable also , but still it is not working.

Read only

AlexanderOv
Product and Topic Expert
Product and Topic Expert
0 Likes
2,402

Try to use table PARAMETER.

Read only

Former Member
0 Likes
2,402

Hi

U need to considere the variable should be defined in driven program of sapscript to print the text.

Here you don't manage this program, but you can move the variable in PARAMETER table:

PARAMETER-PARAM = WA_OUTPUT-VBELV.

PARAMETER-VALUE = <document number>.

Max

Read only

0 Likes
2,402

Max,

I think you misunderstood my question. I not using sapscript, i am using diagonose object in POPUP_TO_CONFIRM ( SE61 dialog text created using in popup_to_confirm )

Read only

0 Likes
2,402

Hi

Yes I've understood what you mean

When I've spoken about sapscript and driven program, I means the sapscript and program manage the long text (dialog text created by SE61).

In your situation those elements are not used, because the text is directly shown on popup, so the variable inserted in the text (it's usually defined in the main program) has to assigned the PARAMETER table ( I thought you defined the variable in the program calling popup).

So try this:

PARAMETER-PARAM = WA_OUTPUT-VBELV.

PARAMETER-VALUE = <document number>.

It works

Max

Read only

0 Likes
2,402

I am little bit confused..

I could not find any driver program for long text in SE61 ( For Dialog text Option ). Where can i find this ?

Read only

0 Likes
2,402

Hi

In the header of your text you can see SAPSCRIPT (probably S_DOCU_SHOW), but don't worry about that

Try to use PARAMETER

Max

Read only

0 Likes
2,402

Resolved using parameter

Read only

Former Member
0 Likes
2,402

hi,

Can you please tell me how did you use parameter?

I need to have many different fields to be displayed in the text..can you suggest?

Thanx,

Shruti

Read only

0 Likes
2,402

Hi,

Also i need to maintain these texts in SPRO config.

Thanks,

Shruti.