SAP RM_WP_APPEND_TO_BUFFER Function Module for Beschaffung von Wertpapierkursen in den Puffer
RM_WP_APPEND_TO_BUFFER is a standard rm wp append to buffer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Beschaffung von Wertpapierkursen in den Puffer 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 rm wp append to buffer FM, simply by entering the name RM_WP_APPEND_TO_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMTVPU
Program Name: SAPLRMTVPU
Main Program: SAPLRMTVPU
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_WP_APPEND_TO_BUFFER 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 'RM_WP_APPEND_TO_BUFFER'"Beschaffung von Wertpapierkursen in den Puffer.
EXPORTING
KONDDATUM = "Date on Which Exchange Rate Requested
* SZENARIO = "
RANL = "
RHANDPL = "
SKURSART = "
* VERTRAGSART = '2' "Contract Type
IMPORTING
E_VTVSZWPKU = "Output Structure
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for RM_WP_APPEND_TO_BUFFER
KONDDATUM - Date on Which Exchange Rate Requested
Data type: JBD11-DKONDOptional: No
Call by Reference: No ( called with pass by value option)
SZENARIO -
Data type: VTVSZKO-SZENARIOptional: Yes
Call by Reference: No ( called with pass by value option)
RANL -
Data type: JBRBEST-RANLOptional: No
Call by Reference: No ( called with pass by value option)
RHANDPL -
Data type: JBRBEST-RHANDPLOptional: No
Call by Reference: No ( called with pass by value option)
SKURSART -
Data type: ATRAS-SKURSARTOptional: No
Call by Reference: No ( called with pass by value option)
VERTRAGSART - Contract Type
Data type: ATRAS-RANTYPDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RM_WP_APPEND_TO_BUFFER
E_VTVSZWPKU - Output Structure
Data type: VTVSZWPKUOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Exchange Rate Requested Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_WP_APPEND_TO_BUFFER 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_konddatum | TYPE JBD11-DKOND, " | |||
| lv_not_found | TYPE JBD11, " | |||
| lv_e_vtvszwpku | TYPE VTVSZWPKU, " | |||
| lv_szenario | TYPE VTVSZKO-SZENARI, " | |||
| lv_ranl | TYPE JBRBEST-RANL, " | |||
| lv_rhandpl | TYPE JBRBEST-RHANDPL, " | |||
| lv_skursart | TYPE ATRAS-SKURSART, " | |||
| lv_vertragsart | TYPE ATRAS-RANTYP. " '2' |
|   CALL FUNCTION 'RM_WP_APPEND_TO_BUFFER' "Beschaffung von Wertpapierkursen in den Puffer |
| EXPORTING | ||
| KONDDATUM | = lv_konddatum | |
| SZENARIO | = lv_szenario | |
| RANL | = lv_ranl | |
| RHANDPL | = lv_rhandpl | |
| SKURSART | = lv_skursart | |
| VERTRAGSART | = lv_vertragsart | |
| IMPORTING | ||
| E_VTVSZWPKU | = lv_e_vtvszwpku | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " RM_WP_APPEND_TO_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM RM_WP_APPEND_TO_BUFFER
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 DKOND FROM JBD11 INTO @DATA(ld_konddatum). | ||||
| "SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenario). | ||||
| "SELECT single RANL FROM JBRBEST INTO @DATA(ld_ranl). | ||||
| "SELECT single RHANDPL FROM JBRBEST INTO @DATA(ld_rhandpl). | ||||
| "SELECT single SKURSART FROM ATRAS INTO @DATA(ld_skursart). | ||||
| "SELECT single RANTYP FROM ATRAS INTO @DATA(ld_vertragsart). | ||||
| DATA(ld_vertragsart) | = '2'. | |||
Search for further information about these or an SAP related objects