SAP EXIT_SAPLJG04_002 Function Module for IS-M/SD: Fill Business Partner SORTL
EXIT_SAPLJG04_002 is a standard exit sapljg04 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/SD: Fill Business Partner SORTL 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 exit sapljg04 002 FM, simply by entering the name EXIT_SAPLJG04_002 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XJG1
Program Name: SAPLXJG1
Main Program: SAPLXJG1
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLJG04_002 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 'EXIT_SAPLJG04_002'"IS-M/SD: Fill Business Partner SORTL.
EXPORTING
JGTSADR_IN = "Address Data for Forming SORTL
GPNR_IN = "
CHANGING
SORTL_OUT = "Sort Field
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.ISM_BP_DESCRIPTION_GET IS-M: Convert Address to Print Form
ISM_BP_SIMPLE_INTO_LINE IS-M: Determine Address Line for BP
ISP_ADDRESSTYPE_GET IS-M: Determine Address Type
ISP_ADDRESS_EDIT_PRINTFORMAT IS-M: Edit Address Manually and Save
ISP_ADDRESS_FIELD_SORTL IS-M/SD: Supply Field SORTL Using Customer Exit
ISP_ADDRESS_FI_CONSOLIDATE_STD IS-M/SD: Std Merging FI: LName, FName, NAffixes, Streets, House Nos., etc.
ISP_ADDRESS_FI_ONLY_STREET_STD IS-M/SD: Merging FI: Street, House No., etc.
ISP_ADDRESS_INTO_PRINTFORM IS-M: Convert Address to Print Form
ISP_ADDRESS_INTO_PRINTFORMAT IS-M: Convert/Read Address in Print Form for Specified Format
ISP_ADDRESS_INTO_SHOWFORM IS-M: Convert Address to Various Output Forms
ISP_ADDRESS_MODIFICATION_US IS-M: Country-Specific Address Modification USA
ISP_ADDRESS_PRINTFORM_GET IS-M: Determine Address Print Screens for Specific Format
ISP_ADDRESS_PRINT_MAINTAIN IS-M: Change Address Print Screens for Specific Format
ISP_ADDRESS_READ IS-M: Read Address (Time-Independent)
ISP_ADDRESS_RF_CONSOLIDATE_STD IS-M/SD: Standard Merge FI: LName, FName, Name Affixes, Street, HNo. etc.
ISP_ADDRESS_RF_ONLY_STREET_STD IS-M/SD: Merging FI: Street, House Number, etc.
ISP_ADDRESS_STREET_NUMBER IS-M: Merge Street Name and House Number (as of 4.01)
ISP_ADDRESS_STREET_NUMBER2 IS-M: Merge Street Name and House Number (Old, up to Rel.3.04)
ISP_ADRESS_INTO_INKJETFORM IS-M/SD: Convert Address to String for Inkjet Requirements
ISP_BP_NAME_BUILD1 IS-M: BP Name Formatting: Name2 Before Name2 in Line Name1, with Affixes
ISP_BP_NAME_BUILD2 IS-M: BP Name Formatting: Name2 Follows Name1 as Add. Line, w/o Affixes
ISP_CALL_STRING_EDITOR Editor for String Processing (Obsolete)
ISP_CALL_STRING_EDITOR2 IS-M: Line Editor (Obsolete)
ISP_CALL_STRING_EDITOR3 IS-M: Line Editor Version 3
ISP_GPADDRESS_SHOW IS-M: Display Address in Dialog Box
ISP_HANDLE_INKJET_ADRESS Get Inkjet Formatting for Address
ISP_NAME_BUILD IS-M: Format BP Names for Business Partner Number (Name Formatting)
ISP_NAME_READ IS-M: Determine BP Name for BP Number (Name Formatting) (New)
ISP_NAME_READ0 IS-M: Determine BP Name for a BP Number (Name Formatting) (Old)
ISP_NAME_READ1 IS-M: Determine BP Name for Business Partner Number from 950919
ISP_NAME_READ2 IS-M: Determine BP Name for Business Partner Number to 950919
ISP_NAME_READ_FOR_ORDER IS-M: Determine BP Name and Address for Order
ISP_PRINTFORMAT_BUFFER_FILL Fill Buffer for Manual Address Print Format
ISP_PRINTFORMAT_READ Read Address Print Format in Buffer
IMPORTING Parameters details for EXIT_SAPLJG04_002
JGTSADR_IN - Address Data for Forming SORTL
Data type: JGTSADROptional: No
Call by Reference: No ( called with pass by value option)
GPNR_IN -
Data type: JGTGPNR-GPNROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLJG04_002
SORTL_OUT - Sort Field
Data type: JGTSADR-SORTLOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLJG04_002 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_sortl_out | TYPE JGTSADR-SORTL, " | |||
| lv_jgtsadr_in | TYPE JGTSADR, " | |||
| lv_gpnr_in | TYPE JGTGPNR-GPNR. " |
|   CALL FUNCTION 'EXIT_SAPLJG04_002' "IS-M/SD: Fill Business Partner SORTL |
| EXPORTING | ||
| JGTSADR_IN | = lv_jgtsadr_in | |
| GPNR_IN | = lv_gpnr_in | |
| CHANGING | ||
| SORTL_OUT | = lv_sortl_out | |
| . " EXIT_SAPLJG04_002 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLJG04_002
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 SORTL FROM JGTSADR INTO @DATA(ld_sortl_out). | ||||
| "SELECT single GPNR FROM JGTGPNR INTO @DATA(ld_gpnr_in). | ||||
Search for further information about these or an SAP related objects