on 11-04-2009 4:11 PM
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
I have found the solution.
Just use
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
EXPORTING
UPDATE_TASK_LOCAL = True
SAVE_FRAME_LOG = True
IMPORTING
LOG_HANDLE = lv_log_handle
TABLES
OBJECTS_TO_SAVE = objects_to_save
* SAVED_OBJECTS =
* RETURN =
.
and then you will have no problems with the buffer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.