08-07-2012 11:28 AM
Hi,
I am developing the report wirh BOM Long text.
When aalready BOM long text is there , if i want to edit the text i am using edit_text and save_text function module
and editing the BOM long text.
if there is no BOM Text, if i want to add new text, i am using same function module and it is not working properly.
if i use same function module edit_text and save_text, it is updating only 40 charaacter text.
Please any one have idea how to resolve?
Regards,
udupi
08-07-2012 11:36 AM
You can try with create_text
call function 'CREATE_TEXT'
exporting
fid = 'LTXT'
flanguage = sy-langu
fname = '000000001000067910'
fobject = 'EQUI'
SAVE_DIRECT = 'X'
tables flines = fline
.if sy-subrc <> 0.
endif.
or can try with
CSAP_MAT_BOM_MAINTAIN
Gourav
08-07-2012 11:43 AM
Hi Gaurav,
Thanks for your reply.
I tries to ue the create_text, but it is not opening editor to me.
if the user execute the program, if the BOM long text not maintained in the program,
i want to open the editor and user want to enter the text.
Regards,
udupi
08-07-2012 1:41 PM
Hi,
Guess you are filling the following header parameters correctly.
tdname - Key of BOM material
tdid - table name
tdobject - object name
tdspras - language
If you are inserting new long text then the parameter 'INSERT' should be checked.