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

program calling

Former Member
0 Likes
633

How to call a standard program into zprogram?

please give me solution

5 REPLIES 5
Read only

Former Member
0 Likes
614

Hi,

You can use the submit statement.

like:

SUBMIT programname.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
614

Hi Santhosh,

DATA: rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab .

rspar_line-selname = 'PCHOBJID'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = wa_main-pernr.

APPEND rspar_line TO rspar_tab.

SUBMIT rhthist0 USING SELECTION-SCREEN 1000

WITH SELECTION-TABLE rspar_tab

WITH pchplvar EQ '01'

WITH pchotype EQ 'P'

WITH pchztr_a EQ 'X'

AND RETURN.

note pchplvar pchotype pchztr_a are parameters

and PCHOBJID are select-options.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
614

you can call standard program with either using SUBMIT or CALL TRANSACTION.

Read only

0 Likes
614

Please give me syntax ,

i need to call RFFOAVIS AND RFFOUS_C PROGRAM into

zfismro12

Read only

Former Member
0 Likes
614

You can do it with the help of submit.

Here is an example for that : http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

you can use the SUBMIT statement to call any program from a Z program:

SUBMIT <program> VIA SELECTION-SCREEN AND RETURN.

SUBMIT <program> EXPORTING LIST TO MEMORY AND RETURN.

SUBMIT <program> TO SAP-SPOOL

SPOOL PARAMETERS print_parameters

WITHOUT SPOOL DYNPRO

VIA JOB name NUMBER number

AND RETURN.

the statements listed above are the different ways in which you can execute the program from any Z... program.