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 statement

Former Member
0 Likes
606

hi,

i am using submit statement in my custom report to call a report with variant.I am able to do it.

But my problem is......i need to select a particular event after the variant is called....how can i call it externally from my custom report?

6 REPLIES 6
Read only

Former Member
0 Likes
589

hi ,

Hi

see the options of Submit

In PROG1 use the submit

SUBMIT priog2

WITH <selection Variant>

WITH p_locno EQ p_loc

WITH s_matnr in v_matnr.

regards,

venkat.

Read only

Former Member
0 Likes
589

I am not sure if you can call events within a program. A simple approach is to use flags till the event logic is triggerred.

-Cheers

Read only

0 Likes
589

Hw can i trigger a Flag....my event must be proceesed after the variant is called?

Read only

0 Likes
589

Hi,

With addtion to above post add AND RETURN to your submit statement.

Ex:

SUBMIT <Prgm name> USING SELECTION-SET <variante>

WITH <V1> IN <T>

WITH <V2> IN <T>

AND RETURN.

Return --> continue the prgm execution to the called prgm.

reward if this solve ur issue...

Regards,

Siva.

Read only

Former Member
0 Likes
589

can you explain it more clear

if u have different variant for the program then u can use the FM RS_VARIANT_CONTENTS

this give u the content of that variant

Read only

Former Member
0 Likes
589

"sy-slset stores variant name
"depending upon variant name you can call different routines
"I don't know how we can call EVENTS with in same program.

CASE sy-slset.

  WHEN 'VAR1'.
    PERFORM FORM1.

  WHEN 'VAR2'.
    PERFROM FORM2.

ENDCASE.