infor.com
concierge
infor u
developer portal
Home
Groups
FACTS - Partner Community
Note Printing
jeff-christie
Has anyone addressed the issue where when you print a note on a SO, PO, etc. it double spaces if the customer has entered a return when entering the note lines. I have 2 customers now who just want the note to print as it is entered, but the print routine SMC011 insists on double spacing the output. I did find an entry in the KB with a not warranted fix, but the fix is not at all correct to address this. It references $0D$, $0A$'s but the separator character is $01$.
This seems like a common problem, I'm hoping someone has addressed this perhaps before I dive into SMC011!!
Find more posts tagged with
Comments
greimer
Pivotal Systems had a client using FACTS 7.7 who wanted to list short phrases for the note line and it was printed double-spaced. I submitted an incident to Infor and they indicated the print out matched their intended functionality. I made the following code changes on the client's system [and others] to stop the double-spacing:
SMC011 Old: /facts/facts77/prog/SM/SMC011.ssi 2011.03.09
SMC011 NEW: /facts77/mods/prog/SM/SMC011 UI Paragraph Control Procedures
1130 Old: let Y=pos(SEP$=Y$); if Y>0 then let X$=Y$(Y+1)+X$,IN$[X]=Y$(1,Y-1
NEW: let Y=pos(SEP$=Y$); if Y>0 then let X$=Y$(Y+1)+X$,IN$[X]=Y$(1,Y-1
Old: +RETURN_SEP); if mid(X$,1,1)<>SEP$ then let IN$[++X]=""; let DATA
-NEW: +RETURN_SEP); if mid(X$,1,1)<>SEP$ then let DATALEN+=2+len(IN$[X-
Old: LEN+=2+len(IN$[X-1]); if not(nul(IN$[X-1])) and LAST_ELEMENT
-NEW: 1]); if not(nul(IN$[X-1])) and LAST_ELEMENT
Old: then let LAST_ELEMENT=X-1 end_if else let LAST_ELEMENT=X,DATALEN+
-NEW: MENT=X-1 end_if else let LAST_ELEMENT=X,DATALEN+=1+len(IN$[X]) en
Old: =1+len(IN$[X]) end_if ; goto NEXT_LINE
-NEW: d_if ; goto NEXT_LINE ! Gerald.2011.03.07 - To prevent the note f
NEW: rom being printed double-spaced, even though the entry does not s
NEW: how it double-spaced.
1163 NEW: if X and not(nul(IN$[X])) and LAST_ELEMENT
NEW: ENT=X+1 ! *Gerald - See line 1130.
Display my changes in Courier font and the differences will be more apparent.
jeff-christie
Thanks for the input Gerald. I have a 6.6 - 7.7 upgrade customer who uses notes extensively. Even have a mod to have SO notes before they were base. I know I could probably had addressed this at each program (pick ticket print, etc), but they all seemed to be using SMC011, so I figured addessing it at the source was best. I'll give your changes a try when I get a chance and let you know. Thanks again.
Legacy Contributor
Thanks Gerald as I am having the same problem with custom notes after taking a customer from 7.5 to 7.7. What I guess I do not understand is why if this was not an issue up till 7.6 and now Infor is saying it is working as designed? I hope someone from Infor chimes in and explains why they changed this from 7.6 to 7.7 in its design (i do not have the double spacing problem in 7.6). But in the meantime it looks like I will be adding your changes... Thanks again!
jeff-christie
Worked just fine, I owe you one!! Josh, I haven't looked into it that deeply in 7.6, but one of my 7.6 customers is saying it is happening also. I don't think the logic changed from 7.6 to 7.7, although I could be wrong..I applied the change to 7.7, plan on doing it in 7.6 next time I'm on their system.
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
ION Connect
ION Workflow
ION API Gateway
Syteline Development
CPQ Discussion Ask a Colleague
Infor Data Fabric
Infor Document Management (IDM)
LN Development
FAQs, How-To, and Best Practices
API Usage