12-10-2007 8:18 AM
Hello ABAP developers,
I have to write a program for changing texts in Transaction CAT2.
At the moment I use the two function modules "READ_TEXT" and "EDIT_TEXT".
With this function modules I can change the long texts, but not the short texts.
Does anybody have an idea for my problem?
If the information can help, the short texts are stored in the table "CATSDB".
In addition the first line of a long text seems to be the short text. But after the change of the first line, the change isn't applied for the short text.
Thanks and regards
Sergej
12-10-2007 8:46 AM
Hi!
The short texts are just stored in a character field (LTXA1) in table catsdb. You don't have to use the READ_TEXT and EDIT_TEXT fm-s, you just simply modify this field.
However, be careful of the direct table update, because not only CATSDB table, what is used in CAT2 transaction. For example there are CATSPM, CATSCO and CATSHR tables also...
I was copied CAT2 to a ZCAT2 transaction and applied the modifications within the tablecontrol, and SAP handled the rest...
Regards
Tamá
12-10-2007 8:52 AM
Hi,
thanks, but is there way, to change the short text with a function module?
Sergej
12-10-2007 9:31 AM
To change the CATSDB records use BAPI BAPI_CATIMESHEETMGR_CHANGE.
You will have to copy the first line (the first character of) to the records in table parameter CATSRECORDS_IN (structure BAPICATS3) you could also use this BAPI to change the long texts using the LONGTEXT table parameter.
Regards
10-08-2009 6:07 AM
Hi,
Is there any way to populate BAPICATS3 table throufh FM or BAPI?