Skip to Content
0
Former Member
Apr 29, 2010 at 01:17 PM

Ok_code error

24 Views

hi all,

we are getting dump due to fm as shown below after clicking on back button in me22n .Can anyone give solution << removed >>.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = tnapr-sform "ZMM_PO_FRM'

IMPORTING

fm_name = fname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc EQ 0.

gs_dialog-no_dialog = 'X'.

gs_dialog-preview = 'X'.

gs_output-tddest = 'LP01'.

gs_output-tdnoprev = ' '.

gs_output-tdnoprint = ' '.

gs_output-tdimmed = 'X'.

gs_output-tdnewid = 'X'.

****************Code added******************

gs_dialog-device = 'PRINTER'.

gs_dialog-langu = nast-spras.

  • gs_output-tdprogram = sy-repid.

gs_output-tdarmod = '1'.

**********************************************

CALL FUNCTION fname " modify the interface as per your needs

EXPORTING control_parameters = gs_dialog

output_options = gs_output

user_settings = ' '

zxekko = l_doc-xekko

zxpekko = l_doc-xpekko

TABLES l_xekpo = l_doc-xekpo

l_xekpa = l_doc-xekpa

l_xpekpo = l_doc-xpekpo

l_xeket = l_doc-xeket

l_xtkomv = l_doc-xtkomv

l_xekkn = l_doc-xekkn

l_xekek = l_doc-xekek

l_xkomk = xkomk

EXCEPTIONS formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

ELSE.

CALL FUNCTION 'ME_PRINT_PO'

Regards

Alok

Edited by: Rob Burbank on Apr 29, 2010 10:17 AM