Hi friends,
iam facing the following problem regarding the material sales text.
Iam using read text FM and reading the text and after that iam using save text function module to save that text.
Iam using that in a user exit SAVE_DOCUMENT in VA01 transaction.
Now my Problem is when iam in tcode VA01 iam able to save the text properly.
But in change mode ie : VA02 iam able to read the text but its not saving the text using SAVE TEXT function module.
In VA02 iam getting the value of Sy-subrc = 5.
code :
SAVE_TEXT
EXPORTING
client = sy-mandt
header = wa_header
insert = ' X'.
savemode_direct = 'X'
TABLES
lines = L_TLINE
EXCEPTIONS
id = 1
lang = 2
name = 3
object = 4
others = 5
can any one help me.
Regards
Priyanka