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

generate subroutine > 36 error

Former Member
0 Likes
450

Dear all,

how can I generate more than 36 subroutine pools or dynamic programs (not perstistent programs)?

Best regards,

Christoph

what I do (test case):

Data: it_prog type stringtab.

append 'Program SUBPOOL.' to it_prog.

append 'Data: result type i.' to it_prog.

append 'form eval changing result.' to it_prog.

append ' result = result + 1.' to it_prog.

append 'endform.' to it_prog.

Do 100 times.

Do 100 times.

CALL METHOD lc_test->process

EXPORTING

it_tab = it_prog

receiving

RESULT = result

.

enddo.

...

method PROCESS.

Data: prog type string.

generate subroutine pool it_tab name prog.

endmethod.

Message was edited by:

Christoph Aschauer

Dear all,

how can I generate more than 36 subroutine pools or dynamic programs (not perstistent programs)?

Best regards,

Christoph

what I do (test case):

Data: it_prog type stringtab.

append 'Program SUBPOOL.' to it_prog.

append 'Data: result type i.' to it_prog.

append 'form eval changing result.' to it_prog.

append ' result = result + 1.' to it_prog.

append 'endform.' to it_prog.

Do 100 times.

Do 100 times.

CALL METHOD lc_test->process

EXPORTING

it_tab = it_prog

receiving

RESULT = result

.

enddo.

...

method PROCESS.

Data: prog type string.

generate subroutine pool it_tab name prog.

endmethod.

Message was edited by:

Christoph Aschauer

1 REPLY 1
Read only

Former Member
0 Likes
367

Hi all,

I solved the problem as follows:

- limitation of 36 subroutines: SUBMIT program. (this program generates the generic subroutine pools (communication via DB or shared objects possible)

Christoph