SAP FM_IFMPDOC_DISPLAY Function Module for Display Selected Documents for Payment Directive









FM_IFMPDOC_DISPLAY is a standard fm ifmpdoc display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Selected Documents for Payment Directive 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 fm ifmpdoc display FM, simply by entering the name FM_IFMPDOC_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_IFMPDOC_DISPLAY 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 'FM_IFMPDOC_DISPLAY'"Display Selected Documents for Payment Directive
EXPORTING
* PBELNR = "Accounting document number
* PBLDAT = "Document Date in Document
* PBUDAT = "Posting Date in the Document
* PBLART = "Document type
* REFGJAHR = "Fiscal Year
* REFBUKRS = "Company Code
* PWAERS = "Currency Key
* PGJAHR = "Fiscal Period
* PMONAT = "Fiscal Period

TABLES
T_ITEMS = "P documents: Structure for posting list
T_BKPF = "Accounting Document Header
T_BSEG = "Accounting Document Segment
T_BSEC = "One-Time Account Data Document Segment
T_IFMPDCUST = "Customizing table for Posting Payment Directives
T_WITHITEM = "Witholding tax info per W/tax type and FI line item
.



IMPORTING Parameters details for FM_IFMPDOC_DISPLAY

PBELNR - Accounting document number

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

PBLDAT - Document Date in Document

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

PBUDAT - Posting Date in the Document

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

PBLART - Document type

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

REFGJAHR - Fiscal Year

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

REFBUKRS - Company Code

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

PWAERS - Currency Key

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

PGJAHR - Fiscal Period

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

PMONAT - Fiscal Period

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

TABLES Parameters details for FM_IFMPDOC_DISPLAY

T_ITEMS - P documents: Structure for posting list

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

T_BKPF - Accounting Document Header

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

T_BSEG - Accounting Document Segment

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

T_BSEC - One-Time Account Data Document Segment

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

T_IFMPDCUST - Customizing table for Posting Payment Directives

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

T_WITHITEM - Witholding tax info per W/tax type and FI line item

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

Copy and paste ABAP code example for FM_IFMPDOC_DISPLAY 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_pbelnr  TYPE BELNR_D, "   
lt_t_items  TYPE STANDARD TABLE OF IFMPDOC, "   
lv_pbldat  TYPE BLDAT, "   
lt_t_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_pbudat  TYPE BUDAT, "   
lt_t_bseg  TYPE STANDARD TABLE OF BSEG, "   
lv_pblart  TYPE BLART, "   
lt_t_bsec  TYPE STANDARD TABLE OF BSEC, "   
lv_refgjahr  TYPE GJAHR, "   
lt_t_ifmpdcust  TYPE STANDARD TABLE OF IFMPDCUST, "   
lv_refbukrs  TYPE BUKRS, "   
lt_t_withitem  TYPE STANDARD TABLE OF WITH_ITEM, "   
lv_pwaers  TYPE WAERS, "   
lv_pgjahr  TYPE GJAHR, "   
lv_pmonat  TYPE MONAT. "   

  CALL FUNCTION 'FM_IFMPDOC_DISPLAY'  "Display Selected Documents for Payment Directive
    EXPORTING
         PBELNR = lv_pbelnr
         PBLDAT = lv_pbldat
         PBUDAT = lv_pbudat
         PBLART = lv_pblart
         REFGJAHR = lv_refgjahr
         REFBUKRS = lv_refbukrs
         PWAERS = lv_pwaers
         PGJAHR = lv_pgjahr
         PMONAT = lv_pmonat
    TABLES
         T_ITEMS = lt_t_items
         T_BKPF = lt_t_bkpf
         T_BSEG = lt_t_bseg
         T_BSEC = lt_t_bsec
         T_IFMPDCUST = lt_t_ifmpdcust
         T_WITHITEM = lt_t_withitem
. " FM_IFMPDOC_DISPLAY




ABAP code using 7.40 inline data declarations to call FM FM_IFMPDOC_DISPLAY

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!