Skip to Content
author's profile photo Former Member
Former Member

Table control Validation

I have worked in CT04 transaction. In that if we specify the character type (Eg . Characetr Foramt) & enter the number of characetrs as 3 means in value tab it wont allow as to enter value greater than 3. It wont show any error message but it restrict the cursor(the cursor wont move at all)

I want to do this kind of validation in my table control.

I debugged the program also But not able to get it.

Main program is SAPLCTMV and screen number is 1200.

The table control field is CAWN-ATWRT.

Can any one help me to solve this problem.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 06:33 AM

    write the code on PAI of ur screen to popup a error message if some condition for a particular field of Table control fails as follows -

    PROCESS AFTER INPUT.

    LOOP AT ITAB2. "ITAB2 is the table for table control.

    module read_table_control.

    ENDLOOP.

    module read_table_control input.

    if itab1-pernr eq '00000022'.

    message w000(000) with 'Enter other value than 22'. "this is error message

    else.

    MODIFY itab2 FROM itab1 INDEX tabcontrl-current_line.

    endif.

    endmodule. " read_table_control INPUT

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      i know this, by getting the number of characters we can validate & rasie error message but i dont want to do tht.

      I want to stop the cursor movement when it reaches the maximum number of character.

      for example see CT04 transacton.

      Is it possible for me to validate like tht if yes means tell me how it can be done.

      Thanks in advance.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.