2007 May 21 8:10 AM
what is dynamic programming
can i use that in my se38
can anybody provide link for developing dynamic programming skills
also what is dynamic open SQL, any help on this topic also will be appreciated
Hi,
goto the function module rss_template_instantiate and see the doccumentation of that functio module.by using this function module we will generate dynamic programs.
DATA:T_ABAPSOURCE LIKE ABAPSOURCE OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RSS_TEMPLATE_INSTANTIATE'
EXPORTING
I_TEMPLATE = 'ZTMW_TEMP'"template(include program)
I_PROGRAM_NAME = 'ZZTMW_HEADER_COM' "program that is to be created dynamicaly to create sel screen
I_PROGRAM_TYPE = 'I' "type 'I' indicates INCLUDE program
I_META_OBJECT = 'ZTMW_HEADER_COM' "meta object
TABLES
E_T_PROGRAM_SOURCE = T_ABAPSOURCE. "this table holds the source code to create sel screen
INSERT REPORT 'ZZTMW_HEADER_COM' FROM T_ABAPSOURCE."inserting source code into program from table
GENERATE REPORT 'ZZTMW_HEADER_COM'. "generating the dynamically generated program
SUBMIT ZTMW_WRKBNCH_TABS VIA SELECTION-SCREEN AND RETURN.
<b>dynamic open sql statement</b>
data:var1(20) value 'MATNR'.
data:var2(20) value 'MARA'.
data:var3(100) value 'ERDAT < sy-datum'.
select (var1) from (var2) where (var3).
endselect.
rgds,
bharat.
Message was edited by:
Bharat Kalagara
2007 May 21 8:17 AM
Hi,
goto the function module rss_template_instantiate and see the doccumentation of that functio module.by using this function module we will generate dynamic programs.
DATA:T_ABAPSOURCE LIKE ABAPSOURCE OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RSS_TEMPLATE_INSTANTIATE'
EXPORTING
I_TEMPLATE = 'ZTMW_TEMP'"template(include program)
I_PROGRAM_NAME = 'ZZTMW_HEADER_COM' "program that is to be created dynamicaly to create sel screen
I_PROGRAM_TYPE = 'I' "type 'I' indicates INCLUDE program
I_META_OBJECT = 'ZTMW_HEADER_COM' "meta object
TABLES
E_T_PROGRAM_SOURCE = T_ABAPSOURCE. "this table holds the source code to create sel screen
INSERT REPORT 'ZZTMW_HEADER_COM' FROM T_ABAPSOURCE."inserting source code into program from table
GENERATE REPORT 'ZZTMW_HEADER_COM'. "generating the dynamically generated program
SUBMIT ZTMW_WRKBNCH_TABS VIA SELECTION-SCREEN AND RETURN.
<b>dynamic open sql statement</b>
data:var1(20) value 'MATNR'.
data:var2(20) value 'MARA'.
data:var3(100) value 'ERDAT < sy-datum'.
select (var1) from (var2) where (var3).
endselect.
rgds,
bharat.
Message was edited by:
Bharat Kalagara
2007 May 21 8:20 AM
Hi John ,
Follow the link below for information about DYNAMIC Programming !!
https://www.sdn.sap.com/irj/sdn/advancedsearch?query='%20dynamic%20programming'&cat=sdn_all
Regards,
Ranjita
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |