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

matchcode in standar screen

Former Member
0 Likes
557

wich matchcode is in QP11

i want to use it in my zprog , it has data S in group

4 REPLIES 4
Read only

Former Member
0 Likes
529

i mean the group field

Read only

Former Member
0 Likes
529

Hi,

the searchhelp is PLKS.

Rgds,

JP

Read only

0 Likes
529

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

Read only

0 Likes
529

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