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

SAPSCRIPT

former_member2382
Active Participant
0 Likes
583

Hi All,

Can we call a report in SAPScript?? Like we call a subroutine in sapscript using PERFORM stmt..If so plz give an example..

Regards,

Parvez.

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
0 Likes
556

If you are talking about running a report in between your print program then yes you cna do that. You can use the ABAP syntax <b>Submit <program> and Return</b>.

- Guru

Reward points for helpful answers

Read only

Former Member
0 Likes
556

Good option wil be -

write a perform

perform sub_XXX in program ZXXX.

endperform.

se38...

report zXXX.

form sub_XXX.

submit ZXXX1.

endform.

amit..

reward points if helpfull

Read only

Former Member
Read only

Former Member
0 Likes
556

YOU CAN USE IT.

IN LAYOUT

/: PERFORM FCODE IN PROGRAM ZABC USING &IMATNR& CHANGING &OMATNR&

/: ENDPERFORM

IN REPORT ZABC

FORM FCODE.

DATA INTAB LIKE ITCSY OCCURS 0 WITH HEADER LINE.

DATA OUTTAB LIKE ITCSY OCCURS 0 WITH HEADER LINE.

<INTAB -NAME = IMATNR AND VALUES YOU ARE PASSING IN INTAB-VALUE>

<NOW OUTTAB-NAME = 'OMATNR' ASSIGN THE CALCULATED VALUE IN OUTTAB-NAME MODIFY IT IT WILL AFFECT OMATNR IN SCRIPT>

ENDFORM.

REGARDS

SHIBA DUTTA