Non zero return code from macro swc_get_property

Michael Arter Michael_Arter at national.com.au
Mon Jul 29 21:41:55 EDT 2002


Hi,
We have a background task that is executing as the first step in a
workflow.  The background
task is executing an object method which executes the macro statement
SWC_GET_PROPERTY
to retrieve some object attributes.
 
Our problem is that one of the "get property" macro's is returning a subrc
of 8 (when running
within the workflow instance),  while the others are returning zero's.
 
What is frustrating is that when I test the object method using the same
object data as the workflow
instance, ALL the return codes are zero.  The data type references for the
object attribute and
the object method variable are exactly the same - ie. referring to the same
data dictionary field.
 
Is there a way I can trap the execution of the background task within a
debug session to try and
determine why the macro call is failing????
 
 
NB:
 
1.  I've tried using the test w/flow tool in conjunction with the debugger
setting "In background task: Do not process"
but unfortunately the resulting transactional RFC only seems to capture the
initial call to the workflow internal rfc connection
and not the execution of the background task by WF-BATCH.
 
 
2.  As per the code below, 3 of the attributes are inherited from the
supertype standard
business object - 'Currency', 'TotalValue' & 'Plant'.  The retrieval of
'Currency' & 'Plant'
works but 'TotalValue' is failing.  The retrieval of all sub type
attributes are correctly
working.
 
 
************************************************************************************
swc_get_property wo_reqreq    'Zcostcentre'       w_costcentre.
swc_get_property wo_reqreq    'Zcontrollingarea'  w_co_area.
swc_get_property wo_reqreq    'ZWBSElement'       w_wbselement.
swc_get_property wo_reqreq    'ZNetwork'          w_network.
swc_get_property wo_reqreq    'TotalValue'        w_amount.
swc_get_property wo_reqreq    'Currency'          w_currency.
swc_get_property wo_reqreq    'ZAsset'            w_asset.
swc_get_property wo_reqreq    'ZAssetSubnumber'   w_subasset.
swc_get_property wo_reqreq    'Plant'             w_plant.
************************************************************************************
__________________________________________________________________________
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to NABpost at national.com.au or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.
 


More information about the SAP-WUG mailing list