POSTING_INTERFACE_CLEARING

Hi gurus,
I'm facing a problem, when using "POSTING_INTERFACE_CLEARING", populating the field DF05B-PSSKP (discount), does anyone knows using this funcion modulo how to populate this fields ?
Thx in advance ... Ricardo.

I've solved it.
You must fill the table ftpost with the header data and all the documents to be cleared in the ftclear table. In this last table you must use the field 'selfd' to indicate from what field get the data.
There's an example:
Header data:
        t_ftpost-count = 1.   "Nº de dynpro.
        t_ftpost-stype = 'K'. "K = Cabecera.
        t_ftpost-fnam  = 'BKPF-BLDAT'.
        t_ftpost-fval  = fecha.
        APPEND t_ftpost.
        t_ftpost-fnam  = 'BKPF-BUDAT'.
        t_ftpost-fval  = fecha.
        APPEND t_ftpost.
Documents to be cleared:
loop...
          CONCATENATE factura
                      ti_alv1-ejercicio
                      ti_alv1-posicion
                 INTO factura.
          t_ftclear-agkoa = 'S'.
          t_ftclear-xnops = 'X'.
          t_ftclear-agbuk = ti_alv1_aux3-sociedad.
          t_ftclear-agkon = aux_cuenta_pos.
          t_ftclear-selvon = factura.
          t_ftclear-selfd  = 'BELNR'.
          APPEND t_ftclear.
endloop.
        CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
          EXPORTING
          Proceso de compensación          = Salida de pagos
            i_auglv                          = 'AUSGZAHL'
            i_tcode                          = 'FB05'
          IMPORTING
            e_msgid                  = i_msgid
            e_msgno                  = i_msgno
            e_msgty                  = i_msgty
            e_msgv1                  = i_msgv1
            e_msgv2                  = i_msgv2
            e_msgv3                  = i_msgv3
            e_msgv4                  = i_msgv4
            e_subrc                  = i_subrc
          TABLES
            t_blntab                 = t_blntab
            t_ftclear                = t_ftclear
            t_ftpost                 = t_ftpost
            t_fttax                  = t_fttax.
I hope this could help you.
Don't forget regards points :-P

Similar Messages

  • FB05 posting problem using POSTING_INTERFACE_CLEARING

    Hi All,
      I have a problem posting FB05 using POSTING_INTERFACE_CLEARING.My requirement is to select open item based on document number and then create another leg for that open item using GL account,posting key and amount that matches the selected open item amount.
    I am not sure whether I am not doing the right thing because I get an error 'Difference is too large for  clearing'. If I actually go to FB05 and 'choose open item' for document number and try to hit 'Save' on the list of open items screen,I get the same error. I then  select 'Charge off difference' and it takes me to screen that is quite similar to FB01 and I enter the other leg of the entry i.e posting key,acct no,amount etc.I want to replicate the same process using funtion module.I am sending you the code,please help me.
    start-of-selection.
      i_splitinput-compcode = '0410'.
      i_splitinput-currency = 'USD'.
      i_splitinput-amount = '299'.
      i_splitinput-reference = '90286483'.
      i_splitinput-date = '20090320'.
      i_splitinput-type = 'D'.
      i_splitinput-clearingacct = '101002'.
      append i_splitinput.
      loop at i_splitinput.
        at first.
          perform posting_interface_start using 'C'.
        endat.
        at new currency.
          perform f_create_document_header using i_splitinput-compcode
                                                 i_splitinput-currency.
        endat.
        perform f_create_document_items .
        at end of currency.
          perform f_post_gl_document.
        endat.
        at last.
          perform f_posting_interface_end.
        endat.
      endloop.
    *&      Form  posting_interface_start
          text
         -->P_P_TYPE  text
    form posting_interface_start  using    p_type.
      data lv_mode type c value 'N'.
      if p_type = 'C'.
        call function 'POSTING_INTERFACE_START'
          exporting
            i_function         = 'C'
            i_mode             = lv_mode
            i_update           = 'S'
          exceptions
            client_incorrect   = 1
            function_invalid   = 2
            group_name_missing = 3
            mode_invalid       = 4
            update_invalid     = 5
            others             = 6.
        if sy-subrc <> 0.
          message 'Error initializing posting interface'(e05) type 'I'.
        endif.
      endif.
    endform.                    " posting_interface_start
    *&      Form  f_create_document_header
          text
    -->  p1        text
    <--  p2        text
    form f_create_document_header using p_compcode p_currency.
      data: l_waers type waers,
    l_postdate(10) type c,
    l_docdate(10),
    l_bktxt type bktxt,
    l_blart type blart.
    *---Convert dates to proper format MM/DD/YYYY
      write p_pstdat to l_postdate mm/dd/yyyy.
      write p_docdat to l_docdate  mm/dd/yyyy.
      i_ftpost-stype = 'K'.   "Header
      i_ftpost-count = 1.
      perform ftpost_field using: 'BKPF-BUKRS' p_compcode,  "Company Cd
                                  'BKPF-WAERS' p_currency,  "Doc Currency
                                  'BKPF-BLART' p_doctyp,  "Doc Type
                                  'BKPF-BLDAT' l_docdate,   "Doc Date
                                  'BKPF-BUDAT' l_postdate,   "Posting Dt
                                  'BKPF-BKTXT' p_doctxt,  "Header Text
                                  'BKPF-XBLNR' p_ref,     "Ref Doc
                                  'RF05A-AUGTX' 'Test'.  "Clearing item text
    *creditnote to your own
    *debit to customer but sometimes you post credit
    *payor-vendor +ve    payee-customer  -ve
      i_ftpost-count = 0.
    endform.                    " f_create_document_header
    *&      Form  ftpost_field
          text
         -->P_1045   text
         -->P_PA_BUKRS  text
    form ftpost_field using field_name type any
                            field_value type any.
      i_ftpost-fnam = field_name.
      i_ftpost-fval = field_value.
      append i_ftpost.
    endform.                    " ftpost_field
    *&      Form  f_create_document_items
          text
    -->  p1        text
    <--  p2        text
    form f_create_document_items .
    *concatenate i_splitinput
      i_ftclear-agkoa  = 'D'."D-cust, v-vend
      i_ftclear-agkon  = '1041048'."cust/ven acct
      i_ftclear-agbuk  = i_splitinput-compcode.
      i_ftclear-xnops  = 'X'.
      i_ftclear-xfifo  = space.
      i_ftclear-agums  = space.
      i_ftclear-avsid  = space.
      i_ftclear-selfd  = 'BELNR'.
      i_ftclear-selvon = i_splitinput-reference.
      i_ftclear-selbis = 'Test'.                              
      collect i_ftclear.clear i_ftclear.
    i_ftclear-selvon = '101002'.
    i_ftclear-selbis = '101002'.                           
    append i_ftclear.
      i_ftpost-stype = 'P'.  "Details
      i_ftpost-count = i_ftpost-count + 1.
      perform ftpost_field using: 'RF05A-NEWBS' '15',      "Post Key
                                  'RF05A-NEWKO' '1071990',   "GL Account
                                  'BSEG-WRBTR'  '299',     "DC Amount
                                  'BSEG-SGTXT'  'SAN'.      "Item Text
                                 'BSEG-ZUONR'  i_post-merchant_id.
    *lt_ftclear-selvon = p_doc2.
    *lt_ftclear-selbis = p_doc2.
    *APPEND lt_ftclear.
    endform.                    " f_create_document_items
    *&      Form  f_post_gl_document
          text
    -->  p1        text
    <--  p2        text
    form f_post_gl_document .
      refresh i_blntab.
      clear i_blntab.
      call function 'POSTING_INTERFACE_CLEARING'
        exporting
          i_auglv                          = 'UMBUCHNG'
          i_tcode                          = 'FB05'
        I_SGFUNCT                        = ' '
        I_NO_AUTH                        = ' '
        importing
          e_msgid                          = v_msgid
          e_msgno                          = v_msgno
          e_msgty                          = v_msgty
          e_msgv1                          = v_msgv1
          e_msgv2                          = v_msgv2
          e_msgv3                          = v_msgv3
          e_msgv4                          = v_msgv4
          e_subrc                          = g_subrc
        tables
          t_blntab                         = i_blntab
          t_ftclear                        = i_ftclear
          t_ftpost                         = i_ftpost
          t_fttax                          = i_fttax
       exceptions
         clearing_procedure_invalid       = 1
         clearing_procedure_missing       = 2
         table_t041a_empty                = 3
         transaction_code_invalid         = 4
         amount_format_error              = 5
         too_many_line_items              = 6
         company_code_invalid             = 7
         screen_not_found                 = 8
         no_authorization                 = 9
         others                           = 10
      if sy-subrc <> 0.
        v_message = 'Posting Interface Error.'.
      endif.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = v_msgid
            lang      = sy-langu
            no        = v_msgno
            v1        = v_msgv1
            v2        = v_msgv2
            v3        = v_msgv3
            v4        = v_msgv4
          IMPORTING
            msg       = v_message
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
    WRITE : V_MESSAGE.
    endform.                    " f_post_gl_document
    *&      Form  f_posting_interface_end
          text
    -->  p1        text
    <--  p2        text
    form f_posting_interface_end .
      call function 'POSTING_INTERFACE_END'
        exporting
          i_bdcimmed              = ' '
        exceptions
          session_not_processable = 1
          others                  = 2.
      if sy-subrc <> 0.
      endif.
    endform.                    " f_posting_interface_end
    Thanks in advance.

    Hi Abaper,
      This is in continuation of my previous email,I am sending you my code.Please take a look and let me know your suggestions.Also can you please share with me your code if you have ever worked with FB05.
    Also I have debugged and found that at the end on program SAFM05A screen 0733 ,the code enters document number BELNR and does okcode - /11. This takes to the screen SAPDF05X  screen 3100 where it does try to save.I believe 3100 is a final screen according to the FM code but there is something I may not be passing which is not allowing it to save.
    *Session header
          perform populate_xbgr00.
          append xbgr00 to dataset.
        write p_docdat to p_docdat mm/dd/yy.
        write p_pstdat to p_pstdat mm/dd/yy.
    *Document header
              perform populate_xbbkpf using
                i_splitinput-compcode
                p_docdat
                p_pstdat
                p_doctyp
                 i_splitinput-currency
                sum_inprec_hd_tmp-xblnr
                'Test'.
              append xbbkpf to dataset.
    *bbseg bselk and bselp
            perform populate_xbbseg .
    *********forms
    form populate_xbgr00 .
      move '0' to xbgr00-stype.
      move 'zsan' to xbgr00-group.
      move sy-mandt to xbgr00-mandt.
      move sy-uname to xbgr00-usnam.
      move 'X' to xbgr00-xkeep.
    move space to xbgr00-xkeep.
      move '/' to xbgr00-nodata.
    endform.                    " populate_xbgr00
    form populate_xbbkpf  using  p1 p2 p3 p4 p5  p7.
      move '1' to xbbkpf-stype.
      move 'FB05' to xbbkpf-tcode.
      move p2 to xbbkpf-bldat.
      move p4 to xbbkpf-blart.
      move p1 to xbbkpf-bukrs.
      move p3 to xbbkpf-budat.
      move '/' to xbbkpf-monat.
      move p5 to xbbkpf-waers.
      move '/' to xbbkpf-kursf.
      move '/' to xbbkpf-belnr.
      move '/' to xbbkpf-wwert.
    move p6 to xbbkpf-xblnr.
      move '/' to xbbkpf-bvorg.
      move p7 to xbbkpf-bktxt.
      move '/' to xbbkpf-pargb.
      move 'UMBUCHNG' to xbbkpf-auglv.
    endform.
    form populate_xbbseg  .
      move '2' to xbbseg-stype.
      move 'BBSEG' to xbbseg-tbnam.
      move '15'  to xbbseg-newbs.
      move '100'  to xbbseg-wrbtr.
      move 'Assign'  to xbbseg-zuonr.
      move 'Itemtext'  to xbbseg-sgtxt.
      move I_SPLITINPUT-CLEARINGACCT to xbbseg-newko.        "G/L
      append xbbseg to dataset.
    xbselk-stype = '2'.
    xbselk-agkon = 'CUST0010'.
    xbselk-agbuk = i_splitinput-compcode.
    xbselk-agkoa = 'K'.
    xbselk-sende = '/'.
    xbselk-tbnam = 'BSELK'.
    XBSELK-XNOPS = 'X'.
    append xbselk to dataset.
    xbselp-stype = '2'.
    xbselp-feldn_1 = 'BELNR'.
    xbselp-slvon_1 = i_splitinput-reference.
    xbselp-slbis_1 = 'Test'.
    xbselp-tbnam = 'BSELP'.
    append xbselp to dataset.
    endform
    Edited by: abap78 on Mar 23, 2009 5:10 AM

  • Post with Clearing using FM POSTING_INTERFACE_CLEARING

    I'm using function module POSTING_INTERFACE_CLEARING to clear open items in the background as it would be done with transaction FB05. Now I'm facing a problem with the mapping of the open items. For every account number that is used in the clearing I create a new line item in the new clearing document. Which means I add a new line item in table T_FTPOST of FM POSTING_INTERFACE_CLEARING. Before the clearing process is started the user has selected several open items. They all belong to different account numbers and therefore need to be mapped to the right line items of the new clearing document. I add the open items to table T_FTCLEAR of FM POSTING_INTERFACE_CLEARING. The problem is that I can't find a link between the lines of table T_FTPOST and the lines of table T_FTCLEAR. How can I be sure that the open items in table T_FTCLEAR are correctly mapped to the right line item in table T_FTPOST? In transaction FB05 it seems to be possible as you can select open items for every line item of the new clearing document. How could this be done using function module POSTING_INTERFACE_CLEARING?
    Regards,
    Robert

    The account number is the missing link.

  • Problem with clearing FM - POSTING_INTERFACE_CLEARING

    Hello,
    We are using the above FM for clearing customer open items against the incoming payments.
    This is working fine for some cases.
    However for large volume ransactions, this does not work - When executed in background the program gives error "BDC_OPEN_GROUP, group .. is invalid".
    Currently we are tyring to clear around 220000 open items against 1 payment document.
    This function module works fine for all scenarios, however does not work only for for large volume transactions.
    SAP does not provide any assistance for this issue as the function module is 'not released'
    Given below is the code that we are using to call the function module:
      CALL FUNCTION 'POSTING_INTERFACE_START'
        EXPORTING
          i_function         = 'C'
          i_group            = l_group
          i_mode             = 'N'
          i_update           = 'S'
          i_user             = sy-uname
          i_xbdcc            = 'X'
        EXCEPTIONS
          client_incorrect   = 1
          function_invalid   = 2
          group_name_missing = 3
          mode_invalid       = 4
          update_invalid     = 5
          OTHERS             = 6.
    Clear all the line items.
      CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
        EXPORTING
          i_auglv                    = c_auglv     "value = UMBUCHNG
          i_tcode                    = c_tcode    "value = FB05
        TABLES
          t_blntab                   = t_blntab
          t_ftclear                  = t_ftclear
          t_ftpost                   = t_ftpost
          t_fttax                    = t_fttax
        EXCEPTIONS
          clearing_procedure_invalid = 1
          clearing_procedure_missing = 2
          table_t041a_empty          = 3
          transaction_code_invalid   = 4
          amount_format_error        = 5
          too_many_line_items        = 6
          company_code_invalid       = 7
          screen_not_found           = 8
          no_authorization           = 9
          OTHERS                     = 10.
      IF t_blntab[] IS INITIAL.    " sy-subrc <> 0.
        w_flag = 'X'.
        w_indicator = 'U'.
      ELSE.
        CLEAR w_flag.
        w_indicator = 'A'.
        COMMIT WORK.
      ENDIF.
      CALL FUNCTION 'POSTING_INTERFACE_END'.
    Any pointers regarding the solution for this problem will be of great help.
    Thanks,
    Sushil Joshi

    Hello Sujeet,
    As I mentioned, we are using FM POSTING_INTERFACE_START, then POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_CLOSE.
    We have successfully tested this FMs for clearing documents over 50000 at a time, without splitting into sets of 999. Its only for this particular case that it is failing.
    We have 1 payment document and rest others (over 200000) open items. So my question is - if we have to split for every 999 items, do we need to call the POSTING_INTERFACE_START, then call the FM POSTING_INTERFACE_CLEARING in a loop and at the end call POSTING_INTERFACE_CLOSE.
    Will this post a single clearing document or a separate payment document for every set of 999 items ?
    Please advise.
    Thanks.

  • 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.

  • Question about POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_START

    Hi people.
    Could you tell me what the following fm do?
    POSTING_INTERFACE_START
    POSTING_INTERFACE_CLEARING
    Thanks a lot!

    Hi..
    go to se37 which will give u documentation...
    <b>POSTING_INTERFACE_START</b>
    Short Text
        Initial information for internal accounting interface
    English version:
        The function module 'POSTING_INTERFACE_START' carries out preparations
        for the processing of several documents which are to be posted with
        transactions FB01 or FB05.
        If function 'B' (batch input processing) is required, this function
        module opens the batch input session and transfers the necessary
        parameters.
        If function'C' (processing with Call Transaction .. Using..) is
        required, this function module receives the necessary parameters for the
        display and update modes from the call program.
        Function 'I' (interactive posting interface) is not currently supported.
    <b>2.POSTING_INTERFACE_CLEARING</b>
    Short Text
         Post with clearing (FB05) using internal posting interface
         Function module 'POSTING_INTERFACE_CLEARING' creates a batch input
         transaction (or Call Transaction ... Using ...) for a document to be
         posted using transaction FB05.
         The document header data and the data for the bank postings are
         transferred to table FTPOST. The rules for filling table FTPOST are
         described in the documentation for function module
         'POSTING_INTERFACE_DOCUMENT'.
         The selection data for the clearing transaction is transferred to table
         FTPOST.
         Note the following rules:
         o   The AGKOA (Account type) field in each FTCLEAR line must be filled.
         o   The field AGKON (Account number) should only NOT be filled, if
             either the field 'BELNR' (Document number) or the field 'XBLNR'
             (Reference document number) is used as a selection criterion.
             Otherwise the account number must be specified in each FTCLEAR line.
         o   The field AGBUK (Company code) must be filled in each FTCLEAR line.
         o   The selection criterion in field SELFD is a character field of

  • Posting_interface_clearing Fb05 transfer posting of invoices with cash disc

    Hi
    We have a customised program that uses function module POSTING_INTERFACE_CLEARING to do a FB05 transfer posting with clearing of  invoices to a liabaility GL account
    It works perfectly except for the following scenario
    When we have invoices in USD currency posted in a canadian company code with cash discounts, the function module returns a "Difference in clearing" error
    Is there any way we can activate the cash discounts in the transaction?
    Thanks
    Deeoa

    Hi
    When we perform the FB05 transaction, we need to activate the discounts. If we dont activate the discount, we get the same error
    "Difference is too large for clearing"
    I am trying to see how we can change the building of this call transaction to be able to let the function module take care of activation of cash discounts.
    This happens if the cash discount and amounts are in local currency of the company code.
    I am trying to see what is different when clearing invoices in foreign currency
    I am a functional person trying to see where the gap is
    Thanks
    Deepa

  • 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.

  • Posting a document by using function Module POSTING_INTERFACE_CLEARING

    Hi Gurus,
    I have a problem while using the function module POSTING_INTERFACE_CLEARING.
    My custom code is using the FM POSTING_INTERFACE_CLEARING to clear a document form one GL account and post a document in another GL account.
    after the document is posted 2 line items will created in the 2 GL accounts.
    But some of the fields are not being populated in the one of the line item for the document created (Reference fields) but the other line item has the reference fields has values being populated.
    I am passing the required values in the custom code to this FM.
    Please help me in this.
    Edited by: Anand Sirgapuram on Jun 3, 2009 2:34 PM

    Hi Anand,
    Could you please specify which reference fields are not getting populated?
    I think this is the standard behaviour of POSTING_INTERFACE_CLEARING. All the values in the first line item are populated, while in second line item only some of the fields like posting key, account number, account currency, amount, company code and business partner are populated.
    If you need to populate other values, I guess you will have to search for some enhancement points inside the FM POSTING_INTERFACE_CLEARING after the 'call transaction' statement.
    Regards
    Radhika

  • POSTING_INTERFACE_CLEARING - deselecting lines

    We are using POSTING_INTERFACE_CLEARING to perform clearing. We need a way to restrict (deselect) certain line items (as you would do in FB05 manually by double-clicking). Is there a user exit / BADI that performs this functionality?
    Any other suggestions? 
    Thanks!

    Hi Michal,
          We are using this FM to post a lot of different clearings and by our experience the best way is creating a more complex selection criteria in order to obtain just the Open Items you need.
    Enrique

  • Clearing partially a document using POSTING_INTERFACE_CLEARING

    Hello.
    I want to clear <b>partially</b> a financial document using POSTING_INTERFACE_CLEARING (transaction FB05), but when I try to do it, I obtain an error "No data for SAPDF05X dynpro 3100".
    I can clear it completely.
    Is it possible to clear partially a financial document?
    Thanks very much.

    Hi Friends,
    I had the same problem (partially) and solved it by the FM with a simple solution.
    When the value is not same, you can post other document, to costumer like this:
    Batch Input Values
    lt_ftpost-stype = 'P'."Header
    lt_ftpost-count =  2. "number of Dynpro
    lt_ftpost-fnam = 'RF05A-NEWBS'.
    lt_ftpost-fval = '40'. "
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    lt_ftpost-count =  2. "number of Dynpro
    lt_ftpost-fnam = 'RF05A-NEWKO'.
    lt_ftpost-fval = gl_account "G/L account.
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    lt_ftpost-stype = 'P'."Header
    lt_ftpost-count =  2. "number of Dynpro
    lt_ftpost-fnam = 'BSEG-WRBTR'.
    lt_ftpost-fval = '600,00'. " the partially amount.
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    Batch Input Values
    lt_ftpost-stype = 'P'."Header
    lt_ftpost-count =  3. "number of Dynpro
    lt_ftpost-fnam = 'RF05A-NEWBS'.
    lt_ftpost-fval = '01'. "costumer account.
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    lt_ftpost-count =  3. "number of Dynpro
    lt_ftpost-fnam = 'BSEG-HKONT'.
    lt_ftpost-fval = '9000125'. "costumer account
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    lt_ftpost-stype = 'P'."Header
    lt_ftpost-count =  3. "number of Dynpro
    lt_ftpost-fnam = 'BSEG-WRBTR'.
    lt_ftpost-fval = '400,00'. "residual amount
    *Same type as documents cleared via F-32
    APPEND lt_ftpost.
    Documents to be cleared
    lt_ftclear-agkoa = 'D'. "Account Type
    lt_ftclear-xnops = 'X'. "Indicator: Select only open items which are not special G/L?
    "LT_FTCLEAR-XFIFO = 'X'.
    lt_ftclear-agbuk = p_bukrs. "Example company code
    lt_ftclear-agkon = p_kunnr. "Example Customer
    lt_ftclear-selfd = 'BELNR'."Selection Field
    lt_ftclear-selvon = p_doc1. "document selected
    lt_ftclear-selbis = p_doc1.
    APPEND lt_ftclear.

  • FM Posting_Interface_Clearing; Example

    Hi Friends,
    i'm trying to clear open items since a long time ago, and i have to use the FM POSTING_INTERFACE_CLEARING. I'm searching in SDN forums but i can't find a clear example that show to me how i have to work. Can you give me this example please?
    Thank you very much to all.

    Hi to all, at last, i make a call transaction to FB05 to clearing the open items.
    Regards,
    J.G.

  • Reg function module POSTING_INTERFACE_CLEARING

    Dear experts,
    I have a requirement in tcode FB05(Posting with clearing: Initial screen).  In that i need to select the radio button 'Transfer Posting with Clearing'.  I dont know exactly what happens here. I have to use function module POSTING_INTERFACE_CLEARING to post and clear the document. Can anybody tell me what this function module will do and by guiding me in this regard. Kindly help me in giving sample code as to how to handle this.
    thks in advance,
    ram

    Hello Ram
    Have a look at thread [POSTING_INTERFACE_CLEARING|POSTING_INTERFACE_CLEARING; and the links provided there.
    You may also want to have a look at transaction FCC1 (Payment Cards: Settlement). The report RFCCSSTT is used to settle open items payed with credit cards:
        ... FB05
          PERFORM posting_interface_start.
          PERFORM fb05_posting.
          PERFORM posting_interface_end.
        ... and Settlement
    Regards
      Uwe

  • DME error : POSTING_INTERFACE_CLEARING

    Dear Gurus.
    I could run payment on F110 properly.
    But when I create DME file, error displayed that
    "Internal error when calling POSTING_INTERFACE_CLEARING"
    DME program is RFFOJP_T.
    Do you have any idea how to solve?
    BR
    Y.Kaneko

    Hi Yoshitada / Narasimham,
    Please check below information which might help you on resolving this error:
    SAP Note 304698
    Check if the tables T042E, T012D are maintained in your system.
    Go to T-cd:SU52 and check there is 'BUK'(parameter ID) or not.
    If there is BUK, enter the Parameter value for BUK with CAPITAL letters.
    Enter program 'RFFOJP_T' and push Execute button at t-cd:SE38.
    On next screen, fill in 'Run date' and 'Identification feature' and set 'A:Display all screens' to field 'Posting session'.
    Then, execute RFFOJP_T. You can process the transaction by push ENTER key, and check if any error messages are displayed.
    This issue might occur if you run the program in any other language other than 'JA'. This is because the program uses some Japanese characters that are required in the ASCII file.
    If you run the program in language JA this issue should not occur.
    Also a missing customizing for posting of bank charge with program RRFOJP_T. Please complete your posting key customizing settings via FBZP for corresponding House bank T-cd: FBZP-> Edit-> Company code -> Bank charges (Japan)-> account determination
    Here you have to set the Bank subacct's postkey and the Bank charge acc's postkey as the same as 50. Then you can run the print program without error.
    If the transaction that you are using is selecting the information from the customer with withholding tax to determine the tax amount automatically please read the following information:
    Clearing transactions like, for example F-44, F-32, FB05 'Transfer posting with clearing' are generally not relevant to withholding tax. Thus documents which were posted using clearing transactions do not contain any withholding tax information.There is also no withholding tax information transferred into the cleared documents.
    Transactions relevant to withholding tax are FB01, FB60, FB70 or payment payment transactions like FBZ2, F110, FB05 (incoming payment and outgoing payment).Then in the clearing document withholding tax items are generated.
    Only with the option 'Transfer posting with clearing' the withholding tax will not be calculated in FB05 transaction. In relation with the withholding tax calculation the system works as design.
    Kind Regards,
    Leo

  • Help in POSTING_INTERFACE_CLEARING

    Hi,
    Somebody Know how Function POSTING_INTERFACE_CLEARING works or maybe If  there are any function which works like POSTING_INTERFACE_CLEARING . I will appreciate your help

    Hello Michael
    Have a look at the report executed by transaction FCC1 ( Payment Cards: Settlement ). There you find the entire coding with all relevant function modules for clearing open items.
    Regards
      Uwe

Maybe you are looking for

  • My itunes won't open and an agreement page pops up and then goes away!!!

    Yea so I've been on this crappy computer for over five hours trying to get songs on my ipod video.I went and downloaded the ewido thing, and the adware but it still didn't open so i deleted all of my firewall stuff and it still didn't work. I have a

  • Sync two laptops with same itunes account

    I have two macbooks that share the same itunes account. The data is not synced, so I have some songs on one but not on the other. I am sharing, but I want to sync them so the data is the same on both. Any ideas?

  • Trouble with an applet on  a jsp page

    hi, thanx for readin it! im developing a webapp tha have some swing applets , the problem is that the applets dont work, they appear but dont play anything, i use the jsp:plugin to load the applets on the jsp, i also have instaled the java plugin on

  • Missed text message detrimental to relationship

    I sent a text message to my boyfriend two weeks ago on 3/30. He says he just received it yesterday 4/12. This was a very important text message and things have gone downhill because I never heard back from him. Does anyone have an explanation for how

  • Euipment or Function location field Mandatory in Work Order

    Hi How to make either Equipment or Function location ( either of the one) mandatory in Work Order. Thanks ini advance Thiyagarajan