SAP TPM_PIN_VALUE_REQUEST Function Module for Input Help









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

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



Function TPM_PIN_VALUE_REQUEST 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_PIN_VALUE_REQUEST'"Input Help
EXPORTING
IM_MODE = "0=Create(online),1=Create,2=Change,3=Display,4=Löschen
* IM_DYNPFIELD_PORTFOLIO = "Dynprofeld: Portfolio
* IM_DYNPFIELD_LOANS_CONTRACT = "Dynprofeld: Vertragsnummer
* IM_DYNPFIELD_POSITION_ACCOUNT = "Dynprofeld: Positionskonto
* IM_DYNPFIELD_CLASS_ID = "Dynprofeld: Kennnummer (Futures)
* IM_DYNPFIELD_FLAG_LONG_SHORT = "Dynprofeld: Flag Long Short
* IM_DYNPFIELD_DEAL_NUMBER = "Dynprofeld: Geschäftsnummer
* IM_DYNPFIELD_FUND = "Dynprofeld: Fonds
* IM_DYNPFIELD_GRANT_NBR = "Dynprofeld: Förderung
* X_COMPANY_CODE = "F4-Hilfe Buchungskreis erwünscht
* X_COM_VAL_CLASS = "F4-Hilfe allg.Bewertungsklasse erwünscht
IM_PRODUCT_GROUP = "Product Group
* X_SECURITY_ID = "F4-Hilfe Kennnummer (Wertp.)erwünscht
* X_SECURITY_ACCOUNT = "F4-Hilfe Depot erwünscht
* X_PORTFOLIO = "F4-Hilfe Portfolio erwünscht
* X_LOANS_CONTRACT = "F4-Hilfe Vertragsnummer erwünscht
* X_POSITION_ACCOUNT = "F4-Hilfe Positionskonto erwünscht
* X_CLASS_ID = "F4-Hilfe Kennnummer (Fut.) erwünscht
* X_FLAG_LONG_SHORT = "F4-Hilfe Flag Long Short erwünscht
* X_DEAL_NUMBER = "F4-Hilfe Geschäftsnummer erwünscht
* X_FUND = "F4-Hilfe Fonds erwünscht
* X_GRANT_NBR = "F4-Hilfe Förderung erwünscht
* IM_PROG = 'SAPLTPM_PIN_DISPLAY' "Calling Program
IM_DYNNR = "ABAP Program, Current Screen Number
* IM_CALLBACK_FORM = 'F4_CALLBACK' "Callback-Formroutine
* IM_DYNPFIELD_COMPANY_CODE = "Dynprofeld: Buchungskreis
* IM_DYNPFIELD_COM_VAL_CLASS = "Dynprofeld: allg.Bewertungsklasse
* IM_DYNPFIELD_SECURITY_ID = "Dynprofeld: Kennnummer (Wertp.)
* IM_DYNPFIELD_SECURITY_ACCOUNT = "Dynprofeld: Depot
.



IMPORTING Parameters details for TPM_PIN_VALUE_REQUEST

IM_MODE - 0=Create(online),1=Create,2=Change,3=Display,4=Löschen

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

IM_DYNPFIELD_PORTFOLIO - Dynprofeld: Portfolio

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_LOANS_CONTRACT - Dynprofeld: Vertragsnummer

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_POSITION_ACCOUNT - Dynprofeld: Positionskonto

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_CLASS_ID - Dynprofeld: Kennnummer (Futures)

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_FLAG_LONG_SHORT - Dynprofeld: Flag Long Short

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_DEAL_NUMBER - Dynprofeld: Geschäftsnummer

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_FUND - Dynprofeld: Fonds

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_GRANT_NBR - Dynprofeld: Förderung

Data type: C
Optional: Yes
Call by Reference: Yes

X_COMPANY_CODE - F4-Hilfe Buchungskreis erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_COM_VAL_CLASS - F4-Hilfe allg.Bewertungsklasse erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

IM_PRODUCT_GROUP - Product Group

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

X_SECURITY_ID - F4-Hilfe Kennnummer (Wertp.)erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_SECURITY_ACCOUNT - F4-Hilfe Depot erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_PORTFOLIO - F4-Hilfe Portfolio erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_LOANS_CONTRACT - F4-Hilfe Vertragsnummer erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_POSITION_ACCOUNT - F4-Hilfe Positionskonto erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_CLASS_ID - F4-Hilfe Kennnummer (Fut.) erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_FLAG_LONG_SHORT - F4-Hilfe Flag Long Short erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_DEAL_NUMBER - F4-Hilfe Geschäftsnummer erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_FUND - F4-Hilfe Fonds erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

X_GRANT_NBR - F4-Hilfe Förderung erwünscht

Data type: C
Optional: Yes
Call by Reference: Yes

IM_PROG - Calling Program

Data type: SYCPROG
Default: 'SAPLTPM_PIN_DISPLAY'
Optional: Yes
Call by Reference: Yes

IM_DYNNR - ABAP Program, Current Screen Number

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

IM_CALLBACK_FORM - Callback-Formroutine

Data type: SYXFORM
Default: 'F4_CALLBACK'
Optional: No
Call by Reference: Yes

IM_DYNPFIELD_COMPANY_CODE - Dynprofeld: Buchungskreis

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_COM_VAL_CLASS - Dynprofeld: allg.Bewertungsklasse

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_SECURITY_ID - Dynprofeld: Kennnummer (Wertp.)

Data type: C
Optional: Yes
Call by Reference: Yes

IM_DYNPFIELD_SECURITY_ACCOUNT - Dynprofeld: Depot

Data type: C
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for TPM_PIN_VALUE_REQUEST 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_im_mode  TYPE I, "   
lv_im_dynpfield_portfolio  TYPE C, "   
lv_im_dynpfield_loans_contract  TYPE C, "   
lv_im_dynpfield_position_account  TYPE C, "   
lv_im_dynpfield_class_id  TYPE C, "   
lv_im_dynpfield_flag_long_short  TYPE C, "   
lv_im_dynpfield_deal_number  TYPE C, "   
lv_im_dynpfield_fund  TYPE C, "   
lv_im_dynpfield_grant_nbr  TYPE C, "   
lv_x_company_code  TYPE C, "   
lv_x_com_val_class  TYPE C, "   
lv_im_product_group  TYPE TPM_PRODUCT_GROUP, "   
lv_x_security_id  TYPE C, "   
lv_x_security_account  TYPE C, "   
lv_x_portfolio  TYPE C, "   
lv_x_loans_contract  TYPE C, "   
lv_x_position_account  TYPE C, "   
lv_x_class_id  TYPE C, "   
lv_x_flag_long_short  TYPE C, "   
lv_x_deal_number  TYPE C, "   
lv_x_fund  TYPE C, "   
lv_x_grant_nbr  TYPE C, "   
lv_im_prog  TYPE SYCPROG, "   'SAPLTPM_PIN_DISPLAY'
lv_im_dynnr  TYPE SYDYNNR, "   
lv_im_callback_form  TYPE SYXFORM, "   'F4_CALLBACK'
lv_im_dynpfield_company_code  TYPE C, "   
lv_im_dynpfield_com_val_class  TYPE C, "   
lv_im_dynpfield_security_id  TYPE C, "   
lv_im_dynpfield_security_account  TYPE C. "   

  CALL FUNCTION 'TPM_PIN_VALUE_REQUEST'  "Input Help
    EXPORTING
         IM_MODE = lv_im_mode
         IM_DYNPFIELD_PORTFOLIO = lv_im_dynpfield_portfolio
         IM_DYNPFIELD_LOANS_CONTRACT = lv_im_dynpfield_loans_contract
         IM_DYNPFIELD_POSITION_ACCOUNT = lv_im_dynpfield_position_account
         IM_DYNPFIELD_CLASS_ID = lv_im_dynpfield_class_id
         IM_DYNPFIELD_FLAG_LONG_SHORT = lv_im_dynpfield_flag_long_short
         IM_DYNPFIELD_DEAL_NUMBER = lv_im_dynpfield_deal_number
         IM_DYNPFIELD_FUND = lv_im_dynpfield_fund
         IM_DYNPFIELD_GRANT_NBR = lv_im_dynpfield_grant_nbr
         X_COMPANY_CODE = lv_x_company_code
         X_COM_VAL_CLASS = lv_x_com_val_class
         IM_PRODUCT_GROUP = lv_im_product_group
         X_SECURITY_ID = lv_x_security_id
         X_SECURITY_ACCOUNT = lv_x_security_account
         X_PORTFOLIO = lv_x_portfolio
         X_LOANS_CONTRACT = lv_x_loans_contract
         X_POSITION_ACCOUNT = lv_x_position_account
         X_CLASS_ID = lv_x_class_id
         X_FLAG_LONG_SHORT = lv_x_flag_long_short
         X_DEAL_NUMBER = lv_x_deal_number
         X_FUND = lv_x_fund
         X_GRANT_NBR = lv_x_grant_nbr
         IM_PROG = lv_im_prog
         IM_DYNNR = lv_im_dynnr
         IM_CALLBACK_FORM = lv_im_callback_form
         IM_DYNPFIELD_COMPANY_CODE = lv_im_dynpfield_company_code
         IM_DYNPFIELD_COM_VAL_CLASS = lv_im_dynpfield_com_val_class
         IM_DYNPFIELD_SECURITY_ID = lv_im_dynpfield_security_id
         IM_DYNPFIELD_SECURITY_ACCOUNT = lv_im_dynpfield_security_account
. " TPM_PIN_VALUE_REQUEST




ABAP code using 7.40 inline data declarations to call FM TPM_PIN_VALUE_REQUEST

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_prog) = 'SAPLTPM_PIN_DISPLAY'.
 
 
DATA(ld_im_callback_form) = 'F4_CALLBACK'.
 
 
 
 
 


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!