on 07-27-2023 12:44 PM
Hello Community, I have a question.
I have a Program and i need read a list of reports and take your source code, i use the form GET_INCLUDES to get includes listeds in report, but i received functions and reports in addition. can i read the header_function report, or identify the item from list like include to read your source code?
PARAMETERS: p_n_prog type programm.
DATA: lt_source TYPE TABLE OF string.
DATA: lt_include TYPE TABLE OF string,
lv_result TYPE trdir-name.
CALL FUNCTION 'GET_INCLUDES'
EXPORTING
progname = p_n_prog
tables
incltab = lt_include.
BREAK POINT.
LOOP AT lt_include INTO DATA(ls_include).
CALL METHOD cl_reca_rs_services=>get_source
EXPORTING
id_objtype = 'PROG'
id_objname = ls_include
IMPORTING
et_source = lt_source.
ENDLOOP.
Here there are a list of includes into internal table lt_include
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
8 | |
6 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.