Application Development and Automation 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: 
Read only

Check Table Values.

amit_khare
Active Contributor
0 Likes
731

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
Read only

Former Member
0 Likes
691

Amit,

gs_fieldcat-checktable will check checktable value for table SFLIGHT.

Regards,

Amey

Read only

Former Member
0 Likes
691

Hi

I think it will give the check table for SFLIGHT.

Regards

vijay

Read only

abdul_hakim
Active Contributor
0 Likes
691

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

Read only

0 Likes
691

Thanx Abdul.