<div>John,</div>  <div>sounds like you want to establish the link between the SAP document and the Image file, and it failed.</div>  <div>Are you sure IMAGEPROCESS is the correct Method to use? It looks to me, you may want to take a look of the method ImageAssignEarly. Because yo have an image file, and created a SAP document with the info. </div>  <div>&nbsp;</div>  <div>Jimmy</div>  <div><BR><BR><B><I>John Wiese &lt;jwiese@esri.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Mike<BR><BR>The IMAGE.ZIMAGEPROCESS is a slight modification of the original<BR>IMAGE.IMAGEPROCESS. The modifications in ZIMAGEPROCESS only serve to<BR>provide some parameter ID's before and after the call to function<BR>WF_NCI_PROCESS_30. These modifications are nominal and should not affect<BR>the outcome of the call. The function WF_NCI_PROCESS_30 determines which<BR>"create" mechanism to call based on the WFL
 document type<BR>(TWFDB-NCITYPE). In our problem case, the WFL document type is<BR>"ZFI_LIVDOC" which is related to BOR method BUS2081.CREATE which, in<BR>turn, calls transaction MIRO.<BR><BR><BR><BR>ZIMAGE.ZIMAGEPROCESS CODE:<BR>-----------------------------------------------------<BR>BEGIN_METHOD ZIMAGEPROCESS CHANGING CONTAINER.<BR>DATA:<BR>OBJ_TWFDB TYPE SWC_OBJECT,<BR>NCITYPE LIKE TWFDB-NCITYPE.<BR><BR>DATA: WINDOWID LIKE SAPB-SAPWINID. "modified<BR>DATA: DOC_TYPE LIKE TOADD-DOC_TYPE. "modified<BR>DATA: DOCNBR(10) TYPE C. "modified<BR>DATA: DOCGJR(4) TYPE C. "modified<BR><BR>SET PARAMETER ID 'BLN' FIELD DOCNBR. "modified<BR>SET PARAMETER ID 'BLP' FIELD DOCNBR. "modified<BR>SET PARAMETER ID 'RBN' FIELD DOCNBR. "modified<BR>SET PARAMETER ID 'GJR' FIELD DOCGJR. "modified<BR><BR>SWC_GET_ELEMENT CONTAINER 'TWFDB' OBJ_TWFDB.<BR>SWC_GET_OBJECT_KEY OBJ_TWFDB NCITYPE.<BR>CALL FUNCTION 'WF_NCI_PROCESS_30'<BR>EXPORTING<BR>NCITYPE = NCITYPE<BR>ASGKY =
 OBJECT-KEY<BR>EXCEPTIONS<BR>WF_ERROR_PROCESS = 1<BR>OTHERS = 2.<BR>IF SY-SUBRC &lt;&gt; 0.<BR>EXIT_RETURN_SYS_MESSAGE 1000.<BR>ELSE. "modified<BR>GET PARAMETER ID 'BLN' FIELD DOCNBR. "modified<BR>IF DOCNBR IS INITIAL. "modified<BR>GET PARAMETER ID 'BLP' FIELD DOCNBR. "modified<BR>IF DOCNBR IS INITIAL. "modified<BR>GET PARAMETER ID 'RBN' FIELD DOCNBR. "modified<BR>GET PARAMETER ID 'GJR' FIELD DOCGJR. "modified<BR>IF DOCNBR IS INITIAL OR DOCGJR IS INITIAL. "modified<BR>EXIT_RETURN_SYS_MESSAGE 1001. "modified<BR>ENDIF. "modified<BR>ENDIF. "modified<BR>ENDIF. "modified<BR>ENDIF.<BR>END_METHOD.<BR><BR>Thanks to you and anyone else on our Workflow list who can<BR>provide additional insights into this issue.<BR><BR>John<BR><BR>-----Original Message-----<BR>From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<BR>Of Mike Pokraka<BR>Sent: Wednesday, May 24, 2006 1:21 AM<BR>To: SAP Workflow Users' Group<BR>Subject: Re: Rel: 4.70 -- Archive Link and Workflow
 problem<BR><BR>Hi John,<BR>Curious, the Create document step is terminated by a IMAGE.ASSIGNED<BR>event, yet the following step is the one that assigns the image....<BR>something isn't making sense.<BR>Could you give us more detail on what IMAGE.ZIMAGEPROCESS does?<BR>Cheers,<BR>Mike<BR><BR>John Wiese wrote:<BR>&gt; Dear Fellow Workflowers . . .<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; We are on the verge of a 4.70 Upgrade weekend (May 26 thru 29, 2006)<BR>and<BR>&gt; we are running into an interesting issue<BR>&gt; <BR>&gt; with Early Archiving and Workflow . . .<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Here are "some" of the details . . . (please see attachment for full<BR>&gt; details):<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; WORKFLOW PROBLEM - SAP 4.7 Archive Link and Workflow<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Problem statement: after creation of a Logistics Invoice (transaction<BR>&gt; MIRO), the LIV document should be assigned to the scanned image and<BR>the<BR>&gt; workflow should
 end successfully. Instead, the workflow loops back<BR>&gt; around so that the user is once again prompted to create and link a<BR>new<BR>&gt; document to the scanned image. Even though an LIV doc is created<BR>&gt; successfully and the image is linked to the document. Hence, the<BR>&gt; assignment of image to document isn't recognized by the workflow.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; * WS90000034 - ESRI ImgNew - for early archiving of scanned<BR>documents<BR>&gt; * Workflow essentially loops until flagged completed<BR>&gt; * One branch of the loop is problematic - namely steps 381, 386<BR>and 391<BR>&gt; * <BR>&gt; * [Workflow Builder - Display 'ESRI ImgNew']<BR>&gt; * <BR>&gt; * 381 is the Create R/3 Document step - it eventually calls<BR>&gt; IMAGE.ZIMAGEPROCESS (tcode MIRO)<BR>&gt; * Screen shots below are the drill down into this step of the<BR>workflow<BR>&gt; * It dynamically calls the appropriate transaction (MIRO) for the<BR>&gt; document type (ZFI_LIVDOC in our
 case)<BR>&gt; * Possible outcomes of the step are Process Abandoned, Processing<BR>&gt; rejected and Document type assigned. Process Abandoned and<BR>&gt; Processing rejected work fine. "Document type assigned" is not<BR>&gt; reached.<BR>&gt; * The "Document type assigned" outcome is a result of a<BR>terminating<BR>&gt; event defined in the task. This seems to be the problem point.<BR>&gt; * The other problem is that occasionally the workflow simply<BR>&gt; bypasses those two steps (386 &amp; 391) and then loops around<BR>again,<BR>&gt; prompting the workflow user to process, abort or otherwise make<BR>&gt; the initial decision of the workflow.<BR>&gt; * <BR>&gt; * [Additional screen shots]<BR>&gt; * <BR>&gt; * <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Does anyone have any idea as to how-to trouble-shoot / resolve this<BR>problem?<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Thanks for your time and your help!<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; John Wiese<BR>&gt;
 <BR>&gt; ESRI, Inc.<BR>&gt; <BR>&gt; Redlands, Calif. 92373<BR>&gt; <BR>&gt; (909) 793-2853 x2381<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt;<BR>------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><BR><BR><BR>"Whether you think you can or whether you think you can't, you're right!"     --Henry Ford<p>
                <hr size=1>Blab-away for as little as 1¢/min. Make <a href="http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone Calls</a> using Yahoo! Messenger with Voice.