Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Programming

Former Member
0 Likes
426

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

2 REPLIES 2
Read only

Former Member
0 Likes
378

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

Read only

former_member196299
Active Contributor
0 Likes
378

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