‎2007 May 10 6:34 AM
in that format option what is use of that input off,
i referred intensified,inverse,hotspot,but i am not get that concept of input offplz do help.
regards
vijay
‎2007 May 10 6:41 AM
Hi,
The Syntax for format option with addition Input is :
FORMAT [ INPUT [{ON|OFF}|{= flag} ]]
Effect:
This addition makes list areas ready for input. For flag, a data object of type i is expected. If ON is specified or the content of flag is not equal to 0, the relevant list area is displayed with a different foreground and background color than the rest of the list, and the user can overwrite the output. The screen cursor is positioned in the first field that is ready for input. If OFFis specified or the content of flag is equal to 0, the output is not made ready for input (default setting). If neither ON, OFF nor flag is specified after INPUT, the ON addition takes effect.
Within an area that is ready for input, icons are displayed empty and symbols are displayed as characters according to the codepage. Line elements are not made ready for input. The "-" und "|" characters in a list area that is ready for input are not converted into line elements, however, and are displayed ready for input. the latter applies particularly to the ULINE statement.
The width of the list area that is ready for input is defined by the output length. If in Unicode systems the display of contents from the list buffer in a list area that is ready for input results in truncation, the indicator is placed outside the area. The number of characters that can be entered is limited by the output length. The content cannot be moved. In ar. In Unicode systems, the number of characters that can be entered depends on the space that the individual characters require.
The entries made by the user are saved in the list buffer and can be evaluated during a list event. If characters were truncated in the list, then they will also be lost in the list buffer.
<u>Example</u>
Output of a ready for input field and evaluation of the AT-LINE-SELECTION result. The evaluation is done only if the user clicks on the hotspot below the line that is ready for input.
DATA: input_field(100) TYPE c,
line_num TYPE i.
START-OF-SELECTION.
WRITE 'Input text:'.
SET BLANK LINES ON.
FORMAT INPUT.
WRITE / input_field.
FORMAT INPUT OFF.
WRITE / '>>> OK <<<' COLOR 5 HOTSPOT.
AT LINE-SELECTION.
IF sy-lisel = '>>> OK <<<'.
line_num = sy-lilli - 1.
READ LINE line_num FIELD VALUE input_field.
WRITE: 'The input was:',
/ input_field.
ENDIF.
‎2007 May 10 6:37 AM
Hi,
INPUT ON is used to allow inputing values in the list..
INPUT OFF is used to switching off the input on that was set earlier..
Ex..
FORMAT INPUT ON.
WRITE: / 'INPUT'.
FORMAT INPUT OFF.
Thanks,
Naren
‎2007 May 10 6:41 AM
Hi,
... INPUT [ON] or ... INPUT OFF
Effect
Determines whether the user can enter data. You can change the contents of list lines output with the format ... INPUT on the screen. You can also print out the change or process it further by using READ LINE in interactive events.
... INPUT OFF reverses the ready for input status.
Note
Every time a new event ( START-OF-SELECTION, TOP-OF-PAGE, ...) is started, the system switches off ... INPUT.
The additions ... COLOR, ... INVERSE and ... HOTSPOT have no effect on input fields.
The addition ... INTENSIFIED affects the background color (color palette "input field" or "output field intensified").
The attribute ... INPUT causes lines to be displayed character-by-character and ready for input (| or -).
Blank lines are displayed only if you have specified BLANK LINES ON beforehand. To make blank INPUT fields visible on blank lines, you can use the SET BLANK LINES statement.
Hope this helps.
Regards,
Kumar.
‎2007 May 10 6:38 AM
Hi vijay,
If u are using input on in the<b> write</b> statement then in the report output u can edit ur output and make changes to tht.Input off means u cannot edit ur output.By default it is input off.
For ex: write:/ mara-matnr input on.
<b>plz reward points if helpful or if it solves ur query.</b>
Thanks
Chinmay
‎2007 May 10 6:41 AM
Hi,
The Syntax for format option with addition Input is :
FORMAT [ INPUT [{ON|OFF}|{= flag} ]]
Effect:
This addition makes list areas ready for input. For flag, a data object of type i is expected. If ON is specified or the content of flag is not equal to 0, the relevant list area is displayed with a different foreground and background color than the rest of the list, and the user can overwrite the output. The screen cursor is positioned in the first field that is ready for input. If OFFis specified or the content of flag is equal to 0, the output is not made ready for input (default setting). If neither ON, OFF nor flag is specified after INPUT, the ON addition takes effect.
Within an area that is ready for input, icons are displayed empty and symbols are displayed as characters according to the codepage. Line elements are not made ready for input. The "-" und "|" characters in a list area that is ready for input are not converted into line elements, however, and are displayed ready for input. the latter applies particularly to the ULINE statement.
The width of the list area that is ready for input is defined by the output length. If in Unicode systems the display of contents from the list buffer in a list area that is ready for input results in truncation, the indicator is placed outside the area. The number of characters that can be entered is limited by the output length. The content cannot be moved. In ar. In Unicode systems, the number of characters that can be entered depends on the space that the individual characters require.
The entries made by the user are saved in the list buffer and can be evaluated during a list event. If characters were truncated in the list, then they will also be lost in the list buffer.
<u>Example</u>
Output of a ready for input field and evaluation of the AT-LINE-SELECTION result. The evaluation is done only if the user clicks on the hotspot below the line that is ready for input.
DATA: input_field(100) TYPE c,
line_num TYPE i.
START-OF-SELECTION.
WRITE 'Input text:'.
SET BLANK LINES ON.
FORMAT INPUT.
WRITE / input_field.
FORMAT INPUT OFF.
WRITE / '>>> OK <<<' COLOR 5 HOTSPOT.
AT LINE-SELECTION.
IF sy-lisel = '>>> OK <<<'.
line_num = sy-lilli - 1.
READ LINE line_num FIELD VALUE input_field.
WRITE: 'The input was:',
/ input_field.
ENDIF.