Problem in vendor invoice creation through BAPI
I am trying to create vendor invoice using bapi_acc_document_post but what value have be passed to obj_key and obj_typ fields of header is not clear to me.
regards,
anu
Hi,
Don't pass any values to OBJ_TYPE,OBJ_KEY. Many threads are available in SDN regarding this BAPI.
Search SDN to get more details.
Regards
Vinod
Similar Messages
-
Vendor Invoice creation through EDI (Transaction MIRO)
Dear All,
We want to implement Vendor Invoice creation thro EDI .(Transaction
MIRO)
We are not finding any suitable EDI Function Module in SAP which
would take care of more than 20 items and run a MIRO or any
equivalent transaction .
Can any one please advise if any Function module exists ? We need it for
Invoice creation with GR reference as well as without GR reference .
Thanks
Sanjay.Thanks Naren,
I will come back after checking the fn module.
- Sanjay -
Vendor invoice creation using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I am trying to create vendor invoice(FB60) using BAPI_ACC_DOCUMENT_POST.
Could anyone please let me know what all mandatory fields we have to pass in vendor item and header to create this ?
Regards,
Anubhuti PandeyHi,
Please call the FM BAPI_ACC_DOCUMENT_POST and try with the following parameters:
Function module to post the accounting document
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
" EXPORTING
documentheader = w_documentheader
" TABLES
accountgl = i_accountgl
accountreceivable = i_accountreceivable
accountpayable = i_accountpayable
currencyamount = i_currencyamount
return = i_return
contractitem = i_contractitem.
The required fields in the header document:
w_documentheader-bus_act
w_documentheader-username = sy-uname. "Username
w_documentheader-header_txt
w_documentheader-comp_code
w_documentheader-doc_date
w_documentheader-pstng_date = sy-datum.
w_documentheader-trans_date " Transaction date value as per document date
w_documentheader-fisc_year = sy-datum(4).
w_documentheader-doc_type
Pass the necessary information in the account GL and accounts payable.
I hope this helps you in some way. -
Service PO Invoice posting through BAPI
Hi Gurus,
Please help me to resolve the issue explained below:
We are using a third party tool for scanning incoming invoices from vendor.The scanned invoice details pass though SAP Interface and with the help of standard BAPI_INCOMINGINVOICE_CREATE in SAP ECC, invoices are automatically posted.
Till now , we only had material/Goods PO invoices which use to get posted with quantity blocks before GR done.In future,SAP PM
module will be implemented and service PO invoices will also be posted using this process.We have following issues for posting
of invoices for service items:
1.For service PO Invoice to get posted though BAPI, service entry number is mandatory without which system does not allow to post the invoices that is we can not have quantity blocked invoices if services have not been entered for service items.Even invoices can not be parked without service entry sheet no. for service items using BAPI.Please advise how this scenario can be handled.
2.Second scenario is that if a particular service line has multiple service entry sheet numbers then which service entry sheet number should system use to post the invoice?
Kindly advise.
Thanks & Regards,
NitiDear Vipin,
May I assume the following scenario. When you post an invoice manually and there's a small difference between the vendor amount and the total of the suggested amounts on items (plus VAT), you just adjust one of the items or enter unplanned delivery costs and this way avoid the disbalance.
However, when you post the invoice automatically through BAPI, no such adjustment is made and the system tries to post the difference to the account defined behind the account key DIF. For this posting the system shall assign a tax code. One way to define this code is to assign the default tax codes in IMG for IV -> Incoming Invoice -> Maintain Default Values for Tax Codes.
Or just make sure you define all the item amounts explicitly in the BAPI and there's no disbalance.
BR
Raf -
Configuring double invoice check for vendor invoices posted through FB60
Dear all
Can anyone tell me how to configure double invoice check for vendor invoices posted through FB60.
for miro documents..we can use Tcode OMRDC
Is there any such tcode which can be used for configuring fi invoices for double checking..
regards
ExpertiaDear Expertia,
In FI,when checking for duplicated invoices, the system compares the
following :Vendor, currency, company code, gross amount of the invoice,
reference document number and Invoice document date.
SAP Note 305201 clarifies this in a more details; please read it.
The following fields must be identical for Duplicate invoice check
Company code (BUKRS)
Vendor number (LIFNR)
Currency (WAERS)
Reference number (XBLNR)
Amount in document currency (WRBTR)
Document date (BLDAT)
If the document is having any one of the above filed different then the
system does not consider it as a duplicate invoice.
Also It will check duplicate invoice check in vendor master data and
in posting key is there check box selected for sales related
The setting you making in OMRDC i.e Materials management->Logistics
Invoice Verification->Incoming Invoice ->Set Check for Duplicate
Invoices is only valid for MM and not FI invoices posted via FB60/FB65
You should check the F1 help on field "Chk double inv." (LFB1-REPRF)
in the relevant vendor master record (transaction FK03).
Please also check, that message F5 117 has been set correctly in the
IMG using this path:
Financial Accounting -> Financial Accounting Global Settings ->
Document -> Default Values for Document Processing -> Change Message
Control for Document Control For Document Processing
Finally & mainly, go to the relevant posting key is defined as sales
related in transaction OB41. You have to flag this field if the
duplicate invoice check should work.
I hope this helps You.
mauri -
Problem of BOM components uploading through BAPI,for the Network(CN01)
Hello,Friends,
Iam PP consultant and facing a problem of BOM components uploading through BAPI,for creating of the Network (CN21)
we have 300 components in the network activity and while uploading the BOM through BAPI , only 295 components has been uploaded.Others components has not uploaded.
Please suggest me what will be the Problem? and
What is the solution for the same?
Regards,
MYSin customizing availability checked has been applied ,for this reason one additional screen is appearing in BAPI for all these components
How this screen could be by passed -
Required BAPI for Vendor Invoice Creation
Hi,
The transaction code for creation a vendor invoice is FB60. Is there any BAPI to create VENDOR INVOICE.
Regards!
kannancheck...
<b>BAPI_ACC_INVOICE_RECEIPT_POST</b> -
Vendor invoice posting through IDOC - Cost center determination (OBCC)
Dear experts
As per SAP Notes 31126 and 137686 I have maintain all configuration settings for "Automatic posting of vendor invoice from Billing" in different company codes.
It is working perfectly the way we need,
we need help in Transaction Code "OBCC - Assign Additonal Accounts Assignments for EDI Procedure" here system asks for "Account Assignment ID" for determination of cost center for invoice flowing through IDOC.
I would like to know, what values I can give here so that system will determine the relvant cost center in KR document posted in FI.
SAP Note says minimum entry here as " * "
At present system is determining only one cost center for all services mapped.
Thanks advance for the help.
Best regards
S. Habib Pasha.Hi all
request your help on above issue.
reg
S HABIB PASHA -
Hi All,
The client wants entry in reference & Doc header field compulsory for a few company codes through a validation while entering a vendor invoice. When I make an entry only in reference field & hit enter, I get the message - Reference & Doc header text mandatory. Then I hit enter to make the message go away. When I click on details tab to make an entry in Doc header, the message pops up again. So, I have to hit enter again to make the message go away & enter the header text.
This process in laboriuos for the user. Is there any work around for this? I don't want the message to come twice.
Thanks,
LakshmiHi
Try this option:
Retain your validation as it is at doc. header level. But in addition to this, create the following:
1. Create the following four subsitution rules at header level.
If doc. header text = blank then replace it with '.' (single dot)
If reference field = blank then replace it with '.' (single dot)
2. Create the following validation rule at doc. completion leve l(callup point 3)
if doc. header text or reference is blank or '.', then display error.
By this way, if doc. header text or reference field is left blank, the system will show the error once and replace the fields with dot. Later after the document is fully entered and stimulated, it will throw the same error if still these fields are not entered.
I hope this will resolve your issue.
Regards -
Vendor Invoice posting through IDOC's
Hi All,
I had a requirement of Posting Vendor Invoices from a third party to R/3 through IDOC's. I want to know how can this be possible like what is the procedure to be followed? Any Inputs will be rewarded
Regards
SrikanthHi Gurus,
I have some documents which are not getting cleared and showing the followig error message Posting Only Possible With Zero Balance: corret your document
even if the debit and credit are balancing
I have checked the document it has value in Hard currecny( Local Currency 3) But the hard currency is deactivated in the Year 2007 only. so we are unable to clear the Openitems.
Can you please help to resolve the issue
Thanks In advance
Anand.Kandarpa -
Hi Experts ,
I have to create a Vendor invoice for the open items to run the payment proposal and than run payment run,Could you please tell me the steps needed to create the vendor invoice , it's very urgent .
waiting for an early relpy ,
thanks in advance ,
ArunHi,
Please follow this documentation.
Creating vendor master:
http://help.sap.com/saphelp_erp2004/helpdata/en/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
Entering AP transaction:
http://help.sap.com/saphelp_erp2004/helpdata/en/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
regards, -
Problem while posting FI document through BAPI - Multiple Exchange Rates
I am able to post FI document with multiple exchange rates for the same currency using FB01. But, when I try to post the same document details using BAPI_ACC_DOCUMENT_POST , it throws an error F5 701 - Inconsistent Rate for Currency XXX .
How can we avoid this error while posting through BAPI ?
Thanks & Regards,
NidhiHi Nidhi,
Value range
The field CURR_TYPE (currency type) describes the role played by a
currency in the SAP System.
The currency type can take on the following values, for example:
o 00 Transaction currency
o 10 Company code currency
o 20 Controlling area currency
o 30 Group currency
o 40 Hard currency
o 50 Index-based currency
o 60 Global company currency
If an entry is not made in the field CURR_TYPE, the default value "00"
is retained.
If only one data record is transferred in transaction currency for each
line item, the field CURR_TYPE does not need to be filled out. If
several data records are transferred for each line item, the currency
type must be entered for each record.
If the parameter CurrencyAmount is filled with the currency fields,
a complete document check including characteristics and value
components of profitability analysis (CO-PA). Otherwise, the account
assignment objects are checked.
Check the BAPI documentation SE37.
Regards,
Boobalan Suburaj -
FB60 - Vendor Invoice Creation Information to be extracted in BW
Hi Experts,
I have typical requirement where in I have to create a BW report. In the report the information are coming from FB60 transaction.
The fields in FB60 are pointing to a structure INVFO. I am not able to find out the base tables, after creating an entry in FB60, the entries goes inti which table?
I have to build a generic datasource to meet this requirement.
Please suggest me how to procee ahead.
Regards,Considering if you already have all of your financial data ( fi documents) in BW, you can do a query on the ods which has this info at the document level and then filter on the document type if you want to have a list of just the vendor invoices.
The datasource used for transporting all of fi is 0FI_GL_4.
Hope that helps
Nandita -
Problem in Vendor Open Items through F-44
Dear All,
I am facing below problem.
Invoice made in 2008 with Foreign Exchange Rate 49.65 and Currently we are clearing that Invoice through F-44 but now Exchange rate is 44.70. So while clearing the system is showing difference in F-44. In FBL1N (Open Items) balance is Zero.
We know that this is because of Difference in Exchange Rate but how to clear this difference amount.
Kindly help me out on this problem.
Regards,
YadayyaHi:
When you apply invoice against its corresponding payment, system should automatically pick exchange rate difference upon simulation of document . Apply the invoice against its payment and simulate the document it will show the exchange rate difference posted. Go to F-44....Process Open item..Editing option...Just check selected items initially selected. You will not face the issue again.
Regards
Edited by: Atif Farooq on Jul 29, 2011 10:09 AM -
Problem with Multiple record creation using BAPI BAPI_PRICES_CONDITION
Hi,
I am working on IS Media Sales And Distribution wherein i am using BAPI BAPI_PRICES_CONDITION for condition record creation in TCODE JC9B. I am able to create one record using this BAPI for one sales promotion but having problem while creation of multiple records for the same sales promotion wherein my internal table have multiple records. It gives me error that data in BAPICONDIT is missing.
I am aatching followig code for reference
BAPI have field of varkey which i am filling as combination of sales org. + distn channel + sales promotion + delivery type
In this varkey delivery type is changing for sales promotion Can be said that one sales promotion can have multiple delivery type .
Am i giving the correct varkey for each itration of internal table ?
I am attaching code for reference.
Here loop it_cond contain one promotion and multiple delivery type.
sales org distn ch promotion delivery
0100 01 zsalesprom 03
0100 01 zsalesprom z3
LOOP AT it_cond INTO wa_cond.
Get next condition number
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'KONH'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
number = number
QUANTITY =
RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here i am concacating varkey for each new delivery
CLEAR : l_min,l_length,l_var.
CONCATENATE wa_cond-vkorg wa_cond-vtweg wa_cond-wrbakt INTO l_var.
l_length = STRLEN( l_var ).
IF l_var+14(2) IS INITIAL.
WRITE wa_cond-lifart TO L_VAR+14.
l_length = STRLEN( l_var ).
ENDIF.
W_LINE = W_LINE + 1.
*First table in BAPI
wa_bapicondct-operation = '009'.
wa_bapicondct-cond_usage = 'A'.
wa_bapicondct-table_no = '506'.
wa_bapicondct-applicatio = 'J0'.
wa_bapicondct-cond_type = 'RATE'.
wa_bapicondct-varkey = l_var.
wa_bapicondct-valid_to = wa_cond-datbi.
wa_bapicondct-valid_from = wa_cond-datab.
wa_bapicondct-cond_no = number. "
APPEND wa_bapicondct TO it_bapicondct.
*Second table in BAPI
wa_bapicondhd-operation = '009'.
wa_bapicondhd-cond_no = number.
wa_bapicondhd-cond_usage = 'A'.
wa_bapicondhd-table_no = '506'.
wa_bapicondhd-created_by = sy-uname.
wa_bapicondhd-creat_date = sy-datum.
wa_bapicondhd-applicatio = 'J0'.
wa_bapicondhd-cond_type = 'RATE'.
wa_bapicondhd-varkey = l_var.
wa_bapicondhd-valid_from = wa_cond-datab.
wa_bapicondhd-valid_to = wa_cond-datbi.
APPEND wa_bapicondhd TO it_bapicondhd.
*Third table in BAPI
wa_bapicondit-operation = '009'.
wa_bapicondit-cond_no = number.
wa_bapicondit-cond_count = wa_cond-cond_count.
wa_bapicondit-applicatio = 'J0'.
wa_bapicondit-cond_type = 'RATE'.
wa_bapicondit-calctypcon = 'C'.
wa_bapicondit-scaletype = 'A'.
wa_bapicondit-cond_value = wa_cond-kbetr.
wa_bapicondit-condcurr = wa_cond-konwa.
wa_bapicondit-promotion = wa_cond-wrbakt.
APPEND wa_bapicondit TO it_bapicondit.
*Fourth table in BAPI
wa_bapicondqs-operation = '009'.
wa_bapicondqs-cond_no = number.
wa_bapicondqs-cond_count = wa_cond-cond_count.
wa_bapicondqs-currency = wa_cond-kbetr.
wa_bapicondqs-condcurr = wa_cond-konwa.
wa_bapicondqs-cond_unit = 'EA'.
wa_bapicondqs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondqs TO it_bapicondqs.
*Fifth table in BAPI
wa_bapicondvs-operation = '009'.
wa_bapicondvs-cond_no = number.
wa_bapicondvs-cond_count = wa_cond-cond_count.
wa_bapicondvs-currenckey = wa_cond-konwa.
wa_bapicondvs-currenciso = wa_cond-konwa.
wa_bapicondvs-currency = wa_cond-kbetr.
wa_bapicondvs-condcurr = wa_cond-konwa.
wa_bapicondvs-curren_iso = wa_cond-konwa.
wa_bapicondvs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondvs TO it_bapicondvs.
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_INITIALMODE = ' '
PI_BLOCKNUMBER =
TABLES
ti_bapicondct = it_bapicondct
ti_bapicondhd = it_bapicondhd
ti_bapicondit = it_bapicondit
ti_bapicondqs = it_bapicondqs
ti_bapicondvs = it_bapicondvs
to_bapiret2 = it_bapiret2
to_bapiknumhs = it_bapiknumhs
to_mem_initial = it_cnd_mem_initial
EXCEPTIONS
update_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
RETURN =
CLEAR : wa_bapicondct,wa_bapicondhd,wa_bapicondvs,wa_bapicondqs.
CLEAR : wa_bapicondit.
ENDLOOP.
ENDIF.
ENDIF.
Kindly Suggest.
Thanks
ParagSolved By myself
There is problem while passing data to internal table for item level
Maybe you are looking for
-
How do you add a link to another website in you PDF using LiveCycle?
Can you add a link in your PDF in livecycle that opens a new window that that takes you to a predetermined website?
-
SM37 Job is not visible in SM50
Hello Gurus, I am seeing a peculiar situation- We ran a job and after a while I am seeing it has dissappeared from SM50 but has "Active" status in SM37. *We have only one application server. Does anybody have any idea how it could be cancelled. C
-
Confirm item deletion in shopping cart.
Hi all, MySAP SRM 5.5 Currently, when I create a SC if I delete an item, the item is deleted without confirmation message. Someone can tell me what to do to have this message please? Thank's in advance.
-
I'd like to purchase "iTunes Match" with the $25 gift card that I previously purchased. However, it requires me to register and pay with credit cards. What can I do to get "iTunes Match" with the $25 credit that I already have without paying with cre
-
MTS Files appear to skip frames at clip transitions?
My Canon Vixia HF S200 creates multiple sequentially numberd MTS files for long sequences. Snapping them together in Premier Pro CS5 yields a 'jump' between clips, as if frames were missing. Now, sombody on another forum insisted that there were no f