Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Check Table Values.

amit_khare
Active Contributor
0 Kudos

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?

4 REPLIES 4

Former Member
0 Kudos

Amit,

gs_fieldcat-checktable will check checktable value for table SFLIGHT.

Regards,

Amey

former_member188685
Active Contributor
0 Kudos

Hi

I think it will give the check table for SFLIGHT.

Regards

vijay

abdul_hakim
Active Contributor
0 Kudos

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

0 Kudos

Thanx Abdul.