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

Problem in Invoice Smartform (Timeout)

Former Member
0 Likes
436

Hi Friends,

I am working on Invoice Smartform. It is working fine when it is having avg line items. where as in my case one invoice iss having more than 500 line items in production. For this in production it is giving timeout short dump.

In that invoice i am displaying standard fuctionality of invoice form and at the same tim i am displaying Serial Numbers based on delivery and Open Quantity based on Order. So it will take time for back processing.

Insted of Back ground processing is there any other possibility to solve this. If not Please give me some steps how to implement this form in background based on conditions (if it is having more than 200 line items then only i need to run in background else foreground)

Pls give me your valuble inputs.

Thanks,

Srinivas.

2 REPLIES 2
Read only

Former Member
0 Likes
388

Hi,

data : l_lines type i.

DESCRIBE TABLE I_OUTPUT lines l_lines.
if l_lines > 200. " Background logic
CALL FUNCTION 'JOB_OPEN'.
CALL FUNCTION 'JOB_SUBMIT'.
CALL FUNCTION 'JOB_CLOSE'.
else.

" foreground processing logic

endif.

Best regards,

Prashant

Read only

Former Member
0 Likes
388

Hi Prasanth,

we need to do this in smartform itself or print program.

Thanks,

Srinivas.