Ask the Expert

Invoice document numbers not being recorded

I have written an ASP.Net Program to connect SAP R/3 using SAP.Net Connector to create an Invoice.

On execution I have encountered an strange error "Invoice Document Number is generated for an PO" but invoice information is not saved in SAP; indeed it prints the Invoice Document Number. I have also explicitly triggered proxy.CommitWork() to save permanently in SAP but it didn't work.

Can anyone help me to figure it out?

    Requires Free Membership to View

Not sure what exactly went wry, but I suggest making an explicit call to the RFC function BAPI_TRANSACTION_COMMIT to trigger the commit work.

This was first published in March 2007

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.