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: 

message in print program

Former Member
0 Kudos

Hi all,

Please tell me is it possible to give an message in print program for transaction vl02n.

if possible please give me some hint

regards

chandu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi rich,

The print program we are using is not required,just our requirement is to see a message when we press save button,

thats why we checked that print program is useful for that, but unfortunately it is in update task and also checked with 'update debugging on' but its not stopping at my break point.

please help

regards

chandu.

13 REPLIES 13

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Most likly this print program is actually executed in an Update task. Chances are you will never see the "message" anyway. What is it that you need to accomplish?

Regards,

Rich Heilman

0 Kudos

hi rich,

in vl02n for ex for outbound type 'YDPD' we are using the

custom print program. when i put a breakpoint in the program and process this transaction vl02n with outbound type 'YDPD' i need to jump direct to the breakpoint where i set without processing all other blocks,if it is possible then we will delete the program(we dont require)

and just put an warning message in the program (requirement).

i hope this clarifies, if u have any doubts just give me a reply.

regards

chandu.

0 Kudos

So you want to put a warning message in the custom print program? May I ask for what purpose? Anyway put a break point in the custom print program. Execute the VL02n transaction normally and try to get it to execute your print program. If the program stops at your breakpoint, then you know that the print program is being executed "online" or in the same task as the transaction. Then you should be able to put your warning message in the print program. If it doesn't stop at your breakpoint, then it is probably being passed off to the update task, which in this case, you are out of luck.

Regards,

Rich Heilman

0 Kudos

Hi rich,

Yes you are right.When i put a breakpoint in the program and execute the trans vl02n then its not stopping at breakpoint where i set an its executing normally ,thats why we want to put an error message. so please tell me is there any other way to accomplish this task.

regards

chandu

0 Kudos

So we know that it's running in an update task. Is the only reason for the message, so that you can attempt to stop the program? I'm confused.

Regards,

Rich Heilman

0 Kudos

If you want to debug your print program, you have to turn on the "Update debugging". First, put a break point in your print program. Now go into VL02n, process the transaction up untill the point of saving, turn on debugging and complete the transaction. Once in the debugger, click Settings, Update Debugging. Now continue to debug till it stops at your breakpoint.

Please remember to award points for helpful answers. Thanks.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi rich,

The print program we are using is not required,just our requirement is to see a message when we press save button,

thats why we checked that print program is useful for that, but unfortunately it is in update task and also checked with 'update debugging on' but its not stopping at my break point.

please help

regards

chandu.

0 Kudos

Maybe there is a user exit which is fired when the user presses "save". You could probably use that.

Regards,

Rich Heilman

0 Kudos

Can you please suggest one if you know

thanks

chandu

0 Kudos

Put your message in subroutine USEREXIT_SAVE_DOCUMENT_PREPARE of program MV50AFZ1. This will appear when you press SAVE.

( To change above program you will need an access key if this program is being changed for first time in your system ).

Cheers.

0 Kudos

I was going to suggest the same as Sanjay. Give it a try.

Regards,

Rich Heilman

0 Kudos

Thanks alot for your valuable replies

and I awarded points

0 Kudos

I don't see any awarded points. Please make sure to award points for helpful answers and mark this post as solved if your question has been answered. Thanks.

Regards,

Rich Heilman