cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding custom print program does not recognize elements in new windows..

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I copied the standard print program RFFOUS_C since I need to add new windows and routines. But when I

inserted my 'WRITE_FORM' to call the element in the new window it has an exception of '1' which I think it does not

recognize the custom elements in the new windows. Below is my code:

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'CHECK'

function = 'APPEND'

  • TYPE = 'BODY'

window = 'PAYEE'

  • IMPORTING

  • PENDING_LINES =

EXCEPTIONS

element = 1

function = 2

type = 3

unopened = 4

unstarted = 5

window = 6

bad_pageformat_for_print = 7

spool_error = 8

codepage = 9

OTHERS = 10.

IF sy-subrc <> 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

So I added the window 'PAYEE' and the code above was inserted in the routine 'SCHECK'. Hope you can help

me guys. Thank you and take care!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

r u using the ' check' text element in your script window?, if u don't delcare in the script window than only this kind of error will come.

Thanks,

Tirumal.

Answers (0)