Any BAPI to Post MIRO

Hi all,
Does anybody know the BAPI for posting MIRO after GR.
Pl send with sample example code to undestand better.
It is urgent.
Appreciated answeres will be rewarded.
Regards,
Venkatesh
09892 895847

Check this code:
clear : it_itemdata, it_accountingdata, IT_CRMEMO_MIRO, IT_CRMEMO_MR8M.
  refresh : it_itemdata, it_accountingdata, IT_CRMEMO_MIRO, IT_CRMEMO_MR8M.
*-- Copy all the CR Memo Docs and delete order reason not in S_AUGRU
  IT_CRMEMO_MR8M[] = IT_CRMEMO[].
*-- Delete Reversal postings which are not in S_AUGRU
  DELETE IT_CRMEMO_MR8M WHERE AUGRU IN S_AUGRU.
*-- Delete Reversal postings where AEDAT is initial
  DELETE IT_CRMEMO_MR8M where aedat is initial.
*-- Delete order reason which are not in S_AUGRU
  DELETE IT_CRMEMO WHERE AUGRU NOT IN S_AUGRU.
*-- Loop through the credit memo request records
  LOOP AT IT_CRMEMO INTO WA_CRMEMO.
    lv_tabix = sy-tabix.
*-- If credit memo request change date is not initial then
  send change date (AEDAT) to lv_rbkp_bldat
    if not WA_CRMEMO-aedat is initial.
      lv_rbkp_bldat =  WA_CRMEMO-aedat.
    else.
*-- If credit memo request change date is initial then
  send create date (ERDAT) to lv_rbkp_bldat
      lv_rbkp_bldat =  WA_CRMEMO-erdat.
    endif.
    READ TABLE IT_ORDERS INTO WA_ORDERS WITH KEY VBELN = WA_CRMEMO-VBELN
                                                 POSNN = WA_CRMEMO-POSNR.
    IF SY-SUBRC = 0.
      READ TABLE IT_PO INTO WA_PO WITH KEY VBELV = WA_ORDERS-VBELV
                                           POSNV = WA_ORDERS-POSNV.
      IF SY-SUBRC = 0.
        READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN = WA_PO-VBELN
                                                 EBELP = WA_PO-POSNN.
        IF SY-SUBRC = 0.
*-- Read IT_EKBE_TEMP internal table which contains records which are not reversed
          READ TABLE IT_EKBE_TEMP INTO WA_EKBE_TEMP WITH KEY EBELN = WA_EKPO-EBELN
                                                             EBELP = WA_EKPO-EBELP.
          IF SY-SUBRC = 0.
*-- Read IT_RBKP internal table with XRECH (Indicator: post invoice) = 'X' ,
  check for invoice records for the correspnding CR Memo records
            READ TABLE IT_RBKP INTO WA_RBKP WITH KEY BELNR = WA_EKBE_TEMP-BELNR
                                                     GJAHR = WA_EKBE_TEMP-GJAHR
                                                     XRECH = C_X.
            IF SY-SUBRC = 0.
*-- Read IT_RBKP internal table with XRECH (Indicator: post invoice) = SPACE,
  and document date = CR Memo creation date
  and reference document number = PO number
              READ TABLE IT_RBKP INTO WA_RBKP_TMP WITH KEY BELNR = WA_EKBE_TEMP-BELNR
                                                           GJAHR = WA_EKBE_TEMP-GJAHR
                                                           BLDAT = WA_CRMEMO-ERDAT
                                                           XRECH = ' '
                                                           XBLNR+0(10) = WA_EKBE_TEMP-ebeln.
                                                          STBLG = SPACE.
              IF SY-SUBRC = 0.
                CONTINUE.
              ELSE.
*-- Quantity Conversion (Get the Credit Memo Quantity by passing CMR unit per one PO unit)
                perform f_quantity_conv.
*-- Filling the Line items data
*-- Incrementing the item no
                lv_itemno = lv_itemno + 1.
                v_itemno  = lv_itemno.
                it_itemdata-invoice_doc_item  = v_itemno.
                it_itemdata-po_number         = WA_ekPO-ebeln.
                it_itemdata-po_item           = WA_EKPO-EBELP.
                it_itemdata-tax_code          = WA_ekpo-mwskz.
                it_itemdata-TAXJURCODE        = WA_ekpo-TXJCD.
*-- Converting SAP amount to BAPI format by passing line item amount and currency
                PERFORM f_currency_amount_sap_to_bapi USING    WA_EKPO-waers
                                                               V_LINE_AMOUNT
                                                      CHANGING it_itemdata-item_amount .
                it_itemdata-quantity          = ( WA_CRMEMO-ZMENG * V_CRMEMO_QTY ).
                it_itemdata-po_unit           = WA_EKPO-MEINS.
                APPEND it_itemdata.
*-- Populate Account Assignment data
                IT_ACCOUNTINGDATA-INVOICE_DOC_ITEM = v_itemno.
                IT_ACCOUNTINGDATA-XUNPL       = space.
                IT_ACCOUNTINGDATA-SERIAL_NO   = C_01.
                IT_ACCOUNTINGDATA-TAX_CODE    = it_itemdata-tax_code.
                IT_ACCOUNTINGDATA-TAXJURCODE  = it_itemdata-TAXJURCODE.
                IT_ACCOUNTINGDATA-ITEM_AMOUNT = it_itemdata-item_amount.
                IT_ACCOUNTINGDATA-QUANTITY    = it_itemdata-quantity.
                IT_ACCOUNTINGDATA-PO_UNIT     = it_itemdata-po_unit.
                IT_ACCOUNTINGDATA-GL_ACCOUNT  = C_0000500205.
                append IT_ACCOUNTINGDATA.
                clear IT_ACCOUNTINGDATA.
                CLEAR it_itemdata.
              endif.
            endif.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
*-- At end of each credit memo request fill the header details of BAPI FM and
*-- post the BAPI
    AT END OF VBELN.
      read table it_crmemo into wa_crmemo index lv_tabix.
*-- Populate the document Header
*-- Getting the header data for invoice
      x_docheader-invoice_ind  = space.
      x_docheader-doc_type     = c_blart.
      x_docheader-doc_date     = lv_rbkp_bldat.
      x_docheader-pstng_date   = lv_rbkp_bldat.
      x_docheader-ref_doc_no   = WA_RBKP-XBLNR.
      x_docheader-comp_code    = WA_CRMEMO-BUKRS_VF.
      x_docheader-CURRENCY     = WA_CRMEMO-WAERK.
      x_docheader-calc_tax_ind = lc_check.
*-- Logic to find the Tax %
      v_tax_per = ( WA_RBKP-WMWST1 / ( WA_RBKP-RMWWR - WA_RBKP-WMWST1 ) ) * 100.
      v_tax_amt = ( V_GROSSAMT *  v_tax_per ) / 100.
      V_GROSSAMT =  ( V_GROSSAMT + v_tax_amt ).
      x_docheader-gross_amount = V_GROSSAMT.
      CLEAR:v_docnr, v_year1.
*-- Calling BAPI to create PO invoice document
      CHECK NOT IT_ITEMDATA[] IS INITIAL.
      CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
        EXPORTING
          headerdata       = x_docheader
        IMPORTING
          invoicedocnumber = v_docnr
          fiscalyear       = v_year1
        TABLES
          itemdata         = it_itemdata[]
          ACCOUNTingDATA    = it_ACCOUNTingDATA[]
         GLACCOUNTDATA    =
         taxdata          =
          return           = it_return.
*-- Commit work
      IF NOT v_docnr IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
*-- Move the data to Success Internal Table
        wa_success-crmemo  = wa_crmemo-vbeln.
        wa_success-cmemo   = wa_cmemo-vbeln.
        wa_success-orders  = wa_orders-vbelv.
        wa_success-po      = wa_po-vbeln.
        wa_success-miro_no = v_docnr.
        wa_success-text    = 'MIRO is Posted'.
        append wa_success TO it_success.
        clear wa_success.
      ENDIF.
*--   Read the values in the table IT_RETURN.
      CLEAR it_return.
      READ TABLE it_return INDEX 1.
  If message type is error then roll back the work
      IF it_return-type = C_E.
*-- Roll back
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
*-- Move the data to Error Internal Table
        wa_error-crmemo = wa_crmemo-vbeln.
        wa_error-cmemo  = wa_cmemo-vbeln.
        wa_error-orders = wa_orders-vbelv.
        wa_error-po     = wa_po-vbeln.
        wa_error-text   = it_return-MESSAGE.
        append wa_error TO it_error.
        clear wa_error.
      ENDIF.
      refresh: it_return, it_itemdata, it_accountingdata.
      clear: V_GROSSAMT, it_return, it_itemdata, wa_crmemo, wa_orders, wa_po,
             wa_ekpo, WA_EKBE_TEMP, wa_rbkp, wa_rbkp_tmp, v_docnr, v_year1, WA_SUCCESS,
             WA_ERROR, it_accountingdata, v_tax_per, v_tax_amt, V_FILL_ITEM, lv_rbkp_bldat.
    ENDAT.
  ENDLOOP.
cheers
Aveek

Similar Messages

  • Any BAPI for Transaction MIRO

    please tell me any BAPI for Standard transaction MIRO , or should I have to use BDC instead ?
    PLease rep , thnx in advance

    BAPI_INCOMINGINVOICE_CREATE

  • Any  BAPIs to post Service entery details

    Hi SAP Gurus,
    I need to create an interface program to upload Service entry details received from the different system to sap.
    Details:
    Service Entry Sheet will be posted manually for the accepted services in case of Maintenance, Repair and Licensing. A batch job will be created to post the Service Entry Sheet from the file extracted out of the EPM system, based on the number of actual hours worked by each Contractor on a Project.
    Kindly inform whether any BAPI is available to post this data or I need to go for BDC method only.
    Regards
    Hari

    hi,
    chk out these BAPI's
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person    
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification   
    BAPI_SERVNOT_ADD_DATA          Added Items, Causes, Activities, Tasks, Partners of the service notif.   
    BAPI_SERVNOT_CHANGEUSRSTAT     Change the user status of a service notification                         
    BAPI_SERVNOT_CLOSE             Complete service notification                                            
    BAPI_SERVNOT_CREATE            Create service notification                                              
    BAPI_SERVNOT_DEL_DATA          Delete Items, Causes, Activities, Tasks, Partners of the service notif.  
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                                 
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                      
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                            
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification   
    BAPI_PROC_CHAR_GET_HELPVALUES  Read allowed values for a process characteristic                         
    BAPI_PROC_CHAR_GET_LIST        Read process characteristics, incl. detail data                          
    BASB                           Service Master Record: BAPIs                                             
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICE_GET_LIST          List Display for Service Master Records     
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification  
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person
    Regards,
    Arunsri

  • BDC / Bapi For  Post Incoming Payment (F-28)

    Hi
    Im creating BDC for F-28. But it got error coming out.
    >> It says DB05B-PSZAH(02) is not an input field.
    What I do is: First, I search for Line Item then Document Number. Then It return to basic list. Then I loop again for the second Line Item Number and Document Number.
    I can activate the first amount but cannot for the next amount and so on.
    Anybody could help me on this??
    Is there any BAPI for Post Incoming Payment (F-28)?
    Thank you.
    Regards.

    i dont think there is a BAPI for this Transaction...
    i have done a BDC on F-28 myself....pasting the code....hope it helps you....
    *******NOTE********
    the parameter in the subroutine is to see if there is a single document or multiple documents being posted.
    FORM fill_bdc_data_f-28_9005 USING p_i_mult_doc TYPE c.
    **BDC from screen 9005
      DATA : l_amt_bdc(13), l_amt_bdc_remain(13), l_amt_bdc_mult(13),
             l_amt_bdc_mult_remain(13), l_assignment(14), l_period(2),
             l_amount(13).
      CLEAR t_bdcdata.
      REFRESH t_bdcdata.
      PERFORM bdc_dynpro USING 'SAPMF05A' '0103'.
      PERFORM bdc_field USING 'BDC_OKCODE' '=AB'.   "OK CODE - doc overview
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-bldat.
      PERFORM bdc_field USING 'BKPF-BLDAT' w_date.  "cheque date
      CLEAR w_date.
      PERFORM bdc_field USING 'BKPF-BLART' i_blart.  "doc type
      PERFORM bdc_field USING 'BKPF-BUKRS' i_bukrs.  "comp code
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-budat.
      PERFORM bdc_field USING 'BKPF-BUDAT' w_date.  "posting date
      CLEAR w_date.
      l_period = sy-datum+4(2).
      PERFORM bdc_field USING 'BKPF-MONAT' l_period. "period
      PERFORM bdc_field USING 'BKPF-WAERS' 'INR'.    "currency
      PERFORM bdc_field USING 'BKPF-BKTXT' i_bankl.  "doc. hdr. text
      PERFORM bdc_field USING 'BKPF-XBLNR' i_xblnr.  "Ref. Document No.
      PERFORM bdc_field USING 'BSEG-ZUONR' i_zuonr.  "Assignment(Depot Code)
      PERFORM bdc_field USING 'RF05A-KONTO' i_bank_gl. "Bank GL acc
      PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
      l_amount = bseg-wrbtr.
      PERFORM bdc_field USING 'BSEG-WRBTR' l_amount. "Amount
      PERFORM bdc_field USING 'BSEG-PRCTR' ''.  "Profit Center
    **open items data
      PERFORM bdc_field USING 'RF05A-AGKOA' 'D'.     "Acc type (D=customers)
      PERFORM bdc_field USING 'RF05A-XNOPS' 'X'.     "Std OIs check box
    **end of first screen
    **document overview screen
      PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.    "Overview Screen
      PERFORM bdc_field USING 'BDC_CURSOR' 'RF05A-AZEI1(01)'.     "cursor
      PERFORM bdc_field USING 'BDC_OKCODE' '/00'.     "OK CODE
      PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
      PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
      PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL Indicator
    **for single document selected
      CLEAR l_amt_bdc.
      IF p_i_mult_doc = ''.
    ***new screen - next line item
        PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
        PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
    **for single document, use the bouncing amount calculated earlier
        l_amt_bdc = w_amt_ant_bouncing.
        PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc. "amount
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
        PERFORM convert_date_to_user_format USING bkpf-budat.
        PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
        CLEAR w_date.
    **assignment
        CLEAR l_assignment.
        CONCATENATE t_seldoc_ant_bouncing-belnr
                    t_seldoc_ant_bouncing-gjahr INTO l_assignment.
        PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
        PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.
    **if there is some remaining amount, then go for another line item
        IF w_rem_amt_ant_bouncing > 0.
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-ZTERM'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-ENTER
          l_amt_bdc_remain = w_rem_amt_ant_bouncing.
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'.
    **AGAIN
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-WRBTR'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-SAVE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term -hardcoded
          PERFORM bdc_field USING 'BSEG-SKFBT' l_amt_bdc_remain.
        ENDIF.
    **multiple documents
      ELSE.
    **initialize remaining amount to amt entered on screen
        l_amt_bdc_mult_remain = bseg-wrbtr.
        LOOP AT t_seldoc_ant_bouncing.
          IF l_amt_bdc_mult_remain > 0.
            IF bseg-wrbtr > t_seldoc_ant_bouncing-rem_amt.
              l_amt_bdc_mult = t_seldoc_ant_bouncing-rem_amt.
            ELSE.
              l_amt_bdc_mult = bseg-wrbtr.
            ENDIF.
    **remaining amt = screen amt - amt calculated above.
            l_amt_bdc_mult_remain = l_amt_bdc_mult_remain - l_amt_bdc_mult.
            PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
            PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
            PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult. "amount
            PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
            PERFORM convert_date_to_user_format USING bkpf-budat.
            PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
            CLEAR w_date.
    **assignment
            CLEAR l_assignment.
            CONCATENATE t_seldoc_ant_bouncing-belnr
                        t_seldoc_ant_bouncing-gjahr INTO l_assignment.
            PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
    **posting key 19 for all but last document
            PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
            PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
            PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL
          ENDIF.
        ENDLOOP.
      ENDIF.
    **post remaining amount
      IF p_i_mult_doc = 'X'.
    **new screen if there is some amount left
        IF l_amt_bdc_mult_remain > 0.
    **posting key 15 with remaining amount
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term - hardcoded
        ELSE.
    **if no amount is left, no need for a further line item
          PERFORM bdc_field USING 'RF05A-NEWBS' ''.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' ''. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
        ENDIF.
      ENDIF.
    **clear variables
      CLEAR : l_amount, l_assignment, l_amt_bdc,
              l_amt_bdc_remain,l_amt_bdc_mult, l_amt_bdc_mult_remain.
    ENDFORM.                    " fill_bdc_data_F-28_9005

  • Bapi to update miro considering schedule agreement also

    hi experts,
          Is any bapi to update miro considering schedule agreement also
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jul 8, 2011 10:48 AM

    Hi,
    Check BAPI_SAG_CHANGE function module.
    KR Jaideep,

  • BAPI for posting a new HR POSITION

    Hi is there any BAPI to post a new position.

    Hey Shiv,
    As far as I know there is no BAPI for that but what you can do is to run a BDC for transaction "PO13" to create a position. To capture the object ID you can query the table "HRP1000" with criteria as the object type = 'S' (this is for position) and the UNAME as the guy who ran the BDC. You can get the latest position that was created by the user.
    Regards,
    Sudhi

  • Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO

    Hi Friends,
             Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
             im passing data to table GLACCOUNTDATA.
             Below are the table fields im paasing
         INVOICE_DOC_ITEM " '000001' deafault always
         GL_ACCOUNT  "Which is constant for all in my case               
         ITEM_AMOUNT      " Total PO net amt + Frieght charges header level      
         DB_CR_IND      " 'S' always default     
         COMP_CODE      " 'RPPL' always default          
         TAX_CODE      " 'V0'     deafault always     
         PROFIT_CTR       " for ex 1100180. based on plant
              While posting this bapi is trhrowing error as below
         'profit centre  RPPL/1100180 does not exist for 01.12.2008'
         where 01.12.2008 is the MIRO posting date which im passing in header.
            We checked dates for profit centres they are correct.
            Awaiting the reply ASAP.
    Regards,
    Venky

    Hi,
    It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
    Regards,
    Teddy Kurniawan

  • Are there any standard Idocs or Bapis for posting the data into transaction

    Hi,
    Are there any standard Idocs or Bapis for posting the data into transactions ME42N and IK11?
    Thank You.

    Thank you.
    Any idea of the other one?

  • Any BAPI or FM to post a parked PO invoice

    Hi
    Can any one let me know any BAPI to use to post a parked invoice.(Invoice created with reference to Purchase Order)
    with regards,
    Sumanth

    Hi,
    Go to SE37 and type ' PRELIMINARY_POSTING_ '*
    here you will get few function modules .
    or
    search in the Function Group F040.
    Regards,
    Raj.

  • Error while posting MIRO

    Hi Experts
    I got a error like this while posting MIRO
    "No amount authorization for customers/vendors in company code 401"
    I tried to look out in T043 Table,since i cant able to go further
    Let me know the reason for this error and the settings to do
    Regards
    Amuthan M

    Hi,
    While creating tolerance group you are specified the authorization group/ Just delete the name of the group you have created and keep it blank OR assign the user to that group and save.
    Note:
    If you create tolerance groups then the group must be assigned to the users in t.code:OB57 who are posting the transaction. Defining and assigning the tolerance groups to employees is not going to solve, you have to enter the amount ranges of tolerance for G/L document, Customer and Vendor posting.
    In t.code:OBA4 create an entry for your company code. (Group creation is not compulsory). If your requirement permits better keep the group column empty. when no group is created its for all users.Double click on company code and enter upper limits and permitted payment differences and save.In t.code:OBA3 enter the ranges for payment differences and any other columns as per your requirement..
    Regards,
    Biju K

  • Document splitting issue while posting MIRO transaction

    Hello All
    I have a piculiar  related to document splitting while posting MIRO entry and this issue started after defaulting the profit center
    to the tax gl.
    The scenario is like this
    While posting a vendor invoice document where there is a difference in the invoice value and stock is allready consumedn
    hence system will try to post the difference to the material difference account.
    The following is the asccounting entries
    01 vendor a/c  cr   1000
    02 gr/ir a/c  dr         800       pc from po document
    03 tax g/l                 180       default pc
    04 inventory diff       20  
    the error message
    system is not able to determine the profit center at  line item 04 and message is
    Balancing field "Profit Center" in line item 004 not filled
    The document splitting settings are all standards related to vendor invoice ..................
    One important point to be noted here is that this issue is come after defaulting the profit center at tax gl.
    But we cannot remove those default pc also.
    Can be their any solution on this
    Kindly suggest
    Thanks

    Hi
    In addition to my previous mail i want to add that
    i tried to add even expense item category to splitting rule of business transaction and transaction variant.
    Even then it doers not work.
    other then is as per standard document splitting rule the expense item category is not included in invoice verication buisness transaction.
    Thanks
    alok

  • Can not post MIRO due to production order archived

    Hi,
    We have created production order and with production order as account assignment we have created purchase requisition.
    We have converted purchase requisition to purchase order and goods receipt posted.
    Now production order is archived (TECO done, setteled manually, deletion and as per residence time ) and we are not able to post invoice receipt for PO.
    The question is, how production order archived, is there any check that purchase orders, purchase requisition are open in which this production order is used.
    We can post MIRO with CO substituation, but wants to check settings, pre conditions.
    Thanks
    Sudhir

    Hi Thyagarajan
    I checked the operations in the PM-order. There are two external processing operations. One has an aggrement which has the validity end 2005-12-31. I don`t see where to see if the other operation is assigned to a purchasing document. In the menu path, extras, cost reports there is a PO which was already invoiced and GR-posted.
    I don`t know where to look for more if there are any open purchasing documents?
    Thanks.
    Esra

  • FM/BAPI for Post Goods Recipt and Reservations

    Hi All,
    Is there any BAPI/FM for posting Goods receipt and Reservations . Please send some sample example to post goods receipt using Inbound Delivery & Reservations
    Thanks
    Bobby

    Bobby,
          I think you can use the FM  BAPI_ACC_GOODS_MOVEMENT_POST for this purpose. You try to write a sample program and see how it works.
    Sojan

  • BAPI for Posting with clearing

    Hi all,
    Is there any BAPI which can do posting with clearing?Generally we can acheive this through a transaction F-04.BAPI required which can acheive the functionality of F-04.Any Inputs will be highly appreciated with points.
    Thanks and Regards
    Kiran

    hi,
    check this function module.
    POSTING_INTERFACE_CLEARING.

  • Is there any BAPI or FM which updates or modifies FD32 transaction

    Is there any BAPI or Function module  which updates or modifies the fields of FD32 transaction screens

    Hi, Srikanth
    Please Have a look at this Link [BAPI for FD32 |bapi for FD32]
    Please Search Before Posting
    Hope will Solve out your Problem,
    Best Regards,
    Faisal

Maybe you are looking for

  • SharePoint Designer 2013: Server-side activities have been updated

    When developing custom activities for SharePoint 2013 Workflows, I ran into the problem that SharePoint Designer prompts "Server-side activities have been updated. Please restart SharePoint designer" every time when you try to create a new workflow.

  • Multi Value Parameter in SP  error in Crystal Report SAP B1 ?

    Hi Experts , i am Getting an error in Crystal Report "Failed to retrieve data from the database.  Details:  42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '('. [Database vendor code: 120]"  I an executing the SP In

  • SQL*Loader issue with WHEN command

    Environment: R12.1.2 We have a file coming in from a bank that needs to be loaded into a custom table using SQL*Loader. The file has multiple record formats. Each record in the file starts with a "record type", which defines the format. For simplicit

  • Anyone Used Kik Messenger Yet?

    I was thinking about installing Kik. Has anyone used it yet and has the carrier tried to charge you for texting? On the Kik Website it says you can text for free. I just do not want to get a bill six months down line saying that I owe them money for

  • Installing Logic on a PT drive - help needed

    My first post here, hello everyone. I am having problems getting Logic 7.1 to work on my G5 Dual 2Ghz. I have Pro Tools HD TDM 7.1cs4 working OK, and wanted to test Logic out (with CoreAudio, not with TDM). Basically when I load Logic, it scans Audio