SAP FI_SEND_PDF Function Module for









FI_SEND_PDF is a standard fi send pdf 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 fi send pdf FM, simply by entering the name FI_SEND_PDF into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_SEND_PDF 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 'FI_SEND_PDF'"
EXPORTING
IB_SEND = "
IS_OUTPUTPARAMS = "Form Processing Output Parameter
ID_LANGU = "Language in Which Document Is Created
* ID_MAIL_TEXT = "Name
* ID_FAX_COVER = "Layout for cover sheet
* IS_T047I = "
* IS_DARA = "
* IB_OUTBOX = "
* ID_PRIORITY = "
* ID_SENSITIVITY = "
* ID_MAIL_STATUS = "
* IB_ARCHIVE = "
ID_DEVICE = "Output device
IS_PDF = "Form Output (PDF, PDL)
* ID_T001_ADRNR = "Address
* ID_SENDER = "External address (SMTP/X.400...)
* ID_SENDER_TYPE = 'B' "SAPoffice: Type of Address
* IS_FSABE = "Accounting clerk address data
* IS_RECEIVER = "Extended Customer or Vendor Address

IMPORTING
EB_SENT_TO_ALL = "
EB_MAIL_WITH_TEXT = "
EB_FAX_WITH_COVER = "
ES_ERROR = "

TABLES
IT_MAIL_RECEIVERS = "
IT_FAX_RECEIVERS = "
* IT_DARA = "

EXCEPTIONS
TOO_MANY_RECEIVERS = 1 DOCUMENT_NOT_SENT = 2 DOCUMENT_TYPE_NOT_EXIST = 3 OPERATION_NO_AUTHORIZATION = 4 ENQUEUE_ERROR = 5 NO_DOCUMENT = 6 INVALID_DEVICE = 7 ARCHIVE_ERROR = 8
.



IMPORTING Parameters details for FI_SEND_PDF

IB_SEND -

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

IS_OUTPUTPARAMS - Form Processing Output Parameter

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

ID_LANGU - Language in Which Document Is Created

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

ID_MAIL_TEXT - Name

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

ID_FAX_COVER - Layout for cover sheet

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

IS_T047I -

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

IS_DARA -

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

IB_OUTBOX -

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

ID_PRIORITY -

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

ID_SENSITIVITY -

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

ID_MAIL_STATUS -

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

IB_ARCHIVE -

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

ID_DEVICE - Output device

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

IS_PDF - Form Output (PDF, PDL)

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

ID_T001_ADRNR - Address

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

ID_SENDER - External address (SMTP/X.400...)

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

ID_SENDER_TYPE - SAPoffice: Type of Address

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

IS_FSABE - Accounting clerk address data

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

IS_RECEIVER - Extended Customer or Vendor Address

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

EXPORTING Parameters details for FI_SEND_PDF

EB_SENT_TO_ALL -

Data type: SONV-FLAG
Optional: No
Call by Reference: Yes

EB_MAIL_WITH_TEXT -

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

EB_FAX_WITH_COVER -

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

ES_ERROR -

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

TABLES Parameters details for FI_SEND_PDF

IT_MAIL_RECEIVERS -

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

IT_FAX_RECEIVERS -

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

IT_DARA -

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

EXCEPTIONS details

TOO_MANY_RECEIVERS - Too many recipients, no authorization

Data type:
Optional: No
Call by Reference: Yes

DOCUMENT_NOT_SENT - Document was not sent

Data type:
Optional: No
Call by Reference: Yes

DOCUMENT_TYPE_NOT_EXIST - Document type or attachment type does not exist

Data type:
Optional: No
Call by Reference: Yes

OPERATION_NO_AUTHORIZATION - No authorization to send/create

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_ERROR - Required locks could not be set

Data type:
Optional: No
Call by Reference: Yes

NO_DOCUMENT - No Document Exists

Data type:
Optional: No
Call by Reference: Yes

INVALID_DEVICE -

Data type:
Optional: No
Call by Reference: Yes

ARCHIVE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FI_SEND_PDF 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_ib_send  TYPE C, "   
lv_eb_sent_to_all  TYPE SONV-FLAG, "   
lt_it_mail_receivers  TYPE STANDARD TABLE OF SOMLRECI1, "   
lv_too_many_receivers  TYPE SOMLRECI1, "   
lv_is_outputparams  TYPE SFPOUTPUTPARAMS, "   
lv_id_langu  TYPE SO_OBJ_LA, "   
lv_id_mail_text  TYPE TDOBNAME, "   
lv_id_fax_cover  TYPE FORMC, "   
lv_is_t047i  TYPE T047I, "   
lv_is_dara  TYPE TOA_DARA, "   
lv_ib_outbox  TYPE BOOLE_D, "   
lv_id_priority  TYPE SO_OBJ_PRI, "   
lv_id_sensitivity  TYPE SO_OBJ_SNS, "   
lv_id_mail_status  TYPE BCS_STML, "   
lv_ib_archive  TYPE C, "   
lt_it_fax_receivers  TYPE STANDARD TABLE OF SOMLRECI1, "   
lv_document_not_sent  TYPE SOMLRECI1, "   
lv_eb_mail_with_text  TYPE C, "   
lt_it_dara  TYPE STANDARD TABLE OF TOA_DARA, "   
lv_id_device  TYPE TDDEVICE, "   
lv_eb_fax_with_cover  TYPE C, "   
lv_document_type_not_exist  TYPE C, "   
lv_is_pdf  TYPE FPFORMOUTPUT, "   
lv_es_error  TYPE BALMT, "   
lv_operation_no_authorization  TYPE BALMT, "   
lv_enqueue_error  TYPE BALMT, "   
lv_id_t001_adrnr  TYPE ADRNR, "   
lv_id_sender  TYPE SO_REC_EXT, "   
lv_no_document  TYPE SO_REC_EXT, "   
lv_id_sender_type  TYPE SO_ADR_TYP, "   'B'
lv_invalid_device  TYPE SO_ADR_TYP, "   
lv_is_fsabe  TYPE FSABE, "   
lv_archive_error  TYPE FSABE, "   
lv_is_receiver  TYPE DKADR. "   

  CALL FUNCTION 'FI_SEND_PDF'  "
    EXPORTING
         IB_SEND = lv_ib_send
         IS_OUTPUTPARAMS = lv_is_outputparams
         ID_LANGU = lv_id_langu
         ID_MAIL_TEXT = lv_id_mail_text
         ID_FAX_COVER = lv_id_fax_cover
         IS_T047I = lv_is_t047i
         IS_DARA = lv_is_dara
         IB_OUTBOX = lv_ib_outbox
         ID_PRIORITY = lv_id_priority
         ID_SENSITIVITY = lv_id_sensitivity
         ID_MAIL_STATUS = lv_id_mail_status
         IB_ARCHIVE = lv_ib_archive
         ID_DEVICE = lv_id_device
         IS_PDF = lv_is_pdf
         ID_T001_ADRNR = lv_id_t001_adrnr
         ID_SENDER = lv_id_sender
         ID_SENDER_TYPE = lv_id_sender_type
         IS_FSABE = lv_is_fsabe
         IS_RECEIVER = lv_is_receiver
    IMPORTING
         EB_SENT_TO_ALL = lv_eb_sent_to_all
         EB_MAIL_WITH_TEXT = lv_eb_mail_with_text
         EB_FAX_WITH_COVER = lv_eb_fax_with_cover
         ES_ERROR = lv_es_error
    TABLES
         IT_MAIL_RECEIVERS = lt_it_mail_receivers
         IT_FAX_RECEIVERS = lt_it_fax_receivers
         IT_DARA = lt_it_dara
    EXCEPTIONS
        TOO_MANY_RECEIVERS = 1
        DOCUMENT_NOT_SENT = 2
        DOCUMENT_TYPE_NOT_EXIST = 3
        OPERATION_NO_AUTHORIZATION = 4
        ENQUEUE_ERROR = 5
        NO_DOCUMENT = 6
        INVALID_DEVICE = 7
        ARCHIVE_ERROR = 8
. " FI_SEND_PDF




ABAP code using 7.40 inline data declarations to call FM FI_SEND_PDF

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 FLAG FROM SONV INTO @DATA(ld_eb_sent_to_all).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_id_sender_type) = 'B'.
 
 
 
 
 


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!