Issues during posting and Clearing together in custom code SAP FICA

Hello Experts,
We have a custom functionality for credit card refunds. For account update during refunds a new debit document is created and force cleared with the credit card payment posted earlier on customer account. Logic for posting the debit document and clearing it with an already existing payment is in the same RFC Function module. Once the document is posted code issues COMMIT work and then goes for clearing.
We are facing intermittent failures during this process. Clearing fails to happen on some accounts.
Can this be because we are trying to do two types of database update on same document( i.e., creation and then clearing)?
Kindly advice.
Thanks,
Josep

Hi Josep,
Same situation was faced by me in custom RFC FM,
so as a solution i put a wait of 2 second after debit document was posted and then credit card payment was executed after wait, moreover one more thing to be taken care is that while posting the debit document system apply some locking entry so if possible clear the lock entry and then start credit card payment.
Hope it helps.
Thanks

Similar Messages

  • FB05 (post and clearing) u0093The difference is too large for clearingu0094

    I am passing entry through FB05 (Post and clear). The entry is between two GL accounts maintained as open items. At the time of passing the entry there is difference between these two accounts. I want this difference to be posted automatically to profit and loss account. (I don’t want to charge of the difference manually). I can not post the entry because system is throwing error such as “The difference is too large for clearing”. I checked the tolerance limit(OBA4), but the difference is within the tolerance limit.
    Does anybody know how to configure for this situation?
    Do I need to do any configuration in FBKP?
    (Please consider this very urgent)
    Regards,
    Amit Bedekar.

    Hello
    Check if this helps.
    Reason Codes
    Use
    To use the clearing document to find out why a difference existed, you can assign reason codes to the line items. Reason codes are indicated by keys that you define in Customizing.
    You can assign reason codes for the following:
    Partial payments made for open items.
    Residual items created for an open item. Here you can assign one or more reason codes. In this case, you divide the difference amount into a corresponding number of partial amounts.
    Differences posted on account without reference to an open item.
    For each line item you enter in the clearing procedure, if the reason code field for the account is ready for input.
    Integration
    When you process residual items, the reason code also controls how the remaining amount is posted. The remaining amount can be posted as follows:
    To a G/L account that is assigned to the reason code you enter.
    As a new customer or vendor open item if you do not enter a reason code, or if the reason code you enter is not indicated as described.
    Features
    Properties of Reason Codes
    For incoming payments, you can send a payment notification to the customer. This process can run automatically if differences arise during clearing. In the tolerance group set up for the customer, you can define what type of notice to create for partial payments, residual items, and payments on account.
    The system can use the specified reason code to determine the type of notice to create as long as only one reason code is specified in the entire clearing transaction.
    In order to check a customer's credit limit, the total of open items is taken into account. If certain contentious items should not be considered, you can define a separate reason code for these items.
    Reason codes control:
    How the difference is posted (as a new open item or to a predefined G/L account)
    What type of payment notice is created
    Whether an item is included in credit limit checks
    For information on defining reason codes, see the following activities in the Financial Accounting  Implementation Guide:
    Define Reason Codes (Incoming Payments)
    Define Reason Codes (Manual Outgoing Payments)
    Define Standard Reason Codes for Clearing with Payment Advice Notes
    Reg
    *assign points if useful

  • AR  posting and clearing

    Hi all,
    I posted several customer invoices with same reference but each invoice has different assignment field value.
    I configured selection criteria for clearing and Payment advice note.
    when I am trying to process incoming payment of one invoice through EDI 820 payment advice, system clearing all invoice under reference number and creating residual amount. i.e. clearing all invoices under reference no. and creating
    Debit: Cash( incoming invoice amount )
    Debit entry : (total invoices amount of same reference - one invoice Payment)
    Credit entry : Sum of invoices amount of same reference
    There is any way to clear specific above invoice automatically??.
    I appreciate your solution.
    Raj
    Message was edited by: RK Talabathula
    Message was edited by: RK Talabathula
    Message was edited by: RK Talabathula

    Hi Barry,
    Thanks for your response,
    I already defined fields.
    XBLNR - Reference,
    ZUONR - Assignment.
    Here System using FB05- post and clear for incoming EDI 820 payment advice.
    Here we have
    XBLNR - invoice reference
    ZUNOR - Material number
    We have a split invoice based on material number and many invoices under same invoice reference but assignment value is different(material is different).
    My problem is system not considering two fields together as selection criteria.it is taking one field i.e. XBLNR -reference or zunor- assignment and clearing amounts but not together.
    Thanks,
    Raj.

  • System allows GRs to be reversed after invoices have posted and clear

    Users have noticed that it is possible to post a GR, post and clear and Invoice, then reverse the GRs, which is an audibility problem. Previously (possibly before upgrade to ECC 6) this was not possible.Is there any configuration available to change this behavior, or  is it a standard SAP in ECC 6, or if there are unapplied OSS notes that would fix the issue.
    I checked transaction code OMBZ and the movement type 102, 106, 122, and 162 do not have a check on them.
    Is there another way of preventing the Goods Receipts to be reversed after invoices have been posted and cleared?
    Thanks,

    System allows GRs to be reversed after invoices have posted and clear
    Users have noticed that it is possible to post a GR, post and clear and Invoice, then reverse the GRs, which is an audibility problem. Previously (possibly before upgrade to ECC 6) this was not possible.Is there any configuration available to change this behavior, or is it a standard SAP in ECC 6, or if there are unapplied OSS notes that would fix the issue.
    I checked transaction code OMBZ and the movement type 102, 106, 122, and 162 do not have a check on them.
    I also checked the "GR based IV" in the PO item details, inoive tab and that is not checked.
    Invoice have been posted and cleared and now the GRs are reversing them, how to prevent this from happening. Is there a config. solution???
    Thanks,

  • FBL5N Review Open and Cleared Invoices per Customer

    WHen one of our users goes into FBL5N to review open and cleared invoices he adds the WBS and the Profit Center. When the report runs it is blank. I looked at the invoice itself and the WBS and Profit center is on the invoice but I don't know why it doesn't show up on the report. Can anyone tell me why this happens? Do I need to make any kind of adjustment before running the report?
    Thanks

    I looked at the VF03 and there is a WBS and Profit Center on the Invoice. If this report shows Open and Cleared invoices then it should bring what is on the invoice in the report but doesn't.
    I had someone email me this response"
    Hi linda,
    For your info, The reason why profit center and WBS element blank in report FBL5N is, this report purposely used to display subledger account.When me made a posting, balance sheet account is not require
    cost object.Only PNL account require cost object.
    Regards,
    Abdul
    I would like to know what other report in SAP shows open and cleared invoices with the Profit Center and WBS?

  • Issues during creation and maintenance of BOM using FM's

    I am facing problems while using FM's BAPI_MATERIAL_BOM_GROUP_CREATE , CSAP_MAT_BOM_CREATE .
       Previously i was using CSAP_MAT_BOM_CREATE but it did not support creation of another alternative bom if there already exists one for the same material,plant,usage.
       So i started using BAPI_MATERIAL_BOM_GROUP_CREATE. This bapi supports creation of alternative BOM's but i have a requirement that i need to create items with a specific item id.
       The Bapi's interface has a item table which has a field item_id which i am filling up but internally this bapi converts it into a structure using FM 'MAP2I_BAPI1080_ITM_C_TO_ITM_CL.'
       But this FM does not transfer the item_id from the bapi's structure into the internal structure field ident. The FM being called from this bapi for creating items - CS_CL_S_ITM_CREATE uses this ident field for updating item id in an item but this field is empty.Do you have any idea how this issue can be resolved ?
       Also similar to BAPI_MATERIAL_BOM_GROUP_CREATE i was not able to find a BAPI for changing an existing BOM.Currently i am using  CSAP_MAT_BOM_MAINTAIN.
       Can anyone please help me out with these issues .

    To enable and protect the variant maintenance of a report, it needs an S_PROGRAM group on it (see report RSCSAUTH).
    Via S_PROGRAM p_action = 'VARIANT' those users can then maintain the variants AND also submit the reports via report trees or transactions (including SA38 for example).
    To make the variant user specific for maintaining it but not restricting the ability to use it, take a look in transaction VARCH at the "Protection" flag (this is user specific then, for the current user who sets the flag first).
    Also see the SAP notes and discussions here about report RSVARENT - for globally unlocking the protection (to be used and protected itself with caution).
    To lock them down beyond the reach of the user's normal authority, you can also create custom system variants in client 000.
    Cheers,
    Julius
    Edited by: Julius Bussche on Jan 13, 2009 6:07 PM

  • Out standing expencess posting and clearing

    Hi,
    Can any one please give me the posting of “out standing payments and its clearing”.
    I mean to ask “I have to post outstanding salaries and I have to clear it later” can you please give me the transaction codes for these two activities.
    1.     transaction code to post outstanding expenses
    2.     transaction code to post clearing outstanding expenses
    thanku

    Hi,
    You can use the following T Codes,
    1. Use F-02 or FB01 to post the outstanding expenses
    2. Use F-04 to post with clearing or use F-03 to clear the GL debits and credits.
    If you wanted to make the provision entry and you wanted to reverse it on the first day of the next month, then use T code FBS1 to post the provision entry and to reverse it use T code F.81.
    Hope it clears you problem
    Regards,
    A.Saravanan

  • Issue during drag and drop in vb

    Hi Uwe,
    I want an urgent help on the following scenario.
    When i do a drag and drop anywhere on vb other than a link or spot.The screen freezes and when i try to do at lead selection on any of the FPM objects at the same time I get an assert condition violated dump.After my analysis I think its still possess the drop event when i try to do any other action on fpm at same time.This issue is happening for me in ie11 but for ie10 its working fine.
    Please suggest some remedy!
    Thanks
    Siju

    Hello Siju,
    I am aware of multiple issues with drag and drop in the context of VB embedded in FPM/WD. In order to sort this out correctly and get the right solution I suggest to open a support ticket on BC-WD-CMP-FPM.
    Best regards,
    Uwe

  • InfoPath 2010 and REST web services, custom code button firing twice and second click fires error

    Hi,
    I have two supposing simple issues which I'm having problems correcting.
    If a add a button to the form and write some custom code (See below) to submit some data via a REST Web Service data connection. The code runs but somehow fires the URL twice to the web service.
    I've also recreated similar functionality using Rules on a button and some concat formulas and exactly the same thing happens when I the run the data using the Query Data Action, it fires the URL twice at the web service.
    How can I stop this.
    Secondly, if I use the custom code route, it work correctly the first time it pressed except for the double fire issue, but the second time I click the button the InfoPath internal system throws up an issue. See screen shot below.
    Any help would be appreciated.
    Rob
    namespace SubmitTest
    public partial class FormCode
    // Member variables are not supported in browser-enabled forms.
    // Instead, write and read these values from the FormState
    // dictionary using code such as the following:
    // private object _memberVariable
    // get
    // return FormState["_memberVariable"];
    // set
    // FormState["_memberVariable"] = value;
    // NOTE: The following procedure is required by Microsoft InfoPath.
    // It can be modified using Microsoft InfoPath.
    public void InternalStartup()
    //EventManager.FormEvents.Submit += new SubmitEventHandler(FormEvents_Submit);
    ((ButtonEvent)EventManager.ControlEvents["SaveDataPoint"]).Clicked += new ClickedEventHandler(SaveDataPoint_Clicked);
    /*public void FormEvents_Submit(object sender, SubmitEventArgs e)
    // If the submit operation is successful, set
    // e.CancelableArgs.Cancel = false;
    // Write your code here.
    MessageBox.Show("Submit Function Start");
    //SaveDataPoint_Clicked(sender);
    MessageBox.Show("Submit Function End");
    public void SaveDataPoint_Clicked(object sender, ClickedEventArgs e)
    try
    FileQueryConnection fqcConnection = (FileQueryConnection)this.DataConnections["TestREST"];
    string fqcFileLocation = fqcConnection.FileLocation;
    MessageBox.Show("fqcFileLocation " + fqcFileLocation);
    fqcFileLocation = fqcFileLocation + "?TestName='HugeArse'";
    fqcConnection.FileLocation = fqcFileLocation;
    fqcConnection.Execute();
    catch (Exception ex)
    MessageBox.Show("NewDataPoint_Clicked: Error " + ex);

    Hi Phillip6653,
    Did you check the similar
    thread to uninstall the windows update KB2756920 which was published on day 1/10? After auto install the update, on day 1/11, the same error occur when I open site using designer, after I uninstall it, it works for me, please have a check.
    For more information, see
    http://consultingblogs.emc.com/shailensukul/archive/2010/09/17/sharepoint-designer-error.aspx
    http://daniyar-tech.blogspot.com/2012/01/sharepoint-designer-2010-error.html
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Issues with creating and sending BOM XML IDOC to SAP using 2010 WCF-SAP Adapter (without using Biztalk Server)

      I'm trying to replace an existing Biztalk 2006 Send BOM IDOC process, and completely remove Biztalk server from the equation.   The existing Bizatalk 2006 server receives an input BOM (Bill of Materials) flat file, and using a Biztalk Map (BM08),
    and Orchestration, generates an Idoc and sends it to SAP.
      In my replacement C# program, I'm using the 2010 WCF-SAP Adapter, and am trying to generate the BOMMAT03 XML IDOC it to SAP.  
      I generated the BOMMAT03 schema from SAP using the Add Adapter Service in VS 2010.  I was able to generate a BM08 XSLT from the existing BMO8 map in the current Biztalk 2006 process.  I am able to run a XSLT transform on the input BOM flat
    file, and generate an XML file from that.  
      However, I've run into a few issues.   First of which, is that the XML file that is generated from the XSLT transform is NOT the same schema as the BOMMAT03 schema expects.  It's somewhat similar, but different enough that I have to manually
    translate between the two in my code.  I've verified that both the original Bitztalk 2006 process and my replacement program use BOMMAT V3 from SAP.  Question--Is Biztalk 2006 server doing some other magic to turn that transormed XML into the BOMMAT03
    schema?    
     I ended writing code which translates the transformed XML into the BOMMAT03 schema (which is a strong typed XML IDOC at this point).
      However, when I try to send the BOMMAT03 XML IDOC, I get an exception "Object reference not set to an instance of an object."
                   idocClient.Send(idocData, ref sadapterTxGuid);
    idocData is of type BOMMAT03, and I've verified that the various fields are populated.  
      Any help is appreciated. 

    Well, putting in a MSDN subscription support ticket for Biztalk server actually helped with the issue.  They didn't find, or fix the issue directly.  But one of the examples (https://randypaulo.wordpress.com/tag/idoc/) they sent over, jogged my
    memory, and I realized in the code snippet below, I had accidentally deleted the 1st line.  Such a simple mistake, yet was easy to overlook.  The URL example is almost EXACTLY like my code, but without the transform and translation code to convert
    from input XML file to IDOC XML.  If someone is interested in that, let me know.    
    //Forgot the 1st line.  
    idocClient = new IdocBOMMAT03SIEIS_WED_BOMMAT03V3R700Client(binding, endpointAddress);
     idocClient.Send(idocData, ref sadapterTxGuid);
    For anyone else interested in knowing, you CAN send a strongly typed IDOC to SAP using C#.NET and the WCF SAP 2010 Adapter, using the IDOC Binding Client class you generated using the Add Adapter Service Reference in VS2010.  
    The one difference, which no one, not even the tech support from MS could tell me, was why the XSLT which I generated from the original map, did not transform the input BOM XML into the BOMMAT03 XML.  Instead, it transformed it into an intermediate
    XML, which resembled the BOMMAT03 IDOC XML, but still needed to be translated to the BOMMAT03 IDOC format.  
    The tech support person swore up and down that it should.  But I believe that something happens in Biztalk server, after the Mapping occurs, maybe in the Pipeline, which converts that
    intermediate XML into the final BOMMAT03 IDOC XML format.
    I do think that the examples are severely lacking in showing how to send a strong typed IDOC using C# and the WCF-SAP Adapter.  Even worse, the examples are completely lacking in how to actually generate a weakly typed IDOC.  They show how to send
    that weakly typed IDOC, but show me, or give me a class to be able to generate it.
    I realize that this is not quite the "recommended way" to do it, but in reality, not everyone wants or even needs a full Biztalk installation.   For some simple stuff like this, a C#.NET program and WCF-SAP adapter do the trick.  

  • Credit Limit issue during PGI despite Credit available to customer

    Dear All,
    We have configured for Credit Management for Customer.
    Everything was working perfectly fine for a very long time. But now there suddenly seems to be an issue. The customer has available credit but still the system does not allow us to do PGI. It gives an error message that the customer credit limit has been exceeded.
    We checked in FBL5n and found that credit is available. There are no backlogs. But in FD32 we found that the credit exposure shows values in positive and the Blocked check box is ticked therefore blocking the customer. When we checked through Menu path - Environment - Sales & Distribution Docs - Open Orders and Open Deliveries , here we found that in table S067 there are open orders and open deliveries. But upon cross checking with VA05n and VL06/Vl04, we found no open deliveries or open sales orders.
    This seems to us as a strange issue that the system is not updating the LIS table although we have not configured for LIS.
    We contacted SAP for this and were given a temporary solution to execute program RVDREK77 to clear the table. But this dosent seem to be a permanent solution since we have to run this everyday as a background job. Also this program can be run only when no other transaction happens in SAP.
    If anyone has faced a similar problem, I would request to suggest us a permanent solution for this.
    Thanks & Regards,
    Rohan Gudavalli.

    Hi Rohan,
    As per my understanding of the issue, There is problem in credit updation. To manage this you have to run  the program RVKRED77. On executing this program system will reorganize the credit in case of update errors. Please have this execution done once in a week during week ends for required credit control areas. This is quite common problem we encounter regarding the updation of credit and the only way is to run the mentioned program periodically.
    As you know normally in credit S066 and S067 information structures are involved in the updation. These information structures work in tandem with the update group which is assigned in OVA8 screen resulting in the updation of credit.
    When an order is created S066 information structure gets effected and OEIKW field value gets increased.
    When order is delivered S066-OEIKW gets decreased and S067-OLIKW gets increased.
    When delivery is billed S067-OLIKW gets decreased and S067-OFAKW gets increased.
    So credit is completely controlled by the information structures and the update group. Some times it happens that system will not be able to update the credit. To re-organize the credit incase of update errors please have a background job set up done prferably during week endsfor the program RVKRED77.
    As you are saying that you have problem with only one customer; please check whether oldest open items check is evaluated.
    Please use the program Check_CM to analyze the credit. On inputing the order number or the delivery number you can get the complete analysis of the credit done for the order or delivery.
    Hope this explains.
    Edited by: mokirala tilak on Jan 6, 2012 6:21 PM

  • Transfering avip fields to BSEG during Post With clearing

    Greetings All,
    The AVIP table has fields SGTXT (Text) and ZUONR (assignment).  If you fill in these fields when you create a payment advice, and you later use that payment advice to apply using FB05 or F-28, these fields are not copied to the resulting accounting document.  As soon as the remittance advice is applied, it is deleted from the system.
    So two questions:
    Short of modifying the SAP transaction (which is a possibility), is there any way to get the FB05 and F-28 transactions to use the AVIP-ZUONR and AVIP-SGTXT fields rather than defaulting the rather worthless Docnumberyear combo in ZUONR and "Spcfy in p.adv: Document Number XXXXXXXXXx" in the text?
    If not?  Could somebody explain to me the point of providing SGTXT and ZUONR fields on a table entry which will be short-lived?
    thanks

    Hi Thomas,
    I am also looking for an answer to the same issue (AVIP-ZUONR) you have. Were you able to find out a solution. If you did, would you mind share the info please?
    Thanks

  • Email issues with iPad and iPhone together

    Hi,
    I have an iPhone 4 and just got an iPad with wifi+3G. When I set up my iPad for email, I started getting email on the iPad ok, but I stopped getting new email on my iPhone. I want email to be received in both places.
    I had been receiving email on my iPhone and my desktop through Mac mail just fine, in both places. I set up my iPad the same way I set up my iPhone:
    Fetch new data set to push, using imap for incoming and smtp for outgoing.
    My iPhone is giving the alert that new mail has arrived, as in the little red number pops up over the mail icon, but no new mail is showing in my inbox.
    How do I receive mail on both my iPad and iPhone?

    Hi Lori,
    Mac OS X (10.6.4)
    If you are running v10.6.4, click the Apple () menu (top left in your screen) Software Update ...
    Then sync both devices, restart both devices.
    Carolyn

  • F-30: posting with clearing a document with special G/L indicator and tax

    Hi All,
    by t.code F-02 I've posted a document with the follow items:
    PK     SG      Account Description
    40                Bank G/L Account   u20AC 1200,00
    19      A       Customer code         u20AC 1000,00-  (1000,00 amount and 200,00 tax amount)
    50                Tax G/L Account     u20AC  200,00-
    If I launch the t.code F-30 (post with clearing), choose that customer and select the special G/L indicator "A", SAP displays
    the document I've posted with an amount equal to 1.200,00- instead of 1000,00.
    This does't allow me to clear the open Item....
    Could anyone hel me?
    Thanks
    Gandalf

    Hi
    A   payment  recorded  with   special GL indicator  is automatically set  as  locked.  This is  sap  program and cant be changed.  When  the  related invoice is  recorded ,  the   down payment  can  be cleared  with it  using  F-39, provided  the down payment relates to the same  sales / purchase order.
    For  the  difference in customer  amount,  its  difficult  to answer as    it may be due to  wrong account selection or  wrong amount entered in customer.
    Thanks
    kamala

  • Incoming payments posting without clearing the customer open item

    Hi,
    Is there a way to post an incoming payment to a customer and let it sit as an open item?
    I want to segregate the posting and clearing of AR payments.
    One user posts the payments to the customer account.
    Another user clears this payment against an open item.
    All t.codes F-26, f-52 and f-28 all go on to processing open items and don't work for me..
    Does anyone have any workaround or suggestion on how to accomplish this?
    Thanks

    I can suggest posting the cash to the customers account as an unallocated enty using F-28 - we use charge of the difference and the posting keys to mange this.
    The the other users can contra the items to the open items using F-32 clear customer.

Maybe you are looking for