Skip to Content
0
Former Member
Jan 08, 2008 at 06:37 AM

tax calculations

17 Views

Hi everybody,

i have written a subroutine for my script to get tax values.

so i have now tax data in table t_konv. which have to be displayed in the output.

i looped t_konv and appended all data to outpar table which is of type ITCSY structure.

when i see print preview in ME23n transaction, i not getting the taxes printed.only the last record of t_konv is gettig printed. But when i debugged, i found that all the records are getting passed to outpar table.

what could be reason ?,,,, please suggest me...

below is the code of subroutine, for returning the data back to the script.

Thanks,

krishna

_____________________________________________

i1 = 1.

LOOP AT T_KONV.

CLEAR OUTPAR.

READ TABLE OUTPAR INDEX I1.

MOVE T_KONV-TEXT1 TO OUTPAR-VALUE.

MODIFY OUTPAR INDEX I1.

I2 = I1 + 1.

**conversion to character format

WRITE: T_KONV-KWERT TO V2_KWERT.

READ TABLE OUTPAR INDEX I2.

MOVE V2_KWERT TO OUTPAR-VALUE.

MODIFY OUTPAR INDEX I2.

I1 = I2 + 1.

I3 = I1.

ENDLOOP.

READ TABLE OUTPAR INDEX I3.

MOVE P_TOTAL_FINAL3 TO OUTPAR-VALUE.

MODIFY OUTPAR INDEX I3.

ENDFORM. "yroutine