cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting the Print Dialog

Former Member
0 Kudos

Hi

I am printing Goods Receipt from MIGO but I am not getting the dialog box to choose the Printer and No of Copies.

I am using smartform which is copied from a standard sap script.

-Sid

Mac Points are gaurenteed for most precise auggestions.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Yes, you are correct. The control parameter will over write the settings in NACE transaction settings. Even if we have print output option in NACE , if you fill NO_dialog = 'X', then definitly it will not show the dialog box.

Regards,

Venkatesh

Former Member
0 Kudos

well,, then its a problem as I am not passing any such parameter.

This is the code -> Its a copied standard program used for Smartform.

FORM entry_etie USING ent_retco ent_screen.

data fname type RS38L_FNAM.

data outop type ssfcompop.

data cparam type ssfctrlop.

data joutop type SSFCRESOP.

outop-tddest = 'LOCL'.

cparam-preview = 'X'.

cparam-no_open = 'X'.

cparam-no_close = 'X'.

xscreen = ent_screen.

CLEAR ent_retco.

PERFORM lesen USING nast-objky.

ent_retco = retco.

PERFORM bestellkopf_lesen.

* PERFORM ausgabe_eti.

* Using Smartform

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZMMF0101'

* VARIANT = ' '

* DIRECT_CALL = ' '

IMPORTING

FM_NAME = fname

* EXCEPTIONS

* NO_FORM = 1

* NO_FUNCTION_MODULE = 2

* OTHERS = 3

.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

* ARCHIVE_PARAMETERS =

USER_SETTINGS = space

* MAIL_SENDER =

* MAIL_RECIPIENT =

* MAIL_APPL_OBJ =

OUTPUT_OPTIONS = outop

CONTROL_PARAMETERS = cparam

IMPORTING

JOB_OUTPUT_OPTIONS = joutop

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION fname

EXPORTING

* ARCHIVE_INDEX =

* ARCHIVE_INDEX_TAB =

* ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = cparam

* MAIL_APPL_OBJ =

* MAIL_RECIPIENT =

* MAIL_SENDER =

OUTPUT_OPTIONS = outop

USER_SETTINGS = SPACE

* ZLFSNR =

ZMBLNR = MSEG-MBLNR

* IMPORTING

* DOCUMENT_OUTPUT_INFO =

* JOB_OUTPUT_INFO =

* JOB_OUTPUT_OPTIONS =

* EXCEPTIONS

* FORMATTING_ERROR = 1

* INTERNAL_ERROR = 2

* SEND_ERROR = 3

* USER_CANCELED = 4

* OTHERS = 5

.

CALL FUNCTION 'SSF_CLOSE'

* IMPORTING

* JOB_OUTPUT_INFO =

* EXCEPTIONS

* FORMATTING_ERROR = 1

* INTERNAL_ERROR = 2

* SEND_ERROR = 3

* OTHERS = 4.

ENDFORM. "entry_etie

-Sid

former_member188685
Active Contributor
0 Kudos

one thing you can make it forcefully appear a popup

is commenting the below line

outop-tddest = 'LOCL'.

making this atleast popups for printer .

former_member188685
Active Contributor
0 Kudos

For Goods movements you need to use the transaction MB90.

To print the Material Document details.

So check in MB90.

Former Member
0 Kudos

hmm...well I have already tried removing the 'LOCL'....

OK, why do we use SSF_OPEN and SSF_CLOSE ?

-Sid

former_member188685
Active Contributor
0 Kudos

just comment this CONTROL_PARAMETERS it will give the popup.

CALL FUNCTION 'SSF_OPEN'
EXPORTING
* ARCHIVE_PARAMETERS =
USER_SETTINGS = space
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJ =
OUTPUT_OPTIONS = outop
*CONTROL_PARAMETERS = cparam  "Comment this 
IMPORTING
JOB_OUTPUT_OPTIONS = joutop
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.

IF SY-SUBRC ne  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Former Member
0 Kudos

Thanks Guys I will try...

-Sid

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

I am not sure what the following will effect.

Try commenting these two lines and check whether you are getting any dialog box or not.

I never used these two options.

cparam-no_open = 'X'.

cparam-no_close = 'X'.

Regards,

Venkatesh

Former Member
0 Kudos

Hi,

Please check the setting in Nace transactions. There should be an optoin called Transmission medium for which the value should be 1 - Print output.

If you are not able to see that then you will not get the dialog Box. To enable it take your functional consultant help.

Regards,

Venkatesh

Former Member
0 Kudos

Thanks, however the output type is configured.

Any other options...one more thing that in the driver program if I use control-no_dialog = 'X', then it will suppress the that dialog box, and if do not pass this control param to the fm then it should display the Dialog box...right ?

-Sid