‎2008 Mar 11 1:37 PM
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?
‎2008 Mar 11 1:40 PM
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.
‎2008 Mar 11 1:43 PM
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
‎2008 Mar 11 2:08 PM
Hw can i trigger a Flag....my event must be proceesed after the variant is called?
‎2008 Mar 11 1:45 PM
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.
‎2008 Mar 11 1:46 PM
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
‎2008 Mar 11 1:50 PM
"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.