Skip to Content
author's profile photo Former Member
Former Member

A/P Invoice created from Approved Drafts, through DIAPI

Please I need help with this error.

I need create A/P Invoice from approved drafts with DIAPI.

There are no errors if the "A/P Invoice" is copy of "Purchase Order" or without base document. In this case the Invoice is created without problems.

But, if the invoice is copy of "Goods Receipt PO", it is not created and DIAPI retrieve an error:

"Field cannot be updated (ODBC -1029)"

is a bug in sdk?

Thanks a lot.

Please help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 29, 2007 at 03:10 PM

    Hello Norman,

    This sounds really like a bug which you should report to SAP Support... - sorry!

    ...but let me (and others) give you some advice how to be more sure in such conclusions:

    In such cases you should check:

    a) Does it work in the B1 GUI application?

    If yes, it's a bug (or limitation?) which you should raise to SAP Support.

    ...and of course it works... 😊

    b) If you are not sure about a) - or if there are problems too, but you still think it should work... you should check the DB documentation.

    In your case the information is more-or-less obvious (could surely be easier to find...) available as the "Constraints" for the field PCH1.BaseType...

    The DB documentation says that Purchase Orders + Goods Receipts POs (GRPO) as base types - and thus your problem is certainly a bug (but Support will do the final judgement).

    But you should make sure that the GRPO is OK - i.e. the lines you need are not closed etc., but I assume you checked all that a couple of times already.

    Regards,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.