01-31-2008 10:57 AM
Hi,
When i assign a variable to another variable it is going to dump can any body plzz tel me what to do..
its very urgent...
01-31-2008 10:59 AM
01-31-2008 10:59 AM
01-31-2008 10:59 AM
Hi Prasad,
Can u give me your code.. Otherwise i am not able to understant what is the dump
01-31-2008 10:59 AM
01-31-2008 11:00 AM
Sorry,
My Code is like this
DATA:
v1 TYPE i,
v2(20) TYPE c,
v3(10) TYPE i.
v2 = '12,000'.
IF v1 IS INITIAL.
v1 = v2.
ENDIF.
01-31-2008 11:03 AM
Hi,
Try the below code
DATA:
v1(20) TYPE C,
v2(20) TYPE c,
v3(10) TYPE i.
v2 = '12,000'.
IF v1 IS INITIAL.
v1 = v2.
ENDIF.
Regards,
Chandru
01-31-2008 11:03 AM
01-31-2008 11:03 AM
In your code V2 TYPE is int and you are trying to pass a character ',' so it is going to dump so change the data type of V1 or dont pass a character to an integer variable..
DATA:
v1 TYPE i,
v2(20) TYPE c,
v3(10) TYPE i.
v2 = '12,000'.
IF v1 IS INITIAL.
v1 = v2.
ENDIF.
Plzz Reward if it is useful,
Mahi.
01-31-2008 11:09 AM
Try like this..
DATA:
v1 TYPE i,
v2(20) TYPE c,
v3(10) TYPE i.
v2 = '12000'. "no comma
IF v1 IS INITIAL.
v1 = v2.
ENDIF.
01-31-2008 11:00 AM
ensure that both these fields are of same type or type caompactable.
01-31-2008 11:00 AM
01-31-2008 11:10 AM