2015 Feb 21 8:19 AM
Hi,
In a father I Report :
--------------------------------------------------->
REPORT1
PARAMETER: filetest(100) OBLIGATORY type c.
PARAMETER: nomejob(10) OBLIGATORY type c.
PARAMETER: Numjob OBLIGATORY type n.
" Controlo quanti job ho scelto e in funzione di esso eseguire il job di esecuzione
SELECT-OPTIONS num_ord1 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
SELECT-OPTIONS num_ord2 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
SELECT-OPTIONS num_ord3 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
I have to pass these parameters to REPORT2 e : how do i ?
-....
SUBMIT REPORT2
WITH p_numjob EQ va_jobname
WITH p_nome EQ space "va_nome
WITH p_path EQ space "p_path
WITH p_file EQ filetest
....
..
VIA JOB va_jobname
NUMBER va_jobcount
AND RETURN.
------------------------------------------------------------>
they describe it in the report 2: how do i ?
REPORT REPORT2
----
THANK YOU !!
BYE
Hi,
In a father I Report :
--------------------------------------------------->
REPORT1
PARAMETER: filetest(100) OBLIGATORY type c.
PARAMETER: nomejob(10) OBLIGATORY type c.
PARAMETER: Numjob OBLIGATORY type n.
" Controlo quanti job ho scelto e in funzione di esso eseguire il job di esecuzione
SELECT-OPTIONS num_ord1 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
SELECT-OPTIONS num_ord2 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
SELECT-OPTIONS num_ord3 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.
I have to pass these parameters to REPORT2 e : how do i ?
-....
SUBMIT REPORT2
WITH p_numjob EQ va_jobname
WITH p_nome EQ space "va_nome
WITH p_path EQ space "p_path
WITH p_file EQ filetest
....
..
VIA JOB va_jobname
NUMBER va_jobcount
AND RETURN.
------------------------------------------------------------>
they describe it in the report 2: how do i ?
REPORT REPORT2
----
THANK YOU !!
BYE
2015 Feb 21 7:55 PM
Hi Antonio
You code looks pretty good in it's current format, try with this adjusted code.
SUBMIT REPORT2
WITH P_NUMJOB = VA_JOBNAME
WITH P_NOME = VA_NOME
WITH P_PATH = P_PATH
WITH P_FILE = FILETEST
The rest of the syntax for your code looks spot on.
Regards
Arden
2015 Feb 21 11:33 PM
Hi,
juat an additional Info.
Arden has it right, The only thing you had wrong, was the use of compare operator EQ.
But although it looks pretty much like a comparison, it's more of an assignment and thus done by using =.
You're assigning the actual parameters to the respective formal parameters, very much like in a method or function call.
Best regards Jörg
2015 Mar 13 3:02 PM
2015 Mar 13 10:01 PM
Hi Antonio
If your question is answered, please mark as such.
Regards
Arden
2015 Mar 16 8:43 PM