03-14-2007 11:19 AM
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
03-14-2007 11:31 AM
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
03-14-2007 11:28 AM
03-14-2007 11:31 AM
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
03-15-2007 5:53 AM
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.
03-15-2007 11:43 AM
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 !