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

an error that "error while generating pdf".

GirieshM
Active Contributor
0 Likes
1,448

Hi gurus,

when i am trying to generate a pdf from phap_admin (appraisal document ) i am getting an error that "error while generating pdf".

the dump in st22 is

ERROR ANALYSIS:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_SEND_DYNPRO_NO_RECEIVER', was

not caught and

therefore caused a runtime error.

The reason for the exception is:

During background processing, the system attempted to send a

screen to a user.

Current screen: " " " ".

SOURCE CODE:

      • screen to enter order-number ***************************************

IF w_suppress_dialog EQ space.

  • set popup to the foreground.

CALL FUNCTION 'SAPGUI_SET_PROPERTY'

DESTINATION 'SAPGUI'

EXPORTING

property = 'ACTIVATE'

value = 'X'

EXCEPTIONS

OTHERS = 1.

CALL SCREEN 300 STARTING AT lv_start_column lv_start_row.

>>>> ELSE.

  • process the same forms which are processed on screen 0300.

  • ATTENTION: Whenever functionality of screen 0300 is extended,

  • make sure that necessary calls are also made here!

PERFORM d0300_read_data.

PERFORM d0300_comline.

ENDIF.

CASE w_next_action.

WHEN 'ATTR'.

PERFORM show_object_attributes USING wt_e071[].

CAN ANY ONE HELP TO SOLVE THIS???

Hi gurus,

when i am trying to generate a pdf from phap_admin (appraisal document ) i am getting an error that "error while generating pdf".

the dump in st22 is

ERROR ANALYSIS:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_SEND_DYNPRO_NO_RECEIVER', was

not caught and

therefore caused a runtime error.

The reason for the exception is:

During background processing, the system attempted to send a

screen to a user.

Current screen: " " " ".

SOURCE CODE:

      • screen to enter order-number ***************************************

IF w_suppress_dialog EQ space.

  • set popup to the foreground.

CALL FUNCTION 'SAPGUI_SET_PROPERTY'

DESTINATION 'SAPGUI'

EXPORTING

property = 'ACTIVATE'

value = 'X'

EXCEPTIONS

OTHERS = 1.

CALL SCREEN 300 STARTING AT lv_start_column lv_start_row.

>>>> ELSE.

  • process the same forms which are processed on screen 0300.

  • ATTENTION: Whenever functionality of screen 0300 is extended,

  • make sure that necessary calls are also made here!

PERFORM d0300_read_data.

PERFORM d0300_comline.

ENDIF.

CASE w_next_action.

WHEN 'ATTR'.

PERFORM show_object_attributes USING wt_e071[].

CAN ANY ONE HELP TO SOLVE THIS???

6 REPLIES 6
Read only

Former Member
0 Likes
1,317

you were running in bacground and your process called a screen....there's no gui/presentation layer for a background job, therefore a call to a screen will produce an abend if not caught and handled.

Read only

Former Member
0 Likes
1,317

Hi,

field w_suppress_dialog should be set to 'X'. Please check, where you can fill it (maybe a fm parameter, a customitzing setting or something like that!

Regards,

Klaus

Read only

0 Likes
1,317

The issue is when trying to download the appraisal template from PHAP_ADMIN (admin functions) using the standard DOWNLOAD option. Error message is "Error when generating PDF file".

the field w_suppress_dailog is alredy set to 'X'.

Hi Break point,

What I have to do? Can you explain it clearly because I am new to this. How the screen is missing in standard function?

Read only

0 Likes
1,317

Hi,

the dump says:

CALL SCREEN 300 STARTING AT lv_start_column lv_start_row.
>>>> ELSE.

This means, the raise of the exception comes from the command before ELSE and this is CALL SCREEN.

CALL SCREEN is only reachable. if w_suppress_dialog is SPACE. It can't be 'X'.

You have to find a way to set it to 'X'.

Regards,

Klaus

Read only

0 Likes
1,317

Hi ,

The problem is solved. It is occured due to improper installation of Adobe forms , they ve to maintain some credentials whenever to install. this lead to such an error. Thanks Pros for responding my queries.

Read only

Former Member
0 Likes
1,317

Deleted; unintentional double post.

Edited by: BreakPoint on Mar 14, 2011 2:11 PM