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

Input Check in Table Control

Former Member
0 Likes
1,369

A table control is created in screen painter and an internal table was used to store particular data in ABAP program.

Information were entered into the table through ABAP program(insert value into internal table). The input check generated by data dictionary do not work due to data not inserted from screen field. How can I solved the problem?

Do I need to manually program the input check using module as following:

FIELD f Module m.

But how can I make the whole row ready for input and with cursor on particular column just like what was done with normal data dictionary input check?

Message class 00 number 058 with text

Entry & & & does not exist in &4 - check your entry

can be used for compute the message.

3 REPLIES 3
Read only

Former Member
0 Likes
703

Hi Hong,

As i understood ..we have a table control where data is entered in the background(not by direct input from the user but from an ABAP program) but we need validation in the foreground for the table control...

in this case,for the PAI loop we need to write the code..and in the place where we did the validation FIELD f Module m....try giving an error message , in such a case..only that particular line will be editable...for the cursor to be placed in a particular location we can give a set cursor idenfying the vertical and horizontal co-ordinates of the field in the table control using the set cursor ABAP statement......

Reward if helpful

Regards

Byju

Read only

0 Likes
703

Can you show an example code of that? Thanks.

Read only

Former Member
0 Likes
703

What are those conditions that will trigger the input check for my situation?

I can only do that for those fields with check table.

Here are what I had done:

<b>Flow Logic</b>


      ...
      field EBAN-EKGRP MODULE CHECK_EKGRP.  " Purchasing Group
      ...

<b>Module code</b>


MODULE CHECK_EKGRP INPUT.
TABLES:  T024.
  CHECK:  EBAN-EKGRP IS NOT INITIAL.
  SELECT SINGLE * FROM T024 WHERE EKGRP = EBAN-EKGRP.

  IF SY-SUBRC NE 0.
    MESSAGE E058(00) WITH EBAN-EKGRP '' '' 'T024'.
  ENDIF.
ENDMODULE.                 " CHECK_EKGRP  INPUT

However, this is not applicable for those without check table.

Please help. Points will be awarded for helpful answers.