Application Development and Automation 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: 
Read only

Regarding Structure Creation

sreeramkumar_madisetty
Active Contributor
0 Kudos
148

Hi Gurus

I want to create a struture with components as follows:

Field - DataElement - Length - Description

Record type YYFIRTYP CHAR(2) Always 02

Bin Number Custom data CHAR(6) Visa Bin Number

element

Transaction Custom data CHAR(16) E-funds transaction code )

Code element (padded with zero)

Transaction dats CHAR(8) UK Format ddmmyyyy

Date

Description Custom data CHAR(50) Transaction description

element

Amount Wert CURR(13) Value of line item with +/-

sign (padded with zero)

Currency wears CUKY(5) Currency of line item

Please guide me on this?

Points are assured for Useful answers.

Regards,

Sree

5 REPLIES 5
Read only

Former Member
0 Kudos
133

Hi,

You can go to tcode SE11 and then can create the same.

Then click the data type select option and create your structure with the required specification.

Then do a syntax checking and activate the same.

While creating the structrue just provide some meaningful description of the same.

Thanks,

Samantak.

<b>Rewards points for useful asnwers.</b>

Read only

0 Kudos
133

Hi

That's I know very well boss.

I need complete details mainly how to give default values boss?

Anyway Thanks For reply.

Regards,

Sree

Read only

0 Kudos
133

Hi Sree,

From you question it was not very clear as what was your exact query.

As per the defination of a structure <b>a structure is a series of fields grouped together under a common name. It is very similar to a table. Like a table, it can be used within a program on the tables statement to define a work area.</b>

But unlike a table you cannot store any values in a structure and hence there is no way that you can store any value whether initial or not. <b>It can store values only during the run time.</b>Hope that clears your doubt very well.

Thanks,

Samantak.

Read only

Former Member
0 Kudos
133

hi

for report you can do this

DATA: BEGIN OF STRUCT,

RECORD(2) TYPE C,

BIN_NUMBER_CUSTOM_DATA(6) TYPE C,

TRANSACTION_CUSTOM_DATA(8) TYPE C VALUE '.....',

TRANSACTION_DATE(8) TYPE C,

DESCRIPTION_CUSTOM_DATA(50) TYPE C,

AMOUNT_WERT(13) TYPE C VALUE '....',

CURRENCY_WEARS(5) TYPE C,

END OF STRUCT.

aditya

Read only

Former Member
0 Kudos
133

hi,

goto SE11 -> select data type -> give name -> create -> select structure [second radio button] -> give desc -> give all [field names] components-> component name [give data element name] -> double click on it-> give same name as data element for domain -> give data type n length n desc -> activate -> give desc..... for data element -> activate .

then automatically what u gave for data element are placed in the fields corresponding to field length n field type.

like this create all fields n activate.

if helpful reward some points.

with regards,

Suresh Aluri.