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

Smartform LOW Memory Message

Former Member
0 Likes
1,221

Hi All,

I have made smartform for the invoice.

The smartform is syntactically correct and activated.

My problem is when I go to VF02 and give the Invoice number and select Output type, it takes so long to process and at the end the system doesnot give me the print preview of the form,

Initially system was giving "Memory Low" kind of message.

I am getting the preview of Invoices which have more line items than this one.

Please help me.

11 REPLIES 11
Read only

Former Member
0 Likes
1,146

Hi,

Kindly check through debugging whether you are appending line items by mistake.

It might be possible that there is for all entries without checking if not itab[] is initial.

By the way, how many entries are there in the invoice?

Regards,

Debopriyo

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,146

Do one thing when you click on print preview open another session for SM50 and find your line and debug check where it is taking more time

Nabheet

Read only

gouravkumar64
Active Contributor
0 Likes
1,146

Hi Yash,

Addition to all you can also check this sap notes & correction for this.

116042 - Message "Memory low.

Thanks

Gourav.

Read only

0 Likes
1,146

Kumar I have checked this and asked the basis team also.

But the memory and all things are ok.

Read only

0 Likes
1,146

Did you check as suggested above to use SM50 stuff

Read only

0 Likes
1,146

Good Morning Nabheet,

Yes I tried to do that.

I am getting the function module name.But as you have suggested,how I can debug the form from there

?

Read only

0 Likes
1,146

Once you have clicked on print preview...then open a session for sm50 choose the line reflecting your smartform name goto PROGRAM menu their you will se debugging

Read only

0 Likes
1,146

Thanks Nabheet.

What I did is, I have removed the unnecessary code. The Smartform is running properly in Development but I am facing the this problem in Production server.

If I debug it in the development or in Production the code is same.  

Read only

0 Likes
1,146

Hi Yash

What i wanted you do is follow. Once you sent your smartform for print preview in production. Open tcode SM50 in parallel. You will see your smartform/program name running their. Choose that line goto Administration->Program->Debugging and check where it is struck

Nabheet

Read only

Former Member
0 Likes
1,146

check smartform logic and avoid UN-necessary looping and selection directly from database.

increase selection parameter in query.

check various iteration inside smartform nodes.

check internal table size based on selection query.

Read only

Former Member
0 Likes
1,146

I did all the things like removing unnecessary code and loops.

The smartform is taking this time in the production server and if I execute it in the development server it gives me instant result.