Skip to Content
0
Former Member
Apr 28, 2009 at 05:32 PM

Calling SMARTFORM instead of SAPSCRIPT?

146 Views

I've imported my SAPSCRIPT to my SMARTFORM. I got rid of all the syntax errors, and have my NACE/TNAPR config completed.

I know the Print Program will need revisions. I am trying to understand that when the Print Program's old code said:

CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              element = 'TITLE'
              window  = 'TITLE'
         EXCEPTIONS
              element = 1
              window  = 2.

And, there is a window migrated from SAPSCRIPT to SMARTFORM called "TITLE". I know that I now call the SMARTFORM function Module. But I am not sure of the parameters to export to it. How do I get it to go to the window "TITLE" to print the text there? How will it know to go to "TITLE" window? Am I going to need more flow logic in the SMARTFORM for this, or is there a way for the Calling Print Program to go to the "TITLE" window and print what is there and return back to the print program at this point?

All the IF/ENDIF logic migrated to the SMARTFORM as TEXT elements, which should work, only I used the modular IF/ENDIF objecvts in previous new dev when needed.

Thank-You.

Edited by: TMM on Apr 28, 2009 1:34 PM