Skip to Content
0
Former Member
Nov 04, 2009 at 04:11 PM

CRM_ORDER_INITIALIZE Problem?

668 Views

Hi Guys,

I have following problem:

I have to delete the buffer in a BaDI for the CRMD_ORDER transaction after saving my changes. I use following FM's:


 SET UPDATE TASK LOCAL.

 CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save         = it_crmd_guids
           iv_update_task_local       = 'X'  .

COMMIT WORK

CALL FUNCTION 'CRM_ORDER_INITIALIZE'
      EXPORTING
        it_guids_to_init  = it_crmd_guids
        iv_init_frame_log = 'X'
        iv_keep_lock      = 'X'
      EXCEPTIONS
        error_occurred    = 1
        OTHERS            = 2.

My actual problem is that I get an error message which says "The log was not found" and the screen closes. It only does not happen when I save the dynpro with the Save button. It seems for me that I have to refresh the buffer for the CRMD_ORDER after deleting it.

Is my suggestion right?

If yes, does anybody has a tipp for me how to that? I have already tried to debugg the standard but with out an efficent result.

Thanks in advance.

Ali