Fonction SAP BAPI_CONTRACT_GETDETAIL - BAPI to Display Details of a Purchase Contract

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACCOUNT_DATA BAPIFLAG-BAPIFLAG C 1 SPACE X Account Assignment Data
CONDITION_DATA BAPIFLAG-BAPIFLAG C 1 SPACE X Conditions
ITEM_DATA BAPIFLAG-BAPIFLAG C 1 'X' X Item Data
PARTNER_DATA BAPIFLAG-BAPIFLAG C 1 SPACE X Partner
PURCHASINGDOCUMENT BAPIMEOUTHEADER-NUMBER C 10 Purchasing Document Number
RELEASE_DATA BAPIFLAG-BAPIFLAG C 1 SPACE X Release Order Documentation
TEXT_DATA BAPIFLAG-BAPIFLAG C 1 SPACE X Texts (Header And Item)

Paramètre Reférence Type Long. Description
HEADER BAPIMEOUTHEADER u 347 Header Data Outline Agreement

Paramètre Reférence Long. Facultatif Description
ACCOUNT BAPIMEOUTACCOUNT 420 X Account Assignment Outline Agreement
DELIVERY_ADDRESS BAPIMEOUTADDRDELIVERY 1301 X PO Item: Address Structure BAPIADDR1 for Inbound Delivery
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
HEADER_TEXT BAPIMEOUTTEXT 139 X Header Texts Outline Agreement
HEAD_CONDITION BAPIMEOUTHEADERCOND 101 X Header Conditions Outline Agreement
HEAD_COND_SCALE_QUAN BAPIMEOUTSCALE 39 X Quantity Scale
HEAD_COND_SCALE_VAL BAPIMEOUTSCALEVALUE 46 X Value Scale
HEAD_COND_VALIDITY BAPIMEOUTHEADVALIDITY 26 X Header Conditions Validity of Outline Agreement
ITEM BAPIMEOUTITEM 1000 X Item Data Outline Agreement
ITEM_CONDITION BAPIMEOUTCONDITION 106 X Conditions Item Outline Agreement
ITEM_COND_SCALE_QUAN BAPIMEOUTITEMSCALEQUAN 44 X Quantity Scale
ITEM_COND_SCALE_VALUE BAPIMEOUTITEMSCALEVAL 51 X Value Scale
ITEM_COND_VALIDITY BAPIMEOUTVALIDITY 35 X Validity Period of Conditions in Agreement
ITEM_TEXT BAPIMEOUTITEMTEXT 144 X Item Texts Outline Agreement
PARTNER BAPIMEOUTPARTNER 41 X Partner Outline Agreement
RELEASE_DOCU BAPIMEOUTRELEASEINFO 112 X Release Order Documentation
RETURN BAPIRET2 548 X Return Parameter(s)

Functionality
BAPI for displaying details of a purchase contract.

Example
Sample Code

Further information
The BAPI for displaying purchase contract details invokes the followingauthorization objects of the application with the activity 03:

  • M_RAHM_BSA Document type in contract

  • M_RAHM_EKG Purchasing group in contract

  • M_RAHM_EKO Purchasing organization in contract

  • M_RAHM_WRK Plant in contract
  • Description
    The parameter contains the header data of the purchase contract.

    Description
    Output of the account assignment data.

    Value range
    The parameter can have the following instances:

    • 'X' means that the account assignment data for all items is read out

    • ' ' means that the account assignment data is not passed on to the
    • invoker

      Description
      Output of the conditions is desired.

      Value range
      The parameter can have the following instances:

      • 'X' means that the conditions for all items are read out

      • ' ' means that the conditions are not passed on to the invoker
      • Description
        Output of the item data is desired.

        Value range
        In the standard system, output of item data is active.

        Description
        Output of the partner data is desired.

        Value range
        The parameter can have the following instances:

        • 'X' means that the partner data for all items is read out

        • ' ' means that the partner data is not passed on to the invoker
        • Default
          In the standard system, the parameter is inactive.

          Description
          Uniquely describes the document number of the purchase contract.

          Description
          Output of the release documentation is desired.

          Value range
          The parameter can have the following instances:

          • 'X' means that the release documentation for all items is read out

          • ' ' means that the release documentation is not passed on to the invoker
          • Default
            In the standard system, the parameter is inactive.

            Description
            Output of the header and item long texts is desired.

            Value range
            The parameter can have the following instances:

            • 'X' means that the header and item long texts for all items are read out

            • ' ' means that the header and item long texts are not passed on to the
            • invoker

              Default
              In the standard system, the parameter is inactive.

              Description
              The parameter contains the account assignment data for the contractitem.

              Description
              The parameter contains the delivery address of the contract item.

              Description
              INCLUDE BAPI_CONTRACT_SAG_MEANING OBJECT DOKU ID TX

              Default
              INCLUDE BAPI_CONTRACT_SAG_MEAN_DEF1 OBJECT DOKU ID TX

              Description
              The parameter contains the long texts of the document header per textID.

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

              Description
              The parameter contains the general item data for a purchase contractinstance.

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

              Description
              INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

              Description
              The parameter contains the long texts per item and text ID.

              Description
              The parameter contains the partner data for a purchase contract. Thepartners can be represented at the following levels:

              • Purchasing organization

              • Purchasing organization and plant

              • Purchasing organization, plant, and vendor subrange
              • Description
                The parameter contains the release order documentation per contractitem.

                Description
                With this parameter, messages regarding exception situations or successmessages are returned to the calling program.
                Currently, it is only possible to assign the messages for the followingstructures/tables:

                • Header data HEADER

                • Item data ITEM

                • Account assignment data ACCOUNT

1548033Authorization check on transaction code ME32K