SAP ISH_GET_ADDITIONAL_FI_DATA Function Module for









ISH_GET_ADDITIONAL_FI_DATA is a standard ish get additional fi data 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 ish get additional fi data FM, simply by entering the name ISH_GET_ADDITIONAL_FI_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_GET_ADDITIONAL_FI_DATA 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 'ISH_GET_ADDITIONAL_FI_DATA'"
EXPORTING
BELNR = "Document number (->FI)
* WAIT = ' ' "
BUKRS = "Company code
EINRI = "Institution
* EVENT = 'REC001' "Event
GJAHR = "Fiscal year
* READ_BSID = ' ' "Read open items for BELNR
* READ_BSAD = ' ' "Read cleared items for BELNR
* VBELN = "Invoice number (SD)
* SYSTEM = "

IMPORTING
BSEG_E = "FI additional data: BSEG structure
RETURNCODE = "Return code for communications configuration ->F2

TABLES
* IBSAD_FI = "Cleared items for BELNR (if read)
* IBSID_FI = "Open items for BELNR (if read)
.



IMPORTING Parameters details for ISH_GET_ADDITIONAL_FI_DATA

BELNR - Document number (->FI)

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

WAIT -

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

BUKRS - Company code

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

EINRI - Institution

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

EVENT - Event

Data type: TN02E-EVENT
Default: 'REC001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

GJAHR - Fiscal year

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

READ_BSID - Read open items for BELNR

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

READ_BSAD - Read cleared items for BELNR

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

VBELN - Invoice number (SD)

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

SYSTEM -

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

EXPORTING Parameters details for ISH_GET_ADDITIONAL_FI_DATA

BSEG_E - FI additional data: BSEG structure

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

RETURNCODE - Return code for communications configuration ->F2

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

TABLES Parameters details for ISH_GET_ADDITIONAL_FI_DATA

IBSAD_FI - Cleared items for BELNR (if read)

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

IBSID_FI - Open items for BELNR (if read)

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

Copy and paste ABAP code example for ISH_GET_ADDITIONAL_FI_DATA 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_belnr  TYPE VBRK-BELNR, "   
lv_bseg_e  TYPE BSEG, "   
lt_ibsad_fi  TYPE STANDARD TABLE OF BSAD, "   
lv_wait  TYPE NPDOK-XFELD, "   ' '
lv_bukrs  TYPE BSEG-BUKRS, "   
lt_ibsid_fi  TYPE STANDARD TABLE OF BSID, "   
lv_returncode  TYPE SY-SUBRC, "   
lv_einri  TYPE TN02A-EINRI, "   
lv_event  TYPE TN02E-EVENT, "   'REC001'
lv_gjahr  TYPE BSEG-GJAHR, "   
lv_read_bsid  TYPE NPDOK-XFELD, "   ' '
lv_read_bsad  TYPE NPDOK-XFELD, "   ' '
lv_vbeln  TYPE VBRK-VBELN, "   
lv_system  TYPE VBRK-LOGSYS. "   

  CALL FUNCTION 'ISH_GET_ADDITIONAL_FI_DATA'  "
    EXPORTING
         BELNR = lv_belnr
         WAIT = lv_wait
         BUKRS = lv_bukrs
         EINRI = lv_einri
         EVENT = lv_event
         GJAHR = lv_gjahr
         READ_BSID = lv_read_bsid
         READ_BSAD = lv_read_bsad
         VBELN = lv_vbeln
         SYSTEM = lv_system
    IMPORTING
         BSEG_E = lv_bseg_e
         RETURNCODE = lv_returncode
    TABLES
         IBSAD_FI = lt_ibsad_fi
         IBSID_FI = lt_ibsid_fi
. " ISH_GET_ADDITIONAL_FI_DATA




ABAP code using 7.40 inline data declarations to call FM ISH_GET_ADDITIONAL_FI_DATA

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 BELNR FROM VBRK INTO @DATA(ld_belnr).
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_wait).
DATA(ld_wait) = ' '.
 
"SELECT single BUKRS FROM BSEG INTO @DATA(ld_bukrs).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_returncode).
 
"SELECT single EINRI FROM TN02A INTO @DATA(ld_einri).
 
"SELECT single EVENT FROM TN02E INTO @DATA(ld_event).
DATA(ld_event) = 'REC001'.
 
"SELECT single GJAHR FROM BSEG INTO @DATA(ld_gjahr).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_read_bsid).
DATA(ld_read_bsid) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_read_bsad).
DATA(ld_read_bsad) = ' '.
 
"SELECT single VBELN FROM VBRK INTO @DATA(ld_vbeln).
 
"SELECT single LOGSYS FROM VBRK INTO @DATA(ld_system).
 


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!