SAP PAYMENT_MEDIUM_PRINT Function Module for









PAYMENT_MEDIUM_PRINT is a standard payment medium print SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 payment medium print FM, simply by entering the name PAYMENT_MEDIUM_PRINT into the relevant SAP transaction such as SE37 or SE38.

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



Function PAYMENT_MEDIUM_PRINT 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 'PAYMENT_MEDIUM_PRINT'"
EXPORTING
I_PAYMO = "Payment Medium Output
* I_ARCHIVE_PARAMS = ' ' "Archive parameters
* I_MAIL_SENDER = "MAIL: Sender object ID
* I_MAIL_RECIPIENT = "MAIL: Recipient object ID
I_ITCPO = "Print Options
* I_DEVICE = 'PRINTER' "Device Type
* I_DIALOG = ' ' "Indicator: Maintain Dialog for Print Options
* I_LANGUAGE = ' ' "Language
* I_XOPEN = ' ' "
* I_XNAPM = ' ' "
* I_RAW_DATA = '*' "
* I_ARCHIVE_INDEX = ' ' "Archive Index

IMPORTING
E_LANGUAGE = "Language
E_ITCPP = "SAPscript Output Parameters

TABLES
* T_FIMSG = "Error Messages
.



IMPORTING Parameters details for PAYMENT_MEDIUM_PRINT

I_PAYMO - Payment Medium Output

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

I_ARCHIVE_PARAMS - Archive parameters

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

I_MAIL_SENDER - MAIL: Sender object ID

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

I_MAIL_RECIPIENT - MAIL: Recipient object ID

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

I_ITCPO - Print Options

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

I_DEVICE - Device Type

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

I_DIALOG - Indicator: Maintain Dialog for Print Options

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

I_LANGUAGE - Language

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

I_XOPEN -

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

I_XNAPM -

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

I_RAW_DATA -

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

I_ARCHIVE_INDEX - Archive Index

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

EXPORTING Parameters details for PAYMENT_MEDIUM_PRINT

E_LANGUAGE - Language

Data type: THEAD-TDSPRAS
Optional: No
Call by Reference: No ( called with pass by value option)

E_ITCPP - SAPscript Output Parameters

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

TABLES Parameters details for PAYMENT_MEDIUM_PRINT

T_FIMSG - Error Messages

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

Copy and paste ABAP code example for PAYMENT_MEDIUM_PRINT 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_i_paymo  TYPE PAYMO, "   
lt_t_fimsg  TYPE STANDARD TABLE OF FIMSG, "   
lv_e_language  TYPE THEAD-TDSPRAS, "   
lv_i_archive_params  TYPE ARC_PARAMS, "   SPACE
lv_i_mail_sender  TYPE SWOTOBJID, "   
lv_i_mail_recipient  TYPE SWOTOBJID, "   
lv_e_itcpp  TYPE ITCPP, "   
lv_i_itcpo  TYPE ITCPO, "   
lv_i_device  TYPE ITCPO, "   'PRINTER'
lv_i_dialog  TYPE ITCPO, "   SPACE
lv_i_language  TYPE THEAD-TDSPRAS, "   SPACE
lv_i_xopen  TYPE T048Y-XOPEN, "   SPACE
lv_i_xnapm  TYPE T048Y, "   SPACE
lv_i_raw_data  TYPE C, "   '*'
lv_i_archive_index  TYPE TOA_DARA. "   SPACE

  CALL FUNCTION 'PAYMENT_MEDIUM_PRINT'  "
    EXPORTING
         I_PAYMO = lv_i_paymo
         I_ARCHIVE_PARAMS = lv_i_archive_params
         I_MAIL_SENDER = lv_i_mail_sender
         I_MAIL_RECIPIENT = lv_i_mail_recipient
         I_ITCPO = lv_i_itcpo
         I_DEVICE = lv_i_device
         I_DIALOG = lv_i_dialog
         I_LANGUAGE = lv_i_language
         I_XOPEN = lv_i_xopen
         I_XNAPM = lv_i_xnapm
         I_RAW_DATA = lv_i_raw_data
         I_ARCHIVE_INDEX = lv_i_archive_index
    IMPORTING
         E_LANGUAGE = lv_e_language
         E_ITCPP = lv_e_itcpp
    TABLES
         T_FIMSG = lt_t_fimsg
. " PAYMENT_MEDIUM_PRINT




ABAP code using 7.40 inline data declarations to call FM PAYMENT_MEDIUM_PRINT

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 TDSPRAS FROM THEAD INTO @DATA(ld_e_language).
 
DATA(ld_i_archive_params) = ' '.
 
 
 
 
 
DATA(ld_i_device) = 'PRINTER'.
 
DATA(ld_i_dialog) = ' '.
 
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_i_language).
DATA(ld_i_language) = ' '.
 
"SELECT single XOPEN FROM T048Y INTO @DATA(ld_i_xopen).
DATA(ld_i_xopen) = ' '.
 
DATA(ld_i_xnapm) = ' '.
 
DATA(ld_i_raw_data) = '*'.
 
DATA(ld_i_archive_index) = ' '.
 


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!