2014 Aug 16 5:49 AM
Hi friends,
I want to create and activate a global structure and global table type by coding in ABAP editor only. so can I do that anyhow.
Please help me.
Thanks in advance.
2014 Aug 17 6:37 AM
Thanks guys for your fruitful replies, as most of you asked the main purpose of my question, the answer is as follows:
in fact my purpose to do so is to create a function module that can fetch data dynamically from different database tables based on the codings in different abap program.
for example: in one abap program i am coding as follows:
tables: kna1.
types: begin of itab,
kunnr type kna1-kunnr,
name1 type kna1-name1,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
similarly in other program i am coding as follows:
tables: vbrp.
types: begin of itab,
posnr type vbrp-posnr,
matnr type vbrp-matnr,
arktx type vbrp-arktx,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
so now for both programs i want to call the same function module and fetch data as required in relative programs as mentioned above. in that case how to create that function module?
Thanks guys for your fruitful replies, as most of you asked the main purpose of my question, the answer is as follows:
in fact my purpose to do so is to create a function module that can fetch data dynamically from different database tables based on the codings in different abap program.
for example: in one abap program i am coding as follows:
tables: kna1.
types: begin of itab,
kunnr type kna1-kunnr,
name1 type kna1-name1,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
similarly in other program i am coding as follows:
tables: vbrp.
types: begin of itab,
posnr type vbrp-posnr,
matnr type vbrp-matnr,
arktx type vbrp-arktx,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
so now for both programs i want to call the same function module and fetch data as required in relative programs as mentioned above. in that case how to create that function module?
2014 Aug 16 5:54 AM
Regards,
Philip.
2014 Aug 16 6:07 AM
Why? If you explain the reasons why you think you need this, we might be able to better suggest answers.
2014 Aug 16 6:45 AM
HI,
i think it's not possible if it is possible then there is no meaning to use DDIC
2014 Aug 16 11:27 AM
Of course it is possible - how else does SAPLInk work? The question is why does the OP want to do this?
2014 Aug 16 12:31 PM
A wild guess. REUSE*ALV* FM field catalog does not work well for local structures. So OP wants to dynamically create a DDIC structure and then use REUSE* FM with satisfactory results.
2014 Aug 16 1:04 PM
2014 Aug 17 7:18 AM
2014 Aug 17 6:37 AM
Thanks guys for your fruitful replies, as most of you asked the main purpose of my question, the answer is as follows:
in fact my purpose to do so is to create a function module that can fetch data dynamically from different database tables based on the codings in different abap program.
for example: in one abap program i am coding as follows:
tables: kna1.
types: begin of itab,
kunnr type kna1-kunnr,
name1 type kna1-name1,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
similarly in other program i am coding as follows:
tables: vbrp.
types: begin of itab,
posnr type vbrp-posnr,
matnr type vbrp-matnr,
arktx type vbrp-arktx,
end of itab.
data: it_tab type standard table of itab,
wa_tab type itab.
so now for both programs i want to call the same function module and fetch data as required in relative programs as mentioned above. in that case how to create that function module?
2014 Aug 17 6:53 AM
Regards,
Philip.
2014 Aug 17 9:19 AM
Thanks friends,
Can I have a detailed information regarding RTTC, RTTS AND CL_SALV_TABLE, please.
I couldn't understand how to use these concept while creating a function module?
2014 Aug 17 9:40 AM
Yes you can. Sufficient information can be found by searching.
2014 Sep 04 9:29 AM
Dynamic Internal table - ABAP Development - SCN Wiki
Hi Sanjeev
Please Check this link if you are not satisfied i will create a demo program using dynamic structures in function modules
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |