SAP ISH_READ_NGPA Function Module for IS-H: Read General BP from BP File NGPA (Optionally Buffered)
ISH_READ_NGPA is a standard ish read ngpa 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 General BP from BP File NGPA (Optionally 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 ngpa FM, simply by entering the name ISH_READ_NGPA 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_NGPA 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_NGPA'"IS-H: Read General BP from BP File NGPA (Optionally Buffered).
EXPORTING
GPART = "Key of Business Partner to Be Read
* SS_WITH_NADR = 'X' "Read Table NADR and NADR2, if Required
* SS_BUFFER = 'X' "Buffering (Yes/No)
IMPORTING
NGPA_E = "Tables Work Area of Read Business Partner
NADR_E = "Address Data of Business Partner
ES_BUPA_HCROLES = "
TABLES
* NADR_TELNR = "Telephone Number of Business Partner
EXCEPTIONS
NOT_FOUND = 1 NO_AUTHORITY = 2
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_NGPA
GPART - Key of Business Partner to Be Read
Data type: NGPA-GPARTOptional: No
Call by Reference: No ( called with pass by value option)
SS_WITH_NADR - Read Table NADR and NADR2, if Required
Data type: NPDOK-XFELDDefault: 'X'
Optional: No
Call by Reference: Yes
SS_BUFFER - Buffering (Yes/No)
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_READ_NGPA
NGPA_E - Tables Work Area of Read Business Partner
Data type: NGPAOptional: No
Call by Reference: No ( called with pass by value option)
NADR_E - Address Data of Business Partner
Data type: NADROptional: No
Call by Reference: No ( called with pass by value option)
ES_BUPA_HCROLES -
Data type: RNBUPA_HCROLESOptional: No
Call by Reference: Yes
TABLES Parameters details for ISH_READ_NGPA
NADR_TELNR - Telephone Number of Business Partner
Data type: NADR2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Business Partner Was not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No Authorization to Read Business Partner
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_READ_NGPA 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_gpart | TYPE NGPA-GPART, " | |||
lv_ngpa_e | TYPE NGPA, " | |||
lv_not_found | TYPE NGPA, " | |||
lt_nadr_telnr | TYPE STANDARD TABLE OF NADR2, " | |||
lv_nadr_e | TYPE NADR, " | |||
lv_no_authority | TYPE NADR, " | |||
lv_ss_with_nadr | TYPE NPDOK-XFELD, " 'X' | |||
lv_ss_buffer | TYPE NPDOK-XFELD, " 'X' | |||
lv_es_bupa_hcroles | TYPE RNBUPA_HCROLES. " |
  CALL FUNCTION 'ISH_READ_NGPA' "IS-H: Read General BP from BP File NGPA (Optionally Buffered) |
EXPORTING | ||
GPART | = lv_gpart | |
SS_WITH_NADR | = lv_ss_with_nadr | |
SS_BUFFER | = lv_ss_buffer | |
IMPORTING | ||
NGPA_E | = lv_ngpa_e | |
NADR_E | = lv_nadr_e | |
ES_BUPA_HCROLES | = lv_es_bupa_hcroles | |
TABLES | ||
NADR_TELNR | = lt_nadr_telnr | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
NO_AUTHORITY = 2 | ||
. " ISH_READ_NGPA |
ABAP code using 7.40 inline data declarations to call FM ISH_READ_NGPA
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 GPART FROM NGPA INTO @DATA(ld_gpart). | ||||
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_with_nadr). | ||||
DATA(ld_ss_with_nadr) | = '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