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

Problem in using Submit

Former Member
0 Likes
692

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

5 REPLIES 5
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
637

Hi

<b>With Submit you have to pass the selection-screen mandatory fields also.</b>

regards,

Sree

Read only

Former Member
0 Likes
637

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

Read only

Former Member
0 Likes
637

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.

Read only

Former Member
0 Likes
637

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

Read only

former_member225631
Active Contributor
0 Likes
637

Submit Prog2 via selection-screen

with var eq or in var.

the variable should be defined in both the programs.