SAP TPM_PIN_VALUE_REQUEST_POS Function Module for F4 Help for Positions for Futures and Listed Options









TPM_PIN_VALUE_REQUEST_POS is a standard tpm pin value request pos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for F4 Help for Positions for Futures and Listed Options 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 pos FM, simply by entering the name TPM_PIN_VALUE_REQUEST_POS 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_POS 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_POS'"F4 Help for Positions for Futures and Listed Options
EXPORTING
* IM_PROG = 'SAPLTPM_PIN_DISPLAY' "Calling Program
* IM_DYNPFIELD_FLAG_LONG_SHORT = "Dynprofeld: Long/Short-Kennzeichen
* IM_DYNPFIELD_LOT_ID = "Dynprofeld: Lot ID
* IM_DYNPFIELD_LOT_DEAL = "Dynprofeld: Loterzeugendes Geschäft
IM_STR_DIFF_VALUE_WANTED = "Required Differentiation Criterion
* IM_STR_DIFF_VALUES_HIDDEN = "Verborgene Felder der F4-Hilfe
IM_DYNNR = "ABAP Program, Current Screen Number
* IM_COMPANY_CODE = "Company Code
* IM_VALUATION_AREA = "Valuation Area
* IM_DYNPFIELD_COMPANY_CODE = "Dynprofeld: Buchungskreis
* IM_DYNPFIELD_VAL_AREA = "Dynprofeld: Bewertungsbereich
* IM_DYNPFIELD_VAL_CLASS = "Dynprofeld: Bewertungsklasse
* IM_DYNPFIELD_SECURITY_ID = "Dynprofeld: Kennnummer (Futures)
* IM_DYNPFIELD_POSITION_ACCOUNT = "Dynprofeld: Positionskonto
.



IMPORTING Parameters details for TPM_PIN_VALUE_REQUEST_POS

IM_PROG - Calling Program

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

IM_DYNPFIELD_FLAG_LONG_SHORT - Dynprofeld: Long/Short-Kennzeichen

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

IM_DYNPFIELD_LOT_ID - Dynprofeld: Lot ID

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

IM_DYNPFIELD_LOT_DEAL - Dynprofeld: Loterzeugendes Geschäft

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

IM_STR_DIFF_VALUE_WANTED - Required Differentiation Criterion

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

IM_STR_DIFF_VALUES_HIDDEN - Verborgene Felder der F4-Hilfe

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

IM_DYNNR - ABAP Program, Current Screen Number

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

IM_COMPANY_CODE - Company Code

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

IM_VALUATION_AREA - Valuation Area

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

IM_DYNPFIELD_COMPANY_CODE - Dynprofeld: Buchungskreis

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

IM_DYNPFIELD_VAL_AREA - Dynprofeld: Bewertungsbereich

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

IM_DYNPFIELD_VAL_CLASS - Dynprofeld: Bewertungsklasse

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

IM_DYNPFIELD_SECURITY_ID - Dynprofeld: Kennnummer (Futures)

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

IM_DYNPFIELD_POSITION_ACCOUNT - Dynprofeld: Positionskonto

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

Copy and paste ABAP code example for TPM_PIN_VALUE_REQUEST_POS 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_prog  TYPE SYCPROG, "   'SAPLTPM_PIN_DISPLAY'
lv_im_dynpfield_flag_long_short  TYPE C, "   
lv_im_dynpfield_lot_id  TYPE C, "   
lv_im_dynpfield_lot_deal  TYPE C, "   
lv_im_str_diff_value_wanted  TYPE PINS_DIFF_VALUES_FLG, "   
lv_im_str_diff_values_hidden  TYPE PINS_DIFF_VALUES_FLG, "   
lv_im_dynnr  TYPE SYDYNNR, "   
lv_im_company_code  TYPE BUKRS, "   
lv_im_valuation_area  TYPE TPM_VAL_AREA, "   
lv_im_dynpfield_company_code  TYPE C, "   
lv_im_dynpfield_val_area  TYPE C, "   
lv_im_dynpfield_val_class  TYPE C, "   
lv_im_dynpfield_security_id  TYPE C, "   
lv_im_dynpfield_position_account  TYPE C. "   

  CALL FUNCTION 'TPM_PIN_VALUE_REQUEST_POS'  "F4 Help for Positions for Futures and Listed Options
    EXPORTING
         IM_PROG = lv_im_prog
         IM_DYNPFIELD_FLAG_LONG_SHORT = lv_im_dynpfield_flag_long_short
         IM_DYNPFIELD_LOT_ID = lv_im_dynpfield_lot_id
         IM_DYNPFIELD_LOT_DEAL = lv_im_dynpfield_lot_deal
         IM_STR_DIFF_VALUE_WANTED = lv_im_str_diff_value_wanted
         IM_STR_DIFF_VALUES_HIDDEN = lv_im_str_diff_values_hidden
         IM_DYNNR = lv_im_dynnr
         IM_COMPANY_CODE = lv_im_company_code
         IM_VALUATION_AREA = lv_im_valuation_area
         IM_DYNPFIELD_COMPANY_CODE = lv_im_dynpfield_company_code
         IM_DYNPFIELD_VAL_AREA = lv_im_dynpfield_val_area
         IM_DYNPFIELD_VAL_CLASS = lv_im_dynpfield_val_class
         IM_DYNPFIELD_SECURITY_ID = lv_im_dynpfield_security_id
         IM_DYNPFIELD_POSITION_ACCOUNT = lv_im_dynpfield_position_account
. " TPM_PIN_VALUE_REQUEST_POS




ABAP code using 7.40 inline data declarations to call FM TPM_PIN_VALUE_REQUEST_POS

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'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!