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: 

Dump

Former Member
0 Kudos

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...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Can you paste your code.

Rgds,

Bujji

11 REPLIES 11

Former Member
0 Kudos

hi,

give ur code...

Former Member
0 Kudos

Hi Prasad,

Can u give me your code.. Otherwise i am not able to understant what is the dump

Former Member
0 Kudos

Hi,

Can you paste your code.

Rgds,

Bujji

0 Kudos

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.

0 Kudos

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

0 Kudos

hi,

its because of type mis matching

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

ensure that both these fields are of same type or type caompactable.

Former Member
0 Kudos

Hi,

Can you paste the code which u have done?

Regards,

Chandru

Former Member
0 Kudos

Thanks all my problem is solved