SAP B470_PO_GETDETAIL Function Module for
B470_PO_GETDETAIL is a standard b470 po getdetail 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 b470 po getdetail FM, simply by entering the name B470_PO_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_BD_DRIVER_470
Program Name: SAPLBBP_BD_DRIVER_470
Main Program: SAPLBBP_BD_DRIVER_470
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function B470_PO_GETDETAIL 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 'B470_PO_GETDETAIL'".
EXPORTING
PURCHASEORDER = "
* ITEMS = 'X' "
* ACCOUNT_ASSIGNMENT = ' ' "
* SCHEDULES = ' ' "
* HISTORY = ' ' "
* ITEM_TEXTS = ' ' "
* HEADER_TEXTS = ' ' "
* SERVICES = ' ' "
* CONFIRMATIONS = ' ' "
IMPORTING
PO_HEADER = "
PO_ADDRESS = "
TABLES
* PO_HEADER_TEXTS = "
* PO_ITEM_CONTRACT_LIMITS = "
* PO_ITEM_SERVICES = "
* PO_ITEM_SERVICES_TEXT = "
* PO_ITEM_SRV_ACCASS_VALUES = "
* RETURN = "
* CONTROL_RECORD = "
* PO_ITEMS = "
* PO_ITEM_ACCOUNT_ASSIGNMENT = "
* PO_ITEM_SCHEDULES = "
* PO_ITEM_CONFIRMATIONS = "
* PO_ITEM_TEXTS = "
* PO_ITEM_HISTORY = "
* PO_ITEM_HISTORY_TOTALS = "
* PO_ITEM_LIMITS = "
IMPORTING Parameters details for B470_PO_GETDETAIL
PURCHASEORDER -
Data type: BBPS_BAPIEKKO-PO_NUMBEROptional: No
Call by Reference: No ( called with pass by value option)
ITEMS -
Data type: BAPIMMPARA-SELECTIONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACCOUNT_ASSIGNMENT -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCHEDULES -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
HISTORY -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_TEXTS -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
HEADER_TEXTS -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SERVICES -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONFIRMATIONS -
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for B470_PO_GETDETAIL
PO_HEADER -
Data type: BBPS_BAPIEKKOLOptional: No
Call by Reference: No ( called with pass by value option)
PO_ADDRESS -
Data type: BBPS_BAPIADDRESSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for B470_PO_GETDETAIL
PO_HEADER_TEXTS -
Data type: BBPS_BAPIEKKOTXOptional: Yes
Call by Reference: Yes
PO_ITEM_CONTRACT_LIMITS -
Data type: BBPS_BAPIESUCOptional: Yes
Call by Reference: Yes
PO_ITEM_SERVICES -
Data type: BAPIESLL_ECIOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEM_SERVICES_TEXT -
Data type: BBPS_BAPIESLLTXOptional: Yes
Call by Reference: Yes
PO_ITEM_SRV_ACCASS_VALUES -
Data type: BBPS_BAPIESKLOptional: Yes
Call by Reference: Yes
RETURN -
Data type: BAPIRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTROL_RECORD -
Data type: BBP_CONTROL_RECORDOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEMS -
Data type: BAPIEKPO_ECIOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEM_ACCOUNT_ASSIGNMENT -
Data type: BBP_BAPIEKKNOptional: Yes
Call by Reference: Yes
PO_ITEM_SCHEDULES -
Data type: BBPS_BAPIEKETOptional: Yes
Call by Reference: Yes
PO_ITEM_CONFIRMATIONS -
Data type: BBPS_BAPIEKESOptional: Yes
Call by Reference: Yes
PO_ITEM_TEXTS -
Data type: BBPS_BAPIEKPOTXOptional: Yes
Call by Reference: Yes
PO_ITEM_HISTORY -
Data type: BAPIEKBE_ECIOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEM_HISTORY_TOTALS -
Data type: BBPS_BAPIEKBESOptional: Yes
Call by Reference: Yes
PO_ITEM_LIMITS -
Data type: BBPS_BAPIESUHOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for B470_PO_GETDETAIL 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_po_header | TYPE BBPS_BAPIEKKOL, " | |||
lv_purchaseorder | TYPE BBPS_BAPIEKKO-PO_NUMBER, " | |||
lt_po_header_texts | TYPE STANDARD TABLE OF BBPS_BAPIEKKOTX, " | |||
lt_po_item_contract_limits | TYPE STANDARD TABLE OF BBPS_BAPIESUC, " | |||
lt_po_item_services | TYPE STANDARD TABLE OF BAPIESLL_ECI, " | |||
lt_po_item_services_text | TYPE STANDARD TABLE OF BBPS_BAPIESLLTX, " | |||
lt_po_item_srv_accass_values | TYPE STANDARD TABLE OF BBPS_BAPIESKL, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRETURN, " | |||
lt_control_record | TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, " | |||
lv_items | TYPE BAPIMMPARA-SELECTION, " 'X' | |||
lt_po_items | TYPE STANDARD TABLE OF BAPIEKPO_ECI, " | |||
lv_po_address | TYPE BBPS_BAPIADDRESS, " | |||
lv_account_assignment | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_account_assignment | TYPE STANDARD TABLE OF BBP_BAPIEKKN, " | |||
lv_schedules | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_schedules | TYPE STANDARD TABLE OF BBPS_BAPIEKET, " | |||
lv_history | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_confirmations | TYPE STANDARD TABLE OF BBPS_BAPIEKES, " | |||
lv_item_texts | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_texts | TYPE STANDARD TABLE OF BBPS_BAPIEKPOTX, " | |||
lv_header_texts | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_history | TYPE STANDARD TABLE OF BAPIEKBE_ECI, " | |||
lv_services | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_history_totals | TYPE STANDARD TABLE OF BBPS_BAPIEKBES, " | |||
lv_confirmations | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
lt_po_item_limits | TYPE STANDARD TABLE OF BBPS_BAPIESUH. " |
  CALL FUNCTION 'B470_PO_GETDETAIL' " |
EXPORTING | ||
PURCHASEORDER | = lv_purchaseorder | |
ITEMS | = lv_items | |
ACCOUNT_ASSIGNMENT | = lv_account_assignment | |
SCHEDULES | = lv_schedules | |
HISTORY | = lv_history | |
ITEM_TEXTS | = lv_item_texts | |
HEADER_TEXTS | = lv_header_texts | |
SERVICES | = lv_services | |
CONFIRMATIONS | = lv_confirmations | |
IMPORTING | ||
PO_HEADER | = lv_po_header | |
PO_ADDRESS | = lv_po_address | |
TABLES | ||
PO_HEADER_TEXTS | = lt_po_header_texts | |
PO_ITEM_CONTRACT_LIMITS | = lt_po_item_contract_limits | |
PO_ITEM_SERVICES | = lt_po_item_services | |
PO_ITEM_SERVICES_TEXT | = lt_po_item_services_text | |
PO_ITEM_SRV_ACCASS_VALUES | = lt_po_item_srv_accass_values | |
RETURN | = lt_return | |
CONTROL_RECORD | = lt_control_record | |
PO_ITEMS | = lt_po_items | |
PO_ITEM_ACCOUNT_ASSIGNMENT | = lt_po_item_account_assignment | |
PO_ITEM_SCHEDULES | = lt_po_item_schedules | |
PO_ITEM_CONFIRMATIONS | = lt_po_item_confirmations | |
PO_ITEM_TEXTS | = lt_po_item_texts | |
PO_ITEM_HISTORY | = lt_po_item_history | |
PO_ITEM_HISTORY_TOTALS | = lt_po_item_history_totals | |
PO_ITEM_LIMITS | = lt_po_item_limits | |
. " B470_PO_GETDETAIL |
ABAP code using 7.40 inline data declarations to call FM B470_PO_GETDETAIL
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 PO_NUMBER FROM BBPS_BAPIEKKO INTO @DATA(ld_purchaseorder). | ||||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_items). | ||||
DATA(ld_items) | = 'X'. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_account_assignment). | ||||
DATA(ld_account_assignment) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_schedules). | ||||
DATA(ld_schedules) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_history). | ||||
DATA(ld_history) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_item_texts). | ||||
DATA(ld_item_texts) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_header_texts). | ||||
DATA(ld_header_texts) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_services). | ||||
DATA(ld_services) | = ' '. | |||
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_confirmations). | ||||
DATA(ld_confirmations) | = ' '. | |||
Search for further information about these or an SAP related objects