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

Script values from structure not coming properly.

Former Member
0 Likes
524

Hi Experts,

I am facing some problems related to the SAP Script . I am calculating some values in the routine in a program and trying to print these values in the script.But these values are coming blank in the script.I have put these values in the structure ITCSY.

Kindly help...

Thanks ,

Rahul..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

Hi

Are you calling a routine from the script or is it done before calling the script?

Regards

Vic

3 REPLIES 3
Read only

Former Member
0 Likes
481

Hi

Are you calling a routine from the script or is it done before calling the script?

Regards

Vic

Read only

0 Likes
480

I am calling the routine from the script.so every time the values are vanishing. At the last when the routine is calling , that value is only there in the routine and remaining values are not.

Read only

Former Member
0 Likes
480

post the code...

You're doing something like:

/: perform routine_name in program programname
/: using &something&
/: changing &something&
/:changine &something&
/: endperform

and in your routine is like::

form routine_name tables in_par structure itcsy
                                     out_par structure itcsy.

data: myinput type....

read in_par index 1.
  myinput = in_par-value.  

*calculate the values.
loop at out_par.
 case sy-tabix.
  when 1. out_par-value = something
  when 2. out_par-value = something else.
endcase.
endloop.
endform.