Application Development and Automation 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: 
Read only

Dump

Former Member
0 Likes
1,750

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
Read only

Former Member
0 Likes
1,729

Hi,

Can you paste your code.

Rgds,

Bujji

11 REPLIES 11
Read only

Former Member
0 Likes
1,729

hi,

give ur code...

Read only

Former Member
0 Likes
1,729

Hi Prasad,

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

Read only

Former Member
0 Likes
1,730

Hi,

Can you paste your code.

Rgds,

Bujji

Read only

0 Likes
1,729

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.

Read only

0 Likes
1,729

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

Read only

0 Likes
1,729

hi,

its because of type mis matching

Read only

0 Likes
1,729

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.

Read only

0 Likes
1,729

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.

Read only

Former Member
0 Likes
1,729

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

Read only

Former Member
0 Likes
1,729

Hi,

Can you paste the code which u have done?

Regards,

Chandru

Read only

Former Member
0 Likes
1,729

Thanks all my problem is solved