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

How to debug variables in SAPSCRIPT- Form?

walkerist79
Participant
0 Likes
1,099

I have a constant on my program but it doesn't show up on my SAPSCRIPT Form even if it's declared.

I have a program with constant:

g_bottle_name TYPE c VALUE 'Coke'

It is declared on my SAPSCRIPT Form as:

&g_bottle_name&

Upon printing the SAPSCRIPT, the value 'Coke' doesn't show up.

I tried debugging the program, the value of g_bottle_name shows up there.

4 REPLIES 4
Read only

abo
Active Contributor
0 Likes
1,036

Is it global?

Read only

walkerist79
Participant
0 Likes
1,036

c5e08e0478aa4727abc4482f5be390b2 yes. It is declared as global variable

Read only

abo
Active Contributor
0 Likes
1,036

From the declaration (no length) I would expect at least the "C" to show up... honestly, I've always seen variables being used to transfer data to sapscripts

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,036

What do you mean, "debug variables"? You can debug a program or a SAPScript form, you can't debug a variable...