2007 Jun 18 11:16 AM
Hi!
I have this code:
SELECT SINGLE PROCPROG JOBNAME
INTO (lv_procprog, lv_jobname)
FROM ZGL_MPF_CONFIG
WHERE interfacename = INTERFACENAME.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
JOBCOUNT = lv_jobcount.
.
SUBMIT (lv_procprog)
USER SY-UNAME
VIA JOB lv_jobname
NUMBER lv_jobcount
WITH PATH EQ 'C:\DOWNLOAD2.TXT'
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
STRTIMMED = 'X'
.
The program dump in SUBMIT (lv_procprog) line. SAP tells z_interface (procprog value) doesn't exist but it is a FM that exists and is actived. Do you see any mistake? z_interface receive a path where write a file.
Thx
2007 Jun 18 11:47 AM
Maybe submit is waiting a report instead of a Function module?
How i can solve this?
Hi!
I have this code:
SELECT SINGLE PROCPROG JOBNAME
INTO (lv_procprog, lv_jobname)
FROM ZGL_MPF_CONFIG
WHERE interfacename = INTERFACENAME.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
JOBCOUNT = lv_jobcount.
.
SUBMIT (lv_procprog)
USER SY-UNAME
VIA JOB lv_jobname
NUMBER lv_jobcount
WITH PATH EQ 'C:\DOWNLOAD2.TXT'
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
STRTIMMED = 'X'
.
The program dump in SUBMIT (lv_procprog) line. SAP tells z_interface (procprog value) doesn't exist but it is a FM that exists and is actived. Do you see any mistake? z_interface receive a path where write a file.
Thx
2007 Jun 18 11:47 AM
Maybe submit is waiting a report instead of a Function module?
How i can solve this?
2007 Jun 18 11:53 AM
Hi,
1. What u can do list.
Get all the variant of the standard report and
data: variant(14).
variant = 'VARIANT1'. " Based on ur condition change the value to the variable
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET VARIANT "Check here
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
2 .Use the fm: RS_VARIANT_CONTENTS to get the values of the different values in the screen.
move those values to screen fields in the INITIALIZATION event
<b>Reward points</b>
Regards
2007 Jun 18 11:54 AM
Hello,
Make a report which calls the function module and specify the same function parameters as selection screen parameters in the program
2007 Jun 18 11:52 AM
Hello Manel,
This is what SAP help states
The SUBMIT statement accesses an executable <b>program</b> rep. The executable program is executed as described under Calling Executable Reports.
The program name rep can either be specified directly or as the content of a character-like data object name. The data object name must be the name of the program to be accessed in <b>block capitals</b>. IF the program specified name is not found, an irretrievable exception is generated
1. make sure the name is in capitals
2. i am not sure if you can submit a function module as a job
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |