‎2008 Aug 07 11:33 AM
hi ,
plz tell me how to add f4 help functionality to a text field in a screen in module pool program. ie., the input should be given by selecting from the list of entries from the database table for that particular field.
Thanks & Regards,
Syam.
‎2008 Aug 07 11:51 AM
‎2008 Aug 07 12:01 PM
Hello vijay ,
i have seen ur program but i can get a nice understanding of it . So i request you to suggest if there is any other possibility.
Thanks & Regards,
Syam
‎2008 Aug 07 12:26 PM
For Getting the F4 Help in Module pool
1. we have to use Flow logic event POV
Assume that you have a field on screen CARRID
PROCESS ON VALUE-REQUEST.
FIELD CARRID MODULE VALUE_CARRIER.
2. Implement the Module.
MODULE value_carrier INPUT.
"First get the Data to an internal table from some ZTABLE or standard table. then you have to pass the table to this function.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF TABLE values_tab
WHERE carrid = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID' "<---retun field from table
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'CARRID' " <---screen field
value_org = 'S'
TABLES
value_tab = values_tab. "<---Internal table for F4 help
ENDMODULE.follow the steps and Provide the F4 for your fields.
‎2008 Aug 07 11:58 AM
Hi,
just follow these steps for F4 help in Module Pool
Define module like this in PAI of your screen
zmoufpmas1-mouno is my screen field
getmouno is my module name.
PROCESS ON VALUE-REQUEST.
FIELD zmoufpmas1-mouno MODULE getmouno.
*double click on getmouno this module.
*and code like below.
*******************************************************************
MODULE getmouno INPUT.
DATA choice TYPE sy-tabix.
* select values for display in F4 help popup
SELECT mouno FROM zmoufpmas1 INTO TABLE it_mouno WHERE delflag <> 'X'.
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 19
endpos_row = 20
startpos_col = 10
startpos_row = 2
titletext = 'MoU No.'
IMPORTING
choice = choice
TABLES
valuetab = it_mouno[]
EXCEPTIONS
break_off = 1
OTHERS = 2.
IF sy-subrc = 0.
*assigning selected value to screen field
zmoufpmas1-mouno = choice.
ENDIF.
ENDMODULE.
Thanks,
Murugan.B
‎2008 Aug 08 3:52 AM
hi ,
u r program is ok , but i need clarity and regarding
getmouna and z____-mouna , what r they ?
what should be the text field name on the screen for ur sample program given ?
Thanks & Regards,
Syam.
‎2008 Aug 08 5:51 AM
Hi,
zmoufpmas1-mouno is my screen field which i gave in tht text element in screen...its just an example, instead of this u can use ur own variable..
getmouno is my module name. this also an example instead u can use your own module name.
Thanks
Murugan.B
‎2008 Aug 13 2:39 PM