cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between "tables:X" and "ls_str TYPE X"?

yalcin_mete
Participant
0 Kudos

Hi Masters,


When I define TABLES:zpp_t0045, I create a structure. When I define "ls_str TYPE zpp_t0045", I create a structure. What is the difference between them?

If there is no difference, instead of making a long definition of "ls_str TYPE zpp_t0045", you can simply write "TABLES: zpp_t0045" and continue ?

yalcin_mete_1-1709102978199.png

 

thanks

 

 

Sandra_Rossi
Active Contributor
0 Kudos
The difference is that TABLES is also used for automatic Dynpro field transport, memory sharing (obsolete), logical database (obsolete). See TABLES documentation.

Accepted Solutions (1)

Accepted Solutions (1)

Edrilan_Berisha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Yalcin,

 

I think the answer is in the documentation: https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abaptables.htm

 

In ABAP OO "TABLES: [...]" does not work. And yes it creates a flat structure as described in the documentation.

 

Best,

Edrilan Berisha

SAP S/4HANA Cloud Financials Development

yalcin_mete
Participant
0 Kudos

Answers (0)