Application Development 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: 

MB1A automatically print

Former Member
0 Kudos
276

Hello,

I have to print automatically a label designes in a custom smartform using standard tc MB1A.

Is there any user-exit, custo.. to print it?

Thnks.

1 ACCEPTED SOLUTION

nitesh_jain3
Active Participant
0 Kudos
53

Hi Alberto,

There is a concept of Messages in MM similar to Output Types in SD.

Ask your functional consultant to create a new message type for printing the label to which he can attach the program, smartform and the routine (in your program which should be executed in which you code the call to the smartform) you will be developing, to trigger the print. This is done using SPRO.

If possible you can also use a standard message type however the configuration will need to be modified to use your program, smartform and the routine.

For automatic printing the Message Type will need to be set to print immediately ( in configuration).. So when the document will be saved the print will be generated.

Cheers

Nitesh

2 REPLIES 2

Former Member
0 Kudos
53

Alberto

I'm assuming you want to print a Goods Issue label?!

SAP provides Preconfigured Smartforms and print programs for certain business processes as part of the Best Practices suite downloadable from the SAP Service Marketplace (there are other posts that describe how to download this). In this suite there is a print program that you can use to replace the standard print program in config and it will process a smartform instead of a sapscript. I believe the print program name is "/SMB40/M07DR". There should also be a sample Smartform on which you can base your own custom one.

I hope this at least gives you a start...

Regards

Glen

nitesh_jain3
Active Participant
0 Kudos
54

Hi Alberto,

There is a concept of Messages in MM similar to Output Types in SD.

Ask your functional consultant to create a new message type for printing the label to which he can attach the program, smartform and the routine (in your program which should be executed in which you code the call to the smartform) you will be developing, to trigger the print. This is done using SPRO.

If possible you can also use a standard message type however the configuration will need to be modified to use your program, smartform and the routine.

For automatic printing the Message Type will need to be set to print immediately ( in configuration).. So when the document will be saved the print will be generated.

Cheers

Nitesh