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

How to catch submit exception?

Former Member
0 Likes
755

Hi,

I use the instruction SUBMIT to call the standard program RFHABU10.

The submit contains the document number as a range.

For few document number there is no problem but for one year I have more than 31000 document number in this range and the standard program dump at the selection on BKPF.

I do not have the ST22 and it seems to be a "Oversize of the range.".

How can I catch the exception or how can I determine that the range is too big?

Thanks for your help.

David

Edited by: David31 on Feb 12, 2010 5:20 PM

1 ACCEPTED SOLUTION
Read only

former_member226519
Active Contributor
0 Likes
703

Do you know the document numbers? So you could loop at the numbers and build packages before SUBMIT.

4 REPLIES 4
Read only

former_member226519
Active Contributor
0 Likes
704

Do you know the document numbers? So you could loop at the numbers and build packages before SUBMIT.

Read only

0 Likes
703

I know the document numbers but i can not split them.

I will may try to catch the exception CX_SY_OPEN_SQL_DB from the program. But not sure.

Is there a way to determmine max size of a range? I find any solution...

Thanks

Edited by: David31 on Feb 15, 2010 11:37 AM

Read only

0 Likes
703

Hi,

I do not find a solution.

There are some informations about ranges in the OSS note 635318.

The question will still opened until a solution will be found.

David31

Edited by: David31 on Feb 16, 2010 9:06 AM

Read only

Former Member
0 Likes
703

Hi,

The range table's size is limited by the database system.

Alternatively, you could write a logic that puts all the data in ranges into an internal table.

Do watch out for 'I', 'E', 'BT', 'EQ' and others.

Come up with a logic where you can populate all these data into an internal table.

Submit this internal table to your called program.