SAP OSS Notes

1272921 SAP OSS Note - Workflow Container: Merge initializes def-extension








SAP OSS Note 1272921 version 0003 contains details of a know issue related to Workflow Container: Merge initializes def-extension. This includes any associated symptoms and instructions on how to fix it, see below for full details. Also check out the comments section to view/add related contributions, questions or screen shots, based on real life experience of this oss note and problem.

...For more information about the SAP support system known as OSS please check out the SAP OSS NOTES SECTION, whih includes how to download & implement them onto your SAP system using transaction code SNOTE.

Note 1272921 Details:






When does this problem occur

A task is based on a class method (for example, CL_SWF_FORMABSENC CREATE). The taks is the first step in a workflow. You start the w
orkflow for the first time using SWUS. It runs without errors. You then start the workflow a second time, without leaving SWUS, and the workflow receives the status ERROR.

WL821 Work item ... Object... Method ...cannot be executed
W8899: Call of method...of class....failed:
Incorrect type for parameter

Description of problem



Cause of the problem and Pre-requisites

The result parameter of the method has an object-value. When the result is transferred to the task container, the method MERGE is called. For the delta handling, the value for the object-value element is requested. The element is then initialized. However, it is located in the def-extension of the task container.

The def-extension is reused during the next workflow start. The content has changed, which causes the error.

The problem occurs only for object-type elements.

Solution instructions

You must execute the delta handling on a copy. This is already implemented for all other elements. Only for object-type elements, a copy is not yet used. This error is corrected with the correction.

Implement the correction instructions.

Note 1272921 Correction instructions:



NOTE: Only source text changes are displayed here

*$*$----------------------------------------------------------------$*$*
*$ CORRECTION INSTRUCTIONS 0120031469 0000732061 $*
*$ Prerequisite corr. inst. 0120031469 0000709797 Note 0001272921 $*
*$--------------------------------------------------------------------$*
*$ VALID FOR : $*
*$ Software Component SAP_BASIS SAP Basis component $*
*$ Release 710 To SAPKB71007 $*
*$ Release 711 To SAPKB71102 $*
*$*$----------------------------------------------------------------$*$*
*&---------------------------------------------------------------------*
*& Object METH CL_SWF_CNT_CONTAINER
*& IF_SWF_CNT_CONTAINER~MERGE
*& Object header CLAS CL_SWF_CNT_CONTAINER
*&---------------------------------------------------------------------*
...
IF -props O swfcn_p_obj_ref.
* --- do not call it if element is null. This can
* initialize the def. extension - OSS note 01272921
*>>>> START OF DELETION <<<<<
if -props Z swfcn_p_is_null.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
clear l_old_value_ref.
if -props Z swfcn_p_is_null.
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*

Effected Objects:


(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

(METH) - CL_SWF_CNT_CONTAINER IF_SWF_CNT_CONTAINER~MERGE

Solution instructions


Please import the corrections attached to this OSS note into your SAP system using SNOTE.

You can also view the full details of this OSS note and download it to your SAP system ready for implementation using transaction code SNOTE. Once it has been downloaded you can read the full details, check out any installation instructions including manual changes and see if there are any pre-requisites.

You can also check if a new version of note 1272921 has been released as well as see if the note is valid for your current SAP system landscape.

Check if SAP OSS note 1272921 has already been downloaded and is valid


To check if this note has already been download, what status it has and if it is valid for your system first execute t-code SNOTE and click on the SAP Note Browser icon
Icon used to execute SAP Note Browser report within SNOTE

From here you can just enter the note number 1272921 and press execute. If the note already exists it's details will be displayed. See here for full step by step instructions on how to check if an SAP note has been downloaded and is valid for your system.



If note 1272921 does not exist on your system you will receive the message "Unable to find SAP Note that meets specified criteria"
Icon used to execute SAP Note Browser report within SNOTE

If this is the case you will need to download the note to you SAP system also using transaction SNOTE. For further details see Download note using SNOTE. Even if it does exist you may still want to check if you have downloaded the latest version of the note.

Alternatively you can find full details of this note on the SAP service market place(SNumber / Service market place login will be required)