2007 Sep 18 12:31 PM
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
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.
2007 Sep 18 12:45 PM
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>
2007 Sep 18 12:49 PM
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
2007 Sep 18 12:57 PM
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.
2007 Sep 18 12:48 PM
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
2007 Sep 18 12:57 PM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |