Skip to Content
0
Former Member
Jun 07, 2005 at 07:01 PM

Copy Variable Value

132 Views

Hi,

I have Profit Center1 & Profit Center2 variables on the webtemplate.

Whatever the value user enters in for Profit Center1,

that value should be copied to ProfitCenter2 variable.

I tried with following code it didn't work...

WHEN 'ProfitCenter2'.

CLEAR: L_S_RANGE.

IF I_STEP = 2.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM =

'ProfitCenter1'.

MOVE LOC_VAR_RANGE-LOW to L_S_RANGE-LOW.

MOVE LOC_VAR_RANGE-HIGH to L_S_RANGE-HIGH.

MOVE LOC_VAR_RANGE-OPT to L_S_RANGE-OPT.

MOVE LOC_VAR_RANGE-SIGN to L_S_RANGE-SIGN.

APPEND L_S_RANGE TO E_T_RANGE.

ENDLOOP.

ENDIF.

Any ideas ??

Thanks in advance,

GSM.