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

print local variable from print prog into sapscript

Former Member
0 Likes
537

Hi,

I have one local variable declared in the print program for one SAP-form. I want to print it in some window of that form.

How do i pass that variable to the form for printing ?

Thanks & Regards

Hrishi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
506

If that variable is not in subroutine then Declare same kind of variable in form and when you call the form pass that value from local variable to form variable.

If your variable is not in subroutine then first transfer it to globle and then pass to from variable.

Minal

3 REPLIES 3
Read only

Former Member
0 Likes
507

If that variable is not in subroutine then Declare same kind of variable in form and when you call the form pass that value from local variable to form variable.

If your variable is not in subroutine then first transfer it to globle and then pass to from variable.

Minal

Read only

0 Likes
506

thanks for the reply minal.

can you give some example. How do i declare something in a form ?

see i have var A and var B. I want to print (A-B) How do i do that ?

Thanks again

Regards

Hrishi

Read only

0 Likes
506

Problem solved

EXCL_VAT is a quantity field and the value field in ITCSY is a Character field, so had to change the code in the following manner.

write EXCL_VAT to outtab-value.

condense outtab-value.

Regards

Hrishi