‎2007 Jun 26 12:54 PM
wich matchcode is in QP11
i want to use it in my zprog , it has data S in group
‎2007 Jun 26 12:56 PM
‎2007 Jun 26 1:24 PM
‎2007 Jun 26 2:18 PM
thanks but in qp11
when i open s.help in group field i have 'S' in field task list type (= S)
how i can do it.
PLS
‎2007 Jun 27 1:24 PM
Hello,
you need the process on value request for this.
add this data declaration:
TYPE-POOLS: shlp.
DATA: shlp TYPE shlp_descr_t,
interface_wa TYPE LINE OF shlp_descr_t-interface,
lv_rc LIKE sy-subrc,
it_return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
something like this is on your selection screen already:
parameters: p_plnnr like plko -plnnr.
now you add this flow logic:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plnnr.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'PLKS'
shlptype = 'SH'
IMPORTING
shlp = shlp.
set your default value
interface_wa-value = 'S'. "eg for reference operation set
MODIFY shlp-interface FROM interface_wa
TRANSPORTING value
WHERE shlpfield = 'PLNTY'.
interface_wa-valtabname = interface_wa-valfield = 'X'.
MODIFY shlp-interface FROM interface_wa
TRANSPORTING valtabname valfield
WHERE shlpfield = 'PLNNR'.
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = shlp
maxrecords = 500
multisel = ' '
IMPORTING
rc = lv_rc
TABLES
return_values = it_return_tab.
IF lv_rc = 0.
READ TABLE it_return_tab INDEX 1.
p_plnnr = it_return_tab-fieldval."p_plnnr is on the selection-screen
ENDIF.
Rgds,
JP