Fonction SAP BAPI_CHARACT_ADDLONGTEXT - BAPI for Characteristics: Set 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 On
LANGUAGE_INT BAPICHARACTDESCR-LANGUAGE_INT C 1 X Language Key
LANGUAGE_ISO BAPICHARACTDESCR-LANGUAGE_ISO C 2 X Language According to ISO 639
VALUE_CHAR BAPICHARACTVALUESCHAR-VALUE_CHAR C 30 X Characteristic Value
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 sets the long text (documentation) for a characteristic orcharacteristic value.
If only the characteristic name (CharactName) is transferred, the longtext for the characteristic is set. If the parameters for thecharacteristic value are also filled, the long text for this value isset.
For characteristics with character format, parameter 'ValueChar' isfilled. For characteristics with numeric, currency, date, and timeformat, parameters 'ValueFrom', 'ValueTo', and 'ValueRelation' arefilled. For a detailed description of these fields, see (for example)table 'CharactValuesNum' of BAPI Characteristic.Create. Singlevalues are entered in field 'ValueFrom', in which case field'ValueRelation' contains a '1'.
You can also transfer a date or a change number. The long text is setin the system language, unless you select a different language by usingparameter 'LanguageInt' or 'LanguageISO'. 'LanguageInt' is the langaugein SAP format, whereas 'LanguageISO' is the language in ISO format. Ifboth parameters are filled, the ISO format overrides the SAP format.
The long text is in table 'Longtext'. The first field defines theformat (standard line format is *), and the second field contains aline of text.
The result is logged in table 'Return'. If there are errors in thedata, you see a message of type 'E'. If not, you see a message of type'S'.

Notes
The long text you transfer overwrites the old long text.
You can use function modules CTBP_CONVERT_VALUE_INT_TO_EXT andCTBP_CONVERT_VALUE_EXT_TO_INT to switch between internal andexternal value format.

Description
Change number

Description
Characteristic name

Description
Valid on

Default
System date

Description
Language key: ISO format has priority

Default
System language

Description
Language according to ISO 639

Default
System language

Description
Characteristic value

Description
Internal floating point number from

Description
Code for value dependency

Description
Internal floating point number to

Description
SAPscript: text lines

Description
Return parameter