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

SAP Script!!

Former Member
0 Likes
488

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
458

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

4 REPLIES 4
Read only

Former Member
0 Likes
459

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

Read only

0 Likes
458

shall i make use of external sub routine or sum it up ther in the script?

Read only

0 Likes
458

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

Read only

Former Member
0 Likes
458

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