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

message in print program

Former Member
0 Likes
1,321

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
Read only

Former Member
0 Likes
1,229

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,229

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

Read only

0 Likes
1,229

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.

Read only

0 Likes
1,229

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

Read only

0 Likes
1,229

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

Read only

0 Likes
1,229

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

Read only

0 Likes
1,229

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

Read only

Former Member
0 Likes
1,230

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.

Read only

0 Likes
1,229

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

Regards,

Rich Heilman

Read only

0 Likes
1,229

Can you please suggest one if you know

thanks

chandu

Read only

0 Likes
1,229

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.

Read only

0 Likes
1,229

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

Regards,

Rich Heilman

Read only

0 Likes
1,229

Thanks alot for your valuable replies

and I awarded points

Read only

0 Likes
1,229

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