on 02-13-2016 12:25 PM
Hello Guys,
Getting this error
"Entry could not be found in database buffer"
Message No. CRM_ORDER_MISC201
after crm_order_maintain we are saving that transaction by crm_order_save , however our transaction is getting saved but system gives above information message.
Thanks
Hi Kiran,
Most of the cases, the error happens when you call crm_order_save in another save process. Would you pleas check? Are you calling crm_order_save again within another save?
Best regards,
Maggie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Guys,
Thanks for your suggestions , i have already tried everything above suggested.
But still problem persists.
am using SAP CRM 740 , also i have tried same code on lower version of SAP CRM its working .
@Sagar Its Mass Upload and i have given only single table code.
Thanks
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA : ct_orderadm_h TYPE crmt_orderadm_h_comt,
cs_orderadm_h TYPE crmt_orderadm_h_com,
ct_input_fields TYPE crmt_input_field_tab,
cs_input_fields TYPE crmt_input_field,
ct_field_tab TYPE crmt_input_field_names_tab,
cs_field_tab TYPE crmt_input_field_names,
it_objects_to_save TYPE crmt_object_guid_tab.
CALL FUNCTION 'CRM_ORDER_INITIALIZE'
EXPORTING
* it_guids_to_init = it_header_guid
iv_initialize_whole_buffer = 'X'
iv_init_frame_log = 'X'.
CALL FUNCTION 'BAL_GLB_MEMORY_REFRESH'
EXPORTING
* I_AUTHORIZATION =
i_refresh_all = 'X'.
CALL FUNCTION 'PRC_INIT'.
CALL FUNCTION 'BREL_INIT_BUFFER'.
CALL FUNCTION 'REL_INIT_BUFFER'.
CLEAR : cs_orderadm_h .
cs_orderadm_h-handle = '0000000001'.
cs_orderadm_h-mode = 'A'.
cs_orderadm_h-descr_language = 'EN'.
cs_orderadm_h-process_type = process_type.
cs_orderadm_h-description = 'test'.
APPEND cs_orderadm_h TO ct_orderadm_h .
REFRESH :cs_input_fields-field_names,ct_field_tab,ct_input_fields.
CLEAR: cs_input_fields , cs_field_tab.
cs_field_tab-fieldname = 'DESCRIPTION'. INSERT cs_field_tab INTO TABLE ct_field_tab.
cs_field_tab-fieldname = 'PROCESS_TYPE'. INSERT cs_field_tab INTO TABLE ct_field_tab.
cs_field_tab-fieldname = 'POSTING_DATE'. INSERT cs_field_tab INTO TABLE ct_field_tab.
cs_field_tab-fieldname = 'DESCR_LANGUAGE'. INSERT cs_field_tab INTO TABLE ct_field_tab.
cs_field_tab-fieldname = 'MODE'. INSERT cs_field_tab INTO TABLE ct_field_tab.
cs_input_fields-ref_handle = '0000000001'.
cs_input_fields-ref_kind = 'A'.
cs_input_fields-objectname = 'ORDERADM_H'.
cs_input_fields-field_names = ct_field_tab.
INSERT cs_input_fields INTO TABLE ct_input_fields.
* EXIT.
* ENDLOOP.
*
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
CHANGING
ct_orderadm_h = ct_orderadm_h
ct_input_fields = ct_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
CLEAR : cs_orderadm_h.
READ TABLE ct_orderadm_h INTO cs_orderadm_h INDEX 1 .
REFRESH : it_objects_to_save[].
APPEND cs_orderadm_h-guid TO it_objects_to_save.
IF NOT it_objects_to_save[] IS INITIAL.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = it_objects_to_save
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
ENDIF.
this is code
I am working on SAP CRM 740
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Is it a mass upload program?
Why are you using following? Try removing these lines.
CALL FUNCTION 'CRM_ORDER_INITIALIZE'
EXPORTING
* it_guids_to_init = it_header_guid
iv_initialize_whole_buffer = 'X'
iv_init_frame_log = 'X'.
CALL FUNCTION 'BAL_GLB_MEMORY_REFRESH'
EXPORTING
* I_AUTHORIZATION =
i_refresh_all = 'X'.
CALL FUNCTION 'PRC_INIT'.
CALL FUNCTION 'BREL_INIT_BUFFER'.
CALL FUNCTION 'REL_INIT_BUFFER'.
As it is an information message, I guess you can ignore this.
-Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Can you please share your code with us? Or the algorithm?
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.