2008 Aug 05 11:47 AM
Hi,
I have to update a Z-structure appended in a stnd. table from a screen exit.
I am struck with the updating of Z struc.
Kindly reply me soon.
Thanks,
Naresh
2008 Aug 05 1:09 PM
Hi Naresh,
Is the structure appended or Included to the table?
I guess for the standard table we need to append....
If its appended
The following enhancements can be made to a table or structure TAB with an append structure:
· Insert new fields in TAB,
· Define foreign keys for fields of TAB that already exist,
· Attach search helps to fields of TAB that already exist,
These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.
When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
Mohinder
2008 Aug 05 1:20 PM
Hi Mohinder,
Thanks for your response.
I have appended a structure to the stnd. table PNWTYV with a name ZAPNWTYV.
In ZAPNWTYV 6 flds are maintained..which are being used in WTY(tcode) in a screen exit in table control.
These fields in the table control in WTY should be updated in the ZAPNWTYV/PNWTYV.
When i debug the code,the entered fields are existing in the work area of ZAPNWTYV but not in the WA of PNWTYV.
Kindly reply me as soon as possible.
Yuor help will be appreciated..
Thanks,
Naresh
2008 Aug 05 8:09 PM
Declare the screen fields as PNWTYV-<fieldname> .. this will solve your problem..
2008 Aug 09 10:27 AM