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

CNTL_ERROR while scheduling VF31 in background

Former Member
0 Likes
463

Hi,

I'm trying to schedule VF31 in background, but every time I do so, it dumps a CNTL_ERROR. The problem persists for single and multiple invoices when VF31 is processed in background.

It is working fine when I execute the transaction in foreground!

Please find the error description below:

Error analysis

    A RAISE statement in the program "SAPLSTXBC" raised the exception

    condition "CNTL_ERROR".

    Since the exception was not intercepted by a superior

    program, processing was terminated.

Main Program: SD70AV3A

Source Code Extract

954 ***********************************************************************

955 * FORM PBO_HMTL_CONTROL

956 ***********************************************************************

957 form pbo_html_control.

958

959   set pf-status 'HTML'.

960   set titlebar  'HTML'.

961

962 * container

963   if pdf_my_container is initial.

964     create object pdf_my_container

965       exporting

966         container_name = 'HTML'

967       exceptions

968         others         = 1.

969     if sy-subrc <> 0.

>>>>       raise cntl_error.

971     endif.

972   endif.

973

974 * html control

975   if pdf_html_control is initial.

976     create object pdf_html_control

I confirmed with basis team that print parameters are correctly set.

Please help in this regard!

Many thanks,

Parth

Hi,

I'm trying to schedule VF31 in background, but every time I do so, it dumps a CNTL_ERROR. The problem persists for single and multiple invoices when VF31 is processed in background.

It is working fine when I execute the transaction in foreground!

Please find the error description below:

Error analysis

    A RAISE statement in the program "SAPLSTXBC" raised the exception

    condition "CNTL_ERROR".

    Since the exception was not intercepted by a superior

    program, processing was terminated.

Main Program: SD70AV3A

Source Code Extract

954 ***********************************************************************

955 * FORM PBO_HMTL_CONTROL

956 ***********************************************************************

957 form pbo_html_control.

958

959   set pf-status 'HTML'.

960   set titlebar  'HTML'.

961

962 * container

963   if pdf_my_container is initial.

964     create object pdf_my_container

965       exporting

966         container_name = 'HTML'

967       exceptions

968         others         = 1.

969     if sy-subrc <> 0.

>>>>       raise cntl_error.

971     endif.

972   endif.

973

974 * html control

975   if pdf_html_control is initial.

976     create object pdf_html_control

I confirmed with basis team that print parameters are correctly set.

Please help in this regard!

Many thanks,

Parth

1 REPLY 1
Read only

FredericGirod
Active Contributor
0 Likes
416

Hi,

maybe your program is trying to create a dynpro with an HTML container and dump.

Could you look in the dump the Call Stack ??

regards

Fred