cancel
Showing results for 
Search instead for 
Did you mean: 

2 questions of Form print

Former Member
0 Kudos

the first: I create a Form, and add a graph window, using color bitmap image, but it only looks ok in print preview, if I select print it, the form can't be print out.

If I delete this graph window, it can be ok in both print preview and print out. Could anyone can tell me the reason and how to print picuture?

the second: in MIGO receive goods of PO, if we select print box, when goods received, system will call form rountine ENTRY_WE01 in program ZSAPM07DR, and this program will use form WESCHEINVERS1 to print the receipt slip immediately without print dialog screen, user need not select a output device. Now I create a program and copy form rountine ENTRY_WE01, change print code use differnt form, I want to change the configuration in NACE, and let system call my program to print receipt slip, how can I print the slip using the right printer without dialog screen?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

As far as your second question is concerned, you have to fill in the associated values in the 'SSFCTRLOP' structure and the 'SSFCOMPOP' amd pass them to the smartform FM (in your driver program). See the 'SSFCTRLOP' structure.

<u>For Example:</u>

DATA: control type SSFCTRLOP.

DATA/: output type SSFCOMPOP.

control-device = / * printer name */

control-preview = 'X'.

then pass this local structure as a parameter to the form's FM. The exporting parameter for this is, 'CONTROL_PARAMETERS'

Similarly check the 'SSFCOMPOP' structure. The exporting parameter for this is, 'OUTPUT_OPTIONS'.

Hope it helps. Get back to me in case you go wrong.

Regards,

Shehryar Dahar

Former Member
0 Kudos

my form is not smartform, so it is not call the smartform FM, and there no such a parameter name SSFCTRLOP in FM OPEN_FORM.

Former Member
0 Kudos

Hello,

My previous answer was in respect for SAP Samrt Forms

Regards,

Shehryar Dahar

Former Member
0 Kudos

r u using Script?

but u want... the dialog do not display am i right?

 CALL FUNCTION 'OPEN_FORM'
       EXPORTING
*           APPLICATION        = 'TX'
            ARCHIVE_INDEX      = TOA_DARA
            ARCHIVE_PARAMS     = ARC_PARAMS
            DEVICE             = LVF_DEVICE
            DIALOG             = ' '
            FORM               = TNAPR-FONAM
            LANGUAGE           = NAST-SPRAS
            OPTIONS            = LVS_ITCPO
            MAIL_SENDER        = LVS_SENDER
            MAIL_RECIPIENT     = LVS_RECIPIENT
*           MAIL_APPL_OBJECT   = ' '
*           RAW_DATA_INTERFACE = '*'
*      IMPORTING
*           LANGUAGE           =
*           NEW_ARCHIVE_PARAMS =
*           RESULT             =
       EXCEPTIONS
            CANCELED           = 1
            DEVICE             = 2
            FORM               = 3
            OPTIONS            = 4
            UNCLOSED           = 5
            MAIL_OPTIONS       = 6
            ARCHIVE_ERROR      = 7
            OTHERS             = 8.
  IF SY-SUBRC NE 0.

<b> DIALOG = ' '</b>

DIALOG = space

i hope it works

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

Thank you, "DIALOG = ' '" can make dialog box disappear, but how can system print well, we need set some parameter for it, isn't it?

I think we need set output device in ARCHIVE_PARAMS-PRINTER, and I will test it.

Former Member
0 Kudos

nooooo bin,,

these archive a params are for archieving purpus...but you want to print am i right....

then give the values in

<b>OPTIONS..</b>

OPTIONS-TDDEST

OPTIONS-TDPRINTER

OPTIONS-TDNOPREV........so on....

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K