Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Printing Transfer Orders

0 Likes
722

Hi All,

Subject: Printing Transfer Orders.

I have a requirement like we need to print the TO's.

Case(1): I have a Z* program which is configured in Tcode: OMLV based on Print codes.

In the Z* program we are calling the smartform and trying to Print TOs. There are many ways to print To's like execuitng Tcode: LT31 or Tcode: LB10 etc. When executing through Tcode: LT31 we are getting one spool which triggers smartform that was triggering in Z* program and able to print the TO's for the default user in SAP system. And the status of spool is in 'Compl.'.

Case(2): I have a Z* program in which we use Submit statement calling the Z* program where the smartform is assigned. I have a problem here, when execuitng the Z* program back ground in turn which calls the Z* program calling the smartform is not able to print the TO. The status of the spool generated is in 'waiting' status. But when executed in foreground we are able to print the TO's.

When i click on the status it shows the Status text as 'Frontend unavailable'. But my frontend is available as my system is configured to the local printer & i am able to print when running in foreground.

Please let us know what might be the issue and lt us know how to resolve this issue when executing the Z* program in background.

Thanks & Regards.

Kishore Babu

Hi All,

Subject: Printing Transfer Orders.

I have a requirement like we need to print the TO's.

Case(1): I have a Z* program which is configured in Tcode: OMLV based on Print codes.

In the Z* program we are calling the smartform and trying to Print TOs. There are many ways to print To's like execuitng Tcode: LT31 or Tcode: LB10 etc. When executing through Tcode: LT31 we are getting one spool which triggers smartform that was triggering in Z* program and able to print the TO's for the default user in SAP system. And the status of spool is in 'Compl.'.

Case(2): I have a Z* program in which we use Submit statement calling the Z* program where the smartform is assigned. I have a problem here, when execuitng the Z* program back ground in turn which calls the Z* program calling the smartform is not able to print the TO. The status of the spool generated is in 'waiting' status. But when executed in foreground we are able to print the TO's.

When i click on the status it shows the Status text as 'Frontend unavailable'. But my frontend is available as my system is configured to the local printer & i am able to print when running in foreground.

Please let us know what might be the issue and lt us know how to resolve this issue when executing the Z* program in background.

Thanks & Regards.

Kishore Babu

1 REPLY 1
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
524

Hello Kishore.

     Check this thread https://scn.sap.com/thread/1395219.

Regards.