‎2009 Jun 18 10:11 AM
Hi,
I am trying to execute the following submit statement for transcation FAGL003. But i am unable to see any dynamic selection active on its screen. Whereas if i execute the same code (with different parameter values) for another transaction say FBL5N, i can see the dynamic selection getting active.
Am i passing some wrong parameters or is there some other way to handle Submit for transaction FAGL003?
PLZ Help!
The code is as follows:
TYPE-POOLS : rsds.
DATA : it_selopt TYPE rsds_selopt_t,
wa_selopt TYPE rsdsselopt.
DATA : it_frange TYPE rsds_frange_t,
wa_frange TYPE rsds_frange.
DATA : it_trange TYPE rsds_trange,
wa_trange TYPE rsds_range.
DATA : it_texpr TYPE rsds_texpr,
wa_texpr TYPE rsds_expr.
wa_trange-tablename = 'FAGLFREESEL'.
wa_frange-fieldname = 'RFAREA'.
wa_selopt-sign = 'I'.
wa_selopt-option = 'EQ'.
wa_selopt-low = '2000'.
APPEND wa_selopt TO wa_frange-selopt_t.
APPEND wa_frange TO wa_trange-frange_t.
APPEND wa_trange TO it_trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = it_trange
IMPORTING
expressions = it_texpr.
BREAK-POINT.
SUBMIT FAGL_ACCOUNT_ITEMS_GL VIA SELECTION-SCREEN
WITH FREE SELECTIONS it_texpr
AND RETURN.
‎2009 Jun 18 10:31 AM
Hi Malhotra,
Check the below code.
DATA:
it_rsparams TYPE STANDARD TABLE OF rsparams,
wa_rsparams LIKE LINE OF it_rsparams.
wa_rsparams-selname = ''. "Screen field name SD_SAKNR for G/L account
wa_rsparams-kind = 'S'. "S=Select-options P=Parameters
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'EQ'.
WA_RSPARAMS-LOW = '11010'.
wa_rsparams-high = space.
SUBMIT fagl_account_items_gl VIA SELECTION-SCREEN
WITH SELECTION-TABLE it_rsparams and return.Build RSPARAMS table with all selection screen values for fagl_account_items program. It works.
Thanks
Venkat.O
‎2009 Jun 18 10:48 AM
I want to pass values to the dynamic selection fields such as functional Area. And hence i am using 'free selection'. Account No is not a dynamic selection field and i have no problem with that.
‎2009 Jun 18 11:07 AM
Hi,
try this way.
REPORT report2.
TYPE-POOLS rsds.
DATA: trange TYPE rsds_trange,
trange_line LIKE LINE OF trange,
trange_frange_t_line LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'SPFLI'.
trange_frange_t_line-fieldname = 'CONNID'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'BT'.
trange_frange_t_selopt_t_line-low = '0200'.
trange_frange_t_selopt_t_line-high = '0800'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'NE'.
trange_frange_t_selopt_t_line-low = '0400'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
SUBMIT report1 VIA SELECTION-SCREEN
WITH FREE SELECTIONS texpr.
Thanks
Venkat.O
‎2009 Jun 18 11:22 AM
Hi Vinay,
Thanks for ur suggestion. I have followed the same code for transaction FAGLL03 but it doesn't seem to work for its dynamic selection field functional area. But the same code works for other transcation such as FBL5N. Could u plz suggest me what is wrong with the code written for transaction 'FAGLL03'.
Thanxs in advance.
‎2009 Aug 20 11:19 AM
hi annie malhotra,
I am also facing the same problem regarding free seelction for FAGLL03.
do u got the solution for this.
My requirement is to pass document type from z report selection screen to standard report by using submit.
kindly provide sample logic if u already got the solution for this.
Thanks & regards,
Raghul
‎2009 Aug 20 12:38 PM