‎2007 Jun 14 1:01 PM
Hi!
Can any one give me an example for on * input with scenario.
Looking for reply.
Rahul
‎2007 Jun 14 1:07 PM
hi rahul,
if u give like this 'on * input' in input field,(ex:se38),
then press f4,
it takes all reports which r there ralated to your input.
ex: there is report name like 'on_field_input',
then u've forgetten report name except 'on input',
now u can search in se38 by providing 'on * input' in the input filed ,
then f4,
u can get all related reports in pop up screen.
reward points if helpful,
regards,,
seshu.
‎2007 Jun 14 1:07 PM
INPUT ON is used to allow input values in the list..
INPUT OFF is used to switch off the input on that was set earlier..
EG:
FORMAT INPUT ON.
WRITE: / 'INPUTON'.
FORMAT INPUT OFF.
‎2007 Jun 14 1:08 PM
Hi,
Can be little more specific on what exactly you are looking for....
Regards,
Sesh
‎2007 Jun 14 2:24 PM
Hi Sesh!
I want some thing when users enters *A then he presses F4.
Now Corresponding to his action an abap module is called (that we all know till this) so that he should get all names starting with A.
How to do conding in ABAP Module.
eg:
FLOW LOGIC PART
PROCESS AFTER INPUT
FIELD KNA1-KUNNR MODULE CHECK_KUNNR ON *-INPUT.
********ABAP/4 MODULE POOL*********
MODULE CHECK_KUNNR INPUT
<b> ???????what coding should be here???????????</b>
ENDMODULE.
Pls reply guys
Thanks in advance
Rahul
‎2007 Jun 14 2:31 PM
this function module 'F4IF_INT_TABLE_VALUE_REQUEST' u need to write in that
MODULE VALUE_S_SAPSYS INPUT.
SELECT Receiver logsys descr
FROM ZGI_LISYS
INTO CORRESPONDING FIELDS OF TABLE VALUES_TAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'RECEIVER'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'S_SAPSYS'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = VALUES_TAB.
ENDMODULE. " VALUE_S_SAPSYS INPUT
‎2007 Jun 14 2:37 PM
Hi!
My requirement in dialog programming not in reports when users enters *A and presses F4 in Dynpro
Thanks
‎2007 Jun 14 1:18 PM
hi,
You can ensure that a PAI module is only called when a certain condition applies by using the following statement:
<b>FIELD <f> MODULE <mod> ON INPUT|*-INPUT.</b>
The additions have the following effects:
<b>ON INPUT</b>
The ABAP module is called only if the field contains a value other than its initial value. This initial value is determined by the data type of the field: Space for character fields, zero for numeric fields. Even if the user enters the initial value of the screen as the initial value, the module is not called. (ON REQUEST, on the other hand, does trigger the call in this case.)
<b>The ABAP module is called if the user has entered a "*" in the first character of the field, and the field has the attribute *-entry in the Screen Painter. When the input field is passed to the program, the * is removed. * behaves like an initial field in the ON INPUT condition.</b>
MODULE MODULE_* INPUT.
MESSAGE I888(BCTRAIN) WITH TEXT-004 INPUT3.
ENDMODULE.FIELD INPUT3 MODULE MODULE_* ON *-INPUT.
Whenever input field 3 contains a * entry, the system calls module MODULE_* for any user interaction.
regards,
Ashokreddy.
‎2007 Jun 14 2:37 PM
I don't think you quite understand what on -input is used for. It doesn't have anything at all to do with F4. It can be used in a dialogue program whan a user enters "" in a currency field:
field zzgl_line_item_data-wrbtr_item
module asterisk on *-input.
Rob
‎2007 Jun 14 2:43 PM
Hi Rob!
Can U pls tell me the purpose of that when user enter * then what actions to take place.
& if possible that abap module coding also send me.
Thanks
Rahul.
‎2007 Jun 14 2:47 PM
You can check for yourself by entering data into transaction FB50. Enter three line items but only enter an amount for the first two and put an "*" in the third items amount. After you press enter, the transaction will generate the correct amount to balance the document.
Rob
‎2007 Jun 14 3:35 PM
‎2007 Jun 14 3:45 PM
Glad to help. I did notice after my first post that "* Entry" is enabled for non numeric fields as well, so I think you can use it for other fileds as well. And the help says:
"This attribute was previously often used to implement possible entries,
but you should now consider whether this is really justified."
I've only used it or seen it used for the case I mentioned.
Rob