problem in using SAP_WAPI_WORKITEMS_TO_OBJECT

Sharath Chandra Kotla ksharath77 at yahoo.com
Wed Jul 20 18:06:10 EDT 2005


Here I am attaching the code ,


-------this part is just to get the values to test in
ABAP program---
l_temp-recordid = l_key. 
insert ztest from temp.
 --------------------------- 

 
CALL FUNCTION SAP_WAPI_WORKITEMS_TO_OBJECT
EXPORTING 
objtype = BUS2017 
objkey =l_key “material document no.
 selection_status_variant = 0002 “Executed Work Items.
 IMPORTING 
 return_code = l_rc 
 TABLES 
 task_filter = lt_filter 
 worklist = lt_worklist. 
 
SORT lt_worklist BY wi_id DESCENDING. 
READ TABLE lt_worklist INDEX 1. 
IF sy-subrc EQ 0. 
 exworkitem = lt_worklist-wi_id. 
 zvendorreturnformcompleted = T. 
ELSE. 
zvendorreturnformcompleted = F.
endif,

Always zvendorreturnformcompleted is taking F, 
for tesing porpose I wrote an ABAP program with same
code and provided input parameters from my test
code.it is taking T for the same values..
Is it bcz the task is in back ground execution mode.

I Appreciate any idea .

Is there any other way to find executed work items..
I am in version 4.7.

Thanks,
Sharath.

--- sap-wug-bounces at mit.edu
<patrick.d.green at us.ibm.com> wrote:
> 
> 
> 
> 
> I will be out of the office starting July 20, 2005
and will not return
> until July 21, 2005.
> 
> For Marathon Workflow Administration issues, please
send your note to
> WorkflowAdministrato at MarathonOil.com.
> 
> If urgent, you may call or page me via my cell
phone,  918-808-6168.
> ------------
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the SAP-WUG mailing list