Create Document (Customer Invoice) in FI per Interface (Webservice, BAPI)

I try to post a accouting document in SAP FI per BAPI respeticly webserivce from outside of the system. The idea is to manage this service in the context of SAP BPM - a invoice for a customer should be entered in the system without manuell using the specific TCode.
I found to the business objekt "AcctngDocument" in the BAPI Explorer the BAPI "AcctngDocument.Post" of my ERP-System:
path: BAPI Explorer --> Accounting - General --> Accounting Interface --> AcctngDocument --> Post
function module: BAPIACC_DOCUMENT_POST_
My Problems are:
- If I test the function, I get a result but the result is not really posted in the ERP-System.
- I try to book a open item on the customer account and a item on the revenue account (G/L-Account); but I cannot decide between debit and credit respectivly a specific posting key
My Questions:
- Do somebody know the fittest function module for my problem (do I use the best function module or is there any other)?
- How can I appoint, which item should be booked on debit or credit or how can I enter a special posting key?
Thanks for help...

Hi Eli,
thanks for your both answers.
Now I know, that I don't have to find a data field to insert the posting key in the BAPI_ACC_DOCUMENT_POST. The sign of the amount determine which account get the debit or credit position.
And I know, that I have to use the BAPI_TRANSACTION_COMMIT to post a document in real (not test).
In the meantime I found the same information (in a detailed way) in SAP note 306504.
Thanks for your help again.
Best regards,
Torsten

Similar Messages

  • How do I create a custom sound/vibration profile per app, SMS text, phone, or email contact?

    I have a Verizon iPhone 4s recently upgraded to iOS 7.  I'm an IT engineer who's on call and started a new job last week with a company that doesn't provide company phones like a blackberry.  So now I get tons of company email alerts, text messages, and phone calls both private and for work.  I always have my phone switched to vibrate to filter out the noise of generic emails/texts/phone calls, but I also need to be able to configure specific emails sent from our network monitoring servers, text messages from my teammates and alerting devices, as well as phone calls from our internal tech support to be sent with sound.  Ideally I also need to be able to configure alert options in an "On-call" profile I can switch on so that I can configure alert repeats and the most annoying noise I can find so I don't sleep through network pages..  But I still want to be able to keep the default vibrate for everyone else and everything else.. How do I create a custom sound/vibration profile per app, SMS text, phone, or email contact?  In blackberry's, you can easily create different profiles to switch back/forth and configure each app/text/phone option to either a sound option or vibrate.  iPhone seems to be all vibrate or all sound, with little to no options to mix/match the two..  If Apple ever hopes to truly capture the enterprise market blackberry has, this is the most standard and essential feature on blackberries for IT professionals..  If I have to buy a third-party app for this, so be it.  But I've been searching for hours and found nothing that creates customized sound/vibrate profiles for iPhone like this (minus jailbreaking your phone, but I shouldn't have to jailbreak a $699 "smartphone" for simple sound/vibrate/alert options like this..).

    Yeah Appke wants to be like RIM (Blackberry) who is sinking fast and their devices will be door stops.
    http://www.apple.com under support you can ask at their forum or you can call them. However if you call under ios7 support they may help you for free. But if not they will cost you $$$$
    As far as I can tell with my iphone what you want to do is not possible. There are sites that tell you how  to make different ringtones for the device but your choices to change  sounds for email and text/sms messages are controlled unders sounds in the setting menu.  Again the manual is on your phone and online if you need assistance changing sounds and ringtones.
    Good Luck

  • To create a customer invoice from vendor invoice

    Hi i have a requirement to create customer invoices from vendor invoice. i would like to know if it is feasible??
    if it is possible is there any bapi or function module to transfer data from the vendor invoices to the customer invoice.
    regards
    prasannakumar

    hi,
    refer to this below link
    http://help.sap.com/saphelp_47x200/helpdata/en/5f/e411bb044411d2bf5d0000e8a7386f/frameset.htm
    -Reward If helpful
    -chaitanya

  • Cant create customer invoice without MIRO in third party

    Hello There ,
    This is third party scenario
    I Have set  Billing relevance "F" in the parameter of item categary  of third party which help me in updating the status of sales order as completed as soon as first invoice gets created.
    but this Billing relevance 'F' only supports to create customer invoice only when invocie receipt(MIRO)
    is created then only we can create the customer invoice.
    My requirement is to create the customer invoice on the basis of MIGO quanity not on the MIRO quantity.
    And sales order Status should be completed as soon as the invoice gets
    created.
    Because MIRO will be created in future date.
    Whenever i try to create customer invocie after MIGO it throws as error that " Order is not relevant for billing"
    In other words it asks me to create MIRO document. As soon as i create MIRO document  , system will allow me to create customer invocie.
    Please help me in this.
    I want to create customer invoice after MIGO and before MIRO in case of third party while billing relevance is u2018Fu2019 in  item category.
    If you have any idea about this scenario, Please help me in this .
    Thanks,
    Vaibhav Yawale

    HI Ravi,
    Here the problem is My client they dont create customer invoice of total quantity.
    Flow is like this -
    Sales order       PO Quanity       MIGO              Invocie             MIRO
    1000LBS            1000 LBS         850 LBS         850 LBS          850 LBS
    Here in this scenario  they are going to deliver only 850 LBS .Rest 150 they will never deliver.
    So the status should be completed as soon as first invocie of quantity 850 LBS is created.
    Please guide me on this ,
    Thanks,
    Vaibhav Yawale

  • Want to creat customer and vendor as per Co. Branch (Profit Center) wise.

    Hello friends,
    I am in a critical case, my client want the customer and vendor as per company branch wise (i.e. Profit Center wise) not by account Group wise but as per my knowledge we can create the customer and the vendor as per account group..
    Kindly let me know if there is any procedure or configuration/ Customization to create the Customer and Vendor as per u201CCompany branchu201D wise. Please let me know the detail steps for itu2026
    Have a very Nice Dayu2026
    With regards
    Amresh..

    Dear Amresh,
    Customer and vendor master are maintained in company code level.
    this cannot be maintained profit center level.
    What actually does your client wants.
    To get report receivable and payable profit center wise you can use S_AC0_52000887 and S_AC0_52000888.
    Please be more specific to solve the issue faster.

  • BAPIs fpr T-Codes FV70 and FV-75 for creation of Customer Invoices

    Hi all,
    Can any1 tell me Validation BAPIs for T-Codes FV70 and FV75.
    Please bear the following points
    1. The BAPI should NOT create Parked Customer Invoices, they should just validate that the data to create the customer invoice.
    2. The Transaction are used for CUSTOMER invoices NOt Vendor.
    3. I've searched SDN and I got the follwing BAPIs 
                  a. BAPI_INCOMINGINVOICE_PARK
                  b. MRM_INVOICE_PARK
                  c. MRM_PARKED_INVOICE_ACCDATA
    But they are all for Vendor Invoices and CREATE parking invoices, Both the things I do not want.
    If someone knows the name of the BAPI please forward to me at the earliest.
    Cheers
    Abhishek

    Hi Eric,
    Many thanks, I'll check the BAPI out, meanwhile can u also tell me whether there is a BAPI for creating Parking documents, i.e. BAPIs for T-Codes for FV70 and FV75.
    I've tried to find a lot about this, but they say that BAPIs are there for only posting, not parking the Customer Invoices.
    Cheers
    Abhishek

  • Customs Invoice - Free of Charge Goods

    I've got a question to the customs invoice. I have free of charge goods, but for customs calculation I need a price for the free of charge goods (the price which is normally paid for the product) For example the free of charge item should have a price of 500$ at customs invoice. but for the standard invoice (F2) the price should be 0, so it shouldn't be listet on the invoice.
    My first idea was to create a new condition type ZR00 and by entering sales order I maintain also ZR00 for free of charge items. During creating the Customs Invoice a procedure checks if my item type is free of charge. If the item type is free of charge, print the price ZR00, else print PR00.
    How can I handle that on another way?
    Thanks for your help!
    Matthias

    Hi,
    Go through the link below. see if it helps you .
    http://www.sap-img.com/sap-sd/issue-free-goods-to-selected-customers.htm

  • Order Related bIlling Reqd for both Inter Company Inv and Customer Invoice

    Hi,
      I have 3rd Party scenario whereby I have to generate an Order Related Billing. I want to generate both a Customer Invoice and an Intercompany Invoice w.r.t Sale Order . Current system is allowing me to generate either one of them and not both. Is there any copy control functionality from order to bill vtaa through which I can generate both Customer and Inter Company Invoice (IV).
    Regards,
    Binayak

    Hi Binayak,
    Chang copying requirement to 008 for relevant item category In copy controls from order to billing, then you will be able to create both customer invoice & intercompany invoic.
    Hope it will help you and let me know if you have any questions
    JM

  • Create new customer using BAPI BAPI_CUSTOMER_CREATEFROMDATA1

    Hi There,
    I am trying to create a new customer in SAP through BAPI for demo purpose. The BAPI function I used is BAPI_CUSTOMER_CREATEFROMDATA1. However, the BAPI call requires a reference customer. How can I find a valid reference customer in SAP? Furthermore, is it correct at all to use this BAPI function to create a new customer? Is there any other BAPI function that I can use to do the same stuff? Thanks a lot in advance for your help!
    Thanks,
    Lei

    Hi,
    I didn't get which system of SAP are you refering to , but as this forum is for CRM i assume that you want to create customer in CRM.
    So for creating a customer in CRM you can use the BAPI,
    BAPI_BUPA_CREATE_FROM_DATA
    and for getting the reference customer jsut execute the following FM in test enviroment to get the Business Partner no and Business Partner GUID.
    CRM_BUPA_CONSUMER_GET_REFERENC
    Hope this helps.
    Regards
    Sidd

  • Accounting Document not posted for Cancelled Invoice -error in FI interface

    Hi,
    When I create a billing document then an accounting document gets created automatically in the background and then when I cancel the billing document no accounting document gets generated and the field Posting Status in header Detail of Billing document updated as "Errors in Financials Interface.
    I tried to release it for Posting via VFX3 but failed due to below error message in Log:
    "Incorrect doc.no.: 4900000005. Select document number between 3000000000 and 3099999999"
    I have checked the Number range assignments to the Invoice type and Accounting type.
    The number range is same for both Invoice type (Y0F2) and Cancelled Invoice type (Y0S1).
    The Accounting document type (RV) is also same for both the cases. But it is working fine for Y0F2 (Acounting document generated and cleared automatically). But not working fine for Cancelled Invoice (Y0S1).
    Can anybody please help me find out a solution to the issue.
    Thanks, Ram.

    Hi,
    The error message F5151 refers to the number range of the FI document.
    Please have a look at the note 1259505: FAQ: New cancellation procedure in SD, which covers this issue in detail.
    Question 5:
    Q5. What is the FI document type, generated by the cancellation ?
    In the old cancellation procedure, the FI document type is always
    determined in SD, and passed to FI (the same when a normal invoice  -
    not a cancellation -  is transferred to accounting).
    In transaction VOFA there is the field 'Document type' (TVFK-BLART).
    If this field is filled, then the FI document will have the document
    type maintained here.
    If TVFK-BLART is empty, then the FI document will get the default
    document type 'RV'.
    If the new cancellation procedure is performed, the FI document type is
    always determined in FI, based on the document type of the FI document
    to be reversed.
    In transaction OBA7 the FI document type has assigned the field 'Reverse
    document type' (T003-STBLA).
    If it is filled, then the FI cancellation document will get the document
    type maintained here.
    If T003-STBLA is empty, then the FI document cancellation will get the
    same document type as the cancelled FI document.
    Notice that an unexpected FI document type can cause the error message
    F5 151.
    Example:
    F2 invoice 90000001 was released, creating an accounting document with
    document type 'RV'.
    This F2 invoice is reversed by the S1 billing document 70000001.
    In customizing of SD there is:
    Billing Type    Document Type
    F2              RV
    S1
    In customizing of FI there is:
    Document Type    Number range   Reverse Document Type
    RV               00             AB
    AB               01             AB
    The FI number ranges (object RF_BELEG) are:
    No  From number    To number   Ext
    00  0090000000     0099999999  X
    01  0100000000     0199999999
    Different situations can occur, due to these customizing settings of the
    FI document type, caused by the type of cancellation.
    If the new cancellation is used:
    The FI document type 'RV' has 'Reverse Document Type' = 'AB'.
    Document type 'AB' has number range '01' set as internal.
    So the FI document will have its own number included in
    100000000-199999999.
    There is no issue.
    If the old cancellation is used:
    The cancellation billing type S1 has no 'Document type' maintained, so
    the FI document will get document type 'RV'. It has number range '00',
    set as external number range.
    So the FI document should get the same number of S1 billing document.
    But the S1 billing document has number 70000001, not included in the
    interval of number range '01'.
    This will cause error F5 151.
    I hope this information helps you.

  • How can I create a Commercial Invoice or similar document in SAP ByD?

    How can I create a Commercial Invoice or similar document in SAP ByD?
    Our company has recently implemented ByD, but we can't figure out how to create a commercial invoice for shipping/customs purposes. I know that the German version of ByD allows for "Export Declarations" which is pretty much the same as a commercial invoice, but the U.S. version doesn't have this document/function.
    Any suggestions? I would appreciate any help.
    By the way, a commercial invoice contains:
    1. The shipperu2019s complete information: Contact name, company name, complete address and tax identification number.
       2. The recipientu2019s complete information: Contact name, company name, complete address and phone number.
       3. The buyeru2019s information (the person to whom the goods are sold by the seller) if different from the recipient: Contact name, company name, complete address and phone number.
       4. The shipment tracking number, air waybill number or bar-code label number.
       5. An accurate description of the contents in your shipment that includes the following details:
    What the product is
    What material the product is made of
    What the productu2019s Schedule B or HTS code is
    What the productu2019s intended use is
    What the productu2019s country of manufacture is
    What the productu2019s parts or serial numbers are (if applicable)
    What the productu2019s quantity and unit of measure are
    What the productu2019s value is, per unit and in total
    Thanks,
    Chris

    May I suggest that you ask this question in the customer forums in the Business Center at [http://sme.sap.com|http://sme.sap.com]
    Best regards, Christian

  • Document Splitting - Bank and Customer Invoice

    Hi Experts,
    I have document splitting method 0000000012 and under that Business transaction 1000 i have created a new transaction variant for the client specific requirment
    Further for this combination i have linked item category 04000 for bank accounts with all categories attached to it and 02000 for Customer accounts with revenue attached to it
    Now when i pass a customer invoice for profit center A and when i clear this using F-28 giving profit center B, the system is inheriting Profit Center A form customer invoice and for the bank line item it is split according to the base row which is Customer invoice hence both item reflects profit center A and profit center B which is keyed in totally ignored
    My client requires that the inheritance from customer invoice needs to be ignored and the profit center needs to be updated as per manual entry. hence the entry should like the following
    Bank Dr Profit center B
       To Customer Cr Profit Center B
    Profit Center Clearing A/c Dr Profit Center A
    To Profit Center Clearing A/c Cr Profit Center B
    I have not given automatically split tick in any of the linked categories
    Please advice

    Hi Expert,
    Go to the below Path: IMG -- Financial Accounting (New) -- General Ledger Accounting (New) -- Business Transactions -- Document Splitting Activate Document Splitting
    Here you need to UN-select the Inheritance Check box.
    Inheritance: Indicator is not set ('UN-Select Check box ')
    Lines can be left without account assignments, even if the document splitting characteristics in the document are unique. Exception: You have set the Standard Account Assignment indicator.
    Inheritance: Indicator is set ('Select Check box ')
    Indicator is set('X')
    If the rule-based document splitting produces lines without account assignments, these lines inherit the document splitting characteristics.
    Regards,
    GK
    SAP

  • Customer invoice doument and cancelled document are showing under openitems

    Dear All,
    I have created customer invoice in VF01 and cancelled the invoice in VF11.
    1.System is showing Invoice document and cancelled document under open items list in FBL5N customer line items.
    A. Is this correct?
            or
    B. When we cancelled the invoice document it should automatically go to cleared items list?
    Kindly provide me what is the correct?
    Thanks & Regards,
    Saisri.

    Hello,
    Once you cancelled the invoice document then you have to clear manually those items in tC: F-32. If you are not cleared then system will show you as open item. After cleared in F-32 then status will change from Open to Close.
    Thanks
    Para

  • How to create cross charge AP invoice through Payables Open Interface Import

    Hi,
    I am working on developing an AP invoice interface program for creating cross charge invoices in Oracle 11i.
    Cross charge invoice means the supplier & site is from operating unit A, but the costing should hit the project number in Operating unit B.
    The pa_projects_all.allow_cross_charge_flag for the project number is set to Y. I am using below scripts to enter data into the interface tables:
    <code>
    INSERT INTO ap_invoice_lines_interface
                               (invoice_id,
                                invoice_line_id, line_type_lookup_code,
                                amount, org_id,
                                last_update_date, last_updated_by,
                                creation_date, created_by,
                                project_id, task_id,
                                expenditure_type, expenditure_item_date,
                                expenditure_organization_id
                        VALUES (v_invoice_id,
                                ap_invoice_lines_interface_s.NEXTVAL, 'ITEM',
                                c_line.invoice_amount, v_org_id,
                                TRUNC (SYSDATE), fnd_global.user_id,
                                TRUNC (SYSDATE), fnd_global.user_id,
                                v_project_id, v_task_id,
                                v_expenditure_type, v_expenditure_item_date,
                                v_organization_id
    INSERT INTO ap_invoices_interface
                         (invoice_id, invoice_num, invoice_date,
                          gl_date, vendor_id, vendor_site_id,
                          invoice_amount, invoice_currency_code,
                          exchange_rate, exchange_rate_type, exchange_date,
                          terms_id, terms_date, payment_method_lookup_code,
                          pay_group_lookup_code, payment_currency_code,
                          last_update_date, last_updated_by, creation_date,
                          created_by, SOURCE, org_id
                  VALUES (v_invoice_id, c_head.invoice_num, c_head.invoice_date,
                          c_head.gl_date, v_vendor_id, v_vendor_site_id,
                          c_head.invoice_amount, c_head.invoice_currency,
                          v_rate, 'Corporate', c_head.invoice_date,
                          v_terms_id, TRUNC (SYSDATE), v_payment_method,
                          v_paygroup, c_head.payment_currency,
                          TRUNC (SYSDATE), fnd_global.user_id, TRUNC (SYSDATE),
                          fnd_global.user_id, 'CONCUR', v_org_id
    <code>
    After inserting data into the interface tables, I submitted the Payable Open Interface Import with correct source and the record fails with below errors:
    REASON                         DESCRIPTION
    Account Required             An account is required
    PA Flexbuild Failed          Project Flexbuilder failed with error
    The above inserts are working fine for same entity invoices.
    I am not sure what could be the error.
    Any help is greatly appreciated.
    Thanks
    Imran

    Have you customized/setup the Project Accounting Workflow builder. You need to do some setup for this workflow builder so that the project accounts can be derived properly.

  • Problem while creating a custom document using JAVA API in the current Folder

    I am trying to create an instance of a custome type from the API. I have created a custom type via XML. I have associated a JSP with the custom type thru iFS manager. This jsp provides an interface for the user to enter various data. On submit I call some other jsp also loaded into the /ifs/webui/jsps which calls a method in the java class to create an instance of the above mentioned type. This instance needs to be created in the current directory and not in the home directory of the user. I have written a java program which when run from JDeveloper connects to the repository and creates the object, but not as a foldered object. If I load this class into custom_classes directory, I get an exception. I am attaching the code also here which does the actual processing.
    package cms;
    import oracle.ifs.agents.common.*;
    import oracle.ifs.agents.manager.*;
    import oracle.ifs.agents.server.*;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    public class ContentModule extends Object {
    public static final String CLASSNAME = "CONTENT";
    public static final String TOPICID_ATTRIBUTE = "TOPICID";
    public static final String SITEID_ATTRIBUTE = "SITEID";
    LibrarySession m_session;
    public ContentModule() {
    connectToRepository();
    createDocument("AM5","s");
    public void connectToRepository(){
    try{
    LibraryService l_service=new LibraryService();
    CleartextCredential l_credential = new CleartextCredential("system","manager");
    ConnectOptions l_options=new ConnectOptions();
    l_options.setServiceName("IfsDefault");
    l_options.setServicePassword("ifssys");
    m_session=l_service.connect(l_credential,l_options);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public void createDocument(String p_docName,String p_docContent){
    try{
    DocumentDefinition l_doc=new DocumentDefinition(m_session);
    l_doc.setClassname(CLASSNAME);
    long newId1=5;
    long newId2=5;
    FolderPathResolver l_currentPath=new FolderPathResolver(m_session);
    Folder l_currentFolder=l_currentPath.getCurrentDirectory();
    l_doc.setAddToFolderOption(l_currentFolder);
    l_doc.setName(p_docName);
    l_doc.setContent(p_docContent);
    AttributeValue av1 = AttributeValue.newAttributeValue(newId1);
    l_doc.setAttribute(TOPICID_ATTRIBUTE,av1);
    AttributeValue av2 = AttributeValue.newAttributeValue(newId2);
    l_doc.setAttribute(SITEID_ATTRIBUTE,av2);
    Document l_document=(Document) m_session.createPublicObject(l_doc);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public static void main(String[] args) {
    ContentModule contentModule = new ContentModule();
    Any help will be highly appreciated.
    Thanks

    Please print out the Verbose Stack Trace generated when you run this application.
    I suspect that you FolderPathResolver is not pointed at the directory you think it is. You might want to try printing out
    I_CurrentFolder.getAnyFolderPath();
    and I_CurrentFolder.getName();
    null

Maybe you are looking for