Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

parking invoice document

Former Member
0 Likes
1,343

Hi All,

Is it possible to park and post an invoice using a bapi ?

If yes what is the Standard BAPI for that?

any help will be highly appreciated

Regards,

Satish

6 REPLIES 6
Read only

former_member404244
Active Contributor
0 Likes
748

Hi,

Check the below bapi..

BAPI_INCOMINGINVOICE_PARK

regards,

Nagaraj

Read only

Former Member
0 Likes
748

Hi Satish,

First use: BAPI_INCOMINGINVOICE_PARK

Then for changes in database , Use: BAPI_TRANSACTION_COMMIT

Regards,

Nitin

Read only

Former Member
0 Likes
748

Is it possible to PARK AND POST FOR FB60(VENDOR INVOICE) through BAPI,

if i use a bapi to park the document,how to post it later?

Read only

0 Likes
748

Hi,

Did you get the solution of your problem? I also want to Park FB60 document which has been created without Purchase Order. Is there any FM/BAPI available for that?

Regards,

Rakesh

Read only

0 Likes
748

Hi,

there is a fm called MRM_PARKED_INVOICE_POST.

check this:


REPORT  zzxxx.

TYPE-POOLS: mrm, mmcr.

DATA: l_t_rbkpv TYPE mrm_rbkpv,
      l_t_drseg TYPE mmcr_drseg OCCURS 0.
DATA: i_belnr LIKE bkpf-belnr,
      i_gjahr LIKE bkpf-gjahr.

PARAMETERS: p_belnr LIKE rbkp-belnr,
            p_gjahr LIKE rbkp-gjahr.

START-OF-SELECTION.

  i_belnr = p_belnr.
  i_gjahr = p_gjahr.

  CALL FUNCTION 'MRM_INVOICE_READ'
    EXPORTING
      i_belnr         = i_belnr
      i_gjahr         = i_gjahr
    IMPORTING
      e_rbkpv         = l_t_rbkpv
    TABLES
      t_drseg         = l_t_drseg
    EXCEPTIONS
      entry_not_found = 1
      OTHERS          = 2.

  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


  CALL FUNCTION 'MRM_PARKED_INVOICE_POST'
    EXPORTING
      i_rbkpv  = l_t_rbkpv
      ti_drseg = l_t_drseg.
  IF sy-subrc <> 0.
    ROLLBACK WORK.
  ELSE.
    COMMIT WORK AND WAIT.
  ENDIF.

Best regards.

Edited by: Pablo Casamayor on Dec 12, 2008 10:35 AM

Read only

0 Likes
748

Hi satish pelleru,

plz could u share ur experience I am working same below...

  

Is it possible to park and post an invoice using a bapi ?

If yes what is the Standard BAPI for that?

Thanks

Kranthi