cancel
Showing results for 
Search instead for 
Did you mean: 

Error when i am coverting smartform to PDF in BADI

Former Member
0 Kudos

Hi Gurus

currently i am working on badis . in the badi i got some information to send an email so i did create smartform than i am passing parameters to FM . here i am getting error like this .please help me

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = form_name

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm_name

EXCEPTIONS

no_form = 1

no_function_modulle = 2

others = 3.

W_CTRLOP-GETOTF = 'X'.

W_CTRLOP-NO_DIALOG = 'X'.

W_COMPOP-TDNOPREV = 'X'.

CALL FUNCTION fm_name

EXPORTING

CONTROL_PARAMETERS = W_CTRLOP

OUTPUT_OPTIONS = W_COMPOP

USER_SETTINGS = space

IMPORTING

  • DOCUMENT_OUTPUT_INFO =

job_output_info = t_otf_from_fm

  • JOB_OUTPUT_OPTIONS =

tables

i_output = w_output

EXCEPTIONs

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

when its trigger the FM CALL FUNCTION fm_name i am getting error like this

An exception (CX_SY_NO_HANDLER) occurred

Message no. TPDA430

Please help me.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I did find the solution

brad_bohn
Active Contributor
0 Kudos

That message is issued from the debugger handler. Do you have any hard breaks defined in your form? You can easily view the call stack for the issue by setting a break at the message or by stopping dynamically in debug at RAISE or RAISE EVENT.

nabheetscn
Active Contributor
0 Kudos

Hi,

Did you try calling it in a simple report first i think there is a problem with smartform. Can you please tell what is the sy-subrc returned after this.

Nabheet

Former Member
0 Kudos

as soon as come to that point its giving error . i cant even see .

Former Member
0 Kudos

It seems to be run time exception in smartform. Check your smartform where you have some sort for ABAP code or logical expression like devision formula. Did you see any dumps generated in ST22 for your error?

regards,

Pranav