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

Help please, Passing and receiving parameters with Submit

Former Member
0 Likes
873

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

5 REPLIES 5
Read only

Former Member
0 Likes
852

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

Read only

0 Likes
852

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

Read only

Former Member
0 Likes
852

Thank to all

Read only

0 Likes
852

Hi Antonio

If your question is answered, please mark as such.

Regards

Arden

Read only

Former Member
0 Likes
852

SUBMIT should take either 'EQ' or '='.

Rob