Re: Re System-Link
Matthew Qualls <[email protected]>
| Newsgroups | gmane.comp.systems.as400.mapics |
|---|---|
| Message-ID | <[email protected]> |
Otto, Try using this expression for your 10.3 numeric field, which I'll call qty for this example, between your CDATA brackets: %trim(%char(qty)) This will remove any unnecessary blanks. HTH, Matt Qualls Agility, Inc. -----Original Message----- From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Otto Meyn Sent: February 06, 2013 4:45 PM To: MAPICS ERP System Discussion Subject: Re: [MAPICS-L] Re System-Link Yes to all the below information, But I did not use a Packed field for the numeric. I'll have to give it a try. -----Original Message----- From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of [email protected] Sent: Wednesday, February 06, 2013 4:34 PM To: MAPICS ERP System Discussion Subject: Re: [MAPICS-L] Re System-Link So in your MSG you have XML that might have a section that looks like this. <Property path=''supplementaryWeight''> <Value><![CDATA[&4]]></Value> </Property> This represents the 4th variable being passed to the message. Then in the FMT section of the MSG you need to say that the 4th variable is (*DEC 9 4) in my case. In the RPG program that then formats the data for the message I have a data structure setup for each message used and I define my fields in the data structure like this. D MD0021 DS D wItem21 15A D wDesc21 30A D wItem31 15A D wWegh 9P 4 Are you using the API Call 'QMHRTVM' to build your completed message? Tim From: "Otto Meyn" <meyno-KD3fYNZuIC/[email protected]> To: "MAPICS ERP System Discussion" <mapics-l-Zwy7GipZuJhWk0Htik3J/[email protected]> Date: 02/06/2013 03:17 PM Subject: Re: [MAPICS-L] Re System-Link Sent by: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] I'm using PowerLink to create my XML, copy & past into a CL program, which is used inside the MSG of an ADDMSGD command. The CL then calls a RPGLE to Pars and initializes the SystemLink request. My Wrapper then logs on read my file to update powerLink then Logs off. My problem is passed a decimal (10.3) from my file into the MSG of ADDMSGD command. An integer appears to be NO problem. The MSG via XML appears to accept Alpha data only (CDATA). SO, can I use a value with decimal(s) OR do they always need to be converted to an ALPHA field being careful to position the decimal in the correct character position. -----Original Message----- From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Charles Hood Sent: Wednesday, February 06, 2013 4:02 PM To: MAPICS ERP System Discussion Subject: Re: [MAPICS-L] Re System-Link Hello Otto, What programming language are you using to create your System-Link XML request? RPG ILE? Java? Some other language? Charles Hood | Sr. Programmer/Analyst | Information Systems Engineering, Inc. | P.O. Box 121 | Oconomowoc, WI 53066 | www.ise-erp.com office 262.354.3194 | fax 262.567.6588 For the latest information please visit the System i microsite www.infor.com/systemi See How ION Will Transform the Way You Do Business: http://www.youtube.com/watch?v=sXcDXsf0eIo&feature=g-user-u -----Original Message----- From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Otto Meyn Sent: Wednesday, February 06, 2013 1:23 PM To: MAPICS ERP System Discussion Subject: Re: [MAPICS-L] Re System-Link It is a 3 decimals -----Original Message----- From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of [email protected] Sent: Wednesday, February 06, 2013 11:35 AM To: MAPICS ERP System Discussion Subject: Re: [MAPICS-L] Re System-Link Are you having trouble with all decimal values, or only when they have 1 position behind the decimal? Infor was having issues with fields defined as 2,1 and 3,1 for a while. Make sure you are up to date on your patches. From: "Otto Meyn" <meyno-KD3fYNZuIC/[email protected]> To: "MAPICS-L SUBMIT" <MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected]> Date: 02/06/2013 10:20 AM Subject: [MAPICS-L] Re System-Link Sent by: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] I'm starting to use System-Link for the first time. GREAT tool. But I'm having problems passing a decimal value define like 10.3 Can anyone help? Thanks ahead of time. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. The information transmitted in this e-mail is intended only for the person or entity to which it is addressed and contains confidential and/or privileged material. This material may further be covered under a separate nondisclosure agreement. Any review, re-transmission, dissemination or other use of, or pursuing of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this communication in error, please first notify the sender immediately and then delete this communication from all data storage devices and destroy all hard copies. Please consider the environment before printing this email. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. The information transmitted in this e-mail is intended only for the person or entity to which it is addressed and contains confidential and/or privileged material. This material may further be covered under a separate nondisclosure agreement. Any review, re-transmission, dissemination or other use of, or pursuing of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this communication in error, please first notify the sender immediately and then delete this communication from all data storage devices and destroy all hard copies. Please consider the environment before printing this email. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l. -- This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mapics-l or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l.