Fonction SAP BAPI_REQUEST_CREATE - BAPI: Create Request

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 BAPI Import: Request Header Data
REQUESTNUMBEREXT BAPIREQUEST_KEY-REQUESTNUMBER C 12 X 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
REQUESTITEMIN BAPIREQUEST_ITEM_IN 392 X BAPI Import: Request Items
REQUESTITEMOUT BAPIREQUEST_ITEM_OUT 546 X BAPI Export: Request Items
REQUESTLOCKS BAPIREQUEST_LOCKS 28 X BAPI: Processing Locks in Request Items
RETURN BAPIRET2 548 Return Parameters

Functionality
You can use this method to create a request. All table parameters apartfrom REQUESTITEMIN are optional and depend on the request class.
The Return parameter can deliver several message numberssimultaneously.

Notes
The BAPI uses the concept of customer enhancements with BAPI TableExtensions. 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 datatransferred 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, under Program Enhancements ->Define Customer-Specific Function Modules .
    Earmarked funds cannot be created automatically in the BAPI. Firstcreate an earmarked fund and then reference it when you create therequest.

    Description
    INCLUDE BAPI_REQUEST_HEAD_OUT
    INCLUDE BAPI_DATAELEMENT

    Description
    This export parameter contains the number of the request that youcreated.
    INCLUDE BAPI_REQUEST_CONTROL
    INCLUDE BAPI_DATAELEMENT

    Description
    In this import parameter you define the header data of the request.
    Using field REQUESTCLASS you can define theRequest Class and using the REQUESTCATEGORYfield, you can define the Request Category of therequest 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 component Public Sector Contract
    • Accounts Receivable and Payable)
      • ' ' (no value): Request template

      • The following values are allowed for the request category:
        • 1: Acceptance request (only for component Public Sector
        • Contract Accounts Receivable and Payable)
          • 2: Payment request (only for component Public Sector Contract
          • Accounts Receivable and Payable)
            • 3: Request (all components except Public Sector Contract
            • Accounts Receivable and Payable)

              Default

              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 that were generated fromthe request created provided that the documents were generated directlyin Customizing.

              Description
              INCLUDE BAPI_REQUEST_DUEDATA_IN
              INCLUDE BAPI_DATAELEMENT

              Description
              INCLUDE BAPI_REQUEST_DUEDATA_OUT
              INCLUDE BAPI_DATAELEMENT

              Description
              INCLUDE BAPI_REQUEST_ITEM_IN
              INCLUDE BAPI_DATAELEMENT

              Description
              INCLUDE BAPI_REQUEST_ITEM_OUT
              INCLUDE BAPI_DATAELEMENT

              Description
              INCLUDE BAPI_REQUEST_LOCKS
              INCLUDE BAPI_DATAELEMENT

              Value range
              You can block the following processes in a document and enter them in arequest:
              Typ,,Process
              01,,Dunning
              04,,Interest Calculation
              09,,Clearing
              10,,Payment

              Description
              INCLUDE BAPI_TABLE