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

Problem with Matchcode in Subscreen

Former Member
0 Likes
1,171

Hi

The a Subcreen Dynpro with a few field. One Field hat an

matchode ( Help Request).

The Problem is to deaktivat the Help-Request (it's contained by a DDIC-Objekt.

My Question

The are two User

Ms. Miller shoud get the Help Request An

Ms. Maier not.

How could i do this.

Thanks for help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,056

Hello Christian,

You can try doing something like this -

parameters p_carrid like spfli-carrid.

at selection-screen on value-request for p_carrid.
  if sy-uname ne 'MILLER'.
    call function HELP_VALUES_GET_WITH_MATCHCODE.
  else.
    exit.
  endif.

Regards,

Anand Mandalika.

Hi,

Check the username in

AT SELECTION-SCREEN ON HELP-REQUEST FOR field.
IF sy-uname EQ 'MILLER'.
* Process the help request
ENDIF.

7 REPLIES 7
Read only

Former Member
0 Likes
1,056

Hi,

Check the username in

AT SELECTION-SCREEN ON HELP-REQUEST FOR field.
IF sy-uname EQ 'MILLER'.
* Process the help request
ENDIF.

Read only

0 Likes
1,056

There is a little Problem. A subcreen hat no SELECTION-SCREEN .

But a good idee.

Read only

0 Likes
1,056

You should use the following event in the flow logic -

PROCESS ON VALUE-REQUEST.

Read only

Former Member
0 Likes
1,057

Hello Christian,

You can try doing something like this -

parameters p_carrid like spfli-carrid.

at selection-screen on value-request for p_carrid.
  if sy-uname ne 'MILLER'.
    call function HELP_VALUES_GET_WITH_MATCHCODE.
  else.
    exit.
  endif.

Regards,

Anand Mandalika.

Read only

Former Member
0 Likes
1,056

Hi,

you need to check the user name in the event at selection-screen on value request.

at selection on value request for p_matnr.

if sy-uname EQ 'MILLER'.

"here you call the F4 fm."F4IF_INT_TABLE_VALUE_REQUEST

endif.

Regards

Vijay

Read only

Former Member
0 Likes
1,056

Hello Christian,

There seems to be a small confusion here. Your subject line says "Matchcode". This means that we are talking about VALUE REQUEST and not HELP REQUEST.

F1 == Documentation == HELP REQUEST.

F4 == List of possible values == VALUE REQUEST.

Which one are you referring to ?

Regards,

Anand Mandalika.

Read only

0 Likes
1,056

I talk about the

F4 == List of possible values == VALUE REQUEST. Im sorry for my mistak.