2007 May 25 11:43 AM
Hi Experts.
I am calling another report in my program inside a method using SUBMIT statement.I can't use Export-Import because OO Concept does not support Export-Import inside a method.
Please tell me how to pass a value stored in a variable using Submit?
Thanks
Abhishek
Hi Experts.
I am calling another report in my program inside a method using SUBMIT statement.I can't use Export-Import because OO Concept does not support Export-Import inside a method.
Please tell me how to pass a value stored in a variable using Submit?
Thanks
Abhishek
2007 May 25 11:46 AM
Hi
<b>With Submit you have to pass the selection-screen mandatory fields also.</b>
regards,
Sree
2007 May 25 11:56 AM
See the command :
DATA: t_param LIKE rsparams OCCURS 10 WITH HEADER LINE.
SUBMIT rmmmperi VIA SELECTION-SCREEN
WITH SELECTION-TABLE t_param
AND RETURN.
Reward Points if it is useful
Thanks
Seshu
2007 May 25 11:59 AM
Hi abhishek,
1. Program1----
>calls Program2
2. In Prog1, use Export
In Prog2, Use Import
Then pass this variable to your method of oo, if it is ur own class.
regards,
amit m.
2007 May 25 12:06 PM
Hi Abhishek,
try out this code whether it is helpful.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
DATA list_tab TYPE TABLE OF abaplist.
IF sy-subrc <> 0.
RETURN.
ENDIF.
Submit report to job
SUBMIT rkpep005
USING SELECTION-SET 'TEST1'
VIA JOB l_jobname
NUMBER l_jobcount
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS ls_params
AND RETURN.
Regards,
prasad
2007 May 25 12:12 PM
Submit Prog2 via selection-screen
with var eq or in var.
the variable should be defined in both the programs.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |