Background method error Access 'C' is not valid for verb type 'A'

David Weston weston at clockwork.ca
Mon Nov 4 20:31:52 EST 2002


Hi folks
 
I have created a synchronous method to run as a background task in a =
workflow to=20
retrieve the result (position) of a workflow role resolution based on =
responsibilities and
am getting the following error:
 
Access 'C' is not valid for verb type 'A'.
 
If i use the restart workflow function in SWI2_DIAG the method completes =
correctly.
I have one import parameter for company code based on LFB1-BUKRS and an =
export parameter that
returns the position based on WFSYST-ACT_AGENT.
 
The method code looks as follows:
 
BEGIN_METHOD FINDMAILUSERSFORCC CHANGING CONTAINER.              =20
data: bukrs type lfb1-bukrs.                                     =20
data: actors like swhactor occurs 0 with header line.            =20
data: positions like wfsyst-act_agent.                           =20
data: container1 like swcont occurs 0 with header line.          =20
data: ad_appl type flag.                                         =20
data: i77aw like t77aw occurs 0 with header line.                =20
data: wegid type wegid.                                          =20
data: results like swhactor occurs 0 with header line.           =20
data: begin of actor_test occurs 0.                              =20
        include structure swhactor.                              =20
data: short like objec-short,                                    =20
      stext like objec-stext,                                    =20
      end of actor_test.                                         =20
data: user_tab like actor_test occurs 0 with header line.        =20
                                                                 =20
SWC_GET_ELEMENT CONTAINER 'CompanyCode' bukrs.                   =20
                                                                 =20
refresh container1.                                              =20
container1-element =3D 'COMPANYCODE'.                              =20
container1-tab_index =3D '000000'.                                 =20
container1-elemlength =3D '004'.                                   =20
container1-type =3D 'C'.                                           =20
container1-value =3D bukrs.                                        =20
 
call function 'RH_GET_ACTORS'                                   =20
     EXPORTING                                                  =20
          act_object      =3D 'AC98000012'                        =20
          search_date     =3D sy-datum                            =20
     TABLES                                                     =20
          actor_container =3D container1                          =20
          actor_tab       =3D actors                              =20
     EXCEPTIONS                                                 =20
          others          =3D 0.                                  =20
                                                                =20
sort actors by otype objid.                                     =20
delete adjacent duplicates from actors comparing otype objid.   =20
read table actors index 1.                                      =20
positions =3D actors.                                             =20
swc_set_element CONTAINER 'Positions' positions.    =20
 
END_METHOD.
 
Has anyone experienced anything like this before ? If so I'd appreciate
any feedback
 
Cheers
Dave            =20
 


More information about the SAP-WUG mailing list