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

Collect + Dump

Former Member
0 Likes
485

Hi

I am trying to use collect on an internal table.

My Code is as below:

SORT it_bsis BY bcode budat.

LOOP AT it_bsis WHERE tcode IN s_tcode

AND bcode IN s_bcode

AND blart IN s_blart.

it_bill-bcode = it_bsis-bcode.

it_bill-dmbtr = it_bsis-dmbtr.

COLLECT it_bill.

CLEAR it_bill.

ENDLOOP.

" Bcode is a character field...

But it is giving a dump. The error message is posted. Kindly advice.

The COLLECT statement stores totals in the internal table

"\PROG=ZRXYEFIXX_BILL_CODE_1\DATA=IT_BILL[]",

but the values are too large

for the type P field intended to store them.

The name of the field is "DMBTR".

I will ensure your efforts dont go in vain...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
362

increase the size of the dmbtr field by creating a new field say

data: dmbtr1(16) type P deciamals 2.

and try

pk

Hi

I am trying to use collect on an internal table.

My Code is as below:

SORT it_bsis BY bcode budat.

LOOP AT it_bsis WHERE tcode IN s_tcode

AND bcode IN s_bcode

AND blart IN s_blart.

it_bill-bcode = it_bsis-bcode.

it_bill-dmbtr = it_bsis-dmbtr.

COLLECT it_bill.

CLEAR it_bill.

ENDLOOP.

" Bcode is a character field...

But it is giving a dump. The error message is posted. Kindly advice.

The COLLECT statement stores totals in the internal table

"\PROG=ZRXYEFIXX_BILL_CODE_1\DATA=IT_BILL[]",

but the values are too large

for the type P field intended to store them.

The name of the field is "DMBTR".

I will ensure your efforts dont go in vain...

1 REPLY 1
Read only

Former Member
0 Likes
363

increase the size of the dmbtr field by creating a new field say

data: dmbtr1(16) type P deciamals 2.

and try

pk