06-15-2009 11:41 AM
Hi
I am trying to save a long text for material. to do this, I have to fill a table of type bapi_mltx.
If I insert one line all works correctluy, but if I try to insert more than one line, other lines are ignored and I can see only the first seem to be read. This is my code.
it_mltx-langu = lang.
it_mltx-langu_iso = iso_lang.
" insert first line
it_mltx-text_line = line1.
it_mltx-format_col = '*'.
APPEND it_mltx.
" insert second line
it_mltx-text_line = line2.
it_mltx-format_col = '='.
APPEND it_mltx.
I follow a precedent hint adding the format_col field with '*' for first line and '=' for following, but it does not work. Can anybody help me please?
thanks
gabriele
06-15-2009 11:48 AM
I hope rest all values are same of each line
APPLOBJECT
TEXT_NAME
TEXT_ID
LANGU
LANGU_ISO
06-15-2009 11:51 AM
06-15-2009 12:05 PM
Hi,
Use '*' for second line also, not '=' and see weather the second line coming or not.
it_mltx-langu = lang.
it_mltx-langu_iso = iso_lang.
" insert first line
it_mltx-text_line = line1.
it_mltx-format_col = '*'.
APPEND it_mltx.
" insert second line
it_mltx-text_line = line2.
it_mltx-format_col = '*'. " Change here to *
APPEND it_mltx.
Regards
Bala Krishna
06-15-2009 2:51 PM
I tried the solutions suggested, but they don't work.
I don't know if it's important, but the bapi I am using to store material data is BAPI_MATERIAL_SAVEDATA .
06-16-2009 8:27 AM