Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

structures in reporting

Former Member
0 Kudos

hi,

how to create global structure in reporting?

can any one give me the navigation to do it

please suggest me

4 REPLIES 4

ashok_kumar24
Contributor
0 Kudos

Hi Ajay,

Good Check the following documentation

1) By defining them as Global objects,we can use set of selections/Restrictions in more than one query. So that we can avoid rework from scratch.

2) By using two structures, we can go/use with cell defination through which we can overwrite the values of cells.

Also structures are basically composite of more than one data types...

for. e.g

1.date 2.char 3 integer etc.

Also structure are used for declaring work area of line type of some dbase table.

Everywhere you have to fill the fields either during extraction or use a collection of fields to produce report.

Now if all the fields are in one structure it is useful for you and other's to understand and even to extract or fill the same.

Structures which either directly or in substructures contain only fields of types C, N, D or T.

The main characteristics of the different kinds of structures are:

Flat structures contain only fields of the elementary types C, N, D, T, F, I, P, and X, or structures containing these types.

Deep structures contain strings, internal tables and field or object references in addition to the elementary types.

Nested structures are structures that contain substructures as components.

Non-nested structures are structures that do not contain any substructures.

Creating Structures

=======================================================

Procedure

In the initial screen of the ABAP Dictionary, enter the structure name in field Data type and choose Create.

A dialog box appears in which you must select the type category.

Select Structure and choose .

The maintenance screen for structures appears.

Enter an explanatory short text in the field Short text.

You can for example find the structure at a later time using this short text.

Carry out the following steps for all the components you want to insert in the structure.

You can also include structures, tables or views instead of individual components. The procedure here is described in Inserting an Include.

Enter a name in column Components.

If you want to insert the structure as an include in a transparent table at a later time, the component names may not be longer than 16 characters.

Enter the name of the type whose attributes should be used in the component in field Component name. You can enter any type (data element, structure or table type) here.

If you want to add components by entering the data type and length directly, choose Built-in type. You can now enter values for fields DTyp, Length, Dec.places, and Short description. With Component type you can switch back to the screen for entering references to existing types.

You can also enter a Reference Type in the Component Type field. If you enter a class, interface, or generic reference (ANY, OBJECT, or DATA) in the Component Type field, the R type field is set automatically. If you enter a reference type already defined in the Dictionary as a reference type, a blue arrow appears in the D type column.

If the type defined in the ABAP Dictionary or the built-in type is a reference type, set the indicator in the R Type column.

You can combine components with direct type definition and components that are defined by referencing an existing type as you like.

The reference field and reference table must be specified for components of type CURR (currency) and QUAN (quantity).

You can make these entries on the Currency/quantity fields tab page.

Now maintain the foreign keys of the structure.

Proceed as when maintaining the foreign keys of a table (see Creating Foreign Keys).

Choose Search Help, if you want to assign a search help to a structure field that points to a data element. Enter the name of a search help in the dialog box that appears. See Attaching a Search Help to a Table or Structure Field.

Save your entries once you have defined all the components of the structure.

You are asked to assign the structure a development class. You can change the development class later with Goto ® Change object directory entry.

Choose an enhancement category. For more information, see Structure Enhancements.

Choose .

Result

The structure is now activated. The runtime object of the structure is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred when the structure was activated, the activation log is automatically displayed.

Good Luck and Thanks

AK

Former Member
0 Kudos

U just write the structure name ... let us say 'STRTC'.

IN ur report program write

<b>tables strtc.</b>

and <b>double click on <u>strtc</u>..</b>

it will take u to SE11 screen and asks u whether to creat e a data element or structure or table type..

in that check <b>STRUCTURE</b> .. then u can create that structure here.. and it will be globally available..

reward if it helps u...

sai ramesh

Former Member
0 Kudos

goto tcode SE11 , enter the structure name in data type and press create.

Former Member