SAP J_1A_DET_CHARACTER Function Module for NOTRANSL: Determine printing character
J_1A_DET_CHARACTER is a standard j 1a det character SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Determine printing character processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for j 1a det character FM, simply by entering the name J_1A_DET_CHARACTER into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1AE
Program Name: SAPLJ1AE
Main Program: SAPLJ1AE
Appliation area: D
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1A_DET_CHARACTER pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'J_1A_DET_CHARACTER'"NOTRANSL: Determine printing character.
EXPORTING
I_KUNNR = "
I_LIFNR = "
I_BUKRS = "
I_OFFNREL = "
* I_FITYP = ' ' "
* I_LAND1 = ' ' "Country Key
* I_TTYPE = ' ' "
IMPORTING
O_LETTER = "
EXCEPTIONS
LETTER_NOT_FOUND = 1
IMPORTING Parameters details for J_1A_DET_CHARACTER
I_KUNNR -
Data type: BSEG-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_LIFNR -
Data type: BSEG-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: BSEG-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_OFFNREL -
Data type: T003_I-OFFNRELOptional: No
Call by Reference: No ( called with pass by value option)
I_FITYP -
Data type: KNA1-FITYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LAND1 - Country Key
Data type: KNA1-LAND1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TTYPE -
Data type: J_1ACHRDET-J_1ATTYPEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1A_DET_CHARACTER
O_LETTER -
Data type: J_1APRTCHR-J_1APRTCHROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
LETTER_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_1A_DET_CHARACTER Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_kunnr | TYPE BSEG-KUNNR, " | |||
| lv_o_letter | TYPE J_1APRTCHR-J_1APRTCHR, " | |||
| lv_letter_not_found | TYPE J_1APRTCHR, " | |||
| lv_i_lifnr | TYPE BSEG-LIFNR, " | |||
| lv_i_bukrs | TYPE BSEG-BUKRS, " | |||
| lv_i_offnrel | TYPE T003_I-OFFNREL, " | |||
| lv_i_fityp | TYPE KNA1-FITYP, " SPACE | |||
| lv_i_land1 | TYPE KNA1-LAND1, " SPACE | |||
| lv_i_ttype | TYPE J_1ACHRDET-J_1ATTYPE. " SPACE |
|   CALL FUNCTION 'J_1A_DET_CHARACTER' "NOTRANSL: Determine printing character |
| EXPORTING | ||
| I_KUNNR | = lv_i_kunnr | |
| I_LIFNR | = lv_i_lifnr | |
| I_BUKRS | = lv_i_bukrs | |
| I_OFFNREL | = lv_i_offnrel | |
| I_FITYP | = lv_i_fityp | |
| I_LAND1 | = lv_i_land1 | |
| I_TTYPE | = lv_i_ttype | |
| IMPORTING | ||
| O_LETTER | = lv_o_letter | |
| EXCEPTIONS | ||
| LETTER_NOT_FOUND = 1 | ||
| . " J_1A_DET_CHARACTER | ||
ABAP code using 7.40 inline data declarations to call FM J_1A_DET_CHARACTER
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single KUNNR FROM BSEG INTO @DATA(ld_i_kunnr). | ||||
| "SELECT single J_1APRTCHR FROM J_1APRTCHR INTO @DATA(ld_o_letter). | ||||
| "SELECT single LIFNR FROM BSEG INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single BUKRS FROM BSEG INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single OFFNREL FROM T003_I INTO @DATA(ld_i_offnrel). | ||||
| "SELECT single FITYP FROM KNA1 INTO @DATA(ld_i_fityp). | ||||
| DATA(ld_i_fityp) | = ' '. | |||
| "SELECT single LAND1 FROM KNA1 INTO @DATA(ld_i_land1). | ||||
| DATA(ld_i_land1) | = ' '. | |||
| "SELECT single J_1ATTYPE FROM J_1ACHRDET INTO @DATA(ld_i_ttype). | ||||
| DATA(ld_i_ttype) | = ' '. | |||
Search for further information about these or an SAP related objects