×

[PR]この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。




Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>TradingContract



Index

TradingContract

TradingContract


The business object Trading Contract is a request from an
ordering party to trade (receive materials and services) with contractors (order recipients).

A sales area receives the order and becomes responsible for fulfilling the contract.

Structure

A trading contract consists of several items containing the quantity of a material or service ordered.


The total quantity of a contract item is split into subitems, sorted by
contractors from which the part of the item is to be ordered.


The quantity of a contract subitem can be split into schedule lines
that contain the related delivery dates. Lieferterminen enthalten.

Integration

In addition to the ordering party as customer, other business partners
with various partner functions (e.g. goods recipient) can be entered.


11-Dec-2005


Methods

Available Methods


  • Change : Change from Template Data [ BAPI_TRADINGCONTRACT_CHANGE ]
  • Create : Create from Template Data [ BAPI_TRADINGCONTRACT_CREATE ]
  • GetFlow : Read Document Flow [ BAPI_TRADINGCONTRACT_GET_FLOW ]
  • GetList : Determine Doc. Flow [ BAPI_TRADINGCONTRACT_GET_LIST ]
  • Getstatus : Determine Status for Trading Contract [ BAPI_TRADINGCONTRACT_GETSTATUS ]
  • Release : Release and Create Follow-On Documents [ BAPI_TRADINGCONTRACT_RELEASE ]

11-Dec-2005


Change

Change


You use this method to change a trading contract.

To do this, you use the document number to select the trading contractthat you want to change, and use structure "HEADDATAINX" to select (at header level) the fields to be changed.

You use structure "HEADDATAIN" to transfer the new values for the fields.


Similarly, you can change the items of the trading contract using"ITEMDATAINX", "ITEMDATAIN", "SCHEDULEDATAINX" and "SCHEDULEDATAINX".

You can change the business data and partner information using"BUSINESSDATAINX" / "BUSINESSDATAIN" and "BUSPARTYINX" / "BUSPARTYIN" respectively.


You use structures "HEADTEXTIN" and "ITEMTEXTIN" to include the texts for the contract.

Messages are issued via "RETURN".

You can display the changed document data using structures "ITEMDATAOUT", "HEADDATAOUT", "SCHEDULEDATAOUT" and "BUSINESSDATAOUT"
"BUSPARTYOUT". Texts are available in structures"HEADTEXTOUT" and "ITEMTEXTOUT".

You use structure "EXTENSIONIN" to add customer-specific fields. These must be made known via append structures for structures

  • BAPI_TE_WBHK
  • BAPI_TE_WBHKX

  • BAPI_TE_WBHI
  • BAPI_TE_WBHIX
  • BAPI_TE_WBHE
  • BAPI_TE_WBHEX
  • BAPI_TE_WBHD
  • BAPI_TE_WBHDX
  • BAPI_TE_WBHP
  • BAPI_TE_WBHPX

  • 11-Dec-2005


    Create

    Create


    You use this method to create a trading contract.

    You use structure "HEADDATAIN" to include the relevant values at contract header level.

    Similarly, you create the items of the trading contract using "ITEMDATAIN" and "SCHEDULEDATAIN".

    You transfer business data and partner information using "BUSINISSDATAIN" and "BUSPARTYIN".


    You use structures "HEADTEXTIN" and "ITEMTEXTIN" to include texts for the contract.

    Messages are issued via "RETURN".

    You can use structures "ITEMDATAOUT", "HEADDATAOUT", "SCHEDULEDATAOUT"and "BUSINISSDATAOUT" "BUSPARTYOUT" to display the document information that is created. Texts are available in "HEADTEXTOUT" and
    "ITEMTEXTOUT".

    You can use structure "EXTENSIONIN" to add customer-specific fields.These must be made available via append structures for structures

  • BAPI_TE_WBHK
  • BAPI_TE_WBHI
  • BAPI_TE_WBHE
  • BAPI_TE_WBHD
  • BAPI_TE_WBHP


  • 11-Dec-2005


    GetFlow

    GetFlow


    You use this method to provide information on the document flow of a trading contract.

    You select relevant trading contract using the document number.

    Structure "DOCUMENTFLOWOUT" provides follow-on documents for thecontract. If no follow-on documents exist, or if messages were issued, the messages are contained in structure "RETURN".



    11-Dec-2005


    GetList

    GetList


    You use this method to determine document information relating to the trading contract.

    Various selection structures are available for this.

    Document information is provided in the structures "ITEMDATAOUT","HEADDATAOUT", "SCHEDULEDATAOUT", "BUSINESSDATAOUT", and "BUSPARTYOUT".


    Texts are provided in the structures "HEADTEXTOUT" and "ITEMTEXTOUT".

    Messages are issued via structure "RETURN".


    11-Dec-2005


    Getstatus

    Getstatus


    You use this method to determine the status of a contract.

    To do this, you use the document number to select the relevant trading contract.

    You can use the language key to control the language in which the textfor the status is to be issued. The structure "APPLICATIONSTATUS" provides the status description and additional information.



    11-Dec-2005


    Release

    Release


    You use this method to create follow-on documents for a trading contract.

    You use the document number to select the relevant trading contract.You can use the "TESTRUN" indicator to simulate follow-on document generation.

    Messages are contained in structure "RETURN".



    11-Dec-2005