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

Problem in displaying the data in a Sap Script

Former Member
0 Likes
727

Hi,

I am facing a problem in displaying the data of a sap script into rows as it was previously displayed in the coloumns and i want to display into rows.

for eg,

c

23.2

f

2.3

but i want to diaplay the data as:-

c f

23.2 2.3

plzz provide me guidelines as how to solve this problem .

Edited by: ricx .s on Mar 3, 2009 11:49 AM

Hi,

I am facing a problem in displaying the data of a sap script into rows as it was previously displayed in the coloumns and i want to display into rows.

for eg,

c

23.2

f

2.3

but i want to diaplay the data as:-

c f

23.2 2.3

plzz provide me guidelines as how to solve this problem .

Edited by: ricx .s on Mar 3, 2009 11:49 AM

5 REPLIES 5
Read only

rejish_balakrishnan
Contributor
0 Likes
707

Hi,

In your case, create 2 variable windows for getting 2 columns.

In both variable window add the same element once

Read only

0 Likes
707

hi,

i dont know how to create the variables in sap script as i had nevered worked on it,plzz provide me guidelines how to do it.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
707

Hi,

Refer this wiki for Make First SAP Script step by step

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/make%252bfirst%252bsap%252bscript%252bstep%2...

Hope this helps you.

Regards,

Tarun

Read only

0 Likes
707

Declare and populate a variable in your program. To display the variable in a SAPscript, enclose in '&'. ie data: l_var(6) type c.

to print in sapscript, &l_var&

Read only

0 Likes
707

HI,

On se71

In windows : declare 2 variable window.

Add it to a page . by selecting create->element (now choose both the var window create by double clicking)

click on the ruler by selecting particular varwindow.

In line editor of a var window. write

&w_var1& (field string name if it is table)

again in line editor of a var2 window. write

&w_var2& (field string name if it is table)

Now pass the values from main program having same name as in sripts (ie w_var1 , w_var2)

Let me know u understood it ?