SAP TPM_TRQ_ASSIGNMENT_MAINTAIN Function Module for Wrapper Module









TPM_TRQ_ASSIGNMENT_MAINTAIN is a standard tpm trq assignment maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Wrapper Module 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 tpm trq assignment maintain FM, simply by entering the name TPM_TRQ_ASSIGNMENT_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function TPM_TRQ_ASSIGNMENT_MAINTAIN 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 'TPM_TRQ_ASSIGNMENT_MAINTAIN'"Wrapper Module
EXPORTING
IM_QUANTITY_TO_ASSIGN = "zuzuordnende Quantität
IM_POSITION_DATE = "Position Date
IM_BUSTRANSID = "Identifier of the Distributor Business Transaction
IM_QUANTITY_CAT = "Amount Category
IM_TAB_ASSIGNMENT_ITEMS = "Tabelle für manuelle Lotzuordnung
* IM_MODE = '1' "Mode: 1 - Display, 2 - Change
IM_BUSTRANSCAT = "Business Transaction Category
IM_DIFF_VALUES = "Structure for Differentiation Values
* IM_FLG_ZEROBONDS = ' ' "Flag: Zuordnung für Zerobonds

IMPORTING
EX_TAB_ASSIGNMENT_ITEMS = "Tabelle für manuelle Lotzuordnung

EXCEPTIONS
INVALID = 1 CANCELLED = 2
.



IMPORTING Parameters details for TPM_TRQ_ASSIGNMENT_MAINTAIN

IM_QUANTITY_TO_ASSIGN - zuzuordnende Quantität

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

IM_POSITION_DATE - Position Date

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

IM_BUSTRANSID - Identifier of the Distributor Business Transaction

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

IM_QUANTITY_CAT - Amount Category

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

IM_TAB_ASSIGNMENT_ITEMS - Tabelle für manuelle Lotzuordnung

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

IM_MODE - Mode: 1 - Display, 2 - Change

Data type: C
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_BUSTRANSCAT - Business Transaction Category

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

IM_DIFF_VALUES - Structure for Differentiation Values

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

IM_FLG_ZEROBONDS - Flag: Zuordnung für Zerobonds

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TPM_TRQ_ASSIGNMENT_MAINTAIN

EX_TAB_ASSIGNMENT_ITEMS - Tabelle für manuelle Lotzuordnung

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

EXCEPTIONS details

INVALID - Assignment Not Possible

Data type:
Optional: No
Call by Reference: Yes

CANCELLED - Processing Terminated

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TPM_TRQ_ASSIGNMENT_MAINTAIN 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_invalid  TYPE STRING, "   
lv_im_quantity_to_assign  TYPE TRQS_QUANTITY, "   
lv_ex_tab_assignment_items  TYPE TRQY_ASSIGNMENT_ITEM, "   
lv_cancelled  TYPE TRQY_ASSIGNMENT_ITEM, "   
lv_im_position_date  TYPE TPM_POSITION_DATE, "   
lv_im_bustransid  TYPE TPM_BUSTRANSID, "   
lv_im_quantity_cat  TYPE TPM_QUANTITY_CAT, "   
lv_im_tab_assignment_items  TYPE TRQY_LOT_W_CONTRIBUTION, "   
lv_im_mode  TYPE C, "   '1'
lv_im_bustranscat  TYPE TPM_BUSTRANSCAT, "   
lv_im_diff_values  TYPE DIFS_DIFF_VALUES, "   
lv_im_flg_zerobonds  TYPE XFELD. "   SPACE

  CALL FUNCTION 'TPM_TRQ_ASSIGNMENT_MAINTAIN'  "Wrapper Module
    EXPORTING
         IM_QUANTITY_TO_ASSIGN = lv_im_quantity_to_assign
         IM_POSITION_DATE = lv_im_position_date
         IM_BUSTRANSID = lv_im_bustransid
         IM_QUANTITY_CAT = lv_im_quantity_cat
         IM_TAB_ASSIGNMENT_ITEMS = lv_im_tab_assignment_items
         IM_MODE = lv_im_mode
         IM_BUSTRANSCAT = lv_im_bustranscat
         IM_DIFF_VALUES = lv_im_diff_values
         IM_FLG_ZEROBONDS = lv_im_flg_zerobonds
    IMPORTING
         EX_TAB_ASSIGNMENT_ITEMS = lv_ex_tab_assignment_items
    EXCEPTIONS
        INVALID = 1
        CANCELLED = 2
. " TPM_TRQ_ASSIGNMENT_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM TPM_TRQ_ASSIGNMENT_MAINTAIN

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.

 
 
 
 
 
 
 
 
DATA(ld_im_mode) = '1'.
 
 
 
DATA(ld_im_flg_zerobonds) = ' '.
 


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!