cancel
Showing results for 
Search instead for 
Did you mean: 

How to declar internal tables in glodal definition

Former Member
0 Kudos

Hi Floks,

I have a requirement, how to declare internal tables (which are comming from driver program) into global declaration for data getting based on internal table data into where condition.

Thans & Regards,

Accepted Solutions (0)

Answers (5)

Answers (5)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In global definitions->Tables

internaltablename like structurename

provided structure should be ABAP Dictionary.Or create a z structure of that type.

Former Member
0 Kudos

hi mahesh,

If u want to create a table in global difinatin, u can ceclare as above mentioened by other.. I want to add some info how to create u r own internable type which type not existed in dictionay...

In Global difinataion-->Type declatations... create type as below.

 TYPES: BEGIN OF TY_MARM,
         MATNR  TYPE MATNR,
         MEINH  TYPE MEINH,
         UMREN  TYPE UMREN,
         UMREZ  TYPE UMREZ,
         END OF TY_MARM,
         TY_MARM_T    TYPE STANDARD TABLE OF TY_MARM.

now u have a structure type and table type,

<b>in GLOBAL DATA tab-->

type --IT_MEAN in variable Name, in TYPE > type, in ASSOCIATED TYPE> TY_MARM_T.</b>

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

Hello,

Define a structure in data dictionary with the fields u require.

Use this structure as a refrence to declare internal table in the global declaration.

Try and check out in this way.

Regards

Former Member
0 Kudos

Hi,

You should be having some structure to accept the tables from the print program.

You cannot have something defined to adjust according to your input.

Create a structure with all the fields that you want to pass to the smartforms and assign this structure to a tables variable in your form.

Regards

Subramanian

Former Member
0 Kudos

in the report at top after tables declaration...specify the internal table as...

data: begin of itab occurs 0,

field1 type field,

.....................

end of itab.

now this is global and can be used.

Former Member
0 Kudos

hi,

thats very simple

in global definitions go to global data tab

here

in variable name : give ur internal table name

type assignment: give like(here there is a pop up so select from there)

assosciated type: give the DB table name