2008 Aug 14 1:27 PM
In a report I used four subroutines.IN these two having same code other two having difference in single field i.e., while transfering data to final internal table the amount should be multiplied by one .
Can we change it? how can I change it?
Regards,
sam.
In a report I used four subroutines.IN these two having same code other two having difference in single field i.e., while transfering data to final internal table the amount should be multiplied by one .
Can we change it? how can I change it?
Regards,
sam.
2008 Aug 14 8:31 PM
>
> In a report I used four subroutines.IN these two having same code other two having difference in single field i.e., while transfering data to final internal table the amount should be multiplied by one .
>
> Can we change it? how can I change it?
>
> Regards,
> sam.
No idea what you are talking about. You have 1 report, inside which you are calling 4 sub-routines. Two of the routines, even w/ different name, have the same code. Then the other two has difference in 1 parameter? Can you clarify?
2008 Aug 15 4:28 AM
Try like this
Do amount field multiplication after the procession of the SUBROUTINE for the other 2 subroutines. i.e, after the PERFORM statements of the 2 SUBROUTINES u r talking of with extra field.
2008 Aug 15 9:18 AM
very strange question ... please spend more time also for yourself to understand your problem. And ask a proper question.
> internal table the amount should be multiplied by one
as a performance recommendation I would say, leave it away, nobody will notice that it was not multiplied by '1'.
Siegfried
2008 Aug 18 9:45 AM
2008 Aug 19 3:27 PM
Hi,
Put all the code in a Function Module and Call it.
It works Globally.
But When Subroutine 1 is called put some condition lilke:
IF SUB_routine EQ 1.
call SUB1.
ELSEIF SUB_routine EQ 2.
call SUB2.
ELSEIF SUB_routine EQ 3.
call SUB3.
ELSEIF SUB_routine EQ 4.
call SUB4.
ENDIF.
Regards,
Rama.