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

ON * INPUT

Former Member
0 Likes
1,283

Hi!

Can any one give me an example for on * input with scenario.

Looking for reply.

Rahul

12 REPLIES 12
Read only

Former Member
0 Likes
1,183

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.

Read only

Former Member
0 Likes
1,183

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.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,183

Hi,

Can be little more specific on what exactly you are looking for....

Regards,

Sesh

Read only

0 Likes
1,183

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

Read only

0 Likes
1,183

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

Read only

0 Likes
1,183

Hi!

My requirement in dialog programming not in reports when users enters *A and presses F4 in Dynpro

Thanks

Read only

Former Member
0 Likes
1,183

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.

Read only

Former Member
0 Likes
1,183

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

Read only

0 Likes
1,183

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.

Read only

0 Likes
1,183

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

Read only

0 Likes
1,183

Thank u very much Bob

I really understood.

Rahul

Read only

0 Likes
1,183

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