‎2005 Nov 28 6:38 AM
While going through this standard SAP program 'BCALV_GRID_EDIT'. I came through this interesting piece of code for populating field catalog of an OO ALV.
<b>clear gs_fieldcat.
gs_fieldcat-fieldname = 'CURRENCY'.
gs_fieldcat-ref_table = 'SFLIGHT'.
gs_fieldcat-edit = 'X'.
gs_fieldcat-checktable = '!'.
gs_fieldcat-auto_value = 'X'.
append gs_fieldcat to gt_fieldcat.</b>Can Somebody please explain me the use of this EXCLAIMATION MARK , in the checktable value in details?
‎2005 Nov 28 6:45 AM
Amit,
gs_fieldcat-checktable will check checktable value for table SFLIGHT.
Regards,
Amey
‎2005 Nov 28 6:48 AM
Hi
I think it will give the check table for SFLIGHT.
Regards
vijay
‎2005 Nov 28 6:59 AM
Hi Amit.
Welcome to SDN.
The answer is quite simple.
The domain of the field 'checktable' contains a value table DD02L for checking the valid tables.
The value '!' is used to check whether a valid entry exists in the value table DD02L.
I mean here we are checking whether the table SFLIGHT exists in DD02L.
Regards,
Abdul
‎2005 Nov 28 12:44 PM