Skip to Content
avatar image
Former Member

Bapi for FB60 - Park an invoice

Hi gurus,

Im trying to park an invoice in transaction FB60. i allready tried an batch inout but it's giving me an error, that i can't park an invoice using a batch input in transaction FB60... Don't know why, if someone can explain me why i cant park using an batch input i'll be appreciated..

Anyway , is it any bapi that i can use to park an invoice to transaction FB60??

Thanks in advance,

Best Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 19, 2008 at 10:59 AM

    Hi guys,

    thk for your anwsers but i allready tried by the fv60 with no sucess... And i also tried with the BAPI_INCOMINGINVOICE_PARK but it appears that this bapi it's for MM... it requires the request number (ebeln) and im not using it for MM... I just want to park an invoice with 2 items.. one to a client and another to a specific gl acount

    Any ideas??

    Thk in advance,

    Best Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I worked with the FV60 transaction and able to park the invoice successfully by batch input method. I am pasting the sample code. Try with the below code::

      • Populating the Header Details

      PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.

      PERFORM bdc_field USING 'BDC_OKCODE' '/ECCDE'.

      PERFORM bdc_field USING 'INVFO-ACCNT' pv_vendor.

      MOVE pv_invoice_date TO lw_date.

      WRITE lw_date TO lw_fdate.

      PERFORM bdc_field USING 'INVFO-BLDAT' lw_fdate.

      PERFORM bdc_field USING 'INVFO-XBLNR' vendor_invoice.

      IF pr_posting_date IS INITIAL.

      MOVE sy-datum TO pr_posting_date.

      ENDIF.

      CLEAR: lw_date, lw_fdate.

      MOVE pr_posting_date TO lw_date.

      WRITE lw_date TO lw_fdate.

      PERFORM bdc_field USING 'INVFO-BUDAT' lw_fdate.

      PERFORM bdc_field USING 'INVFO-SGTXT' pv_text.

      PERFORM bdc_dynpro USING 'SAPLACHD' '1000'.

      PERFORM bdc_field USING 'BDC_OKCODE' '=ENTR'.

      PERFORM bdc_field USING 'BKPF-BUKRS' pv_bukrs.

      • Populating the Item Details

      LOOP AT pr_item_details INTO fs_item_details.

      IF sy-tabix NE 1.

      PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.

      PERFORM bdc_field USING 'BDC_OKCODE' '=0005'.

      PERFORM bdc_field USING 'ACGL_ITEM-MARKSP(01)' 'X'.

      ENDIF. " If sy-tabix...

      PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.

      PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

      PERFORM bdc_field USING 'ACGL_ITEM-HKONT(01)'

      fs_item_details-expense.

      PERFORM bdc_field USING 'ACGL_ITEM-WRBTR(01)' lw_amount.

      PERFORM bdc_field USING 'ACGL_ITEM-MWSKZ(01)' pv_tax.

      PERFORM bdc_field USING 'ACGL_ITEM-KOSTL(01)' pv_costcenter.

      PERFORM bdc_field USING 'ACGL_ITEM-SGTXT(01)'

      fs_item_details-item_text.

      lw_totamount = lw_totamount + lw_amount.

      ENDLOOP.

      lw_totamount = lw_totamount + lw_taxamount.

      PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.

      PERFORM bdc_field USING 'BDC_OKCODE' '=PBBP'.

      PERFORM bdc_field USING 'INVFO-WRBTR' lw_totamount.

      PERFORM bdc_field USING 'INVFO-WMWST' lw_taxamount.

      CALL TRANSACTION 'FV60' USING t_bdc_data

      MODE lw_mode

      UPDATE c_update

      MESSAGES INTO t_bdcmsgcoll.

      **ignore the variable used

      Regards,

      Kiran Bobbala

  • avatar image
    Former Member
    Jun 19, 2008 at 10:31 AM

    Hi,

    You may use FM BAPI_INCOMINGINVOICE_PARK.

    Regards

    Raju Chitale

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 10:34 AM

    Hi Joao,

    Check you recording first. I believe it is easy to park an invoice coz you'll just click the park button.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 10:41 AM

    Use FV60 transaction for batch input method to park the invoice instead of FB60. FV60 is exclusivley for parking the vendor invoices.

    BAPI_INCOMINGINVOICE_PARK will also works.

    *******Reward points if useful

    Regards,

    Kiran Bobbala

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 10:31 AM

    Hi,

    check this BAPI below

    BAPI_INCOMINGINVOICE_PARK .

    I am not sure wether this helps or not..

    Pls reward if found helpfull..

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 02:33 PM

    Hi guys,

    Thanks for your anwsers. Im not getting with the bapis or the batch input...

    In the batch input it's giving me an error (Message FP - 140) that with batch input it's not possible to park!!!... in both transaction FB60 and FV60...

    Does this validation configurable by SPRO? does anyone know??

    Thanks again by the anwsres,

    Best Regards

    Add comment
    10|10000 characters needed characters exceeded