‎2007 Dec 17 12:45 PM
in flow logic only two events r pbo and pai?where i can see poh and pov event?plz tell
‎2007 Dec 17 12:49 PM
Hi,
You need to write poh,pov in the flow-logic whenever u need to have f4 help and f1 help for a field.
Plzz reward points if it helps.
‎2007 Dec 17 12:50 PM
‎2007 Dec 17 12:58 PM
Hi,
By default we get only PBO,PAI events in the flow logic scrren.If you want extra functionality like when we press f4 for a particular field we should get possible values for that field to be eneterd.This we can achieve by
PROCESS ON VALUE-REQUEST. event.
Below i gave sample code for
PROCESS ON VALUE-REQUEST event.
Like suppose we want to know f1 for a particular field we should get some description for that field all that we do by Process on help request event.
*************************************************
PROCESS ON VALUE-REQUEST.
FIELD VBAK-AUART
MODULE VBAK-AUART_VALUES.
MODULE VBAK-AUART_VALUES.
DATA: DA_AUART LIKE VBAK-AUART,
DA_BEZEI LIKE TVAKT-BEZEI.
DATA: BEGIN OF DYNPFIELDS OCCURS 5.
INCLUDE STRUCTURE DYNPREAD.
DATA: END OF DYNPFIELDS.
MOVE 'VBAK-VKORG' TO DYNPFIELDS-FIELDNAME.
APPEND DYNPFIELDS.
MOVE 'VBAK-VTWEG' TO DYNPFIELDS-FIELDNAME.
APPEND DYNPFIELDS.
MOVE 'VBAK-SPART' TO DYNPFIELDS-FIELDNAME.
APPEND DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = DYNPFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 01
INVALID_DYNPROFIELD = 02
INVALID_DYNPRONAME = 03
INVALID_DYNPRONUMMER = 04
INVALID_REQUEST = 05
NO_FIELDDESCRIPTION = 06
UNDEFIND_ERROR = 07.
IF SY-SUBRC EQ 0. "nur falls Transport-Felder im Dynpro existieren
READ TABLE DYNPFIELDS WITH KEY 'VBAK-VKORG'.
IF SY-SUBRC = 0.
VBAK-VKORG = DYNPFIELDS-FIELDVALUE.
ENDIF.
READ TABLE DYNPFIELDS WITH KEY 'VBAK-SPART'.
IF SY-SUBRC = 0.
VBAK-SPART = DYNPFIELDS-FIELDVALUE.
ENDIF.
READ TABLE DYNPFIELDS WITH KEY 'VBAK-VTWEG'.
IF SY-SUBRC = 0.
VBAK-VTWEG = DYNPFIELDS-FIELDVALUE.
ENDIF.
ENDIF.
CALL FUNCTION 'RV_HELP'
EXPORTING
KEY = VBAK-VKORG
KEY2 = VBAK-VTWEG
KEY3 = VBAK-SPART
KEY4 = T180-TRVOG
NUMBER = '008'
TRTYP = T185F-TRTYP
FIELD_IN = VBAK-AUART
DESCRIPTION_IN = TVAKT-BEZEI
IMPORTING
FIELD = DA_AUART
DESCRIPTION = DA_BEZEI.
IF DA_AUART IS INITIAL. " Anwender hat F4-Hilfe abgebrochen
DA_AUART = TVAKT-AUART.
DA_BEZEI = TVAKT-BEZEI.
VBAK-AUART = DA_AUART.
ENDIF.
Ermitteln der Anzeigeart für die Auftragsart (Anzeigen/Ändern)
REFRESH DYNPFIELDS.
CLEAR DYNPFIELDS.
MOVE 'VBAK-AUART' TO DYNPFIELDS-FIELDNAME.
APPEND DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = DYNPFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 01
INVALID_DYNPROFIELD = 02
INVALID_DYNPRONAME = 03
INVALID_DYNPRONUMMER = 04
INVALID_REQUEST = 05
NO_FIELDDESCRIPTION = 06
UNDEFIND_ERROR = 07.
READ TABLE DYNPFIELDS WITH KEY 'VBAK-AUART'.
IF DYNPFIELDS-FIELDINP <> SPACE.
Auftragsart ist zur Eingabe offen
VBAK-AUART = DA_AUART.
TVAKT-AUART = DA_AUART.
TVAKT-BEZEI = DA_BEZEI.
ENDIF.
REFRESH DYNPFIELDS.
CLEAR DYNPFIELDS.
ENDMODULE.
*******************************************
Thanks
Sivaparvathi
Please reward points if helpful..........
‎2007 Dec 19 8:19 AM
hi srinath,
the pov and pov events are to be wriiten by us as and when required,the poh(f1) help is used to display the additional documentation and the pov(f4) help is
used to display the possible values for a particular field,poh and pov events are not mandatory.
1)poh(f1) : if the poh is not present then the abap/4 dictionary documentation is taken into consideration
you must code as follows:
PROCESS ON HELP-REQUEST.
FIELD to the ABAP program in the PROCESS ON HELP-REQUEST event.
2)pov(f4) :
Executed in the screen process logic in addition to the PBO and PAI events,it Displays all possible values for selection in a window.
You can program your own possible values help using the PROCESS ON VALUE-REQUEST event.
To define Possible values for a field on screen, u need to defined following in POV event of screen flow logic:
PROCESS ON VALUE-REQUEST.
FIELD field name MODULE module name.
For Possible values, within module defined above, you should use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from ABAP
Dictionary.When the user chooses the function Possible entries, the system displays the possible input values for a field (values, check table, matchcode),
provided they were stored by the developer. The help system decides as to which possible entries are displayed. Possible entries is a standard function.
The event PROCESS ON VALUE-REQUEST is always processed if the user has called "Possible entries". If the cursor is positioned on a field which is named in a
following FIELD statement, the module specified there is executed.
you should possibly use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from table for a particular field on screen.
other fuctions used for f4 help are :
F4IF_FIELD_VALUE_REQUEST
Calls the input help of the ABAP Dictionary dynamically. You can pass the component names of a structure or database table of the ABAP Dictionary to the
function module in the import parameters TABNAME and FIELDNAME. The function module starts the ABAP Dictionary input help for this component. All of the
relevant screen fields are read. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the users selection is returned to the
corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
F4IF_INT_TABLE_VALUE_REQUEST
This function module displays a value list that you created in an ABAP program. The value list is passed to the function module as the table parameter
VALUE_TAB. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the users selection is returned to the corresponding field on the screen.
If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
reward if helpful.
thanks and regards,
srikanth