×

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




Sapass

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



Index

SingleRemunRequest

SingleRemunRequest


Definition


The business object Single Vendor Billing Document is a request
for remuneration in which the invoicing party bills for a single business transaction.


Structure


There are the following types of vendor billing document:


  • Invoice

  • Credit memo

  • Reversal

  • A vendor billing document consists of several items each of which
    contains the quantity of a material or service billed by the invoicing party.


    11-Dec-2005


    Methods

    Available Methods


    • CancelMultiple : Reverse [ BAPI_SINGLEREMUREQS_CANCELMULT ]
    • ChangeMultiple : Change [ BAPI_SINGLEREMUREQS_CHANGEMULT ]
    • CreateMultiple : Create Vendor Billing Documents [ BAPI_SINGLEREMUREQS_CREATEMULT ]
    • GetList : Determine Documents [ BAPI_SINGLEREMUREQS_GETLIST ]
    • ReleaseMultiple : Release to Accounting [ BAPI_SINGLEREMUREQS_RELEASE ]

    11-Dec-2005


    CancelMultiple

    CancelMultiple


    You use this method to reverse vendor billing documents.

    You use structure "HEADDATAIN" to enter the document number.

    Messages are displayed via "RETURN".


    11-Dec-2005


    ChangeMultiple

    ChangeMultiple


    You use this method to change vendor billing documents.

    You use structures "HEADDATAINX" and "ITEMDATAINX" to select the documents and document items, and mark the fields to be changed.

    You use structures "HEADDATAIN" and "ITEMDATAIN" to enter the new values.


    In the same way, use can use structures "CONDITIONSX" and "CONDITIONS" to change condition data.

    Once a vendor billing document has been changed successfully, you canuse structures "HEADDATAOUT" and "ITEMDATAOUT" to display the changed document.


    Any errors that occurred are returned in parameter "RETURN".

    You can use structure EXTENSIONIN to change customer-specific fields.You must do this via an Append structure to structure BAPI_TE_KOMLFKEfor header data and BAPI_TE_KOMFKPE for item data. For this BAPI, the
    field DOCUMENT_NUMBER must be used as the key field, and field REF_DOC must be left empty.

    Notes

    Changeable fields

    Header data

    DOCUMENT_NUMBER Document number

    BILL_DATE Posting date

    CURRENCY Currency OS NCY


    CURRENCY_ISO ISO code currency

    DOC_DATE Document date

    REF_DOC_NO Reference document number

    PAYMT_REF Payment reference

    EXCH_RATE Directly quoted exchange rate

    EXCH_RATE_V Indirectly quoted exchange rate


    EX_RATE_FX Indicator for fixing exchange rate

    TRANS_DATE Date for currency translation

    PMNTTRMS Terms of payment key

    DSCNT1_TO Number of days for payment in first condition

    DSCT_PCT1 Cash discount percentage for first condition


    DSCNT2_TO Number of days for payment in second condition

    DSCT_PCT2 Cash discount percentage for second condition

    DSCNT3_TO Number of days for the net due date

    ADD_VAL_DY Additional value days

    FIX_VAL_DY Fixed value date


    PMNT_METH Payment method

    INV_LIST_DATE Posting date of remuneration list

    TESTRUN Switch to simulation mode (no database changes)

    Item data

    DOCUMENT_NUMBER Document number

    ITEM Item

    VEND_PART Vendor sub-range


    COND_GROUP Condition groups

    TAX_CODE Input tax code

    CASH_DISC Indicator: subject to cash discount

    REF_DOC_HEAD Document number of preceding document of business partner

    REF_DOC_ITEM Item number of preceding document of business partner


    PDOC_CAT Billing document type of preceding document of business
    partner

    SHORT_TEXT Short text

    TAXJURCODE Tax Jurisdiction Code

    BUS_AREA Business area

    COSTCENTER Cost center

    PROFIT_CTR Profit center


    NET_PRICE Net price

    PROMOTION Promotion

    PRE_VENDOR Prior vendor

    BILL_REASON Reason for transaction

    QUANTITY Quantity

    BILL_UNIT Unit of measure

    ISOCODE_UNIT ISO code for unit of measure


    SETT_ITEM Active for subsequent settlement

    PRICE_DATE Price determination date

    NET_WEIGHT Net weight

    GROSS_WT Gross weight

    UNIT_OF_WT Weight unit

    UNIT_OF_WT_ISO Weight unit in ISO code

    VOLUME Volume


    VOLUMEUNIT Volume unit

    VOLUMEUNIT_ISO Volume unit in ISO code

    VAL_TYPE Valuation type

    VAL_CAT Valuation category

    BON_GRP1 Settlement group 1 (Purchasing)

    BON_GRP2 Settlement group 2 (Subsequent Settlement)


    BON_GRP3 Settlement group 3 (Subsequent Settlement)

    POINTS Number of points

    POINTS_UNIT Points unit

    POINTS_UN_ISO Points unit in ISO code


    11-Dec-2005


    CreateMultiple

    CreateMultiple


    You use this method to create vendor billing documents.

    The document header data must be included (via the structure "HEADDATA") as an input parameter.

    You enter item data via table "ITEMDATA". You can assign item numbersmanually by entering data in in the relevant fields, or have the system do this in line with the Customizing settings.


    Once a vendor billing document has been created successfully, thesystem returns the document data and the document header data (via structure "HEADDATAOUT").

    Any errors that occurred are returned via parameter "RETURN".

    The table "ITEMDATAOUT" provides some detailed information on the document items.


    You can use structure "CONDITIONS" to include additional conditions.

    You can use structure "EXTENSIONIN" to include customer-specificfields. You must include these via an Append structure to structure"BAPI_TE_KOMLFKE" for the header data and "BAPI_TE_KOMFKPE" for the
    item data. For this BAPI, the field "REF_DOC" must be used as the key field, and field "DOCUMENT_NUMBER" must be left empty.

    Notes

    Header data

    1. Required entries

    General

    BILL_TYPE Billing document type

    REF_DOC Sequence number that uniquely identifies an external
    document


    DIFF_INV Invoicing party

    GROSS_AMNT Total invoice amount

    COMP_CODE Company code

    PURCH_ORG Purchasing organization

    PUR_GROUP Purchasing group

    Currency Document currency


    2. Optional entries:

    BILL_DATE Billing document date

    CURRENCY_ISO ISO code for currency

    DOC_DATE Document date

    REF_DOC_NO Reference document number

    PAYMT_REF Payment reference

    EXCH_RATE Directly quoted exchange rate


    EXCH_RATE_V Indirectly quoted exchange rate

    EX_RATE_FX Indicator for fixing exchange rate

    TRANS_DATE Date for currency translation

    PMNTTRMS Terms of payment key for invoicing party

    DSCNT1_TO Number of days for payment in first condition


    DSCT_PCT1 Cash discount percentage for payment in first condition

    DSCNT2_TO Number of days for payment in second condition

    DSCT_PCT2 Cash discount percentage for payment in second condition

    DSCNT3_TO Number of days for net due date


    If you include a term of payment key, you must not include terms of payment, and vice versa.

    ADD_VAL_DY Additional value days of the invoicing party

    FIX_VAL_DY Fixed value date of the invoicing party

    You can only include one of these two.


    PMNT_METH Payment method

    INV_LIST_DATE Posting date of the remuneration list

    SOURCE_TYPE Type of preceding document

    TESTRUN Switch to simulation mode (no changes to the DB)

    Item data

    1. Required entries:


    REF_DOC Sequence number that uniquely identifies an external
    document. This is used to assign the item data to the
    header data.

    TAX_CODE Input tax code

    NET_AMOUNT Net amount of the item


    QUANTITY Quantity

    MATERIAL Material

    2. Optional entries:

    General

    REF_ITEM Document item

    CASH_DISC Indicator: subject to cash discount

    BILL_UNIT Unit of measure

    REF_DOC_HEAD Document number of the preceding document of the
    business partner


    REF_DOC_ITEM Item number of the preceding document of the business
    partner

    PDOC_CAT Billing document type of the preceding document of the
    business partner

    SHORT_TEXT Short text

    TAXJURCODE Tax Jurisdiction Code


    BUS_AREA Business area

    COSTCENTER Cost center

    PROFIT_CTR Profit center

    NET_PRICE Net price

    PRICE_UNIT Pricing unit

    ISOCODE_UNIT ISO code for unit of measure

    QTY_NUM Conversion factor (numerator) for units of measure


    QTY_DENOM Conversion factor (denominator) for units of measure

    PROMOTION Promotion

    PRE_VENDOR Prior vendor

    BILL_REASON Reason for transaction

    SETT_ITEM Item for subsequent settlement

    PRICE_DATE Date for price determination


    NET_WEIGHT Net weight

    GROSS_WT Gross weight

    UNIT_OF_WT Weight unit

    UNIT_OF_WT_ISO Weight unit in ISO code

    VAL_TYPE Valuation type

    VAL_CAT Valuation category

    BON_GRP1 Settlement group 1 (Purchasing)


    BON_GRP2 Settlement group 2 (Subsequent Settlement)

    BON_GRP3 Settlement group 3 (Subsequent Settlement)

    POINTS Number of points

    POINTS_UNIT Points unit

    POINTS_UN_ISO ISO code for points unit

    Only if logistics data is entered


    MATL_GROUP Material group

    MATERIAL Material

    VEND_PART Vendor sub-range

    COND_GROUP Condition group of vendor

    PLANT Plant


    11-Dec-2005


    GetList

    GetList


    You can use this method to select vendor billing documents.

    These are returned via structures "HEADDATAOUT" and "ITEMDATAOUT".

    Messages are contained in structure "RETURN".

    Notes

    Struktur

    DOCUMENTNUMBERRANGE Document number


    VENDORRANGE Payment recipient

    PURCHORGRRANGE Purchasing organization

    PURGROUPRANGE Purchasing group

    COMPCODERANGE Company code

    BILLDATERANGE Posting date

    INVLISTDATERANGE Remuneration list date


    ACCTSTATUSRANGE Posting status

    PAYTYPERANGE Settlement type

    BILLTYPE Billing type

    DOCDATERANGE Document date

    REFDOCNORANGE Reference

    ALLOCNMBRRANGE Assignment

    PAYMTREFRANGE Payment reference


    For each structure, you can choose "Inclusive" or "Exclusive to limit the options and value ranges.


    11-Dec-2005


    ReleaseMultiple

    ReleaseMultiple


    You use this method to release vendor billing documents to Financial Accounting.

    You use various structures to select the documents to be released.

    You use structure "HEADDATAOUT" to display the released vendor billing documents.

    Messages are issued via "RETURN".


    Notes

    Structure

    DOCUMENTNUMBERRANGE Document number

    VENDORRANGE Payment recipient

    PURCHORGRRANGE Purchasing organization

    PURGROUPRANGE Purchasing group

    COMPCODERANGE Company code


    BILLDATERANGE Posting date

    INVLISTDATERANGE Remuneration list date

    DOCDATERANGE Document date

    REFDOCNORANGE Reference

    ALLOCNMBRRANGE Assignment

    PAYMTREFRANGE Payment reference


    For each structure, you can use "Inclusive" and "Exclusive" to restrict options and value areas.


    11-Dec-2005