‎2010 Aug 31 2:46 PM
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.
‎2010 Sep 01 6:15 AM
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.
‎2010 Aug 31 2:50 PM
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
‎2010 Aug 31 3:16 PM
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.
‎2010 Aug 31 3:25 PM
if these field are not part of i/p parameters , you cant use them in submit.
‎2010 Aug 31 3:18 PM
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.
‎2010 Aug 31 4:49 PM
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
‎2010 Sep 01 6:15 AM
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.
‎2010 Sep 01 7:17 AM
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