Application Development 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: 

Setting a prameter immediately after selection in search help

Former Member
0 Kudos

Hi

I would like to set a parameter 'X' immediately as soon as an entry in the hitlist of a search help, say 'A', is selected i.e just before the selected value is passed to the screen. I couldn't find any event for this in the call_control-step of search help exits.

The reason I would like to do this is because this parameter 'X' will then be used to influence the selection of another search help, say 'B'.

Can anybody help me out ?

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Felix,

I think this not possible. I have checked it with the sample code:


REPORT ZV_TEST58 .
PARAMETERS: P_TABLE LIKE MARA-MATNR,
P_VAR(1).

AT SELECTION-SCREEN ON P_TABLE.
  IF NOT P_TABLE IS INITIAL.
    P_VAR =  'X'.
  ENDIF.

AT SELECTION-SCREEN OUTPUT.
  IF NOT P_TABLE IS INITIAL.
    P_VAR =  'X'.
  ENDIF.

I think there should be an user action to filll the P_VAR parameter

Regards,

Vasanth

4 REPLIES 4

Former Member
0 Kudos

You canuse AT SELECTION-SCREEN ON OUTPUTfor your reqquirement.

Former Member
0 Kudos

Hello Felix,

I think this not possible. I have checked it with the sample code:


REPORT ZV_TEST58 .
PARAMETERS: P_TABLE LIKE MARA-MATNR,
P_VAR(1).

AT SELECTION-SCREEN ON P_TABLE.
  IF NOT P_TABLE IS INITIAL.
    P_VAR =  'X'.
  ENDIF.

AT SELECTION-SCREEN OUTPUT.
  IF NOT P_TABLE IS INITIAL.
    P_VAR =  'X'.
  ENDIF.

I think there should be an user action to filll the P_VAR parameter

Regards,

Vasanth

Former Member
0 Kudos

I would like to clarify futher.

The two search helps are not being used in a selection screen. They are being used within an editable ALV grid.

The scenario is something like this:

The user creates a new line. He then selects a value for field 1 of the line using search help 'A'. He then selects field 2 of the line using search help 'B'.

The requirement is that when he uses search help 'B', it should have as a default vaule for one of the search parameters, field 1's value.

Former Member
0 Kudos

UPDATE:

The timepoint

CALLCONTROL-STEP = 'RETURN' of search help exits is exactly the timepoint i would need to set my parameters for search help 'A'. But it doesn't seem to get triggered (Checked in debugging)

Help !