Skip to Content
0
Dec 10, 2008 at 03:47 PM

Case-Management: Providing Data to Document using FUNCTION_GET_FORM_DATA

92 Views

Hello,

I try to provide data to a RM-Document using a function defined in the connection parameter FUNCTION_GET_FORM_DATA of an element of service provider type SCMG_SP_DOCUMENT.

The importing/exporting parameters are

FUNCTION Z_RM_BDV_GET_DATA.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(IM_DOC_PROPS) TYPE  SRMGS_PROPERTY_TAB OPTIONAL
*"     VALUE(IM_CONTEX_PROPS) TYPE  SRMGS_PROPERTY_TAB OPTIONAL
*"     VALUE(IM_DOC_TEMPLATE_ID) TYPE  STRING OPTIONAL
*"     VALUE(IM_DOC_PROXY) TYPE REF TO  I_OI_DOCUMENT_PROXY OPTIONAL
*"  EXPORTING
*"     REFERENCE(EX_FORM_DATA) TYPE  SOI_FORM_LIST
*"----------------------------------------------------------------------

Inside this function module I'm using the CASE-API to get additional data from the case where the document is linked to. The CASE_GUID is part of the provided parameter im_contex_props

+CALL METHOD cl_scmg_case_api=>if_scmg_case_api~open_case+
    +EXPORTING+
      +im_case_guid    = p_case_guid+
  +RECEIVING+
      +re_case         = pif_case_api+
 +.....  some more case_api methods ...
 + pif_case_api->close_case() .

Now my problem starts.

After saving the RM-Document and working in the case again there are some obscurenesses.

Sometimes I will loose case attributes after saving the case.

Sometimes the case won't be saved even if there are some parts changed. (e.g. the document which was inserted into the linked objects will disappear after saving the case.)

Some additional miracles:

If I leave the document without saving. I will be prompted to save the changes. ==> everythin ok.

If I save the document and then leave it. The storage of the case will fail.

I NEED SOME HELP PLEASE !!!!!!

Regards

Jochen