hello all,
i am using input on command,after we enter the input data in list, this data can be used for reprocessing.
Ex: i am displaying list,internal table contains this data.in that one field is input enable(input on),after entering the data in field , i want process the itab again with data entered in that field.
can any one suggest me.
Srinivas.
Hello Srinivas
In my opinion there are never any good reason for using "input on" - its a trap made by SAP to tempt inexperienced programmers to make bad programs.
If you want input from user you should write a modulepool with dynpros instead of a report.
Anyway this is some of the things you have to do:
1) After the user entered data in your field your users have to enter a user command via push-button, function key, menu or other.
2) You catch the user command with "at user-command" or "at line-selection".
3) You read the input from screen with "read line"
With the "read line" command you read a line from the list as a text string - you have to find the position of your field in this string an validate the input yourself - there is no automatic validation of numeric fields format, date format etc.
You also have to make your own system to identify what line in the list was updated and what record in the internal table this list line is connected to. For this you will find the "hide" command usefull.
Finally I will repeat there are no good reason to try to program all the above - most of it is much easier and secure if you create a dynpro/module pool.
Best regards
Thomas Madsen Nielsen
Add a comment