Skip to Content
0
Former Member
Sep 23, 2011 at 03:06 AM

Problem in BDC

63 Views

Dear Experts,

I have developed a program for shipping advice and created transaction for this then I did BDC recording for this transaction

and in between I am calling printer (RSPO_FRONTEND_PRINTERS_FOR_DEV) to print the document.

The problem I am facing is the dialog for print will open if I run program in foreground (Mode 'A') but if run in background the print dialog will not open.

could anyone suggest me that how can I fix this issue.

CALL FUNCTION 'RSPO_FRONTEND_PRINTERS_FOR_DEV'

EXPORTING

DEVICE = 'LOCL'

IMPORTING

PRDEFAULT = V_DEFUALT_PRINTER

TABLES

LIST = L_PRLIST

EXCEPTIONS

NO_LIST = 1

LIST_TRUNCATED = 2

NAME_NOT_FOUND = 3

OTHERS = 4.

IF SY-SUBRC <> 0.

MESSAGE E600(FR) WITH 'Error on CALL FUNCTION "GET_DEFAULT_PRINTER" process. '.

V_ERROR = 1.

ENDIF.

Thanks in advance....

Best Regards

Venkat