Application Development 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: 

Process on Help request

Former Member
0 Kudos

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?

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member

Former Member
0 Kudos

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:)