Error while creating A/R Credit Memo

Hello everyone.
I'm creating some documents on my AddOn, keeping the relationship map.
My process is to create: Sales Quotation > Sales Order > A/R Down Payment Invoice.
The creating process is ok, but sometimes I need to cancel these documents. Sales Quotation and Sales Order have the Cancel function, and it's working fine, but the down payment does not have a Cancel function.
What i'm doing is trying to create a A/R Credit Memo, but i'm getting the following error:
[RIN1.CSTfIPI][line:1] "Linked value 50 does not exist"
In my code, i'm setting this fields:
Document.Lines.BaseType = 203
Document.Lines.BaseEntry = here I set the Down Payment Code
If I do it manually, using the function Copy To on Down Payment form, it works fine.. what can i do?
PS: SAP 9 PL 04
Thank you!

Usually BaseEntry and BaseType are only used when drawing documents.
If that is what you are doing could you please test the following:
Otherwise same code but:
foreach (var lItem in lItens) 
                    lDocumento.Lines.BaseType = 203; 
                    lDocumento.Lines.BaseEntry = "DownPaymentDocEntry"; 
                    lDocumento.Lines.VatGroup = "VatGroupCode";
                    lDocumento.Lines.Quantity = lItem.Quantidade; 
                    lDocumento.Lines.UserFields.Fields.Item("U_CodOrcamentoVenda").Value = "Code"; 
                    lDocumento.Lines.Add(); 
Regards,
Johan

Similar Messages

  • Error while adding A/P Credit Memo!

    Error while adding A/P Credit Memo..........
    'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
    Please advice me .....
    Thanks...

    Hi
    Check this thread this may help you.
    [Re: AP Invoice - No Matching Account Error]
    Regards
    Balaji

  • Error While doing the Asset Credit Memo -ABGL

    HI,
    While doing the Asset Credit Memo -ABGL,i am getting the below error.Kindly help me with your inputs.
    Balance for transaction type group 10 negative for the area 01
    Message no. AA629
    Asset affected: 406000000004-0000
    Diagnosis
    With the transaction entered, the balance for the transactions in group 10 in area 01 will be negative in this fiscal year. However, the balance of transaction type group 10, according to its definition, must be positive in each fiscal year.
    System response
    The system rejects this posting.
    Procedure
    Check the transaction type, the amount and the fiscal year in your posting. If you want to post a credit memo to an acquisition from the previous year, then use a transaction type for a retirement. If necessary, you can change balance rules after talking with your SAP consultant.
    Thanks
    Supriya

    Check your config in OABN / OADB
    The depriciation area 01 can allow you post values only postive .. in OADB
    it has maintained Acquisition values Postive or zero values and net book
    values has miantained Postive or 0 values. so based on this setting u cannt
    post any negative values for this asset.

  • Error while doing ABGL Asset Credit Memo

    Hi Friends,
    I am getting the below error while doing Asset Credit Memo in ABGL. Please help me in fix this issue.
    Balance for transaction type group 10 negative for the area 01
    Note:In Asset Explorer Fiscal year start Asset value is 98,425.45 and Change is 4768.19. So total Asset value as of now is 1,03,193.64.
    Now we are trying to do ABGL with 12,790.23 value (Transaction type is 105). System is giving the above highlighted error.
    If we give the amount 4768.19 in ABGL transaction, system is not giving any error. If we give more that that system is giving error.
    Why system is giving error even the asset has balance of 1,03,193.64? Please help me on this..
    Thanks
    Sunil

    Hi,
    If the asset has been capitalized during earlier years, use ABGF to post credit memo.  ABGL is meant for assets capitalized during the year.
    Best Regards,
    Madhu

  • Error while posting A/P Credit Memo

    Dear Experts,
    1. While Posting standalone A/P Credit memo the following error is coming "No matching records found 'G/L Accounts' (OACT) (ODBC - 2028) [Message 131-183]"
    Currently we are working on SAP B1 8.8 PL:11.
      In G/L account determination every account is linked properly even rounding account also linked properly n stock is also there in warehouse but still this error is coming Plz give me some solution on this
    Regards,
    Anshul

    Hi Anshul,
    You may check these threads;
    No matching records found  'G/L Accounts'
    No marching record found "GL account '
    Thanks,
    Joseph

  • Error while adding A/R credit memo base on A/R  invoice using DI-API

    Hi Expert,
    Adding partial a/r credit memo   getting error msg "Invalid value  [ORIN.DocRate]"
    Thanks
    Rajkumar
    Edited by: Rajkumar Gupta on Dec 9, 2011 3:01 AM

    Hi,
    You may only need to provide BaseType, BaseEntry and BaseLine when you add A/R credit memo base on A/R invoice. Omit all other fields if you include in your code.
    Thanks,
    Gordon

  • Authorization Error while creating PO and A/R Credit Memo

    Hi Experts,
    We use SAP B1 2007A, PL:08. Some of the users are getting this error message while adding the PO, A/R credit Memo etc. As a superuser, I am able to perform this action.
    The Error Message is "[A/R Credit Memo-Rows-Discount % per row] [line:1], you are not permitted to perform this action'[message 200-30]
    Any idea why this is happening. I checked the authorization for the users. They have full access to Purchasing and Sales modules. Am I missing something here? Please let me know!!
    Thanks,

    Hi,
    You may check:
    You are not permitted to Perform this Action - A/R Invoice [Message 200-30]
    Thanks,
    Gordon

  • Creating A/R Credit Memo via copying from A/R Invoice

    Hi all,
    I have a problem creating A/R CREDIT MEMO via copying from AR invoice. there are no list of invoice appear eventhough the Customer im trying to add in credit memo are exists in ar invoice.
    thanks
    vin

    Hi Melvin....
    First of all welcome to SAP Forum.
    Let me tell you its a wrong forum where you posted your query.
    You should post your query in SAP Business One Core Forum.
    Now for your doubt I guess You are trying to copy Service Type AR Invoice in Item Type Credit Memo.
    Just check your Document Type (Item or Service) must be same for both Target and Base Doc while Copy......
    Regards,
    Rahul

  • Two errors during cancellation of AR Credit Memo with 'Free of Charge' option

    Dear all,
    I've created a AR Credit Memo - with Free Of Charge option established.
    After I've tried to cancel this document. SAP shows the following error messages:
    - No matching records found '' (SWEI) (ODBC -2028) [Message 131-183]
    - No matching records found (JDT1) (ODBC - 2028)
    Please note that if a take out option 'Free Of Charge' from AR Credit Memo I'm able to cancel the document.
    Thank you in advance.
    Kind Regards,
    Mariana
    --> Customer using SAP BO 9.1 PL 05.

  • Program to create Debit and Credit Memos

    Hello everybody!
    I am new to SAP and I need to develop ABAP program to create Debit and Credit Memos...
    1. Debit/Credit memos created with header (Higher level) item and sub item/s
    2. One Debit/Credit memo created per customer
    3. A part of information for memos program will receive through XI (Excel file coming through XI)
    maybe someone can help?
    Helpfull answers will be awarded!
    BR, M.

    You dont need a custom prog to create a debit memo or credit memo.
    You can raise a Credit Memo for a Vendor using the transction code FB65 (without reference to an invoice) or MIRO (if it is with reference to an invoice) and the system would pass the following accounting entry
    Dr. Expenses A/c
    Cr. Vendor A/c
    This particular document would have a payment term and payment due date. While running Automatic Payment Process, depending on the payment method the system will pick up the document and create a cheque / electronic transfer etc for the vendor with the following entry
    Dr. Vendor A/c
    Cr. Bank Clearing A/c
    In the case of Customer you can account the credit memo (without reference to invoice) using FB75 or VA01 (Order Type CR, if it is with reference to an invoice). While you create the billing document for the order type CR the system would raise the following accounting
    Dr. Expenses A/c
    Cr. Customer A/c
    This particular document would have a payment term and payment due date. While running Automatic Payment Process, depending on the payment method the system will pick up the document and create a cheque / electronic transfer etc for the customer with the following entry
    Dr. Customer A/c
    Cr. Bank Clearing A/c

  • Created a duplicate credit memo

    Hello SAP Experts
    When trying to change value of credit memo no 1700071495 in FV60, system has created a duplicate credit memo with the same amount and identical document number. AP are unable to delete this document and system comes up with error message:
    u201CExpress document u201CUpdate was terminatedu201D received from author Jenni Bourne.u201D
    May any body advice why thios is happenning
    Kind regrds

    Hi,
    go to SM13 and check what has happened.
    Best regards.

  • R12: Create on-account Credit Memo with invoicing and accounting rules

    In R12.1.2: when using the AR_INVOICE_API_PUB it seems to be impossible to create a on-account Credit Memo with invoicing and accounting rules. The next errors are returned by the API:
    - AR_INAPI_INV_RULE_NOT_REQUIRED
    Do not include an invoicing rule if the transaction type's class is Debit Memo or Credit Memo.
    - AR_INAPI_RULE_NOT_ALLOWED
    Do not enter an invoicing or accounting rule for on-account credit memos
    Please advice how to create on-account Credit Memo with invoicing and accounting rules using an API.
    Edited by: nl05517 on Jan 17, 2011 10:43 PM

    We will use the AR_CREDIT_MEMO_API_PUB api.

  • Error while creating a new connection in ODSM for OVD

    Hi all,
    I am getting the following error while creating a new connection in ODSM for OVD.
    Error log:
    [2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by:
    =======
    java.lang.NoClassDefFoundError: Could not initialize class
    com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub
    at com.octetstring.vde.admin.services.client.ServerMgrServiceLocator.getVDEAdminService(ServerMgrServiceLocator.java:58)
    at oracle.ldap.odsm.model.ovd.APServerProxy.connect(APServerProxy.java:248)
    at oracle.ldap.odsm.model.ovd.APServerProxy.authenticateAs(APServerProxy.java:684)
    at oracle.ldap.odsm.model.ovd.APServerProxy.authenticate(APServerProxy.java:286)
    at oracle.ldap.odsm.model.ovd.APServerProxy.init(APServerProxy.java:216)
    at oracle.ldap.odsm.model.ovd.APServerProxy.<init>(APServerProxy.java:198)
    at oracle.ldap.odsm.model.ovd.OVDRoot.connectOVD(OVDRoot.java:185)
    at oracle.ldap.odsm.ui.common.Connection.connect(Connection.java:120)
    at oracle.ldap.odsm.ui.common.Visit.createConnection(Visit.java:663)
    at oracle.ldap.odsm.ui.common.Login.saveChanges(Login.java:215)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    ... 28 more
    How to resolve this issue.Pls suggest me.
    Regards,
    -Deena.

    Hi Deena,
    This error:
    "[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
    is known issue
    Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
    You need to apply that patch.
    I hope this helps,
    Thiago Leoncio.

  • Error while creating a recipe in plm..

    Hi every one,
    System throughing below error while creating a recipe.
    "Entries in status management Customizing are incorrect"
    kindly suggest.
    have a good day..
    regards,
    kirran

    Hi Kirran,
    Please see if you have defined a status scheme and assigned it to the recipe type. Before defining a status scheme, you must complete the one time IMG activity 'Collect Object Types and Assigned Attributes' under Recipe Development > Status Management. Then in the next node you define individual statuses and a scheme with transitions. For each status, you must define 'field value' for the field RCP_USAGE which is nothing but a value from Recipe Purposes customizing.
    Hope this helps.
    Regards,
    Rajeev

  • Error while creating a PO

    Hi all,
    I have got an error while creating a PO with an Internal Order. I am trying to post this PO against an Internal Order. The error message says that:
    User status BUDG is active (ORD 10034). When I click the perform assistant, it says that according to this status, transaction 'Material purchase order' is not allowed.
    Can somebody plss help me in this regards, I will assign points.
    Thank you,
    Sony

    What you enter in the Cost element master data is only for defaulting the cost center or order when you use that GL account.
    When you see a message  transction  requires an account assignment, you can enter the relevant cost center for which the cost is incurred.
    For your information, If an order has been marked as statistical, you can find it in KO02 change order > Control data. there may be  check box saying statistical. If it is not available, then, you can't make it statistical until, you make that field available for change for the order type. Usually orders of a particular type can be made as statistical, by providing a model order to the order type. In the model order you specify that it will be statistical.

Maybe you are looking for