on 10-30-2008 1:08 PM
Hi
i want to save text on item level of offer through badi order save.
as i know i can not use crm_order_maintain here.
can you suggest FM?
regards
Radek
use SAVE_TEXT function module to save the text in the iteam level.
Regards,
Shiva Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Radek,
I vote for Shiva. SAVE_TEXT for item texts. Works fine for us.
Easwar Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pls use the function module CRM_TEXT_MAINTAIN_OW. You can call this in the BADI ORDER_SAVE.
CALL FUNCTION 'CRM_TEXT_MAINTAIN_OW'
EXPORTING
it_text = lit_text " Text Data
iv_object_guid = lw_header_ref " GUID
iv_object_kind = gc_object_kind-orderadm_h " Type
CHANGING
ct_input_field_names = lit_field_names " Inout fields
EXCEPTIONS
object_kind_unknown = 1
read_error_object_buffer = 2
OTHERS = 3.
IF sy-subrc <> 0.
EXIT.
ENDIF.
*--Input fields
CLEAR lw_field_names.
lw_field_names-fieldname = 'LINES'.
INSERT lw_field_names INTO TABLE lit_field_names.
Then call
INSERT lw_header_ref INTO TABLE lit_save_guids.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lit_save_guids
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
Note: Do not do any commit here.
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.