Originally posted by: SystemAdmin
We have performed extensive testing with the R/3 Adapter. Hopefully the following items are found to be helpful.
1. Build a utility map (ie. sap_idoc_writer.mmc). Input card is a blob that will accept the idoc. Output card will contain the R/3 adapter with either dummy type adapter settings or R/3 proper values (hopefully) via Resource Registry. A VERY IMPORTANT setting that must be on the output card is the 'on failure' setting -- should be set to "commit" vs. rollback. Yea, sounds strange but this came via recommendation of tech. support. We have definitely proven, without this card setting, SAP conditions such as lock table overflow are not detected and passed back the calling chain. This leads to lost / missing idocs?? This also assures all application maps recover properly via the central setting/utility. All application maps issue a RUN to sap_idoc_writer and can override the R/3 output card values, as needed but the 'on failure' setting remains - better yet have the apps. call/run via use of Resource Registry (again better central control).
2. On the idoc length error, be sure the metadata idoc file was exported from SAP, specifying the proper release level of your sap system. Also, upon import, be sure to import EDI or ALE depending upon situation. idoc control records are 1063 length, something less could possibly be a missing (key) field or a padding issue in the idoc type tree definition.
3. I saw mention of the SAP Gateway for this inbound issue --- be aware - the gateway does not come into play for SAP Inbound idocs --- the host is targeted directly via host, r3 name, and system # parms. Gateway is used for outbound only.
4. Be careful when using the VALID vs. testing for good RC (0), when attempting to detect command success/failure. ie IF(RUN(my.map....) != 0,FAIL("Error: LASTERRORCODE() + LASTERRORMSG() ...etc. vs. VALID(RUN ........., FAIL(?) .... sometimes one way works as you expect but other cases --- NOT. Definitely test/simulate error to assure expected results.
Kind Regards, TIM
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender