SAP Function BAPI_PR_CREATE - Create Enjoy Purchase Requisition

Parameter Reference Type Length Default Optional Text
PRHEADER BAPIMEREQHEADER u 34 X Transfer Structure for Enjoy Purchase Req. - Header
PRHEADERX BAPIMEREQHEADERX u 14 X Change Parameter for Enjoy Purchase Requisition - Header
TESTRUN BAPIFLAG-BAPIFLAG C 1 X Test Indicator

Parameter Reference Type Length Text
NUMBER BAPIMEREQHEADER-PREQ_NO C 10 Purchase Requisition Number
PRHEADEREXP BAPIMEREQHEADER u 34 Transfer Structure for Enjoy Purchase Req. - Header

Parameter Reference Length Optional Text
ALLVERSIONS BAPIMEDCM_ALLVERSIONS 233 X Version Management - All Version Data
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
PRACCOUNT BAPIMEREQACCOUNT 420 X Transfer Structure for Enjoy Purchase Req. - Acct Assignment
PRACCOUNTPROITSEGMENT BAPIMEREQACCOUNTPROFITSEG 87 X Reservation Event Object: BAPI_PROFITABILITY_SEGMENT
PRACCOUNTX BAPIMEREQACCOUNTX 50 X Change Toolbar for Enjoy Purchase Req. - Account Assignment
PRADDRDELIVERY BAPIMERQADDRDELIVERY 1311 X PO Item: Address Structure BAPIADDR1 for Inbound Delivery
PRCOMPONENTS BAPIMEREQCOMPONENT 166 X BAPI Structure for Components
PRCOMPONENTSX BAPIMEREQCOMPONENTX 30 X Update Information for Components in BUS2012 API
PRHEADERTEXT BAPIMEREQHEADTEXT 153 X Change Toolbar for Enjoy Purchase Req. - Header Text
PRITEM BAPIMEREQITEMIMP 846 Transfer Structure for Enjoy Purchase Req. - Item Data
PRITEMEXP BAPIMEREQITEM 1185 X Transfer Structure for Enjoy Purchase Req. - Item Data
PRITEMSOURCE BAPIMEREQSOURCE 80 X Return Structure for Enjoy Purchase Req. - Source of Supply
PRITEMTEXT BAPIMEREQITEMTEXT 153 X Transfer Structure for Enjoy Purchase Req. - Item Text
PRITEMX BAPIMEREQITEMX 104 X Change Parameter for Enjoy Purchase Requisition - Item Data
PRVERSION BAPIMEREQDCM 111 X Version Data for Purchase Requisition Item (BAPI)
PRVERSIONX BAPIMEREQDCMX 12 X Version Data for Purchase Requisition Item (BAPI)
RETURN BAPIRET2 548 X Return Parameters
SERIALNUMBER BAPIMEREQSERIALNO 96 X Serial Numbers in Purchase Requisition BAPI
SERIALNUMBERX BAPIMEREQSERIALNOX 9 X Change Parameter: Serial Numbers in Purch. Requisition BAPI
SERVICEACCOUNT BAPI_SRV_ACC_DATA 46 X
SERVICEACCOUNTX BAPI_SRV_ACC_DATAX 32 X
SERVICECONTRACTLIMITS BAPI_SRV_CONTRACT_LIMITS 36 X
SERVICECONTRACTLIMITSX BAPI_SRV_CONTRACT_LIMITSX 24 X
SERVICELIMIT BAPI_SRV_LIMIT_DATA 129 X
SERVICELIMITX BAPI_SRV_LIMIT_DATAX 32 X
SERVICELINES BAPI_SRV_SERVICE_LINE 468 X
SERVICELINESX BAPI_SRV_SERVICE_LINEX 74 X
SERVICELONGTEXTS BAPI_SRV_LONGTEXTS 161 X
SERVICEOUTLINE BAPI_SRV_OUTLINE 148 X
SERVICEOUTLINEX BAPI_SRV_OUTLINEX 34 X

Functionality
Instance generation for object purchase requisition.

Description
Purchase requisition number.

Description
Transfer structure Enjoy purchase requisition - header.

Description
This parameter contains fields that apply to all items. You can, forexample, run automatic sourcing or put the document on hold.
When you put a document on hold, you can use method CHECK of theBusiness Add-In ME_PROCESS_REQ_CUST to record a differentiationcriterion that prevents purchase requisitions from being put on hold.

Park and hold (Public Sector Management; PSM)
If you have activated the PSM, US Federal Government - GeneralFunctions 2 (PSM_USFED_CI_2) business function, park isavailable as well as hold, providing a further option for savingdocuments temporarily.

  • You use the MEMORY_COMPLETE and PARK_COMPLETE parameters to control when
  • complete and correctly entered purchase requisitions can beparked and when they can be saved.
    • You use the MEMORY_UNCOMPLETE and PARK_UNCOMPLETE parameters to control
    • when incomplete and incorrectly entered purchase requisitions canbe parked and when they can be saved.
      For more information about the range of the individual parameters andsystem behavior, see the parameter documentation for creating purchaseorders (function module BAPI_PO_CREATE):
      • MEMORY_COMPLETE


        • PARK_COMPLETE


        • MEMORY_UNCOMPLETE
          • PARK_UNCOMPLETE

          • Description
            Change parameter Enjoy purchase requisition - header.

            Description
            Test indicator -> Do not post, simulate only.

            Description
            Version management - all version data.

            Value range
            Returning.

            Description
            This table parameter can be used to populate customers' own fields thathave been added to the database tables EBAN and EBKN.
            These extension parameters serve as containers in which all customerenhancements are passed on. The extension parameters are based on thestructure BAPIPAREX.
            The data is passed on in a table. The format of the individual datarecords of this table is determined by the structure BAPIPAREX. Thiscontains several data record fields (VALUEPART1, VALUEPART2, ...) plus afield for the name of an auxiliary structure (STRUCTURE).
            Validation of the data can be carried out via the Business AddIn (BAdI)definition ME_BAPI_PR_CUST. The INBOUND( )
            method is available for this purpose.

            Value range
            The auxiliary structure can have the following instances:

            • BAPI_TE_MEREQITEM for the enhancement of the database table EBAN
            • (via MEREQ_ITEM)
              • BAPI_TE_MEREQITEMX for the enhancement of the database table EBAN
              • (via MEREQ_ITEMX)
                • BAPI_TE_MEREQACCOUNTING for the enhancement of the database table
                • EBKN
                  • BAPI_TE_MEREQACCOUNTINGX for the enhancement of the database
                  • table EBKN
                    To allow transfer of the data from the structure BAPI_TE_MEREQ, it isnecessary to populate the associated X data structure. The data istransferred only if an X has been set for the relevant data field in theX data structure. In the process, The X information simulates manualentry via the online transaction.

                    Default
                    Note that only fields of the data type CHAR and similar data types maybe used in the BAPI table ExtensionIn.
                    You can use the class method READ_CONTAINER_C of the class CL_ABAP_UTILITIES_CONTAINER to populate the transfer parameterExtensionIn.
                    ...
                    CONSTANTS: lc_eban TYPE string VALUE 'BAPI_TE_MEREQITEM'.
                    DATA: im_value TYPE bapi_te_mereqitem,
                    ex_value TYPE me_max_container.
                    CALL METHOD cl_abap_container_utilities=>fill_container_c
                    EXPORTING
                    im_value = im_value
                    IMPORTING
                    ex_container = ex_value
                    EXCEPTIONS
                    illegal_parameter_type = 1
                    OTHERS = 2.
                    APPEND ex_value TO extensionin.
                    ...
                    Further information is available on the following Internet page of theSAP online documentation:
                    For German documentation:
                    http://help.sap.com/saphelp_47x200/helpdata/de/3e/0e1089c24611d1ad09
                    080009b0fb56/frameset.htm
                    For English documentation:
                    http://help.sap.com/saphelp_47x200/helpdata/en/3e/0e1089c24611d1ad09
                    080009b0fb56/frameset.htm

                    Description
                    Reference structure for BAPI parameter ExtensionIn/ExtensionOut.

                    Value range
                    Returning.

                    Description
                    Transfer structure Enjoy purchase requisition - account assignment.

                    Value range
                    Changing.

                    Description
                    Reservation profitability segment: BAPI_PROFITABILITY_SEGMENT

                    Value range
                    Importing.

                    Description
                    Change parameter Enjoy purchase requisition - account assignment.

                    Value range
                    Importing.

                    Description
                    Purchase order item: address structure BAPIADDR1 for inbound delivery.

                    Value range
                    Changing.
                    INCLUDE BAPI_PR_COMPONENTS OBJECT DOKU ID TX LANGUAGE EN
                    INCLUDE BAPI_PR_COMPONENTSX OBJECT DOKU ID TX

                    Description
                    Transfer structure Enjoy purchase requisition - header text.

                    Value range
                    Changing

                    Default
                    Initial line means -> Delete.

                    Description
                    Transfer structure Enjoy purchase requisition - item data.

                    Value range
                    Mandatory parameter -> Importing only.

                    Description
                    Transfer structure Enjoy purchase requisition - item data.

                    Value range
                    Returning.

                    Description
                    Return structure Enjoy purchase requisition - source of supply.

                    Value range
                    Returning

                    Description
                    Transfer structure Enjoy purchase requisition - item text.

                    Value range
                    Changing.

                    Description
                    Change parameter Enjoy purchase requisition - item data.

                    Value range
                    Importing.

                    Description
                    Version data for purchase requisition item (BAPI).

                    Value range
                    Importing.

                    Description
                    Version data for purchase requisition item (BAPI) - change parameter.

                    Value range
                    Importing.

                    Description
                    Contains all system messages issued during processing.
                    INCLUDE MMPUR_604_BAPI_SERNO OBJECT DOKU ID TX
                    You can use the DELETE_IND field to delete assigned serial numbers.
                    INCLUDE MMPUR_604_BAPI_SERNOX OBJECT DOKU ID TX
                    INCLUDE BAPI_SERVICEACCOUNT OBJECT DOKU ID TX

                    Description
                    Change parameter for Enjoy purchase order change - item data
                    INCLUDE BAPI_PR_X_BAR OBJECT DOKU ID TX

                    Value range
                    This is only an import parameter.
                    INCLUDE BAPI_SERVICECONTRACTLIMITS OBJECT DOKU ID TX

                    Description
                    Change parameter for Enjoy purchase order change - item data
                    INCLUDE BAPI_PR_X_BAR OBJECT DOKU ID TX

                    Value range
                    This is only an import parameter.
                    INCLUDE BAPI_SERVICELIMIT OBJECT DOKU ID TX

                    Description
                    Change parameter for Enjoy purchase order change - item data
                    INCLUDE BAPI_PR_X_BAR OBJECT DOKU ID TX

                    Value range
                    This is only an import parameter.
                    INCLUDE BAPI_SERVICELINES OBJECT DOKU ID TX

                    Description
                    Change parameter for Enjoy purchase order change - item data
                    INCLUDE BAPI_PR_X_BAR OBJECT DOKU ID TX

                    Value range
                    This is only an import parameter.
                    INCLUDE BAPI_SERVICELONGTEXTS OBJECT DOKU ID TX
                    INCLUDE BAPI_SERVICEOUTLINE OBJECT DOKU ID TX

                    Description
                    Change parameter for Enjoy purchase order change - item data
                    INCLUDE BAPI_PR_X_BAR OBJECT DOKU ID TX

                    Value range
                    This is only an import parameter.

499627FAQ: BAPIs for purchase requisitions
1541517MAA: multiple account assignment with valuated goods receipt
1414255Authorization check on transaction code in BAPI_PR_CREATE
1327694Dump Type conflict in MM-PUR BAPIs