Once again fill/create object 2

Josie Henriques jhenriques_procwork at timbrasil.com.br
Wed Dec 14 10:45:40 EST 2005


Hi Mike

 

  Thanks for your help. But I want to do the inverse. I want set the employees in my workqueue, I can create it but without the employees.

   This is my second HR WF and there are more 2! And I'm getting nuts too!!

 

 Josie de Assis Francisco Henriques

Consultora ABAP

Aspen / Procwork

Tel.: 21 82087663

  _____  

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Mike.Nickson at bhint.com
Sent: quarta-feira, 14 de dezembro de 2005 13:07
To: SAP Workflow Users' Group
Subject: RE: Once again fill/create object 2

 


Josie 

If it is the list of employees attached to the object then user a call to function module HRCM_WORKQUEUE_READ to retrieve them. 

Sample code here :- 

DATA: L_EMPLOYEES  TYPE TABLE OF HRPERNR,   
      L_Workitem_Id like SWWWIHEAD-WI_ID. 

L_Workitem_Id = OBJKEY. 

* Get the Employees involved in this object. 
CALL FUNCTION 'HRCM_WORKQUEUE_READ' 
  EXPORTING 
    WORKQUEUE_ID           = L_Workitem_Id 
* IMPORTING 
*   ADJUSTMENTREASON       = 
*   ADJUSTMENTTYPE         = 
*   PLANPERIOD             = 
  TABLES 
    PERNRS                 = L_EMPLOYEES. 

I am working in this area and am having problems myself . . . . it's driving me nuts ! 

I don't understand why the usual SWC_* macros do not seem to be working with this object ! 

Mike 




 

"Josie Henriques" <jhenriques_procwork at timbrasil.com.br> 
Sent by: sap-wug-bounces at mit.edu 

14/12/2005 13:15 
Please respond to "SAP Workflow Users' Group" 

        
        To:        "SAP Workflow Users' Group" <sap-wug at mit.edu> 
        cc:         
        Subject:        RE: Once again fill/create object 2




  
 I've tested it and it was just showing to me the FLOWITEM object filled e not the object that I was creating Workqueue. 
  
  Authorizations issues? Hmm, I don't think so because they gave me authorization to execute some HR transactions and WF-BATCH is an system user right? 
  
  Now I'm trying some totally different and more simple. 
   
   I'm trying to use the object BUS7022 to trigger the event. It's triggering but the objects BUS7020 and BUS7022 are not filled. 
  
   I think I'll try another simpler thing, When the user plan an adjustment, I'll send a workitem to the approver, so he/she can see and approve or not (in this case it's called Submit).  The Standard WF is working when a user submits an adjustment. The major problem is to show the adjustment to a user. I can't attach any object to my work item (I don't know why), I also tried to use a method with call transaction+ set parameter id, but it don't work with this transaction (HRCMP0001C). I don't know what else to do just say that it can´t be done! 
   
  
Josie de Assis Francisco Henriques 
Consultora ABAP 
Aspen / Procwork 
Tel.: 21 82087663 

 

  _____  


From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Mark Pyc
Sent: quarta-feira, 14 de dezembro de 2005 10:40
To: SAP Workflow Users' Group
Subject: Re: Once again fill/create object 2 
  
Have you tested the object directly in SWO1? 
  
Have you confirmed that you're not having any authorizations issues??


On 12/14/05, Josie Henriques <jhenriques_procwork at timbrasil.com.br> wrote: 

   Mike   

  

   My problem here is, BUS7022 has key WorkitemId, but if I pass the key for it one of its attributes (Employees) is not created, and I need this attribute. 

  

  

Josie de Assis Francisco Henriques 

Consultora ABAP 

Aspen / Procwork 

Tel.: 21 82087663 

 

  _____  

From: sap-wug-bounces at mit.edu <mailto:sap-wug-bounces at mit.edu>  [mailto:sap-wug-bounces at mit.edu <mailto:sap-wug-bounces at mit.edu> ] On Behalf Of Mark Pyc
Sent: quarta-feira, 14 de dezembro de 2005 08:12
To: SAP Workflow Users' Group
Subject: Re: Once again fill/create object 

  

G'day Josie, 

  

You don't set an Object Instance's attributes when you create it, you create the Instance and it determines the values of it's attributes internally. All you need to create an instance is the object type and the key. The code behind the object must then be able to determine the value of all attributes based on the key. 

  

If you're not happy with what attributes BUS7022 has then you'll need to create a subtype, extend the subtype and then delegate to it. 

  

I've just had a look and I'm not at all familar with that particular object. The fact that it uses a Workitem ID as a key means that finding the key to pass when instanciating may not be straight forward. Is anyone familiar with BUS7022?? 

  

Good luck, 

Mark

On 12/13/05, Josie Henriques < jhenriques_procwork at timbrasil.com.br <mailto:jhenriques_procwork at timbrasil.com.br> > wrote: 

Thank you Flavio

It has helped me a lot. I could get an object's attribute but I now don´t know how to set these values in the object I'm creating. I'ts a different object from the one I'm using in my WF. 

Josie de Assis Francisco Henriques
Consultora ABAP
Aspen / Procwork
Tel.: 21 82087663

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto: sap-wug-bounces at mit.edu] On Behalf Of Flavio Oliveira
Sent: terça-feira, 13 de dezembro de 2005 17:06 
To: sap-wug at mit.edu
Subject: RE: Once again fill/create object 

Josie:

Try to take a look at the online help. You will find all information you 
need:

http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4acd5453d11d189430000e829fbbd/frameset.htm 

Flavio.


>From: "Josie Henriques" <jhenriques_procwork at timbrasil.com.br >
>Reply-To: "SAP Workflow Users' Group" < sap-wug at mit.edu>
>To: "SAP Workflow Users' Group" < sap-wug at mit.edu>
>Subject: Once again fill/create object
>Date: Tue, 13 Dec 2005 16:37:53 -0200 
>
>
>
>   I need to create an object (BUS7022) but its attributes will be filled
>with data from 3 objects.
>
>
>
>   Does anyone has some code sample to send for me? With swc_ate_object, 
>swc_set_element and others statements?
>
>
>
>thanks
>
>
>
>Josie de Assis Francisco Henriques
>
>Consultora ABAP
>
>Aspen / Procwork
> 
>Tel.: 21 82087663
>
>
>


>_______________________________________________
>SAP-WUG mailing list
> SAP-WUG at mit.edu <mailto:SAP-WUG at mit.edu> 
> http://mailman.mit.edu/mailman/listinfo/sap-wug <http://mailman.mit.edu/mailman/listinfo/sap-wug> 


_______________________________________________ 
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 

  

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

 _______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20051214/177238db/attachment.htm


More information about the SAP-WUG mailing list