06-12-2009 4:45 PM
Hi,
We are using "Z" match code in the program. When press F4 from pop-up having fileds like material and plant. We have to capture those two field values in the program.
Can any body have idea, how to fulfill the above requirement?
Regards,
Suuresh Kumar.
06-15-2009 5:51 AM
Hi,
Please try this code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' <---- Use this FM or the your 'Z' FM
EXPORTING
retfield = 'field name'
dynpprog = gv_repid
dynpnr = sy-dynnr
window_title = text-002
value_org = 'S'
TABLES
value_tab = gt_f4table
return_tab = gt_matnr_returned.
IF sy-subrc EQ 0.
IF NOT gt_matnr_returned[] IS INITIAL.
READ TABLE gt_matnr_returned INTO gs_matnr_returned INDEX 1.
p_matnr = gs_matnr_returned-fieldval. <- --------------------- Your parameter where you want to capture the value.
ENDIF.
ENDIF.
Please let me know if your problem persists...
06-12-2009 4:53 PM
Use DYNP_VALUES_UPDATE FM after calling the "Z" F4...
Greetings,
Blag.
06-14-2009 7:35 PM
Hi,
Could any body help me to resolve my problem please?
Regards,
SK.
06-15-2009 5:51 AM
Hi,
Please try this code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' <---- Use this FM or the your 'Z' FM
EXPORTING
retfield = 'field name'
dynpprog = gv_repid
dynpnr = sy-dynnr
window_title = text-002
value_org = 'S'
TABLES
value_tab = gt_f4table
return_tab = gt_matnr_returned.
IF sy-subrc EQ 0.
IF NOT gt_matnr_returned[] IS INITIAL.
READ TABLE gt_matnr_returned INTO gs_matnr_returned INDEX 1.
p_matnr = gs_matnr_returned-fieldval. <- --------------------- Your parameter where you want to capture the value.
ENDIF.
ENDIF.
Please let me know if your problem persists...
06-16-2009 9:58 AM
Hi Sneha,
Thanks for your quick response. I am working on 3.1i version. Above FM will not available in the 3.1i.
I am trying to find alternate FM in the 3.1i version.
Regards,
SK.