‎2008 Mar 17 4:01 PM
Hi friends,
I am having report and reprt two programs.
Report1 selection screen like:
selection-screen begin of block bi with tile text-001.
s_num1 for zexp,
s_num2 for zexp,
s_num3 for zexp,
end of selection-screen.
I am using report2 and submiting report1 and executing like.
submit report1.......
here problem is i dont want report1 selection-screen but i want to pass s_num1, s_num2, s_num3 skiping selection text-001.
and execute.
can u please provide logic to skip the selection-screen(report1) and pass select-option values and execute.
Thanks in advance
aruna .
‎2008 Mar 17 4:06 PM
Create a variant with the selection screen of report ZREPORT1 being passed
SUBMIT ZREPORT1
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'ZREPORT2'
AND RETURN.
Effect
Executes the program ZREPORT1 with the variant VARIANT1 of the program ZREPORT2 .
‎2008 Mar 17 4:06 PM
hi ,
REPORT report1.
DATA text(10) TYPE c.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
...
Calling program
REPORT report2.
DATA: text(10) TYPE c,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
...
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Result
After report1 has been accessed by report2, the selection tables for the selection criteria selcrit1 and selcrit2 in the program accessed contain the following entries:
SIGN OPTION LOW HIGH
selcrit1 I EQ ABAP
selcrit2 I BT H K
selcrit2 E EQ H
selcrit2 E EQ K
regards,
venkat.
‎2008 Mar 17 4:07 PM
You'll need to fill those select-options and pass them in SELTAB
DATA: seltab LIKE rsparams OCCURS 0 WITH HEADER LINE.
Fill your parameters/select-options here into SELTAB.
SUBMIT report WITH SELECTION-TABLE seltab.
Just do an F1 on the keyword Submit to find more info.
‎2008 Mar 17 4:19 PM
DATA: seltab TYPE TABLE OF rsparams,
s_num1 LIKE LINE OF seltab,
s_num2 LIKE LINE OF seltab,
s_num3 LIKE LINE OF seltab.
"First fill select-options with required values
s_num1-selname = 'S_NUM1'.
s_num1-low = '23234'. "some value
s_num1-high = '33234'. "some value
s_num1-sign = 'I'.
s_num1-option = 'BT'.
APPEND s_num1 to seltab.
s_num2-selname = 'S_NUM2'.
s_num2-low = '33234'. "some value
s_num2-high = '43234'. "some value
s_num2-sign = 'I'.
s_num2-option = 'BT'.
APPEND s_num2 to seltab.
s_num3-selname = 'S_NUM3'.
s_num3-low = '53234'. "some value
s_num3-high = '63234'. "some value
s_num3-sign = 'I'.
s_num3-option = 'BT'.
APPEND s_num3 to seltab.
SUBMIT REPORT1 WITH SELECTION-TABLE seltab.
‎2008 Aug 28 11:41 AM
SUBMIT rsbdcsub
USER w_username
VIA JOB w_jobname
NUMBER w_jobcount
TO SAP-SPOOL IMMEDIATELY dontprint
DATASET EXPIRATION p_spl "retain for 2 days
WITHOUT SPOOL DYNPRO
Regards,
Kumar