cancel
Showing results for 
Search instead for 
Did you mean: 

tax calculations

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Krishna,

See that you are calling WRITE_FORM with the particular element for each record in OUTPAR.

Kind Regards

Eswar

former_member188005
Contributor
0 Kudos

Hi Krishna,

Let me know how you have declared the perform statement in the SAP Script ans with what parameters both USING and CHANGING.

Regards..