Hi all,
I want to create or store the condition text for condition records in vk11.
I am using the function module save_text.But in vk13 i am not seeing the conditon texts i gave for that particular condition record
Below is the code..please go thru and help.its really urgent
select SINGLE knumh from a911 INTO lv_knumh where matnr =
'06ASA10511D141'
and werks = '8380' and datab = '20080323' and datbi = '99991231'.
theader-TDOBject = 'KONP'.
THEADER-tdname = lv_knumh. (condition number as name)
THEADER-tdid = '0001'.
THEADER-tdspras = 'E'.
THEADER-mandt = sy-mandt.
wtline-tdformat = ''.*
wtline-tdline = 'savetext test'.
append wtline to tline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT*
header = theader
INSERT = 'X'*
SAVEMODE_DIRECT = 'X'*
OWNER_SPECIFIED = ' '*
LOCAL_CAT = ' '*
IMPORTING
FUNCTION = lv_func
NEWHEADER = nheader
tables
lines = tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
points will be rewarded if problem sovled