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: 

Not getting a correct value in f4 help while choosing

Former Member
0 Kudos

Hello All,         I am get one issue in module pool. There is one field which i have add in CJ20n Tcode called 'MARKET'. Market values coming from zmarket table. There is 3 fields for this zmarket table in f4 help. There is 3 fields Name, Description and check in the table. While putting value in cj20n for MARKET field it has to take from NAME but its capturing value from DESCRPTION which is not acceptable. Please let me know where i am doing wrong.Here i am also attaching the validation part of module pool. Thanks and Regards Sankil Pandya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi sankil pandya,

   In the FM retfield ,Please  give  zzmarket .....

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

       EXPORTING

        retfield        = ' ZZMARKET'   "  Please Change here the retfield....

         dynpprog        = w_prog_name2

         dynpnr          = w_dyn_num2

         dynprofield     = 'PSMERK-ZVMARKET'

         value_org       = 'S'

       TABLES

         value_tab       = wt_zvmarket

         return_tab      = t_return_3

       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.

   ENDIF.



sure it works...


Thanks,

Vijay SR

2 REPLIES 2

Former Member
0 Kudos

Hi sankil pandya,

   In the FM retfield ,Please  give  zzmarket .....

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

       EXPORTING

        retfield        = ' ZZMARKET'   "  Please Change here the retfield....

         dynpprog        = w_prog_name2

         dynpnr          = w_dyn_num2

         dynprofield     = 'PSMERK-ZVMARKET'

         value_org       = 'S'

       TABLES

         value_tab       = wt_zvmarket

         return_tab      = t_return_3

       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.

   ENDIF.



sure it works...


Thanks,

Vijay SR

0 Kudos

Done Thanks