02-06-2014 5:22 AM
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
02-06-2014 6:07 AM
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
02-06-2014 6:07 AM
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
02-06-2014 6:47 AM