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

Dump in print preview in SAP SCRIPT

Former Member
0 Likes
541

Hi,

I am facing a problem which I am not able to solve. Please help.

I am working on a SCRIPT and to calculate a field I have written a Subroutine Pool.

The problem I am facing is when I do a page layout its giving me a dump.

Code is as follows:

form get_total in program 'xxxxxxxx' using inttab structure itcsy

changing outtab structure itcsy

data: w_wrbtr(16) type c,

w_wrbtr1 type bsid-wrbtr,

w_total type bsid-wrbtr,

w_total1(16) type c.

read table inttab index 1.

if sy-subrc = 0.

w_wrbtr = <b>inttab-value</b>.

endif.

w_wrbtr1 = w_wrbtr.

w_total = w_total + w_wrbtr1............................

w_total1 = w_total.

Now the field inttab-value is taking a value 'xxxxxxxxxxx.xx' when I am doing a page layout and giving me a dump. the description is unable to interpret 'xxxxxxxxxxx.xx' as a value.

please answer

Thanks.

null

2 REPLIES 2
Read only

Former Member
0 Likes
480

Hi,

What is the value you are getting in INTTTAB-VALUE??

Make sure you are passing the correct value from the sapscript..

Thanks,

Naren

Read only

0 Likes
480

Hi

I am getting the desired output but the problem is when I do a page layout from the script its dumping.

initially when I do page layout. the inttab-value has a value 'xxxxxxxxxx.xx'

Thanks.

Sam

Message was edited by:

Sam Varma