SAP EXIT_SAPLJHW2_002 Function Module for IS-M: Output Determination for Media-Mix Contracts









EXIT_SAPLJHW2_002 is a standard exit sapljhw2 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: Output Determination for Media-Mix Contracts 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 sapljhw2 002 FM, simply by entering the name EXIT_SAPLJHW2_002 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XJHV
Program Name: SAPLXJHV
Main Program: SAPLXJHV
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLJHW2_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_SAPLJHW2_002'"IS-M: Output Determination for Media-Mix Contracts
EXPORTING
PV_TRTYP = "Transaction Type
PS_MMCOA = "Media-Mix Contract
PT_STL = "Involved Contract Settlements

CHANGING
PS_KOMKB = "Communication Area

TABLES
PT_PART = "Output Partner
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
ISM_MMCOA_CREATE
ISM_MMCOA_ENQUEUE
ISM_MMCOA_INITIALIZE
ISM_MMCOA_MESSAGING
ISM_MMCOA_NAST_OBJKY_BUILD
ISM_MMCOA_NAST_OBJKY_DISSOLVE

IMPORTING Parameters details for EXIT_SAPLJHW2_002

PV_TRTYP - Transaction Type

Data type: TJ180-TRTYP
Optional: No
Call by Reference: Yes

PS_MMCOA - Media-Mix Contract

Data type: JHW2_MMCOA_STR
Optional: No
Call by Reference: Yes

PT_STL - Involved Contract Settlements

Data type: JHW1_STL_TAB
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EXIT_SAPLJHW2_002

PS_KOMKB - Communication Area

Data type: KOMKBJM
Optional: No
Call by Reference: Yes

TABLES Parameters details for EXIT_SAPLJHW2_002

PT_PART - Output Partner

Data type: MSGPA
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLJHW2_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:
lt_pt_part  TYPE STANDARD TABLE OF MSGPA, "   
lv_ps_komkb  TYPE KOMKBJM, "   
lv_pv_trtyp  TYPE TJ180-TRTYP, "   
lv_ps_mmcoa  TYPE JHW2_MMCOA_STR, "   
lv_pt_stl  TYPE JHW1_STL_TAB. "   

  CALL FUNCTION 'EXIT_SAPLJHW2_002'  "IS-M: Output Determination for Media-Mix Contracts
    EXPORTING
         PV_TRTYP = lv_pv_trtyp
         PS_MMCOA = lv_ps_mmcoa
         PT_STL = lv_pt_stl
    CHANGING
         PS_KOMKB = lv_ps_komkb
    TABLES
         PT_PART = lt_pt_part
. " EXIT_SAPLJHW2_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLJHW2_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 TRTYP FROM TJ180 INTO @DATA(ld_pv_trtyp).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!