‎2007 Jun 11 10:18 AM
Hi ,
I have a FI form wherein most of the data (item level ) is getting printed from rf130 structure i need to check few condtions from one of the fields of this structure and and in turn sum up those values and display it ther on the script....
like compare two dates and sum up some amount...whats the best possible way for this?
Regards
Gunjan
‎2007 Jun 11 10:23 AM
Hi
define a variable and Sum up with that field
/: DEFINE &SUM&
/ : IF <condition>
/ SUM = SUM + <Structure Field>
/: ENDIF
Reward points for useful Answers
Regards
Anji
‎2007 Jun 11 10:23 AM
Hi
define a variable and Sum up with that field
/: DEFINE &SUM&
/ : IF <condition>
/ SUM = SUM + <Structure Field>
/: ENDIF
Reward points for useful Answers
Regards
Anji
‎2007 Jun 11 10:26 AM
shall i make use of external sub routine or sum it up ther in the script?
‎2007 Jun 11 10:34 AM
Hi
If you are getting data into that Structure field which is already there in the script then there is no need of external subroutine
first do as above and observe whether the data is summing up or not.
if not think of an external subroutine.
Reward points for useful Answers
Regards
Anji
‎2007 Jun 11 10:50 AM
Hi Gunjan,
If the condition logic is simple it can be done in the sapscript or you can define a subroutine. If the logic is a bit complex i.e. involving various records of the internal table then you can modify the print program.
Hope it helps.
Regards,
Johnny