SAP ISH_READ_NDEB Function Module for IS-H: Read Customer Data from IS-H Customer File NDEB (opt. Buffered)









ISH_READ_NDEB is a standard ish read ndeb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H: Read Customer Data from IS-H Customer File NDEB (opt. Buffered) 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 ish read ndeb FM, simply by entering the name ISH_READ_NDEB into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_READ_NDEB 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_READ_NDEB'"IS-H: Read Customer Data from IS-H Customer File NDEB (opt. Buffered)
EXPORTING
BUKRS = "Company Code
DEBNR = "IS-H Customer that Should Be Read
* WITH_NGPA = 'X' "Include Business Partner in READ (NGPA): X-Yes
* SS_BUFFER = 'X' "Buffering (Yes/No)

IMPORTING
NDEB_E = "Read Work Area of IS-H Customer
NGPA_E = "Read Work Area of General Business Partner
NADR_E = "
ES_BUPA_HCROLES = "

EXCEPTIONS
NDEB_NOT_FOUND = 1 NDEB_NO_AUTHORITY = 2 NGPA_NOT_FOUND = 3 NGPA_NO_AUTHORITY = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLN003_001 IS-H: Create Name String from Business Partner Data

IMPORTING Parameters details for ISH_READ_NDEB

BUKRS - Company Code

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

DEBNR - IS-H Customer that Should Be Read

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

WITH_NGPA - Include Business Partner in READ (NGPA): X-Yes

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

SS_BUFFER - Buffering (Yes/No)

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

EXPORTING Parameters details for ISH_READ_NDEB

NDEB_E - Read Work Area of IS-H Customer

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

NGPA_E - Read Work Area of General Business Partner

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

NADR_E -

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

ES_BUPA_HCROLES -

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

EXCEPTIONS details

NDEB_NOT_FOUND - IS-H Customer Was not Found

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

NDEB_NO_AUTHORITY - No Authorization to Read Customer (Planned)

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

NGPA_NOT_FOUND - General Business Partner Was not Found

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

NGPA_NO_AUTHORITY - No Authorization to Read Business Partner (Planned)

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

Copy and paste ABAP code example for ISH_READ_NDEB 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_bukrs  TYPE NDEB-BUKRS, "   
lv_ndeb_e  TYPE NDEB, "   
lv_ndeb_not_found  TYPE NDEB, "   
lv_debnr  TYPE NDEB-DEBNR, "   
lv_ngpa_e  TYPE NGPA, "   
lv_ndeb_no_authority  TYPE NGPA, "   
lv_nadr_e  TYPE NADR, "   
lv_with_ngpa  TYPE NPDOK-XFELD, "   'X'
lv_ngpa_not_found  TYPE NPDOK, "   
lv_ss_buffer  TYPE NPDOK-XFELD, "   'X'
lv_es_bupa_hcroles  TYPE RNBUPA_HCROLES, "   
lv_ngpa_no_authority  TYPE RNBUPA_HCROLES. "   

  CALL FUNCTION 'ISH_READ_NDEB'  "IS-H: Read Customer Data from IS-H Customer File NDEB (opt. Buffered)
    EXPORTING
         BUKRS = lv_bukrs
         DEBNR = lv_debnr
         WITH_NGPA = lv_with_ngpa
         SS_BUFFER = lv_ss_buffer
    IMPORTING
         NDEB_E = lv_ndeb_e
         NGPA_E = lv_ngpa_e
         NADR_E = lv_nadr_e
         ES_BUPA_HCROLES = lv_es_bupa_hcroles
    EXCEPTIONS
        NDEB_NOT_FOUND = 1
        NDEB_NO_AUTHORITY = 2
        NGPA_NOT_FOUND = 3
        NGPA_NO_AUTHORITY = 4
. " ISH_READ_NDEB




ABAP code using 7.40 inline data declarations to call FM ISH_READ_NDEB

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 BUKRS FROM NDEB INTO @DATA(ld_bukrs).
 
 
 
"SELECT single DEBNR FROM NDEB INTO @DATA(ld_debnr).
 
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_with_ngpa).
DATA(ld_with_ngpa) = 'X'.
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_buffer).
DATA(ld_ss_buffer) = 'X'.
 
 
 


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!