Skip to Content
author's profile photo Former Member
Former Member

save text function

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 02:19 PM

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

    Regards,

    Shiva Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 05:23 PM

    Hello Radek,

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

    Easwar Ram

    http://www.parxlns.com

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 04:38 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.