‎2006 Oct 03 11:43 AM
hi
how to create the dynamic selection screen?
if any one has any tips then plz share with me.
thanks & regards
sanjeev
‎2006 Oct 03 11:48 AM
Hi Sanjeev,
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
Selection Views
***************
http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/3ecfa4149c11d2953c0000e8353423/content.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci779665,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=448&h2=322&h1=303&h3=448
reward if helpful.
Regards,
Laxmi.
‎2006 Oct 03 12:21 PM
hi
good
The statement
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
declares a node <node> of a logical database for dynamic selections in the selection include.
To use the dynamic selections in the SELECT statements of the subroutine PUT_<node>, you must use the data object DYN_SEL. The data object DYN_SEL is automatically generated in the logical database program as follows:
TYPE-POOLS RSDS.
DATA DYN_SEL TYPE RSDS_TYPE.
You do not have to program these lines yourself. The data object DYN_SEL is available in the database program but not in a connected executable program.
The type RSDS_TYPE of the data object is defined in the type group RSDS as follows:
TYPE-POOL RSDS.
WHERE-clauses ------------------------------
TYPES: RSDS_WHERE_TAB LIKE RSDSWHERE OCCURS 5.
TYPES: BEGIN OF RSDS_WHERE,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
WHERE_TAB TYPE RSDS_WHERE_TAB,
END OF RSDS_WHERE.
TYPES: RSDS_TWHERE TYPE RSDS_WHERE OCCURS 5.
Expressions Polish notation ---------------
TYPES: RSDS_EXPR_TAB LIKE RSDSEXPR OCCURS 10.
TYPES: BEGIN OF RSDS_EXPR,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
EXPR_TAB TYPE RSDS_EXPR_TAB,
END OF RSDS_EXPR.
TYPES: RSDS_TEXPR TYPE RSDS_EXPR OCCURS 10.
Selections as RANGES-tables -----------------
TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
TYPES: BEGIN OF RSDS_FRANGE,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
SELOPT_T TYPE RSDS_SELOPT_T,
END OF RSDS_FRANGE.
TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
TYPES: BEGIN OF RSDS_RANGE,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FRANGE_T TYPE RSDS_FRANGE_T,
END OF RSDS_RANGE.
TYPES: RSDS_TRANGE TYPE RSDS_RANGE OCCURS 10.
Definition of RSDS_TYPE
TYPES: BEGIN OF RSDS_TYPE,
CLAUSES TYPE RSDS_TWHERE,
TEXPR TYPE RSDS_TEXPR,
TRANGE TYPE RSDS_TRANGE,
END OF RSDS_TYPE.
http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
thanks
mrutyun^
‎2006 Oct 03 12:37 PM
‎2007 Oct 01 7:16 AM
Hi sanjeeb,
Can you please tell me how you did dynamic selection without using LDB.
its very urjent please replay soon.
‎2007 Oct 01 7:18 AM
Check these FM's, they are well documented
FREE_SELECTIONS_INIT Initialize dynamic selection: Declare permitted tables ...
FREE_SELECTIONS_DIALOG Dialog for entering dynamic selection conditions
‎2007 Oct 01 7:23 AM
<b>AT SELECTION-SCREEN OUTPUT</b> (In this event)
(Screen table stores the current selection screen contents temporarily when the selection screen is loaded and before it is displayed)
example.
LOOP AT <b>SCREEN</b>.
if <screen-field> is space.
if screen-name = <screen-field>.
screen-required = 1.
modify screen.
endif.
endif.
The above is an example code to make a field obligatory dynamically.
check out in se11 the fields in the structure <b>screen</b>. u can manipulate the selection screen dynamically using those fields.
endloop.