How to post a cross-company invoice using the BAPI_TRANSACTION_COMMIT?

Hi
I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.
There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.
The only problem is that the field is not there…
Does anybody know whet to do?
Thanks,
Magdalena

BAPI BAPI_TRANSACTION_COMMIT is not used for a specific application, but needs to be called always after any BAPI is called to post the data that were changed in the BAPI to the database.
You need to find the BAPI that is used to post the invoice and then call BAPI_TRANSACTION_COMMIT.
Always do:
call function 'BAPI_application_specific'
if sy-subrc eq 0.
  call function 'BAPI_TRANSACTION_COMMIT'.
endif.
Check the documentation you have to see if you can find the application specific BAPI.
Hope that helps,
Michael

Similar Messages

  • A reversal of a cross-company invoice posting

    A reversal of a cross-company invoice posting between Austria and Germany is recorded only in one company code. It needs to be recorded in both Austria and Germany company codes.
    please provide the solution

    Hi,
    What version of SAP do you use? If it's <= 4.7, then look at the note 611777.
    Regards,
    Eli

  • Cross company invoice

    Hi,
    Please let me know If we use SRM, can we not post the g/l expense portion to a different company code than the one we are paying from.
    Does SRM supports posting Cross company invoice
    Thanks,
    Manu

    It's a limitation in SRM, it won't support cross company payments

  • Posting of cross company transaction with different doc types

    Hi,
    The scenario is:-
    We have two companies X and Y.
    X makes a payment to Y with the following FI entries:-
    Company Code X
    Dr Vendor Y
    Cr Bank HDFC
    Company Code Y
    Dr Bank ICICI
    Cr Customer X
    Now this needs to be a cross company transaction where the doc type for CC X should be vendor Payment 'KZ' while the doc type for CC Y should be a customer reciept with doc type 'DZ'.
    Although I am able to map the accounts in cross company code config I am not able to split the transaction of different company codes with different document types.
    Is there any way we can do this in standard SAP?
    Thanks in advance,
    Nitish

    Hi
    As per your issue ...There are no possibilities to post   in sap with different document types.
    If you want you can post cross company code transactions with one document types
    Regards
    vamsi

  • MIRO - Verify Cross Company Invoice

    Hello Experts.
    In transaction MIRO the system automatically detect a cross company transaction, and that's fine.  
    But my client, just need a cross company invoice between specific two company codes.   Otherwise,  the system should send and error message.
    If it possible do this?
    I appreciate your help.
    Hector

    if the clearing accounts not there in OBYA between 2 company codes then system will throw error. So dont maintain values there except for  ur company codes

  • How to Get Historical Cross Company Stock in Transit?

    Hello,
    I implemented the extractor for How to Improve the Performance of the Extractor - Cross Company Stock in Transit. This works great  for getting the current stock in transit (what is contained in t-code MB5T) but does not seem to work to get a snapshot of the past. In classic BW fashion, I also need to get the historical picture of the stock in transit. Does anyone know how to do this? I have 0IC_C03 Material Stocks/Movements but it appears this cube will not satisfy this requirement, unless I'm looking at it wrong.
    I am aware of the original How to Report on Cross Company Stock in Transit, but have not implemented it.
    Cheers,
    Gary

    Hi,
    Please check the below document, this may help you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/92c0aa90-0201-0010-17b1-bf5b11c71257
    Regards,
    Madhu

  • Clearing an Invoice using the DI

    Hello
    I am experiencing a problem when I generate a Journal Credit that is matched to a invoice using the DI but the balance on the invoice does not reduce or clear. I am using the following code:
    ' Generate the Excess Invoice/Document
    oJournal = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
    oJournal.TaxDate = Now
    oJournal.Memo = "Excess-" & oCustName.Value
    oJournal.Reference = lDocNum
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.ContraAccount = oCustAcc.Value
    oJournal.Lines.ShortName = oCustAcc.Value
    oJournal.Lines.Debit = rExcAmt
    oJournal.Lines.Credit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.TaxDate = Now
    oJournal.Lines.ContraAccount = oInvParty.Value
    oJournal.Lines.ShortName = oInvParty.Value
    oJournal.Lines.Credit = rExcAmt
    oJournal.Lines.Debit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    If (0 <> oJournal.Add()) Then
      MsgBox("failed to add a journal entry")
      Call oDICompany.GetLastError(nErr, ErrMsg)
      If (0 <> nErr) Then
        MsgBox("Found error:" + Str(nErr) + "," + ErrMsg)
      End If
    End If
    oJournal = Nothing
    Please help !
    Regards
    John

    Hi John,
    You can only "clear" (= "Close"?!) an Invoice by posting a Payment or a Credit Memo, if I am not totally wrong!
    A Journal entry only has a connection to a document (through the Origin / Origin No. fields) when it is generated in the background of the document creation!
    Sorry, Frank

  • HT3696 How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    Sorry to reopen an old post, but I've just purchased a 2nd hand late-2013 iMac (or so thats what the seller said).
    I'm always sceptical though, and just wanted to know if there is a way to check if my iMac is indeed the late-2013 model that included Haswell?
    I've attached screenshots of the About This Mac section hoping it may help shed some light.
    Thank you in advance for your help!
    PS - I can't compare to the iMac specs link you posted above because its now showing the late-2014 models.
    <Image Edited by Host to Remove Serial Number>

  • How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?

    How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
    We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS  on each Mac but sharing the same Apple ID: xxxxxx
    I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
    Do we have to set up a diffrent Apple ID for each other?
    Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy)  it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
    Thanks

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • HT5538 How do you separate multiple iOS devices using the same apple id account for Face Time calls and iMessaging?

    How do you separate multiiple ios devices using the same apple id account for Face Time calls and iMessaging?

    The only way I have seen is to have each device use a if fervent email account, if they all are on the same email the FaceTime connection is either to a phone number or to an email address.  If they ar all on the same email, it is up to the user to decide which to use.

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can i plot a histogram with using the results of Line Length

    PLS HELP.How can i prepare a histogram with using the results of line length code(It is somewhere in the middle).
    This is a final exam take-home question. I would appreciate if you can help?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.text.*;
    import java.io.File;
    public class WordAnalyser extends JFrame implements ActionListener
    private JMenuItem jmiAc, jmiSil, jmiCikis, jmiAnaliz, jmiHakkinda, jmiKullanim;
    private JTextArea jta1, jta2;
    private JFileChooser jFileChooser = new JFileChooser();
    File hafizada;
    File aktarilan = new File("Sonuc.txt");
    // Main method
    public static void main(String[] args)
    WordAnalyser frame = new WordAnalyser(); /* Ana ekran olusturulur */
    frame.setSize(400, 300); /* Degerleri belirlenir */
    frame.setVisible(true); /* Gorunebilirligi ayarlanir */
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public WordAnalyser()
    setTitle("Serkan Ozgen Dosya Inceleme Programina Hos Geldiniz");
    JMenuBar mb = new JMenuBar();
    setJMenuBar(mb);
    JMenu fileMenu = new JMenu("Dosya");
    fileMenu.setMnemonic('F');
    mb.add(fileMenu);
    JMenu helpMenu = new JMenu("Degerlendirme");
    helpMenu.setMnemonic('H');
    mb.add(helpMenu);
    JMenu kullanimMenu = new JMenu("Kullanim Kilavuzu");
    mb.add(kullanimMenu);     
    fileMenu.add(jmiAc = new JMenuItem("Ac", 'A'));
    fileMenu.add(jmiSil = new JMenuItem("Sil", 'S'));
    fileMenu.add(jmiCikis = new JMenuItem("Cikis", 'C'));
    helpMenu.add(jmiAnaliz = new JMenuItem("Analiz", 'D'));
    helpMenu.add(jmiHakkinda = new JMenuItem("Hakkinda", 'H'));
    kullanimMenu.add(jmiKullanim = new JMenuItem("Kullanim"));     
    getContentPane().add(new JScrollPane(jta1 = new JTextArea()), BorderLayout.CENTER);
    getContentPane().add(jta2 = new JTextArea(), BorderLayout.SOUTH);
    jmiAc.addActionListener(this);
    jmiSil.addActionListener(this);
    jmiCikis.addActionListener(this);
    jmiAnaliz.addActionListener(this);
    jmiHakkinda.addActionListener(this);
    jmiKullanim.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if (e.getSource() instanceof JMenuItem)
    if ("Ac".equals(actionCommand))
    Ac();
    else if ("Sil".equals(actionCommand))
    Sil();
    else if ("Cikis".equals(actionCommand))
    System.exit(0);
    else if ("Analiz".equals(actionCommand))
    sayim();
    else if ("Hakkinda".equals(actionCommand))
    JOptionPane.showMessageDialog(this,
    "!!!! Bu program text analizi gerceklestirir. Her hakki saklidir SERKAN OZGEN!!!!",
    "Bu program hakkinda",
    JOptionPane.INFORMATION_MESSAGE);
    else if ("Kullanim".equals(actionCommand))
         JOptionPane.showMessageDialog(this,
         " Ilk once dosya menusunden Ac i tiklayarak analiz etmek istediginiz Dosyayi seciniz (Lutfen uzantisi *.txt \nveya *.log olsun). Daha sonra Degerlendirme menusunden analizi tiklarsaniz dosyanizda kac adet rakam, harf, \ncumle ve kelime oldugunu gorebilirsiniz. Simdiden kolay gelsin",
         "Programin kullanim detaylari",
         JOptionPane.INFORMATION_MESSAGE);
    private void Ac()
    if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
    hafizada = jFileChooser.getSelectedFile();
    Ac(hafizada);
    // Acilan Dosyayi ana ekranda gostermeye yariyan bir method
    private void Ac(File file)
    try
    // Acilan dosyayi okuma ve ana ekranda gosterme
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta1.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    // Temizle tusunun hangi ekranlara etki edecegini secme
    private void Sil()
    jta1.setText("");
    jta2.setText("");
    private void sayim()
    int buff;
    int sayac = 0;
    int Cumleler = 0;
    int Kelimeler = 0;
    int Karakterler = 0;
    int Satirlar = 0;
    int Rakamlar = 0;     
    boolean start = true;
    int linenum = 0;     
    try
    FileInputStream instream = new FileInputStream(hafizada);
    FileOutputStream outstream = new FileOutputStream(aktarilan);
         BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(hafizada)));
    PrintStream out = new PrintStream(outstream);
         out.println("---Kelime Avcisinin Sonuclari---");
         String line = infile.readLine();
         while (line != null){
         int len = line.length();
         linenum++;
         line = infile.readLine();
         out.println("Line Length :"     + linenum + "\t" +len);
    while ((buff=instream.read()) != -1)
    switch((char)buff)
    case '?': case '.': case '!': /* Eger "?", "." veya "!" gorurse program cumleleri ve kelimeleri arttirir*/
    if (start == false)
    Cumleler++;
    Kelimeler++;
    start = true;
    break;
    case ' ': case '\t': case ',': case ';': case ':': case'\"': case'\'': /* Eger /t,;:\ ve \" bu isarteleri goruruse program kelimeleri arttirir */
    if (start == false)
    Kelimeler++;
    start = true;
    break;
              case 'n': case '\n': /* Eger \n gorurse satirlari arttirir */
              if (start == false)
                   Satirlar++;
                   Kelimeler++;
                   start = true;
              break;
    default:
    if (((char)buff >= 'a' && (char)buff<='z')|| /*a-z, A-Z veya - degerlerini gorurse karakterler arttirilir */
    ((char)buff >= 'A' && (char)buff<='Z')||
    ((char)buff == '-'))
    Karakterler++;
    if ((Kelimeler % 50) == 49)
    if (start == true)
                   out.println();     
    out.print((Kelimeler+1) + " ");
    out.print((char)buff);
    start = false;
              if ((char)buff >='0' && (char)buff <='9') {  /* 0-9 gorurse rakamlari arttiri */
                   Rakamlar++; }
    }// switch
         }//while
    instream.close();
    out.println();
    out.println();
    out.println("Karakter sayisi: " + Karakterler);
         out.println("Kelime sayisi: " + Kelimeler);
    out.println("Cumle sayisi: " + Cumleler);
         out.println("Satir sayisi: "+ Satirlar);
         out.println("Rakam sayisi: "+ Rakamlar);
    outstream.close();
    try
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(aktarilan));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta2.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    catch (Exception e)
    System.out.println(e);
    }

    Why is it that you're not interested in IOExceptions?
    catch (IOException ex)
    } Empty catch blocks is a hallmark of foolish Java code. At least print out the stack trace.
    %

  • How can I connect personal hotspot to use the internet from my phone on my laptop?

    I do not have internet at home and want to be able to connect using the personal hotspot on my phone. How do i do this??

    How much would be a month?
           From: Verizon Wireless Customer Support <[email protected]>
    To: kelly johnson <[email protected]>
    Sent: Wednesday, October 8, 2014 12:02 PM
    Subject:  - How can I connect personal hotspot to use the internet from my phone on my laptop?
    #yiv3595356488 img
    |  
    |
      | 
    A message from the Verizon Wireless Community
      |
    |   |
    How can I connect personal hotspot to use the internet from my phone on my laptop?
    created by Verizon Wireless Customer Support in iPhone 4S - View the full discussion                  Hello kmj65
    Thanks for replying. The plan you have it would be an additional charge to add the hotspot feature. It's not free with the Nationwide plan. You would need to add the feature online at www.verizonwireless.com/myverizon
    JoeL_VZW
    Follow us on Twitter @VZWSupport   Reply to this message by replying to this email -or- go to the message on Verizon Wireless Community Start a new discussion in iPhone 4S by email or at Verizon Wireless Community


    © 2014 Verizon Wireless
    Verizon Wireless
    One Verizon Way
    Mail Code: 180WVB
    Basking Ridge, NJ 07920
    Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting https://community.verizonwireless.com/user-preferences!input.jspa.
      |
    We respect your privacy. Please review our privacy policy for more information
    about click activity with Verizon Wireless and links included in this email.
      |

    |

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

Maybe you are looking for

  • How can I use an iCloud email alias in Mailbox or other third party mail apps?

    I have an iCloud email address, but prefer to use one of my aliases for sending messages. Third-party email clients like Mailbox don't seem to recognize these aliases. Has anyone had luck here, or are iCloud aliases Mail.app-only animals?

  • .pdf email attachments open in photoshop.  How do I get them to open in Reader?

    Hey, .pdf email attachments open in photoshop.  How do I get them to open in Reader? thx

  • Transferring Acrobat X Standard to new PC

    I have a new PC and want to install / transfer my acrobat X standard on new machine. It will not accept my product/serial code. I purchased it in 2011

  • EU Sales List

    Dears, I have the problem that documents of specific reporting countries do not appear on the EU sales list. Allthough the related tax codes are flaged with the EU code "1" as well as the reportig country. Thanks for your help Regards

  • DP Security

    Hi Can we control the security on location without using the C_APO_LOC Object. Because i want to control on bigger area, than just location. For ex. I want to restrict on country level. I dont want to list all my locations in that country in that obj