SAP BBP_PCO_MEMORY_SET Function Module for Transfer Document-Specific Sets to PCO Memory









BBP_PCO_MEMORY_SET is a standard bbp pco memory set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transfer Document-Specific Sets to PCO Memory 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 bbp pco memory set FM, simply by entering the name BBP_PCO_MEMORY_SET into the relevant SAP transaction such as SE37 or SE38.

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



Function BBP_PCO_MEMORY_SET 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 'BBP_PCO_MEMORY_SET'"Transfer Document-Specific Sets to PCO Memory
EXPORTING
* IS_CONTEXT = "Global Data for Purchase Order
* IT_PCO_SDLN = "Business Transaction Item-Schedule (Output to Application)
* IT_HEADER_PCO_REL = "Header Links: Order Confirmation Type
* IT_ITEM_PCO_REL = "Item Links: Order Confirmation Type
* IT_PCO_STATUS = "Status
* IT_MESSAGES = "Error Messages
* IT_FIELD_CONTROL_LIST = "Transfer of Field List to Search Screen
* IT_SELECT_TO_PO_UPDATE = "GUID table
* IT_LOCKED_PCO = "List With Locked Purchase Order Responses
* IT_PO_SDLN = "Business Transaction Item - Schedule Lines
* IS_PO_HEADER = "Header Data Purchase Order GetDetail-Case Interface
* IT_PO_ITEM = "Item Data Purchase Order in GetDetail Case
* IT_PO_PARTNER = "Table Type Business Partner
* IS_PCO_HEADER = "Interface: Header Data: Order Confirmation: Get Detail Case
* IT_PCO_ITEM = "Item Data: Order Confirm.: GetDetail Case
* IT_PCO_PARTNER = "Table Type Business Partner
* IT_PCO_ATTACHMENTS = "KW Attachments Including Document
* IT_PCO_LONGTEXT = "Long Texts
.



IMPORTING Parameters details for BBP_PCO_MEMORY_SET

IS_CONTEXT - Global Data for Purchase Order

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

IT_PCO_SDLN - Business Transaction Item-Schedule (Output to Application)

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

IT_HEADER_PCO_REL - Header Links: Order Confirmation Type

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

IT_ITEM_PCO_REL - Item Links: Order Confirmation Type

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

IT_PCO_STATUS - Status

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

IT_MESSAGES - Error Messages

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

IT_FIELD_CONTROL_LIST - Transfer of Field List to Search Screen

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

IT_SELECT_TO_PO_UPDATE - GUID table

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

IT_LOCKED_PCO - List With Locked Purchase Order Responses

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

IT_PO_SDLN - Business Transaction Item - Schedule Lines

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

IS_PO_HEADER - Header Data Purchase Order GetDetail-Case Interface

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

IT_PO_ITEM - Item Data Purchase Order in GetDetail Case

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

IT_PO_PARTNER - Table Type Business Partner

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

IS_PCO_HEADER - Interface: Header Data: Order Confirmation: Get Detail Case

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

IT_PCO_ITEM - Item Data: Order Confirm.: GetDetail Case

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

IT_PCO_PARTNER - Table Type Business Partner

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

IT_PCO_ATTACHMENTS - KW Attachments Including Document

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

IT_PCO_LONGTEXT - Long Texts

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

Copy and paste ABAP code example for BBP_PCO_MEMORY_SET 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_is_context  TYPE BBPS_PCO_UI_GLOBAL, "   
lv_it_pco_sdln  TYPE BBPT_PD_SDLN, "   
lv_it_header_pco_rel  TYPE BBPT_PDS_PCO_HREL, "   
lv_it_item_pco_rel  TYPE BBPT_PDS_PCO_IREL, "   
lv_it_pco_status  TYPE BBPT_PDS_STATUS, "   
lv_it_messages  TYPE BBPT_PD_MESSAGES, "   
lv_it_field_control_list  TYPE BBPT_SEL_SEARCH_FIELD_CONTROL, "   
lv_it_select_to_po_update  TYPE BBPT_PCO_COMPARE_LIST, "   
lv_it_locked_pco  TYPE BBPT_PCO_HDR_LIST, "   
lv_it_po_sdln  TYPE BBPT_PD_SDLN, "   
lv_is_po_header  TYPE BBP_PDS_PO_HEADER_D, "   
lv_it_po_item  TYPE BBP_PDT_PO_ITEM_D, "   
lv_it_po_partner  TYPE BBPT_PDS_PARTNER, "   
lv_is_pco_header  TYPE BBP_PDS_PCO_HEADER_D, "   
lv_it_pco_item  TYPE BBP_PDT_PCO_ITEM_D, "   
lv_it_pco_partner  TYPE BBPT_PDS_PARTNER, "   
lv_it_pco_attachments  TYPE BBPT_PDS_ATT_T, "   
lv_it_pco_longtext  TYPE BBPT_PD_LONGTEXT. "   

  CALL FUNCTION 'BBP_PCO_MEMORY_SET'  "Transfer Document-Specific Sets to PCO Memory
    EXPORTING
         IS_CONTEXT = lv_is_context
         IT_PCO_SDLN = lv_it_pco_sdln
         IT_HEADER_PCO_REL = lv_it_header_pco_rel
         IT_ITEM_PCO_REL = lv_it_item_pco_rel
         IT_PCO_STATUS = lv_it_pco_status
         IT_MESSAGES = lv_it_messages
         IT_FIELD_CONTROL_LIST = lv_it_field_control_list
         IT_SELECT_TO_PO_UPDATE = lv_it_select_to_po_update
         IT_LOCKED_PCO = lv_it_locked_pco
         IT_PO_SDLN = lv_it_po_sdln
         IS_PO_HEADER = lv_is_po_header
         IT_PO_ITEM = lv_it_po_item
         IT_PO_PARTNER = lv_it_po_partner
         IS_PCO_HEADER = lv_is_pco_header
         IT_PCO_ITEM = lv_it_pco_item
         IT_PCO_PARTNER = lv_it_pco_partner
         IT_PCO_ATTACHMENTS = lv_it_pco_attachments
         IT_PCO_LONGTEXT = lv_it_pco_longtext
. " BBP_PCO_MEMORY_SET




ABAP code using 7.40 inline data declarations to call FM BBP_PCO_MEMORY_SET

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!