on ‎2016 Apr 02 3:14 PM
I designed a custom smartform for contracts (me31k). Until 3 days back I was able to print the form for testing normally and it was running like a breeze. But one fine afternoon it stopped printing the form, and after much toiling I could only get to print the header details of the contract. It is not printing the line items at all. During one of the many trials I made some changes to the texts of two line items and it printed only those two (out of 16) items (attachment 1) just that one time. Thereafter, changes to the item texts is also not yielding any results (attachment 2). There seems to be no problem with the smartform as I'm able to test run it from SE37 and the preview is coming out absolutely fine.
One thing that is driving me crazy is that I put breakpoints in my custom program that is calling my form. NONE of those breakpoints are triggering yet my smartform is being called and printing!! Is there a way (besides tediously debugging the standard code) to trace out and find how my form is being called bypassing my program assigned in NACE?
When i create a new output in ME32k sometimes its successfully created and only prints the page shown in attachment 2. Otherwise it fails with an error message ME140 "No print-relevant changes to document XXXXXXXXXX exist" (attachment 3). Can someone please help me find the cause for this sudden weird behavior. How can I fix it? Any help will be GREATLY appreciated. I have been going nuts over this issue for the last 3 days.
Thanks
Hamid
Request clarification before answering.
Hi Hamid,
In the Customizing you can define the fields, which are print-relevant (e.g. quantity). There you can change these fields.
To debug the form you need to put an external break-point in the print-program and debug to the form or set a break-point in a program node of the form.
Best regards,
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benjamin
Thanks for helping.
Yes, I saw that under transaction OMFS as well as drilling down to PO settings in SPRO. But my issue is that the form was printing fine until 3 days back without any problems. Whenever I made some modification in the smartform i would simply test it by going to ME32k and create a new output to print and it would print all the line items. I do not understand what changed suddenly that now the line items are not printing. What's worse is I'm unable to debug the calling program to try to locate the cause. I did use external breakpoints but they are not triggering somehow
Hi Hamid,
I had worked on certain PO forms which required creating a new output each time I want to print the form, else, I get the same warning "No print-relevant changes...". It depends on a setting in NACE as shown below:
Have you checked this setting?
How many pages of form are you expecting in the print?
Thanks,
Sowbhagya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sowbhagya
I had already checked those settings and they are exactly as in your screenshot. I'm trying to print 2 pages.
I feel that there might be some setting where I can instruct SAP to print only those line items which have changed, or otherwise, if the setting is off it would print them all.
Thanks for trying to help me out
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 5 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.