Hi Experts,
Requirement: I need to update the text in SALE Order Item level Text.
For Example: If some text is already there, say 'Manul Text' for the line item 10, then I need to append as 'Contract Number: Manual text price list type', but in my case I need the exact FM that satisfies my conditon.
Currently am using FM 'SAVE_TEXT'
DATA: BEGIN OF I_THEAD OCCURS 0.
INCLUDE STRUCTURE THEAD.
DATA: END OF I_THEAD.
I_THEAD-TDOBJECT = C_OBJECT.
I_THEAD-TDID = C_ID.
I_THEAD-TDSPRAS = SY-LANGU.
I_THEAD-tdname = v_tdname.
append I_THEAD.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = I_THEAD
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER = I_THEAD
TABLES
LINES = i_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
.
Regards,
Vishwa