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

Alon Raskin araskin at 3i-consulting.com
Tue Nov 5 01:14:44 EST 2002


Not that I think it matters but can you also make sure that you have not
defined Positions as a mutli-line exporting element on your method. Its
name is a bit misleading so maybe you have marked it as a multi-line
(not that it should matter).
=20
Regards,
=20
Alon Raskin=20
3i Consulting Group=20
e: araskin at 3i-consulting.com=20
w: http://www.3i-consulting.com=20
=20
Connect Workflow to Outlook/Lotus Notes in 2 minutes =96
http://www.desktopworkplace.com <http://www.desktopworkplace.com/>=20
=20
=20
=20
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
David Weston
Sent: 05 November, 2002 1:32 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Background method error Access 'C' is not valid for verb type
'A'
=20
Hi folks
=20
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:
=20
Access 'C' is not valid for verb type 'A'.
=20
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.
=20
The method code looks as follows:
=20
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
=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
=20
END_METHOD.
=20
Has anyone experienced anything like this before ? If so I'd appreciate
any feedback
=20
Cheers
Dave            =20
 


More information about the SAP-WUG mailing list