SAP COM_IL_PRDBP_API_READ_PR_EXT Function Module for Product/ Ind. Object Partner Link Extended Read by Product API









COM_IL_PRDBP_API_READ_PR_EXT is a standard com il prdbp api read pr ext SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Product/ Ind. Object Partner Link Extended Read by Product API 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 com il prdbp api read pr ext FM, simply by entering the name COM_IL_PRDBP_API_READ_PR_EXT into the relevant SAP transaction such as SE37 or SE38.

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



Function COM_IL_PRDBP_API_READ_PR_EXT 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 'COM_IL_PRDBP_API_READ_PR_EXT'"Product/ Ind. Object Partner Link Extended Read by Product  API
EXPORTING
* IV_PRODUCT_GUID = "Internal ID for Source in a Relationship
* IV_PRODUCT_ID = "Product ID
* IV_LINK_PARTNER_FCT = "Relationship Product-Partner: Partner Function
* IV_LINK_PARTNER_MAIN = ' ' "'X'=only Main Partners, ' ' = all partners
* IV_LINK_VALID_FROM = GC_UTC_LOW "Valid From (Time Stamp)
* IV_LINK_VALID_TO = GC_UTC_HIGH "Valid Until (Time Stamp)
* IV_ACTUAL = ' ' "'X' only relations, which are valid at systemtime

IMPORTING
ET_PRDBP_DATA = "Table with Relationship Data
ET_PRDBP_EXTENDED = "PRDBP Relationship: Field Catalog for ALV Grid

EXCEPTIONS
WRONG_CALL = 1 INTERNAL_ERROR = 2
.



IMPORTING Parameters details for COM_IL_PRDBP_API_READ_PR_EXT

IV_PRODUCT_GUID - Internal ID for Source in a Relationship

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

IV_PRODUCT_ID - Product ID

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

IV_LINK_PARTNER_FCT - Relationship Product-Partner: Partner Function

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

IV_LINK_PARTNER_MAIN - 'X'=only Main Partners, ' ' = all partners

Data type: COMT_LINK_PARTNER_MAIN
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_LINK_VALID_FROM - Valid From (Time Stamp)

Data type: COMT_VALID_FROM_FOR_LINK
Default: GC_UTC_LOW
Optional: Yes
Call by Reference: Yes

IV_LINK_VALID_TO - Valid Until (Time Stamp)

Data type: COMT_VALID_TO_FOR_LINK
Default: GC_UTC_HIGH
Optional: Yes
Call by Reference: Yes

IV_ACTUAL - 'X' only relations, which are valid at systemtime

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

EXPORTING Parameters details for COM_IL_PRDBP_API_READ_PR_EXT

ET_PRDBP_DATA - Table with Relationship Data

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

ET_PRDBP_EXTENDED - PRDBP Relationship: Field Catalog for ALV Grid

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

EXCEPTIONS details

WRONG_CALL - parameters missing/wrong

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - internal error during processing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COM_IL_PRDBP_API_READ_PR_EXT 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_wrong_call  TYPE STRING, "   
lv_et_prdbp_data  TYPE COMT_IL_DATA_PRDBP_TAB, "   
lv_iv_product_guid  TYPE COMT_IL_SOURCEGUID, "   
lv_iv_product_id  TYPE COMT_PRODUCT_ID, "   
lv_internal_error  TYPE COMT_PRODUCT_ID, "   
lv_et_prdbp_extended  TYPE COMT_PRDBP_EXTENDED_TAB, "   
lv_iv_link_partner_fct  TYPE COMT_LINK_PARTNER_FCT, "   
lv_iv_link_partner_main  TYPE COMT_LINK_PARTNER_MAIN, "   SPACE
lv_iv_link_valid_from  TYPE COMT_VALID_FROM_FOR_LINK, "   GC_UTC_LOW
lv_iv_link_valid_to  TYPE COMT_VALID_TO_FOR_LINK, "   GC_UTC_HIGH
lv_iv_actual  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'COM_IL_PRDBP_API_READ_PR_EXT'  "Product/ Ind. Object Partner Link Extended Read by Product API
    EXPORTING
         IV_PRODUCT_GUID = lv_iv_product_guid
         IV_PRODUCT_ID = lv_iv_product_id
         IV_LINK_PARTNER_FCT = lv_iv_link_partner_fct
         IV_LINK_PARTNER_MAIN = lv_iv_link_partner_main
         IV_LINK_VALID_FROM = lv_iv_link_valid_from
         IV_LINK_VALID_TO = lv_iv_link_valid_to
         IV_ACTUAL = lv_iv_actual
    IMPORTING
         ET_PRDBP_DATA = lv_et_prdbp_data
         ET_PRDBP_EXTENDED = lv_et_prdbp_extended
    EXCEPTIONS
        WRONG_CALL = 1
        INTERNAL_ERROR = 2
. " COM_IL_PRDBP_API_READ_PR_EXT




ABAP code using 7.40 inline data declarations to call FM COM_IL_PRDBP_API_READ_PR_EXT

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.

 
 
 
 
 
 
 
DATA(ld_iv_link_partner_main) = ' '.
 
DATA(ld_iv_link_valid_from) = GC_UTC_LOW.
 
DATA(ld_iv_link_valid_to) = GC_UTC_HIGH.
 
DATA(ld_iv_actual) = ' '.
 


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!