BAPI_CHARACT_GETDETAIL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_CHARACT_GETDETAIL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CTBP
Released Date:
17.09.1999
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_CHARACT_GETDETAIL' "BAPI for Characteristics - Read Attributes
EXPORTING
charactname = " bapicharactkey-charactname Characteristic Name
* keydate = SY-DATUM " bapicharactkey-keydate Date
* language = " bapifieldscacl-bapilangua Language: Empty = All Languages
IMPORTING
charactdetail = " bapicharactdetail Characteristic Attributes
TABLES
* charactdescr = " bapicharactdescr Characteristic Descriptions
* charactvaluesnum = " bapicharactvaluesnum Allowed Values for NUM Characteristics
* charactvalueschar = " bapicharactvalueschar Allowed Values for CHAR Characteristics
* charactvaluescurr = " bapicharactvaluescurr Allowed Values for CURR Characteristics
* charactvaluesdescr = " bapicharactvaluesdescr Value Descriptions
* charactreferences = " bapicharactreferences Entries for Reference Characteristics
* charactrestrictions = " bapicharactrestrictions Restrictions to Class Types
return = " bapiret2 Error Messages
. " BAPI_CHARACT_GETDETAIL
The ABAP code below is a full code listing to execute function module BAPI_CHARACT_GETDETAIL including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_charactdetail | TYPE BAPICHARACTDETAIL , |
| it_charactdescr | TYPE STANDARD TABLE OF BAPICHARACTDESCR,"TABLES PARAM |
| wa_charactdescr | LIKE LINE OF it_charactdescr , |
| it_charactvaluesnum | TYPE STANDARD TABLE OF BAPICHARACTVALUESNUM,"TABLES PARAM |
| wa_charactvaluesnum | LIKE LINE OF it_charactvaluesnum , |
| it_charactvalueschar | TYPE STANDARD TABLE OF BAPICHARACTVALUESCHAR,"TABLES PARAM |
| wa_charactvalueschar | LIKE LINE OF it_charactvalueschar , |
| it_charactvaluescurr | TYPE STANDARD TABLE OF BAPICHARACTVALUESCURR,"TABLES PARAM |
| wa_charactvaluescurr | LIKE LINE OF it_charactvaluescurr , |
| it_charactvaluesdescr | TYPE STANDARD TABLE OF BAPICHARACTVALUESDESCR,"TABLES PARAM |
| wa_charactvaluesdescr | LIKE LINE OF it_charactvaluesdescr , |
| it_charactreferences | TYPE STANDARD TABLE OF BAPICHARACTREFERENCES,"TABLES PARAM |
| wa_charactreferences | LIKE LINE OF it_charactreferences , |
| it_charactrestrictions | TYPE STANDARD TABLE OF BAPICHARACTRESTRICTIONS,"TABLES PARAM |
| wa_charactrestrictions | LIKE LINE OF it_charactrestrictions , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_charactdetail | TYPE BAPICHARACTDETAIL , |
| ld_charactname | TYPE BAPICHARACTKEY-CHARACTNAME , |
| it_charactdescr | TYPE STANDARD TABLE OF BAPICHARACTDESCR , |
| wa_charactdescr | LIKE LINE OF it_charactdescr, |
| ld_keydate | TYPE BAPICHARACTKEY-KEYDATE , |
| it_charactvaluesnum | TYPE STANDARD TABLE OF BAPICHARACTVALUESNUM , |
| wa_charactvaluesnum | LIKE LINE OF it_charactvaluesnum, |
| ld_language | TYPE BAPIFIELDSCACL-BAPILANGUA , |
| it_charactvalueschar | TYPE STANDARD TABLE OF BAPICHARACTVALUESCHAR , |
| wa_charactvalueschar | LIKE LINE OF it_charactvalueschar, |
| it_charactvaluescurr | TYPE STANDARD TABLE OF BAPICHARACTVALUESCURR , |
| wa_charactvaluescurr | LIKE LINE OF it_charactvaluescurr, |
| it_charactvaluesdescr | TYPE STANDARD TABLE OF BAPICHARACTVALUESDESCR , |
| wa_charactvaluesdescr | LIKE LINE OF it_charactvaluesdescr, |
| it_charactreferences | TYPE STANDARD TABLE OF BAPICHARACTREFERENCES , |
| wa_charactreferences | LIKE LINE OF it_charactreferences, |
| it_charactrestrictions | TYPE STANDARD TABLE OF BAPICHARACTRESTRICTIONS , |
| wa_charactrestrictions | LIKE LINE OF it_charactrestrictions, |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return. |
This BAPI returns detail information on a characteristic, which is
identified by its name and optionally by a date (default value is the
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_CHARACT_GETDETAIL or its description.
BAPI_CHARACT_GETDETAIL - BAPI for Characteristics - Read Attributes BAPI_CHARACT_EXISTENCECHECK - BAPI for Characteristics - Check Existence BAPI_CHARACT_DELETE - BAPI for Characteristics - Delete BAPI_CHARACT_CREATE - BAPI for Characteristics - Create BAPI_CHARACT_CHANGE - BAPI for Characteristics - Change BAPI_CHARACT_ADDLONGTEXT - BAPI for Characteristics: Set Long Text for Characteristic or Value