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: 

Perform XYZ using A B ... Z Is there a limit to the # of parameters

Former Member
0 Kudos

Hello all,

Is here a limit in either ABAP or Sapscript to the number of parameters that can be used when performing a paragraph? When checking the SAP documentation I did not see any reference to a limit. Surely there must be some limit.

Perform XYZ using A B ... Z

Thanks

Bruce

11 REPLIES 11

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I haven't been able to find a documented limit either. However according to OSS Note 609024 there is a memory leak in the 620 kernel if you have a large number of parameters. It then defines large number as > 50. So you can assume from this note that the number is greater than 50.

0 Kudos

Thomas - that's a kernel error not an ABAP restriction and had a fix.

Rob

0 Kudos

Yes I know. I was using that error to point out the fact that if there is a limit, it must be higher than 50 because someone had a situation that uncovered this kernel memory leak.

0 Kudos

Well, I have just tested it with 1600 parameter and it works fine. I have a feeling that the limit probably will depend on the memory available.

Cheers,

Sanjeev

0 Kudos

Wow 1600. I hope you did something with dynamic code generation and didn't type in all 1600 parameters.

0 Kudos

Or may be he had used Excel ? Put something like A0001 in a cell and drag it down till you get all those 1600 .

0 Kudos

You are close I used combination of copy and paste with find and replace to do this experiment. My dynamic program generation skills are a bit rustic, I did think of using dynamic program generation but it was too late in the night to motivate myself for trying that.

Cheers,

Sanjeev

0 Kudos

Thank you to everyone who replied. My original question was really academic in nature.

My post is the only one that I can see any way to award points. I saw that earlier this month other people were having the same problem. Since I didn't really solve my own problem, no points have been awarded yet.

Thanks

Bruce

Former Member
0 Kudos

I would assume that if there were a limit, exceeding that limit would trigger a run time error. The help for PERFORM doesn't mention any such error, so I'd bet against a limit.

However, you might still run into other problems if you pass too many parameters.

Rob

Former Member
0 Kudos

Hello Bruce,

Like the others have said I don't think there's a limit to the number of parameters you can pass.

For that matter, I don't know if there's a limit in any other programming language either. It's up to the programmer to use his judgment and ahdere to good programming practices. For example, instead of having a thousand parameters, they could all be put in the global area of that program ? Or better still, he could write multiple subroutines to further split the task being performed by that subroutine.

Regards,

Anand Mandalika.

Former Member
0 Kudos

closing old post