• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

R43500 Funny PO Note (Header Attachment) print

Adrian_Chimirel

Legendary Poster
Hi,
In B7321, I've encountered a very weird behavior with a modified copy (of another copy) of R43500 (not implemented, yet, in Xe). Please bear with me for a moment, the problem to be fixed was not that difficult, but I got into some kind of ... funny situations.
Problem:
a) Truncate (longer than 100 characters) Purchase Order Note (header attachment) to 100 characters,
b) Add a message "See full note at the end of PO", and
c) Print a) & b) on the first page of the PO, only, and
d) Print full note at the end of PO (of course, print only if longer than 100 characters)
Scenario I UBE Data Selection specifies (one PO) OR (a LIST of POs) NO PROBLEMO, a...d print correctly

Scenario II UBE Data Selection specifies a RANGE of POs.
OOPS#1 a) prints truncated with a LEFT character
i.e. Text that should print
"5/6/98 bla bla bla...", actually prints
"/6/98 bla bla bla", or
"ISSUED TO AUTHORIZE THE PROCUREMENT bla..." prints
"SSUED TO AUTHORIZE THE PROCUREMENT bl..." you got the picture. Did I miss something, or it's just a bug?

OOPS#2 It happens ONLY to a specific Branch/Plant! Like this:
OOPS#2.1 a) doesn't print when PO change
OOPS#2.2 a) prints previous, truncated PO note when PO change
It might be a wrong initialization here; but I did try it in all three places I knew (at Initialize Section, DO Section, BOTH!)
Attached is myCode.txt from the end of the Do Section ER of Purchase Order Header (Group Section).
Could you help me?
Thank you,

LIVE: B732.1 SP12.2, Oracle 806
SANDBOX: Xe SP15 & Update1, Oracle 8i
RS/6000, Citrix
 

Attachments

raiym

Active Member
Adrian,

Off the top of my head, I guess I can answer OOPS #1. Keep the starting number on your substring to 0 instead of 1. That should get the whole text in.
As for the others, I am not sure. Will get back if something strikes...

Yathindra
 

Adrian_Chimirel

Legendary Poster
Yathindra,

Thank you very much for your prompt reply! Unfortunately, I've been there, I've tried that, ... BUT, then, my UBE crashes with sparkling "Memory Violation ..."!
Did it happen to you? Could it be an NT4 (DELL OptiPlex GX1, 400MHz, 256MBRAM) development wkstation problem?
Excuse my too many questions at the same time :)

Thanks,
Adrian

PS I do have another weird thing happening in B732.1 (not sure it is related with the "Memory Violation " error);
When I first get into OL, the only Grid visible row is the QBE :(
The moment I do a Find (or only a Window resize), the Grid Headings show up :)<P ID="edit"><FONT SIZE=-1>Edited by adrian_chimirel on 5/11/01 07:28 AM.</FONT></P>
 

Adrian_Chimirel

Legendary Poster
Yathindra,
Good news! I found the ... "real" reason my UBE was crashing: it was the SAR 2521942 initialization line
RV POHeaderGenericText2 = " "
I've disabled it and my system doesn't crash anymore! I couldn't figure out WHY, but I'll keep my eyes OPEN, especially on the Xe; I'm not sure it happens there, anyway.

THEREFORE, I've (re)modified the starting number on the substr to 0 instead of 1, and OOPS#1 is history!
The other ... OOPS may be related to the system function GT4016A failure to retrieve the following POrder's header attachment. I'll keep the List up to date, as I usually do.

Thank you!
Adrian

LIVE: B732.1 SP12.2, Oracle 806
SANDBOX: Xe SP15 & Update1, Oracle 8i
RS/6000, Citrix
 

Adrian_Chimirel

Legendary Poster
I solved ALL my outstanding issues (see attachment). It was the tricky usage of hide (and ... seek - no show), therefore, the statement:
RV myTruncatedPOHdrGenText = RV POHeaderGenericText2
was assigning a blank (empty) string to the left operand (because the right operand was hidden!). Replaced with:
Show(RV POHeaderGenericText2)
and the sun is shining, again on our street!

Thanks everybody!

LIVE: B732.1 SP12.2, Oracle 806
SANDBOX: Xe SP15 & Update1, Oracle 8i
RS/6000, Citrix
 

Attachments

raiym74

Member
Adrian,

Thanks for putting in the update. It really puzzled me because I never got such and error, could be, because I'm on XE. Anyway, congrats on solving it. Hopefully you should be able to clear up the other stuff too and be OOPS!! no more..

Regards
Yathindra

XE WINNT AS/400


Yathindra,
Good news! I found the ... "real" reason my UBE was crashing: it was the SAR 2521942 initialization line
RV POHeaderGenericText2 = " "
I've disabled it and my system doesn't crash anymore! I couldn't figure out WHY, but I'll keep my eyes OPEN, especially on the Xe; I'm not sure it happens there, anyway.

THEREFORE, I've (re)modified the starting number on the substr to 0 instead of 1, and OOPS#1 is history!
The other ... OOPS may be related to the system function GT4016A failure to retrieve the following POrder's header attachment. I'll keep the List up to date, as I usually do.

Thank you!
Adrian

LIVE: B732.1 SP12.2, Oracle 806
SANDBOX: Xe SP15 & Update1, Oracle 8i
RS/6000, Citrix
--------------------------
Visit the forum to view this thread at:
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=&Board=OWDEV&Number=10748
 
Top