Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Sample Code arrow ABAP Reports arrow Creating internal table of any type
Creating internal table of any type PDF Print E-mail
User Rating: / 5
PoorBest 
Written by Alexander Bykov   
Thursday, 17 September 2009
***********************************************************************
* This program is freeware and is provided on as-is basis without *
* warranty of any kind. *
***********************************************************************
* Author * Alexander Bykov *
* E-mail * This e-mail address is being protected from spam bots, you need JavaScript enabled to view it *
***********************************************************************
* Description *
* Create internal table of any type on the fly *
***********************************************************************
data:
lt_fcat type lvc_t_fcat.
data:
tabname type ref to data,
tabline type ref to data.

field-symbols:
<gt> type standard table,
<gs> type any.

call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'DDIC_STRUCTURE'
changing
ct_fieldcat = lt_fcat
exceptions
inconsistent_interface = 1
program_error = 2
others = 3.

* Creating table
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = lt_fcat
importing
ep_table = tabname.

assign tabname->* to <gt>.
create data tabline like line of <gt>.
assign tabline->* to <gs>.
Ny

Related Items:

 
Next >

Google Search

Statistics

Contribution Activity
Utilities: 41
Tips and Tricks: 362
Sample Code: 174
Total Contributions: 592

Member Activity
Members: 6795 since 2/1/2007!
New: 2 since yesterday!
Visitors: 2163884
We have 2 guests online

Newest Members

Welcome our newest members:

Google Ads