SAP LAW_SPLIT_DATA Function Module for
LAW_SPLIT_DATA is a standard law split data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 law split data FM, simply by entering the name LAW_SPLIT_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: LAW_MODULES_1
Program Name: SAPLLAW_MODULES_1
Main Program: SAPLLAW_MODULES_1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LAW_SPLIT_DATA 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 'LAW_SPLIT_DATA'".
TABLES
TT_DATA = "System Measurement Data
* REST_DATA = "System Measurement Data
* USER_TECHNICAL_DATA = "Transfer Structure for LAW, Technical Data
* USER_ADDRESS_DATA = "Transfer Structure for LAW
* ENGINE_DATA = "Structure for Engine Measurement Data
* USER_PERS_DATA = "
EXCEPTIONS
E_ERROR = 1
TABLES Parameters details for LAW_SPLIT_DATA
TT_DATA - System Measurement Data
Data type: SYMDA_LAWOptional: No
Call by Reference: Yes
REST_DATA - System Measurement Data
Data type: SYMDA_LAWOptional: Yes
Call by Reference: Yes
USER_TECHNICAL_DATA - Transfer Structure for LAW, Technical Data
Data type: LAWTECHOptional: Yes
Call by Reference: Yes
USER_ADDRESS_DATA - Transfer Structure for LAW
Data type: LAWADDROptional: Yes
Call by Reference: Yes
ENGINE_DATA - Structure for Engine Measurement Data
Data type: LAWENGINEOptional: Yes
Call by Reference: Yes
USER_PERS_DATA -
Data type: LAW_PERSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
E_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LAW_SPLIT_DATA 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_e_error | TYPE STRING, " | |||
| lt_tt_data | TYPE STANDARD TABLE OF SYMDA_LAW, " | |||
| lt_rest_data | TYPE STANDARD TABLE OF SYMDA_LAW, " | |||
| lt_user_technical_data | TYPE STANDARD TABLE OF LAWTECH, " | |||
| lt_user_address_data | TYPE STANDARD TABLE OF LAWADDR, " | |||
| lt_engine_data | TYPE STANDARD TABLE OF LAWENGINE, " | |||
| lt_user_pers_data | TYPE STANDARD TABLE OF LAW_PERS. " |
|   CALL FUNCTION 'LAW_SPLIT_DATA' " |
| TABLES | ||
| TT_DATA | = lt_tt_data | |
| REST_DATA | = lt_rest_data | |
| USER_TECHNICAL_DATA | = lt_user_technical_data | |
| USER_ADDRESS_DATA | = lt_user_address_data | |
| ENGINE_DATA | = lt_engine_data | |
| USER_PERS_DATA | = lt_user_pers_data | |
| EXCEPTIONS | ||
| E_ERROR = 1 | ||
| . " LAW_SPLIT_DATA | ||
ABAP code using 7.40 inline data declarations to call FM LAW_SPLIT_DATA
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.Search for further information about these or an SAP related objects