<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> </div> <div>Jimmy</div> <div><BR><BR><B><I>John Wiese <jwiese@esri.com></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 <> 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>> Dear Fellow Workflowers . . .<BR>> <BR>> <BR>> <BR>> We are on the verge of a 4.70 Upgrade weekend (May 26 thru 29, 2006)<BR>and<BR>> we are running into an interesting issue<BR>> <BR>> with Early Archiving and Workflow . . .<BR>> <BR>> <BR>> <BR>> Here are "some" of the details . . . (please see attachment for full<BR>> details):<BR>> <BR>> <BR>> <BR>> WORKFLOW PROBLEM - SAP 4.7 Archive Link and Workflow<BR>> <BR>> <BR>> <BR>> Problem statement: after creation of a Logistics Invoice (transaction<BR>> MIRO), the LIV document should be assigned to the scanned image and<BR>the<BR>> workflow should
end successfully. Instead, the workflow loops back<BR>> around so that the user is once again prompted to create and link a<BR>new<BR>> document to the scanned image. Even though an LIV doc is created<BR>> successfully and the image is linked to the document. Hence, the<BR>> assignment of image to document isn't recognized by the workflow.<BR>> <BR>> <BR>> <BR>> * WS90000034 - ESRI ImgNew - for early archiving of scanned<BR>documents<BR>> * Workflow essentially loops until flagged completed<BR>> * One branch of the loop is problematic - namely steps 381, 386<BR>and 391<BR>> * <BR>> * [Workflow Builder - Display 'ESRI ImgNew']<BR>> * <BR>> * 381 is the Create R/3 Document step - it eventually calls<BR>> IMAGE.ZIMAGEPROCESS (tcode MIRO)<BR>> * Screen shots below are the drill down into this step of the<BR>workflow<BR>> * It dynamically calls the appropriate transaction (MIRO) for the<BR>> document type (ZFI_LIVDOC in our
case)<BR>> * Possible outcomes of the step are Process Abandoned, Processing<BR>> rejected and Document type assigned. Process Abandoned and<BR>> Processing rejected work fine. "Document type assigned" is not<BR>> reached.<BR>> * The "Document type assigned" outcome is a result of a<BR>terminating<BR>> event defined in the task. This seems to be the problem point.<BR>> * The other problem is that occasionally the workflow simply<BR>> bypasses those two steps (386 & 391) and then loops around<BR>again,<BR>> prompting the workflow user to process, abort or otherwise make<BR>> the initial decision of the workflow.<BR>> * <BR>> * [Additional screen shots]<BR>> * <BR>> * <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> Does anyone have any idea as to how-to trouble-shoot / resolve this<BR>problem?<BR>> <BR>> <BR>> <BR>> Thanks for your time and your help!<BR>> <BR>> <BR>> <BR>> John Wiese<BR>>
<BR>> ESRI, Inc.<BR>> <BR>> Redlands, Calif. 92373<BR>> <BR>> (909) 793-2853 x2381<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>><BR>------------------------------------------------------------------------<BR>> <BR>> _______________________________________________<BR>> SAP-WUG mailing list<BR>> SAP-WUG@mit.edu<BR>> 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.