problem in using SAP_WAPI_WORKITEMS_TO_OBJECT

Kjetil Kilhavn KJETILK at statoil.com
Fri Jul 22 02:10:58 EDT 2005


I assume you have checked that return_code (l_rc) is zero as well even
if your code doesn't check it.

Could you copy and paste the "real" code, including the definitions for
all variables used in the function call.
-- 
Kjetil Kilhavn, Statoil KTJ IT BKS


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sharath Chandra Kotla
Sent: 21. juli 2005 18:20
To: sap-wug at mit.edu
Subject: Re: RE: problem in using SAP_WAPI_WORKITEMS_TO_OBJECT

No, key contains the documentnumber and year. 

thanks.


--- sap-wug-bounces at mit.edu <KJETILK at statoil.com>
wrote:
> There's probably something wrong in your object key
when you call the
> function, since everything else seems simple enough.
Do you e.g. get the
> client (mandt) as part of the key (you shouldn't) in
your method?
> --
> Kjetil Kilhavn, Statoil KTJ IT BKS
> 
> -----Original Message-----
> From: sap-wug-bounces at mit.edu
[mailto:sap-wug-bounces at mit.edu] On Behalf
> Of Sharath Chandra Kotla
> Sent: 21. juli 2005 00:06
> To: sap-wug at mit.edu
> Subject: problem in using
SAP_WAPI_WORKITEMS_TO_OBJECT
> 
> 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.
> 
> 
>
-------------------------------------------------------------------
> The information contained in this message may be
CONFIDENTIAL and is
> intended for the addressee only. Any unauthorised
use, dissemination of the
> information or copying of this message is
prohibited. If you are not the
> addressee, please notify the sender immediately by
return e-mail and delete
> this message.
> Thank you.
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.



More information about the SAP-WUG mailing list