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

Value Check for ALV fields

Former Member
0 Likes
3,092

Hi,

I have a modifiable ALV for a name-value table. The ABAP types are strings respectively. In the name column the field names of a DDIC structure are displayed. In the value column a value can be entered. I also implemented a f4 help depending on the value of the name field. Now I also would like to have a value check, which is essentially working as the ALV value check for DDIC fields, i.e. if the user enters a wrong value for the DDIC field a little pop-up appears and the ALV cell is marked through red text.

Thanks a lot,

Thomas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,240

Hi,

If you are using OO ALV then Check this example <b>BCALV_EDIT_04</b>

here they have used some thing differently. if you use Checktable if you give wrong input then it will give Dump.

so they used

fieldcat-checktable = '!'. "this avoids check table check

and then they used their own checking.

just see the code.

Regards

vijay

Hi,

I have a modifiable ALV for a name-value table. The ABAP types are strings respectively. In the name column the field names of a DDIC structure are displayed. In the value column a value can be entered. I also implemented a f4 help depending on the value of the name field. Now I also would like to have a value check, which is essentially working as the ALV value check for DDIC fields, i.e. if the user enters a wrong value for the DDIC field a little pop-up appears and the ALV cell is marked through red text.

Thanks a lot,

Thomas

3 REPLIES 3
Read only

Former Member
0 Likes
1,240

Hi

Are you using OO ALV?

In this case see the demo program BCALV_EDIT_03.

Max

Read only

Former Member
0 Likes
1,240

FIELDCAT-FIELDNAME = 'BUKRS'.

<b>FIELDCAT-CHECKTABLE = 'T001'.</b>

You can use Checktable option in the fieldcatalog.

Regards

vijay

Read only

Former Member
0 Likes
1,241

Hi,

If you are using OO ALV then Check this example <b>BCALV_EDIT_04</b>

here they have used some thing differently. if you use Checktable if you give wrong input then it will give Dump.

so they used

fieldcat-checktable = '!'. "this avoids check table check

and then they used their own checking.

just see the code.

Regards

vijay