‎2008 Jan 16 11:56 AM
How to call a standard program into zprogram?
please give me solution
‎2008 Jan 16 11:59 AM
Hi,
You can use the submit statement.
like:
SUBMIT programname.
Regards,
Renjith Michael.
‎2008 Jan 16 12:00 PM
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
‎2008 Jan 16 12:00 PM
you can call standard program with either using SUBMIT or CALL TRANSACTION.
‎2008 Jan 16 12:05 PM
Please give me syntax ,
i need to call RFFOAVIS AND RFFOUS_C PROGRAM into
zfismro12
‎2008 Jan 16 12:08 PM
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.