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

Submit Report

Former Member
0 Likes
877

Hi Everyone,

I am working on one requirement where in my program, I need to get the values from the standard program RGJVBJ02 the field values are for

1. RJVNAM,

2. REGROU,

3.DOCNR ,

4.DOCLN,

5.RACCT

7.HSL,

8. JIBCL,

9. JIBSA.

So can you please suggest me how my Submit Program statement should be so that i get those above field values in my Zprogram.

-Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
835

Not all the fields are part of the selection screen. Four of them are in selection screen and rest are populated inside the program in some select queries.

As I am working on this Submit program for the first time an example will really help me out. Give me some clue so that in my Zprogram I can get all these field values from the other standard program.

Regards.

7 REPLIES 7
Read only

Former Member
0 Likes
835

Hi,

they are two ways you can submit your Program


 SUBMIT RGJVBJ02
             WITH RJVNAM    = p_RJVNAM
             WITH REGROU    = p_REGROU
"Use all rest of fields if the field is select options use *IN* Operator
              AND RETURN.

"Or

SUBMIT RGJVBJ02 USING SELECTION-SET p_var.     "P_VAriant is selection screen variant in RGJVBJ02 Program

"OR

*   Submit report in background and creating spool
  SUBMIT  RGJVBJ02  USING SELECTION-SET p_var
      TO SAP-SPOOL WITHOUT SPOOL DYNPRO
      SPOOL PARAMETERS wa_pri_params AND RETURN.
  COMMIT WORK AND WAIT.

Prabhudas

Read only

Former Member
0 Likes
835

That was really helpful.But i have a question,where if some of the field values are not part of selection screen how can i declare my statement.Could please give me a sample program,really appreciate your help.

Read only

0 Likes
835

if these field are not part of i/p parameters , you cant use them in submit.

Read only

Former Member
0 Likes
835

That was really helpful.But i have a question,where if some of the field values are not part of selection screen how can i declare my statement.Could please give me a sample program,really appreciate your help.

Read only

Former Member
0 Likes
835

Hi ,

Please try reading the valuse via field symbols . For example , after you submit the program RGJVBJ02 and return to your Z-program , you can use the field symbols to read those value ( either internal table or global variable like (RGJVBJ02)INT_JADE.

-


The below code example would help ,

*Step 1: Assign the program/field name of calling program variable to field symbol 1

assign '(RGJVBJ02)INT_JADE' to <fs1>.

*Step 2: Assign field Symbol contents to field symbol 2

assign (<fs1>) to <fs2>.

*Step 3: Assign Field Symbol 2 to avariable in the current function module/Program

-


From the above example , you can access the internal table INT_JADE once you submit the report RGJVBJ02. This way you can access all the fields that are defined in the program RGJVBJ02.

Also you can implement the implecit enhancement in the report RGJVBJ02 where the required value can be exported to memory and you can then read those values in your Z-Program.

Hope this helps.

Regards,

Debaraj

Edited by: Debaraj Sahoo on Sep 1, 2010 11:36 AM

Read only

Former Member
0 Likes
836

Not all the fields are part of the selection screen. Four of them are in selection screen and rest are populated inside the program in some select queries.

As I am working on this Submit program for the first time an example will really help me out. Give me some clue so that in my Zprogram I can get all these field values from the other standard program.

Regards.

Read only

0 Likes
835

Then why dont you use EXPORT statement, for values which you cant export using selection set.



EXPORT G00 TO MEMORY ID 'Y_ECC6DEV_20100216_110600'

Regards

Abhii

Edited by: Abhii on Sep 1, 2010 8:17 AM

Edited by: Abhii on Sep 1, 2010 8:18 AM