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

process on value request is not working

Former Member
0 Likes
6,167

hi experts,

            pov is not working in module pool programming.

thanks in advance,

regards,

vinodh

1 ACCEPTED SOLUTION
Read only

nishantbansal91
Active Contributor
4,045

This message was moderated.

20 REPLIES 20
Read only

vladimir_erakovic
Contributor
0 Likes
4,045

Hi Vinodh,

And the question is?

Provide some code by the way.

Read only

nishantbansal91
Active Contributor
4,046

This message was moderated.

Read only

former_member220538
Active Participant
0 Likes
4,045

Hi,

POV triggers on pressing of F4 Button.use the MODULE statement together with the FIELD statement and use the FM F4IF_INT_TABLE_VALUE_REQUEST.

PROCESS BEFORE OUTPUT.

MODULE STATUS_9000.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9000.

PROCESS ON VALUE-REQUEST.

FIELD CARRID MODULE GET.

MODULE GET INPUT.

select carrid from sflight into table itab UP TO 10 rows.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

  EXPORTING

    DYNPPROG               = SY-CPROG

    DYNPNR                    = SY-DYNNR

    RETFIELD                  = 'CARRID'

    VALUE_ORG              = 'S'

    DYNPROFIELD          = 'CARRID'

  TABLES

    VALUE_TAB              = itab.

ENDMODULE.     

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm

Read only

0 Likes
4,045

hi,

i tried this but its not trigerring, in debugging mode pai is trigerring after that its going to pbo but its not trigerring pov.

Read only

0 Likes
4,045

Hi,

FIELD CARRID MODULE GET.

Here CARRID is the screen fields name ie the name given for the field in the Layout.Click the search help associated with this field.Put a BREAK POINT in the POV Module ie in the above example GET Module and check it is triggered or not.

Read only

0 Likes
4,045

Hi

Please share your PAI,PBO,POV code. Please note that screen field name and field name in POV module should be same.

Nabheet

Read only

0 Likes
4,045

POV will trigger only with the attached field related activity

Use CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to bring search help to that field.


And test it by clicking on the search help button that comes at runtime.


Regards

Ansumesh

Read only

former_member209120
Active Contributor
0 Likes
4,045

Hi vinodh mohan

See this demo program for better under standing of POV

DEMO_DYNPRO_F4_HELP_MODULE

Read only

Former Member
0 Likes
4,045

Hii Vinodh,

First declare a internal table in your TOP include and for EVENT PROCESS ON VALUE-REQUEST , write it in PAI after User_command module.

Here is example,

Top Include:

DATA t_sflight TYPE STANDARD TABLE OF SFLIGHT.

PROCESS AFTER INPUT.

   MODULE user_command_9000.

   PROCESS ON VALUE-REQUEST.

     FIELD carrid MODULE f4_help.

MODULE f4_help.

     SELECT *

          FROM SFLIGHT

          INTO TABLE T_SFLIGHT

          UPTO 200 ROWS.

     IF SY_SUBRC EQ 0.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

     EXPORTING

       dynpprog        = sy-repid

       dynpnr          = sy-dynnr

       dynprofield     = 'CARRID'

       value_org       = 'S'

     TABLES

       value_tab       = t_sflight

     EXCEPTIONS

       parameter_error = 1

       no_values_found = 2

       OTHERS          = 3.

   IF sy-subrc <> 0.

*     *implement error here

   ENDIF.

     ENDIF.

ENDMODULE.

regards

Syed

Read only

Former Member
0 Likes
4,045

hi,

PROCESS BEFORE OUTPUT.

   MODULE STATUS_9001.

  PROCESS AFTER INPUT.

  MODULE USER_COMMAND_9001.

PROCESS ON VALUE-REQUEST.

FIELD IT_ZPP-MATNR MODULE FILE_SEARCH.

MODULE FILE_SEARCH INPUT.

DATA: BEGIN OF IT_MARA OCCURS 0,

          MATNR TYPE MATNR,

      END OF IT_MARA.

*  CLEAR WA_MARA.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,

L_RETFIELD TYPE DDSHRETVAL.

   SELECT MATNR  FROM MARA INTO CORRESPONDING FIELDS OF TABLE IT_MARA .

   SORT IT_MARA BY MATNR.

     CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

       EXPORTING

         ddic_structure = 'MARA'

         RETFIELD              = 'MATNR'

         DYNPPROG              = SY-REPID

         DYNPNR                = SY-DYNNR

         DYNPROFIELD           = 'IT_ZPP-MATNR'

         VALUE_ORG             = 'S'

       TABLES

         VALUE_TAB             = IT_MARA

         RETURN_TAB = T_RETURN

      EXCEPTIONS

        PARAMETER_ERROR        = 1

        NO_VALUES_FOUND        = 2

        OTHERS                 = 3

               .

       DATA: lt_dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.

     READ TABLE T_RETURN INTO L_RETFIELD INDEX 1.

        IF sy-subrc = 0.

          MOVE L_RETFIELD-fieldval TO IT_ZPP-matnr.

          lt_dynpfields-fieldname  = IT_ZPP-MATNR.

          lt_dynpfields-fieldvalue = L_RETFIELD-fieldval .  "wa_ekpo-ebelp.

          APPEND lt_dynpfields.

          CALL FUNCTION 'DYNP_VALUES_UPDATE'

            EXPORTING

              dyname     = sy-repid    "Program name

              dynumb     = '9001'           "Screen number

            TABLES

              dynpfields = lt_dynpfields

            EXCEPTIONS

              OTHERS     = 0.

        ENDIF.

       IT_ZPP-MATNR = T_RETURN-FIELDVAL.

Read only

0 Likes
4,045

Does it give you some dump when you press F4 on field 'IT_ZPP-MATNR' if yes then do as follow.

 

CALL

FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

* ddic_structure = 'MARA' -------------Comment this

RETFIELD =
'MATNR'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD =
'IT_ZPP-MATNR''

VALUE_ORG =
'S'


TABLES

VALUE_TAB = IT_MARA

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR =
1

NO_VALUES_FOUND =
2

OTHERS = 3

Read only

0 Likes
4,045

hi,

  cursor is not going into pov while in debugging.

Read only

0 Likes
4,045

What is the screen field name is it same secondly you dont seem to haveanything for PAI..? Try by creating a pai module

Read only

0 Likes
4,045

hi,

   screen field name are same,but i didnt try on pai module i am trying only on pov,let me try and get back to u

Read only

0 Likes
4,045

Have it like this

 

PROCESS BEFORE

OUTPUT.
* MODULE STATUS_9100.
**
PROCESS AFTER
INPUT.
MODULE USER_COMMAND_9100.

process
on value-request.
field bukrs module bukrs.

Read only

0 Likes
4,045

hi,

  thanks for ur reply,i tried it its working fine,but i have written code for list box fm vrm_set_values in pbo module status for screen..

Read only

0 Likes
4,045

So what is the issue you have related to list box?

Read only

0 Likes
4,045

hi,

  i have written code for list box in MODULE STATUS_9100.as u stated early to comment that line.

Read only

Former Member
0 Likes
4,045


Give a try with this....

MODULE FILE_SEARCH INPUT.

DATA: BEGIN OF IT_MARA OCCURS 0,

          MATNR TYPE MATNR,

      END OF IT_MARA.

*  CLEAR WA_MARA.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,

L_RETFIELD TYPE DDSHRETVAL.

   SELECT MATNR  FROM MARA INTO CORRESPONDING FIELDS OF TABLE IT_MARA .

   SORT IT_MARA BY MATNR.

     CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

       EXPORTING

         ddic_structure = 'MARA'

         RETFIELD              = 'MATNR'

         DYNPPROG              = SY-REPID

         DYNPNR                = SY-DYNNR

         DYNPROFIELD           = 'IT_ZPP-MATNR'

         VALUE_ORG             = 'S'

       TABLES

         VALUE_TAB             = IT_MARA

         RETURN_TAB = T_RETURN

      EXCEPTIONS

        PARAMETER_ERROR        = 1

        NO_VALUES_FOUND        = 2

        OTHERS                 = 3.

       IT_ZPP-MATNR = T_RETURN-FIELDVAL.

ENDMODULE.

Cheers

Read only

Former Member
0 Likes
4,045

hi,

thanks for ur reply,its working now.