Fonction SAP BAPI_REQUEST_EASYCREATE - BAPI: Create Request with Template

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
REQUESTCONTROL BAPIREQUEST_CONTROL u 6 X BAPI Processing Control for Requests
REQUESTHEADIN BAPIREQUEST_HEAD_IN u 89 X BAPI Import: Request Header Data
REQUESTHEADX BAPIREQUEST_HEAD_X u 9 X BAPI Changes: Request Header
REQUESTNUMBEREXT BAPIREQUEST_KEY-REQUESTNUMBER C 12 Request Number

Paramètre Reférence Type Long. Description
REQUESTHEADOUT BAPIREQUEST_HEAD_OUT u 190 BAPI Export: Request Header Data
REQUESTNUMBER BAPIREQUEST_KEY-REQUESTNUMBER C 12 Request Number

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
REQUESTDOCUMENT BAPIREQUEST_DOCUMENT 66 X BAPI Export: Documents Created from Request
REQUESTDUEDATAIN BAPIREQUEST_DUE_IN 28 X BAPI Import: Due Dates of Request
REQUESTDUEDATAOUT BAPIREQUEST_DUE_OUT 29 X BAPI Export: Due Dates of Request
REQUESTDUEDATAX BAPIREQUEST_DUE_X 12 X BAPI Changes: Execution Data for Requests
REQUESTITEMIN BAPIREQUEST_ITEM_IN 392 X BAPI Import: Request Items
REQUESTITEMOUT BAPIREQUEST_ITEM_OUT 546 X BAPI Export: Request Items
REQUESTITEMX BAPIREQUEST_ITEM_X 52 X BAPI Changes: Request Items
REQUESTLOCKS BAPIREQUEST_LOCKS 28 X BAPI: Processing Locks in Request Items
RETURN BAPIRET2 548 Return Parameters

Functionality
You use this method to create a request using a template. This meansthat you only need to enter the request number and modify thedata in the template.All table parameters are optional and depend on the request class.
The Return parameter can deliver several message numberssimultaneously.

Notes
The BAPI uses the concept of the customer enhancements with BAPITable Extensions. You can use the following structures for this:

  • BAPI_TE_DFKKORDER

  • BAPI_TE_DFKKORDERPOS

  • BAPI_TE_DFKKORDERDUE

  • Customer enhancement 9510 is called so that you can check thedata transferred to the BAPI and determine additional data if necessary.
    Customer enhancement 9511 is called at the end of the method inorder to fill the output extension.
    For an overview of all customer enhancements, see the IMG of ContractAccounts Receivable and Payable, underProgram Enhancements -> Define Customer-Specific Function Modules.

    Description
    INCLUDE BAPI_REQUEST_HEAD_OUT
    INCLUDE BAPI_DATAELEMENT

    Description
    This export parameter contains the number of the request you havecreated.
    INCLUDE BAPI_REQUEST_CONTROL
    INCLUDE BAPI_DATAELEMENT

    Description
    In this import parameter you define header data for the request.
    Using field REQUESTCLASS you define the RequestClass and using the field REQUESTCATEGORY you define theRequest Category of the request to be created.
    INCLUDE BAPI_DATAELEMENT

    Value range
    The following values are allowed for the request class:

    • 1: Request

    • 2: Standing request

    • 3: General request (only for the industry-specific component
    • Public Sector Contract Accounts Receivable and Payable)
      • ' ' (no value): Request template
      • Description
        In this import parameter you define which header data of the requestin the template should be changed. Select all fields where you need tochange data.
        INCLUDE BAPI_DATAELEMENT

        Value range
        INCLUDE BAPI_REQUEST_X

        Description
        You define the request number in this import parameter.
        The system only copies the values entered for this parameter if youhave defined in Customizing that external number assignment isdesignated forthe requestcategory and request class of the request to be created.With an internal numberassignment the system does not process the import parameter you entered.It determines the new request number instead automatically.

        Default

        Description
        INCLUDE BAPI_EXTIN

        Description
        INCLUDE BAPI_EXTOUT

        Description
        This table contains all numbers of documents generated from the requestcreated, provided that it is defined in Customizing that documents aretobe generated directly.

        Description
        INCLUDE BAPI_REQUEST_DUEDATA_IN

        Description
        INCLUDE BAPI_REQUEST_DUEDATA_OUT
        INCLUDE BAPI_DATAELEMENT

        Description
        In this import parameter you define which execution data in thetemplate should be changed. Select all fields where data needs to bechanged.
        INCLUDE BAPI_DATAELEMENT

        Value range
        INCLUDE BAPI_REQUEST_X

        Description
        INCLUDE BAPI_REQUEST_ITEM_IN
        INCLUDE BAPI_DATAELEMENT

        Description
        INCLUDE BAPI_REQUEST_ITEM_OUT
        INCLUDE BAPI_DATAELEMENT

        Description
        In this import parameter you define which request items in the templateshould be changed. Select all fields where data needs to be changed.
        INCLUDE BAPI_DATAELEMENT

        Value range
        INCLUDE BAPI_REQUEST_X

        Description
        INCLUDE BAPI_REQUEST_LOCKS
        INCLUDE BAPI_DATAELEMENT

        Description
        INCLUDE BAPI_TABLE