‎2008 May 22 3:26 PM
hi,
i have structure that i use in some program before
and i wont to use it now in new program but with 1 more field
there is somthing that i can do beside build new structure.
Regards
‎2008 May 22 3:29 PM
types: begin of new_structure.
include structure old_structure.
types: new_field type p,
end of new_structure.
‎2008 May 22 3:29 PM
types: begin of new_structure.
include structure old_structure.
types: new_field type p,
end of new_structure.
‎2008 May 22 3:29 PM
Hi,
You can add the field directly if it is a Z structure.If it is a standard structure,then create the structure in your program as follows:
types:begin of struct,
include structure <struct name>,
newfield type c,
end of struct.
‎2008 May 22 3:33 PM
Try this:
DATA: BEGIN OF st_newstructure.
INCLUDE oldstructure.
DATA: newfield LIKE ddic-field.
DATA: END OF st_newstructure.It will work fine in your program