cancel
Showing results for 
Search instead for 
Did you mean: 

save text function

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use SAVE_TEXT function module to save the text in the iteam level.

Regards,

Shiva Kumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Radek,

I vote for Shiva. SAVE_TEXT for item texts. Works fine for us.

Easwar Ram

http://www.parxlns.com

Former Member
0 Kudos

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.