Skip to Content
0
Former Member
Apr 09, 2007 at 08:42 AM

Selection screen, check value change

2610 Views

Dear all,

Hereafter my selection screen:

SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-204.

PARAMETERS : p_flag TYPE flag DEFAULT 'X',

p_plant LIKE zmm13jpn-mag_emetteur DEFAULT 'C300' OBLIGATORY,

p_store LIKE t001l-lgort DEFAULT 'C301' OBLIGATORY.

SELECTION-SCREEN END OF BLOCK bl1.

********************************************

Now, I'm using the following Select and FM to limit possible value in p_store field

**********************************************

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_store.

SELECT werks lgort lgobe INTO TABLE i_lgort FROM t001l

WHERE werks = p_plant.

READ TABLE i_lgort WITH KEY lgort = p_store.

w_sloc_desc = i_lgort-lgobe.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

**************************************

The thing is that proceeding that way, since I need p_plant DEFAULT 'C300', the routine keep the value even though I overwrite it manually.

*********************************:

Question:

Is there any way to have p_plant set by DEFAULT with 'C300' for instance, but in case I change it, being able to read the new value before the

'AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_store.'

In order to be able to pass this new value while performing the

'SELECT werks lgort lgobe INTO TABLE i_lgort FROM t001l

WHERE werks = p_plant.' ?

Regards.