POSTING_INTERFACE_CLEARING - clear two documents

Hi,
I need to create a new program that should be able to clear two documents by comparing the ASSIGNMENT filed of the payment document (DZ) against the REFERENCE field of the installment invoice (II).
I can do this via batch input in FB05 (choosing open item -> Select Document Number in Radio Button -> Enter Account -> Click Process Open Items -> Enter Document Numbers -> Post).
However, I came across the FM POSTING_INTERFACE_CLEARING and tried to use it.  Unfortunately, I was not successful in using this to clear the items that I need to clear.
Do you think I can use the said FM for clearing two open items to produce one clearing doc using the document number? 
Can you please provide sample code if you have one?
Thank you very much in advance for your inputs.
Best regards.
Brando

Please be informed informed that the invoice and payment are already present in table BSID.  I would just need to clear them in my custom program.  Thanks.

Similar Messages

  • Clearing two documents with POSTING_INTERFACE_CLEARING

    Hi, all
    I'm trying to use POSTING_INTERFACE_CLEARING function module to clearing two documents each other with
    additional cost. It's detail is like belows:
    1st,
    01(D) Customer A/R (100 EUR)  
    50(C) Sale (100 EUR)
    2nd,
    40(D) Bank Account (80 EUR)    
    50(C) Imcoming (80 EUR)
    3rd,
    40(D) Incoming (80 EUR)
    40(D) Cost for sale (20 EUR)        
    15(C) Customer A/R (100 EUR)
    Function Module really works fine.
    But the problem is that it displays popup dialog box asking whether to post
    the different amount of 1st and 2nd documents.
    I have to suppress this dialog box.
    But I could not found any way to hide it.
    I hope there would be some helpful replies...
    Thanks and regards,
    Lee

    hi,
    i think that's not possible to block this.
    an alternativfe is abap <b>rfbibl00</b> (see docu with trx. se38)
    A.

  • While doing F-32 residual payment - Two documents generated AB and RV

    Hi all,
    While Clearing partial payment with respect to Invoice thorough F-32 ( As residual )- Two documents generated AB and RV in development system.
    where as in Quality and Production system there is only one AB document generated.
    Is it standard behavior to generate AB and RV?
    Customer don't what that RV document to be generated.

    Hi,
    This is  one of the option given by SAP to manage your  open items in case of  partial payments. In this  process when you go for residual payment, your original open item against which partial payment is made gets cleared &  system automatically creates a new  open item with the balance amount.
    e.g  you have an open item of Rs 10,000/- since  01.03.2014 & today i.e on 01.04.2014 you are making an payment of Rs 6,000/- against the said  item & you  opt for residual payment. In this case the original open item   i.e Rs 10,000/- gets cleared  & a new open item of  i.e Rs 4,000/-  get created . Note that this new open item created by the system  will have  the new document date (01.04.2014) and new baseline date, i.e here aging of your receivable/payable does not reflects the true picture.
    But this  is not the case when you opt for partial clearing method. In partial clearing method , the original open item is not cleared, instead  both the items are shown as open items.
    If you take the case of above example, after making the partial payment of Rs 6,000/- against Rs 10,000/- you will have two open items. One the original one of Rs 10,000/- since 01.03.2014 and another for Rs 6,000/- on 01.04.2014.In this case the aging of your receivable/payable shows the true picture.
    Yes its  a business decision ,which method to  adopt.
    Thanks & regards
    Deepak

  • Trading partner while clearing the document

    Hi All
    while making posting the GL account is taking one trading partner,,,,,,,,and while automatic clearing it is taking another trading partner.
    in GL master data there is no trading partner has given.
    for same GL account it is showing two trading partners after clearing a document.
    plz suggest
    Regards
    Prasad

    Hi Prasad..
    the copying the trading partner is based on the document type check boxes "inter-company postings" check what document types used by the same GL for two transactions...and check the behaviour of those document types...
    regards..
    pranav

  • OB28 validation: not possible to clear future documents

    Hi dudes,
    I'm looking for how to build an FI validation (if possible) on OB28.
    The purpose is to block users to clear a document of a future year.
    Ex.
    billing document y. 2009
    payment document y.2010
    the users create a clearing document with y.2009
    It's possible to block this action with a simple OB28 validation?
    I tried with a BKPF-BUDAT < BSEG-AUGDT but possibly I can't use two different tables on the same validation step.
    Thanks.
    Regards

    You can use a exit in your validation.
    1. Check that you have declared the form pool for application area "GBLR" validations in View V_T80D_SL. If not, then enter the name of the form pool (e.g. YRGGBR000) and copy the standard program RGGBR000 to the new program (e.g. YRGGBR000).
    2. Declare the exit (the exit name, by convention is U9<XX>, where <XX> is a serial number.) after data statements in "FORM get_exit_titles" as follows:
    form for Future Clearing
      exits-name  = 'U9<XX>'.                  "Description/ Purpose
      exits-param = c_exit_param_none.       
      exits-title = text-9<XX>.                     "Name of the exit
      APPEND exits.
    3. Put your Code/ Logic in a new form "U9XX"  as follows:
    FORM U9<XX>  USING b_result.
    <PUT YOUR OWN CODE HERE>
    *All fields of Tables BKPF, BSEG, COBL, GLU1 & ANLA are available here>
    *REMEMBER - Some of the field values might not have been populated>.
    ENDFORM.
    4. Maintain text symbol U9<XX>, activate the form pool/ text symbol and exit.
    5. Use OB28 to create a new step in a new or existing validation at suitable call up point.
    6. Enter any pre-requisite, if required.
    7. Select the "Check" node of your validation step. select "Exits" tab. You will find your exit U9<XX> here. Double click on it to insert in the "Check" code.
    8. Select the "Message" Node of your validation step and enter the message type, no and variables. Save & Exit.
    Regards
    K.K. Tripathi

  • How to create Doc Link between two document numbers?

    Hi Folks,
    I have two document numbers with different transaction type.
    I want to create a Document link between these two documents, i.e. each documents should come in Dock Flow of each other.
    How to acheive this target.
    I tried to do it by using FM CRM_DOC_FLOW_MAINTAIN_OW, but not able to achieve it.
    So please tell me how to do this thing.
    Regards
    PG

    Hi PG,
    The FM CRM_DOC_FLOW_MAINTAIN_OW should work , I am not sure what parameters you are passing. Any way you can use the CRM_ORDER_MAINTAIN as well which will eventually call CRM_DOC_FLOW_MAINTAIN_OW . Have a look of the sample code, This will give you some idea
    lw_input_field_names-fieldname  = 'GUID'.
          INSERT lw_input_field_names INTO TABLE lt_input_field_names.
          CLEAR lw_input_fields.
          lw_input_fields-ref_kind    = gc_object_kind-orderadm_h.
          lw_input_fields-objectname  = gc_object_name-orderadm_h.
          lw_input_fields-ref_guid    = lw_orderadm_h1-guid.
          lw_input_fields-field_names = lt_input_field_names.
          INSERT lw_input_fields INTO TABLE lt_input_fields.
          lw_doc_link1-objkey_a   = lw_orderadm_h-guid.
          lw_doc_link1-brel_kind  = gc_brel_kind-header_header.
          lw_doc_link1-brel_mode  = gc_mode-create.
          lw_doc_link1-reltype    = gc_bin_rel_type-predecessor_successor.
          INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
          lw_doc_flow1-ref_guid   = lw_orderadm_h1-guid.
          lw_doc_flow1-ref_kind   = gc_object_kind-orderadm_h.
          lw_doc_flow1-doc_link   = lt_doc_link1.
          INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
          CLEAR lw_input_fields.
          REFRESH lt_doc_link1.
          lw_input_fields-ref_kind    = gc_object_kind-orderadm_i.
          lw_input_fields-objectname  = gc_object_name-orderadm_i.
          lw_input_fields-ref_guid    = lw_orderadm_i1-guid.
          lw_input_fields-field_names = lt_input_field_names.
          INSERT lw_input_fields INTO TABLE lt_input_fields.
          lw_doc_link1-objkey_a   = lw_orderadm_i-guid.
          lw_doc_link1-brel_kind  = gc_brel_kind-item_item.
          lw_doc_link1-brel_mode  = gc_mode-create.
          lw_doc_link1-reltype    = gc_bin_rel_type-predecessor_successor.
          INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
          lw_doc_flow1-ref_guid   = lw_orderadm_i1-guid.
          lw_doc_flow1-ref_kind   = gc_object_kind-orderadm_i.
          lw_doc_flow1-doc_link   = lt_doc_link1.
          INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
          CALL FUNCTION 'CRM_ORDER_MAINTAIN'
            CHANGING
              ct_orderadm_h     = lt_orderadm_h1
              ct_input_fields   = lt_input_fields
              ct_doc_flow       = lt_doc_flow1
            EXCEPTIONS
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              OTHERS            = 5.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            RAISE error_occurred .
          ENDIF.
    Hope this will help.
    Thanks,
    Vikash.

  • Error while clearing a document.

    Dear All,
    When I try clear from account 2370500 items, which will generate exchange rate differences, I get the following message: Ex.rate diff.accts are incomplete for account 0002370500 currency EUR. The other items can be cleared. Please complete the account 2570900.
    The GL account 2370500 is an Accrued expenses / Other, short-term, external account.
    I've already maintained the OBA1 and OB09 settings for this account, But still I'm getting the error while clearing the account.
    Is it possible through some Valuation reversal in F.05? If yes, Please let me know the detailed procedure for reversal of the document.
    Please help me out in this issue.
    Thanks a lot in advance!!

    Hi,
    I got that field in master data, but I've faced lot of issues as exactly same now,After maintaining the OBA1 settings I always able to post. Do you think maintaing the necessary settings in the master data relating to the exchange rate key I'll be able to clear the documents b'coz previously I've not maintained these kind of settings you're talking about.
    Could you please tell me how it'll affect to my problem after maintainong the necessary settings there?

  • Unable to cancel Billing due to cleared accounting document for Free Goods

    Hi,
    I have a case as described below:
    I.                    SALES ORDER CREATION
    Transaction VA01 à Sales order is created for the following details:
    1.       Material Normal  (TAN) : 100 CAR
    2.       Free Goods (TANN) : 10 CAR
    II.                  Subsequent processing of sales order 
    a.       Delivery(1) and Billing (1) creation for the SO with the following details :
    Material Normal (TAN) : 100 CAR
    Free Goods (TANN) : 5 CAR
    Status of accounting document after releasing billing document to Accounting: Not cleared
                    Accounting Journal:
                    A/R                                                                     xxxx
                    Sales discount                                                     xxxx
                                    General Domestic Sales                                        xxxx
                                    VAT u2013 Out(TAX)                                                    xxxx
    b.      Delivery (2) and Billing (2) is then being made for the leftover item of the Sales Order:
    Free Goods (TANN) = 5 CAR  
    Status of Accounting document after releasing billing document to Accounting: CLEARED
    Accounting Journal
    Dr. Sales Discount                                        xxxx
                            Cr. General Domestic Sales                  xxxx
    III.                Reversal of Billing (2) needs to be done
    Activities conducted:
    a.       Go to VF11 and enter Billing (2) document number
    b.      Execute!
    System response:
    Error Log:
    1)      Data inconsistency during processing of document xxxxxxx
    2)      The Billing Document xxxxxxx  is already cleared
    From the error found, we tried to reverse the cleared accounting document by using t-code FBRA:  
    System response:
    Document xxxxxx IS NOT  a clearing document
    Question:
    We have to reverse the clearing document first in order to cancel the related billing document but we keep finding this error, do Anyone have any advice to solve this issue?
    We have simulated similar transaction in IDES and no problem is found, is there any specific setting in customizing that can allow cancellation of billing document regardless of its accounting document status (Cleared or Not Cleared) ?
    Thanks in Advance,
    Indro

    Thanks a lot for the reply,
    It answers my question, I found the copying requirement using routine 029 was defined in the cancellation document section of the Billing type to be cancelled
    After removing, the billing document can be cancelled
    Thanks,
    Indro

  • [CS3 JS] Working with two documents of the same name

    I work with sets of documents that use standardized names. I'm trying to write a script that compares two documents from different sets. Because the source and the target documents both have the same name, I've encountered some disturbing behavior that reminds me of the app.activeWindow bug that Dave has written about. (
    Dave Saunders, "Scripting FAQ as Wiki" #14, 15 Oct 2007 12:19 pm)
    To perform the comparison, I have to grab a reference to the same region of text in both documents, as offset from regular landmarks. I was just patting myself on the back for figuring out the "story.characters.itemByRange(begin, end).texts[0]" acrobatics required, when I discovered that my text objects were magically "dissolving" into invalid objects.
    After a lot of debugging and attempts to hack around the problem (i.e. storing the text begin/end indices and not grabbing the text object until the last possible moment), I've narrowed it down to the references to the source and target documents. I've watched the reference variable to the source document *change* to instead reference the target document when I start accessing the target document object. Once this happens, any text objects belonging to the source document become invalid, as if the source document had been closed.
    Is there any way around this? I've thought about temporarily saving the files to different names, but I haven't tried it yet.
    Here's a script that demonstrates the problem (you'll have to find your own same-named documents if you want to run it):
    var source = "/Users/deyk/Desktop/test/source";
    var target = "/Users/deyk/Desktop/test/target";
    function findChapters(in_doc) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = "chapter-num";
    app.findGrepPreferences.findWhat = "\\d+";
    return in_doc.findGrep();
    var sdoc = app.open(File(source+"/01.Genesis.indd"));
    var s_file_start = sdoc.fullName;
    var s_chs = findChapters(sdoc);
    var s_story = s_chs[0].parentStory;
    var s_txt = s_story.characters.itemByRange(s_chs[0].index,
    s_chs[1].index-1).texts[0];
    var tdoc = app.open(File(target+"/01.Genesis.indd"));
    // At this point, sdoc now references tdoc instead.
    // s_txt, s_story, and s_chs become invalid objects.
    var t_file_start = tdoc.fullName;
    var t_chs = findChapters(tdoc);
    var t_story = t_chs[0].parentStory;
    var t_txt = t_story.characters.itemByRange(t_chs[0].index,
    t_chs[1].index-1).texts[0];
    var s_file_end = sdoc.fullName;
    if (s_file_end.name != s_file_start.name) {
    var result = "What a nasty bug!";
    "Finished";

    I've tried saving the document to a temporary name, and it works satisfactorily:
    function openFileAsTemp(a_file) {
    var tmp_folder = Folder.temp.fullName;
    var date = new Date();
    var temp_file = File(tmp_folder+'/'+date.valueOf()+'_'+a_file.name);
    var doc = app.open(a_file);
    doc = doc.save(temp_file);
    return doc;

  • How to clear reference document with residue created with Automatic payment

    Dear All,
    Here is my scenario: This is related to vendor payment.
    F-47 Down Payment Request is created for amount Rs.1000.
    F110 Down Payment paid Rs.1000
    An invoice document type "KR" created with amount Rs.1250
    Using F-44, the downpayment and invoice is cleared resulting into an accounting document with Rs250 out standing.
    Now, if I try to run F110, the new document with amount 250, doesnt get picked up. I tried to give document num, doc type, still it is not working.
    Also, the requirement is to clear it using F110 only.
    Will appreciate any help.
    Thnx.
    Best regards,
    Karan a

    Hello,
    Please check in FBL1N whether the document is showing in open item, if yes then check the payment method. I have tried the same scenario in my system its working fine.
    If the document is not showing in open item then check the payment terms and change it accordingly or check the bill date and change it to come the document in the open item then run F110.
    Hope this would help you to clear your document.
    Thanks, Vijay Dikondwar

  • Not cleared two line items from the GR/IR clearing

    For one of the items in PO following transactions are done...
            Mtype   Date            Quantity             Amount
    GR   101    06/14/09        1 02.001            887.85
    GR   102    06/14/09        102.001-            887.85
    GR   101    06/14/09        101.999             887.85
    GR   101    07/22/09        102.001             923.61
    IR-L            06/14/09        102.001            887.85
    IR-L            06/14/09        101.999            887.85
    FBL3N: out put
    Open items
    Doc Type  Date                           Amount
    WE           06/14/2009 86            887.85
    WE           07/22/2009 96            923.61-
    Cleared items:
    Doc Type  Date                           Amount                                                                     
    WE            06/14/2009  96              887.85-
    Z9             06/09/2009  86              887.85
    WE            06/14/2009  96              887.85-
    Z9             06/09/2009  86              887.85
    System has not cleared two line items from the GR/IR clearing for this line item in PO.
    What could be the reason these items are not cleared and now how these line
    items can be cleared?

    Hi,
    When the Dr and Cr amount are equal to zero system will automatically clear the line items in F.13.  Here the open items are appearing with different amounts due to that system not able to clear.
    By passing some manual JV or something you done to make Dr and Cr equal to zero then you clear through F-03(untick post automatically for this clearing in T.cdoe FS00)
    Regards,
    Sankar

  • 11.4.0 How to CLEAR Recent Documents? Prior version had a delete option. Run 4.1.1 on a 64Gb Excite tablet.  Thanks

    I just updated my tablet to the new version.  I find no options to clear/delete Recent Documents. Where do I find that option? Or do they self de-solve in time?
    Thanks

    This is Senko from earlier in the thread something went wrong somewhere and after a few attempts to retrieve a lost password and email to that aodbreader-android address (failed every time) I gave up and made a new account.
    I use a large amount of manuals and pdfs in my work and will often open 10+ different ones a day. Previously I could regularly clear recent documents so I only had the ones I was using at the time in recent documents but I had the original I could reopen if needed.
    With the removal of this feature recent documents is utterly useless as I have dozens of "recent" documents making it almost impossible to find one specific one as its easy to scroll past the one I want. However deleting the original is no use because I may well need it again a few days later so I'd be constantly deleting and reinstalling files. Compared to the previous convenience of just clearing recent documents so I only actually have the ones relevant to what I'm doing at the time in recents but being able to retrieve another if it turns out to be useful.
    Currently I don't bother to use recents at all but will just open documents go to the relevant folder and open the one I want since I have 20+ files in my recents list and don't want to permaenntly delete any of them. This feature is one I would greatly appreciate being restored as it makes my work life much easier.

  • How to change the color of letters instead of highlight the text when compare two documents

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

  • The same delivery in two document for shipment

    Hello,
    I wonder if there is a way to block the delivery if it is already in another document shipment. Is there any way in customizing? Because the way it is configured the system is allowing a single delivery is contained in two documents of freight transport and calculating twice.
    observation - the delivery is not split.
    Thanks,
    Tatiane

    Hi,
    In standard system I'm not aware of any setting that would restrict the assignemnt of one delivery to several shipment.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/5f/e411bb044411d2bf5d0000e8a7386f/frameset.htm
    Since a delivery for which the billing document is to be created can be part of several shipments (for example, in the case of a transportation chain), it can happen that several shipment cost documents need to be calculated so that the billing document itself can at all be created.
    I guess you have to:
    - use proper selection criteria when assigning deliveries to the shipment (e.g. proper transportation planning status (VBUK-TRSTA) --> you can define variants)
    - go to development (SPRO > LE > Transportation > System Modifications > User Exits for Transportation + SPRO > LE > Transportation > System Modifications > Biusiness Add-In in Transportation)
    In Is-Oil there are built in checks:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/70/23d610419311d2ac100000e829fbfe/frameset.htm
    Regards,
    Csaba
    Edited by: Csaba Szommer on Jan 19, 2010 8:53 PM

  • Differences between Acrobat 8 and 9 for Comparing two document

    Hi,
    We have huge differences in Acrobat 8 and 9 while doing comparing the two document even both the text are identical. Acrobat 8 comparison document is very easy and effective when compare to Acrobat 9.
    I have attached the Acrobat 9 and 8 comparison screenshots.
    Can we have any other method in Acrobat 9 Professional to show exact text mismatch?
    Thanks & Regards,
    Sudhakar

    Can any one help me in this regards?
    Thanks in Advances
    Sudhakar

Maybe you are looking for

  • Help on decode

    Hi, I am trying out a where clause for forms which should satisfy the following condtions: 1.if the variable(:var) is null that is by default it should display all the records. 2.if the variable is selected then the rows should be selected which begi

  • HT5633 On wireless keyboard...Connect to multiple?

    We have a mac Mini and Apple TV together, Can one key board be linked to both

  • How to close skype community account

    does anyone know how to close this skype community account that i had to create just to post a simple answer to something i read and found out how to solve easily.. this BS CRAP THAT GOES ON YOU HAVE TO HAVE ACCOUNTS EVERY PLACE TO POST SOMETHING COM

  • Transfering music from old iPod to iPod Nano 4th

    Hi guys, I just got my new Nano today and I cannot figure out how to transfer my songs from my old Ipod ( I bought it back in 2004--first generation--the one with the buttons:-) ) to my brand -new Nano. Here are some details: - all my songs are from

  • Motion 5.2 Missing Image Mask?

    I recently noticed (probably coincident with update to 5.2, but not sure) that when I add an Image Mask, I can only see it in the Timeline, not in the layers. In the picture below, you can see the group in both Layers and Timeline, but only in the Ti