How To Create Include Structure In Sap Abap
Extending the Dictionary Structure with New Fields
Use
You use this procedure to extend the corresponding ABAP Dictionary structure with the fields that you want to insert into a DART segment supplied by SAP.
Prerequisites
If the field that you are adding is of the numeric data type in the source table, you need to convert its data to non-numeric data. You do so through programming function exit FTXW0001. In addition, you must define the field as non-numeric in the ABAP dictionary and in the DART segment. For more information, see Numeric Data Types .
As a result, you cannot use the data element of the field in the source table as the basis for the dictionary field you are creating in this procedure, because its type is inappropriate.
You must then create a non-numeric data element to be used by the field you are adding in this case. You may define some of the attributes of this new data element to be the same as the numeric data element used by the source table (except for its name, data type, and domain).
Procedure
Recommendation
If the segment structure contains a CI include (an include structure starting with CI_ ) insert the new fields there. Otherwise, create an APPEND structure
End of the recommendation.
Inserting the New Fields Using the APPEND Technique
-
Call the ABAP Dictionary (transaction code SE11 ).
-
Enter the name of the structure into which you wish to add a field.
-
Choose Display.
-
Choose Append s tructure .
-
Insert the relevant fields.
-
Save and activate the Append structure.
Inserting the New Fields into an Include Structure
-
Call the ABAP Dictionary.
-
Enter the name of the structure into which you wish to add a field.
-
Choose Display.
-
Double-click the line that contains the INCLUDE structure name starting with CI_.
-
Choose Yes , at the Create table/structure dialog. The Initial Screen: Edit objects dialog box appears.
-
Choose Continue. If the system prompts you to do so, enter a Development class.
-
Enter the names of the fields you want to insert into the segments.
When you add a field, apply the following rules:
-
Define the field with the type Characters.
-
Use the same data element as used in the source table, if the field is non-numeric.
-
If the field is numeric , you must first create a new data element for it. Use this new data element so that it corresponds to a numeric field in the original table.
-
Use the name of the field in the source table as the name of the field you are adding. If the field is numeric, you can use the name of the field in the source table, even though the data types of the two fields are not the same.
-
-
Save your changes and activate the structure.
How To Create Include Structure In Sap Abap
Source: http://saphelp.ucc.ovgu.de/NW750/EN/1f/ece4535dd4414de10000000a174cb4/content.htm
Posted by: rivasasaing.blogspot.com
0 Response to "How To Create Include Structure In Sap Abap"
Post a Comment