‎2007 Sep 07 6:28 AM
Hi,
I need example program for PROCESS ON HELP REQUEST in module pool and reports.
Explain clearly that example program and why the PROCESS ON HELP REQUEST IS NEED?
‎2007 Sep 07 6:33 AM
HI,
· PROCESS ON HELP-REQUEST (POH) and PROCESS ON VALUE-REQUEST (POV) are triggered when the user requests field help (F1) or possible values help (F4) respectively. You can program the appropriate coding in the corresponding event blocks. At the end of processing, the system carries on processing the current screen.
As is normal with events, you must only program event blocks for the events to which you want the flow logic to react. However, the screen flow logic must contain at least the two statements PROCESS BEFORE OUTPUT and PROCESS AFTER INPUT in the correct order.
Example of Flow Logic Example
The following example shows some use of screen flow logic:
*----
-
Sample Code
*----
-
*Processing Before Screen Output
PROCESS BEFORE OUTPUT.
MODULE INIT_FIELDS.
Self-programmed F1 Help
PROCESS ON HELP-REQUEST.
FIELD GSSG-BUKRG MODULE V-BUKRG.
Processing after user input
PROCESS AFTER INPUT.
Lock customer master record
CHAIN.
FIELD GSSG-KTNRG
MODULE ENQUEUE_CUSTOMER_MASTER.
Read customer master record
MODULE READ_CUSTOMER_MASTER.
Read business area
MODULE READ_GSSG.
ENDCHAIN.
Process function code
FIELD OK-CODE MODULE OKCODE ON INPUT.
Regards
Nicole
‎2007 Sep 07 6:53 AM
Hi Udaya,
Use the below code.
*Note
*You have to press <b>F1</b> button on the parameter pernr to view the possible values.
tables: pa0001.
parameters: p_pernr(8) type n.
data: begin of it_pernr occurs 0,
pernr type pa0001-pernr,
end of it_pernr.
INITIALIZATION.
it_pernr-pernr = '123'.
append it_pernr.
it_pernr-pernr = '456'.
append it_pernr.
AT SELECTION-SCREEN ON HELP-REQUEST FOR p_pernr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PERNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_PERNR'
value_org = 'S'
TABLES
value_tab = it_pernr
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 Sep 07 7:07 AM
hi
good
go through this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbad0435c111d1829f0000e829fbfe/content.htm
thanks
mrutyun^
‎2007 Sep 07 9:53 AM
Hi ,
Check if this can be helpful !!Taken from the ABAPDOCU tcode .
REPORT demo_selection_screen_f1.
PARAMETERS: p_carr_1 TYPE s_carr_id,
p_carr_2 TYPE spfli-carrid.
AT SELECTION-SCREEN ON HELP-REQUEST FOR p_carr_2.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 60 10.
Praveen:)