SAP HR_HR_SFP_DISPLAY_FORM_XDP Function Module for Display PDF form with XDP









HR_HR_SFP_DISPLAY_FORM_XDP is a standard hr hr sfp display form xdp 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 PDF form with XDP 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 hr hr sfp display form xdp FM, simply by entering the name HR_HR_SFP_DISPLAY_FORM_XDP into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_HR_SFP_DISPLAY_FORM_XDP 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 'HR_HR_SFP_DISPLAY_FORM_XDP'"Display PDF form with XDP
EXPORTING
OBJID = "SAP WWW gateway object name
LOGICAL_PATH = "Logical path name
* DISPLAY_XDP = "Display XDP
* FORM_PER_ROW = ' ' "Form for each row in data_table

TABLES
DATA_TABLE = "

EXCEPTIONS
DIR_NOT_FOUND = 1 DOWNLOAD_MIME_ERROR = 2 DATA_TO_XML_ERROR = 3 XDP_TO_HTML_ERROR = 4 NO_XDP_DATA = 5
.



IMPORTING Parameters details for HR_HR_SFP_DISPLAY_FORM_XDP

OBJID - SAP WWW gateway object name

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

LOGICAL_PATH - Logical path name

Data type: FILEPATH-PATHINTERN
Optional: No
Call by Reference: Yes

DISPLAY_XDP - Display XDP

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

FORM_PER_ROW - Form for each row in data_table

Data type: XFLAG
Default: ' '
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HR_HR_SFP_DISPLAY_FORM_XDP

DATA_TABLE -

Data type: STANDARD TABLE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

DIR_NOT_FOUND - Directory was not found.

Data type:
Optional: No
Call by Reference: Yes

DOWNLOAD_MIME_ERROR - Error during download of mime object.

Data type:
Optional: No
Call by Reference: Yes

DATA_TO_XML_ERROR - Error during data to XML conversion.

Data type:
Optional: No
Call by Reference: Yes

XDP_TO_HTML_ERROR - Error during XDP to HTML controller

Data type:
Optional: No
Call by Reference: Yes

NO_XDP_DATA - No XDP data

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_HR_SFP_DISPLAY_FORM_XDP 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_objid  TYPE W3OBJID, "   
lt_data_table  TYPE STANDARD TABLE OF STANDARD TABLE, "   
lv_dir_not_found  TYPE STANDARD TABLE, "   
lv_logical_path  TYPE FILEPATH-PATHINTERN, "   
lv_download_mime_error  TYPE FILEPATH, "   
lv_display_xdp  TYPE XFLAG, "   
lv_data_to_xml_error  TYPE XFLAG, "   
lv_form_per_row  TYPE XFLAG, "   ' '
lv_xdp_to_html_error  TYPE XFLAG, "   
lv_no_xdp_data  TYPE XFLAG. "   

  CALL FUNCTION 'HR_HR_SFP_DISPLAY_FORM_XDP'  "Display PDF form with XDP
    EXPORTING
         OBJID = lv_objid
         LOGICAL_PATH = lv_logical_path
         DISPLAY_XDP = lv_display_xdp
         FORM_PER_ROW = lv_form_per_row
    TABLES
         DATA_TABLE = lt_data_table
    EXCEPTIONS
        DIR_NOT_FOUND = 1
        DOWNLOAD_MIME_ERROR = 2
        DATA_TO_XML_ERROR = 3
        XDP_TO_HTML_ERROR = 4
        NO_XDP_DATA = 5
. " HR_HR_SFP_DISPLAY_FORM_XDP




ABAP code using 7.40 inline data declarations to call FM HR_HR_SFP_DISPLAY_FORM_XDP

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 PATHINTERN FROM FILEPATH INTO @DATA(ld_logical_path).
 
 
 
 
DATA(ld_form_per_row) = ' '.
 
 
 


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!