Fonction SAP BAPI_CHARACT_GETLONGTEXT - BAPI for Characteristics: Read Long Text for Characteristic or Value

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPICHARACTKEY-CHANGENUM C 12 X Change Number
CHARACTNAME BAPICHARACTKEY-CHARACTNAME C 30 Characteristic Name
KEYDATE BAPICHARACTKEY-KEYDATE D 8 SY-DATUM X Valid-From Date
LANGUAGE_INT BAPICHARACTDESCR-LANGUAGE_INT C 1 X Language (SAP Key)
LANGUAGE_ISO BAPICHARACTDESCR-LANGUAGE_ISO C 2 X Language (ISO Code)
VALUE_CHAR BAPICHARACTVALUESCHAR-VALUE_CHAR C 30 X BAPI for Characteristics - Allowed Values for CHAR Chars
VALUE_FROM BAPICHARACTVALUESNUM-VALUE_FROM F 8 X Internal Floating Point From
VALUE_RELATION BAPICHARACTVALUESNUM-VALUE_RELATION C 1 X Code for Value Dependency
VALUE_TO BAPICHARACTVALUESNUM-VALUE_TO F 8 X Internal Floating Point Value To

Paramètre Reférence Long. Facultatif Description
LONGTEXT BAPITLINE 134 SAPscript: Text Lines
RETURN BAPIRET2 548 Return Parameters

Functionality
This BAPI reads the long text (documentation) for a characteristic orcharacteristic value.
If only the characteristic name (CharactName) is transferred, the longtext for the characteristic is read. If the parameters of acharacteristic value are also filled, the long text for the value isread.
For characteristics with character format, parameter 'ValueChar' isfilled. For numeric, currency, date, and time characteristics, theparameters 'ValueFrom', 'ValueTo', and 'ValueRelation' are filled. Youwill find a detailed description of these fields in, for example, table'CharactValuesNum' of BAPI Characteristic.Create
. If a single value is entered in field 'ValueFrom', 'ValueRelation'contains a '1'.
In addition, you can transfer a date or a change number. Usually, thelong text is read in the system language, by parameter 'LanguageInt' or'LanguageISO', but you can select a different language. 'LanguageInt'contains the language in SAP format. 'LanguageISO' contains thelanguage in ISO format. If both parameters are filled, ISO format haspriority.
The long text is in table 'Longtext'. The first field contains formatdata (standard line: *), and the second field contains a text line.
The result is logged in table 'Return'. If there are errors in thedata, this table contains a message of type 'E', if there is no longtext, it contains a message of type 'I', and if a long text is foundsuccessfully, there is no message.

Notes
Function modules CTBP_CONVERT_VALUE_INT_TO_EXT andCTBP_CONVERT_VALUE_EXT_TO_INT can be used to switch betweeninternal and external value format.