Skip to Content
0

Front-end printing sequence problems

Mar 01, 2017 at 05:20 PM

194

avatar image

Hi all.

We have a problem printing in front end from SAP several documents as they aren't printed keeping it sequence. Sapfprint.log shows that documents are coming in the correct sequence to SAP GUI but some of them seems to get stucked in the printing proccess and then another one is printed. Sapwin_xxxx.log logs shows that some request lasts long on Open_DC phase.

Someone has faced this problem? Is there a way to solve it?

SAP GUI version is 740 PL10. Here is an example, printing four documents. The order they was printed was 4, 1, 2, 3 instead of 1, 2, 3 ,4.

This is the trace from sapfprint.log:
Th 05692: (01.03.2017 13:12:01) CsapfPrintCtrl::CsapfprintCtrl constructor called
Th 05692: (01.03.2017 13:12:01) CsapfPrintCtrl::Print called
Th 05692: (01.03.2017 13:12:01) url = SAPR3://0050569F31F71ED6BFCF08C55613FC4B

Th 05692: (01.03.2017 13:12:01) CsapfPrintCtrl::Print about to print with parameters:
Th 05692: (01.03.2017 13:12:01) printer_name = __DEFAULT
Th 05692: (01.03.2017 13:12:01) filesize = 35039
Th 05692: (01.03.2017 13:12:01) copies = 1
Th 05692: (01.03.2017 13:12:01) suppress_print_dialog = 1
Th 05692: (01.03.2017 13:12:01) params = USER = ""XXX#":PJIDENT = ""XXX0000012182#":PJNUMBER = ""00001#":TITLE = ""#":
Th 05692: (01.03.2017 13:12:01) CsapfPrintCtrl::~CsapfprintCtrl destructor called

Th 05716: (01.03.2017 13:12:01) CsapfPrintCtrl::CsapfprintCtrl constructor called
Th 05716: (01.03.2017 13:12:02) CsapfPrintCtrl::Print called
Th 05716: (01.03.2017 13:12:02) url = SAPR3://0050569F31F71ED6BFCF08DCB00EDC4B

Th 05716: (01.03.2017 13:12:02) CsapfPrintCtrl::Print about to print with parameters:
Th 05716: (01.03.2017 13:12:02) printer_name = __DEFAULT
Th 05716: (01.03.2017 13:12:02) filesize = 38431
Th 05716: (01.03.2017 13:12:02) copies = 1
Th 05716: (01.03.2017 13:12:02) suppress_print_dialog = 1
Th 05716: (01.03.2017 13:12:02) params = USER = ""XXX#":PJIDENT = ""XXX0000012183#":PJNUMBER = ""00001#":TITLE = ""#":
Th 05716: (01.03.2017 13:12:02) CsapfPrintCtrl::~CsapfprintCtrl destructor called

Th 05752: (01.03.2017 13:12:02) CsapfPrintCtrl::CsapfprintCtrl constructor called
Th 05752: (01.03.2017 13:12:02) CsapfPrintCtrl::Print called
Th 05752: (01.03.2017 13:12:02) url = SAPR3://0050569F31F71ED6BFCF08DCB00F1C4B

Th 05752: (01.03.2017 13:12:02) CsapfPrintCtrl::Print about to print with parameters:
Th 05752: (01.03.2017 13:12:02) printer_name = __DEFAULT
Th 05752: (01.03.2017 13:12:02) filesize = 38431
Th 05752: (01.03.2017 13:12:02) copies = 1
Th 05752: (01.03.2017 13:12:02) suppress_print_dialog = 1
Th 05752: (01.03.2017 13:12:02) params = USER = ""XXX#":PJIDENT = ""XXX0000012184#":PJNUMBER = ""00001#":TITLE = ""#":
Th 05752: (01.03.2017 13:12:02) CsapfPrintCtrl::~CsapfprintCtrl destructor called

Th 05760: (01.03.2017 13:12:02) CsapfPrintCtrl::CsapfprintCtrl constructor called
Th 05760: (01.03.2017 13:12:03) CsapfPrintCtrl::Print called
Th 05760: (01.03.2017 13:12:03) url = SAPR3://0050569F31F71ED6BFCF08DCB0105C4B

Th 05760: (01.03.2017 13:12:03) CsapfPrintCtrl::Print about to print with parameters:
Th 05760: (01.03.2017 13:12:03) printer_name = __DEFAULT
Th 05760: (01.03.2017 13:12:03) filesize = 21706
Th 05760: (01.03.2017 13:12:03) copies = 1
Th 05760: (01.03.2017 13:12:03) suppress_print_dialog = 1
Th 05760: (01.03.2017 13:12:03) params = USER = ""XXX#":PJIDENT = ""XXX0000012185#":PJNUMBER = ""00001#":TITLE = ""#":
Th 05760: (01.03.2017 13:12:03) CsapfPrintCtrl::~CsapfprintCtrl destructor called

And this is the trace of sapwin_xxxx for that documents respectively:
Th 05700: (01.03.2017 13:12:01) Print SAPWIN file C:\Users\XXX\AppData\Local\SAP\SAP GUI\tmp\0050569F31F71ED6BFCF08C55613FC4B on printer \\XXX\XXX with title XXX/XXX0000012182_1:.
Th 05700: (01.03.2017 13:12:01) Non unicode datastream detected
Th 05700: (01.03.2017 13:12:01)
Th 05700: (01.03.2017 13:12:01) Enter Open_DC.
Th 05700: (01.03.2017 13:12:03) width = 0
...
Th 05748: (01.03.2017 13:12:02) Print SAPWIN file C:\Users\XXX\AppData\Local\SAP\SAP GUI\tmp\0050569F31F71ED6BFCF08DCB00EDC4B on printer \\XXX\XXX with title XXX/XXX0000012183_1:.
Th 05748: (01.03.2017 13:12:02) Non unicode datastream detected
Th 05748: (01.03.2017 13:12:02)
Th 05748: (01.03.2017 13:12:02) Enter Open_DC.
Th 05748: (01.03.2017 13:12:03) width = 0
...
Th 05756: (01.03.2017 13:12:02) Print SAPWIN file C:\Users\XXX\AppData\Local\SAP\SAP GUI\tmp\0050569F31F71ED6BFCF08DCB00F1C4B on printer \\XXX\XXX with title XXX/XXX0000012184_1:.
Th 05756: (01.03.2017 13:12:02) Non unicode datastream detected
Th 05756: (01.03.2017 13:12:02)
Th 05756: (01.03.2017 13:12:02) Enter Open_DC.
Th 05756: (01.03.2017 13:12:03) width = 0
...
Th 05776: (01.03.2017 13:12:03) Print SAPWIN file C:\Users\XXX\AppData\Local\SAP\SAP GUI\tmp\0050569F31F71ED6BFCF08DCB0105C4B on printer \\XXX\XXX with title XXX/XXX0000012185_1:.
Th 05776: (01.03.2017 13:12:03) Non unicode datastream detected
Th 05776: (01.03.2017 13:12:03)
Th 05776: (01.03.2017 13:12:03) Enter Open_DC.
Th 05776: (01.03.2017 13:12:03) width = 0

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Prithviraj Rajpurohit Mar 02, 2017 at 11:39 AM
0

Hi Ruben

Please go through below sapnote to see if that helps

https://launchpad.support.sap.com/#/notes/855342/E

Regards

Prithviraj

Share
10 |10000 characters needed characters left characters exceeded
Ruben Ares Cano Mar 03, 2017 at 08:24 AM
0

Hi.

I followed that note as well as many others notes without results.

  • Output request are generated in the correct sequence in SAP as SP01 shows.
  • Requests are sent in the correct sequence to SAP GUI front-end printing driver (SAPWIN Version 740 Final Release.7400.3.10.87 (32bit)) as they appears in the correct order in sapfprint.log
  • Request are started to process in the correct order as timestamps from winapi_xxx.log and sapwin_xxx.log for each requets sugest that.

Anyway, something occurs during processing some requests in SAPWIN driver that let them stucked and then, requests that arrive later are printed before. Traces from sapwin_xxx.log and winapi_xxx.log from stucked requests always last long in the next lines respectively.

...
Th 05700: (01.03.2017 13:12:01) Enter Open_DC.
Th 05700: (01.03.2017 13:12:03) width = 0
...
...
Th 05700: (01.03.2017 13:12:01) RegOpenKeyEx(80000001, .., 00000000, ..) = 0 for key use_copies
Th 05700: (01.03.2017 13:12:03) CreateDCW(.., \\EFSGFAQFIMP01\FNDFIMP04 (Facturación), ..) = 06210B40
...

Users reported that this issue started to happen when SAP GUI was updated from 730 to 740.

Best regards.

Share
10 |10000 characters needed characters left characters exceeded