Skip to Content
avatar image
Former Member

BAPI to PARK accounting document

Does anyone know conclusively whether BAPI BAPI_ACC_DOCUMENT_POST can be used to PARK an accounting document as well as POST one? Or if not this BAPI, is there another one? (I am trying to perform the PARK function of FB50.)

I am creating a posting interface and the specification requires to park documents for later review and posting, rather than posting them. From other posts on SDN I know I can use a BDC but would prefer a single interface.

Thank you for any comments,

Bob

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    May 25, 2007 at 12:03 PM

    Answer to my OSS message:

    25.05.2007 - 11:38:41

    A parked document with ACC-Bapis (bapi_acc_*) is not possible.

    This interface is for posting only. It is completely different from

    the manual posting and parking transactions, and its functionality

    is limited in comparison.

    In the documentation for this BAPI, there is also a reference to:

    More informationen is available in the Interfaces to Accounting documentation in the R/3 Library (under Cross Application Functions ->

    Interfaces to External Systems).

    xxxxxxx

    Support Consultant

    Global Support - Financials

    -


    Hope this helps some other person who wants to know.

    (Maybe I'm only one of a few people that would like to use a BAPI to park accounting documents, but it would probably be helpful to know if there are more. If you ever needed or now need this functionality please post a reply to this message.)

    Bob

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey Bob,

      I am facing the same scenario here where in i have to park the FI document using BAPI_ACC_GL_POSTING_POST...i did some tweaking around and found if we change the BSTAT field to 'V' in the user exit EXIT_SAPLACC4_001 and activate it..it might work...but i need your suggestions on this...because BSTAT = V signifies that the document is parked...right

      Please correct me if i am wrong...

      Reagrds:

      Sam

  • avatar image
    Former Member
    Jun 07, 2007 at 08:44 PM

    Thanks, I had run across RFBIBL00 in my original search., but RFBIBL00 does not use a BAPI to effect a parked document.

    Bob

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I have search exhaustedly as well for an Idoc or BAPI that will park documents.

      You can using Idoc FIDCCP02 but this is really not recommended as it is a very old idoc and has been around a long time. <b>I opened a message related to this and SAP themselves recommended BDC for parking documents</b>. This is what i have done. This is not ideal but i could not find any other way.

      If any new development come about in this area, please keep me informed.

      Rory

  • avatar image
    Former Member
    Aug 02, 2007 at 07:20 PM

    Sam, I will do some further checking. What I am most concerned about is the document might actually be posted but only the status is overridden to indicate parked. And then posting the parked document may result in a double posting. Have you checked out the resulting document?

    In any case, you may be onto something.

    Bob

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Another solution to this which I have seen is to use a WAPI (Workflow Application Program Interface) instead of a BAPI to request a posting subject to approval.

      A potential problem however is that in addition to the ID of the creator to be checked for the authority to park (actvt '77' if I remember correctly), the ID name itself should be sent into the workflow and the approval (whatever the actvt value of "post" is to be on the approver side) needs to be taken care of by the approval application - because if the update tasks are in the workflow engine then what you get for it is WF-BATCH instead of the user ID...

      Cheers,

      Julius

  • avatar image
    Former Member
    Mar 27, 2008 at 08:43 PM

    I recorded FBV1. I used a GL account with cost element so the subscreen shows cost center for input. (when recording, click on additional data button, you will see the cost center field.)

    It went ok at recording. However, when it runs, the BDC cannot populate the cost center field. It shows error "Field COBL_KOSTL does not exist in thw screen SAPLKACB 0002".

    If I comment out the code for filling the cost center, it goes thru fine.

    Does this sound familiar to anyone?

    Thanks~~

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2008 at 08:43 PM

    I recorded FBV1. I used a GL account with cost element so the subscreen shows cost center for input. (when recording, click on additional data button, you will see the cost center field.)

    It went ok at recording. However, when it runs, the BDC cannot populate the cost center field. It shows error "Field COBL_KOSTL does not exist in thw screen SAPLKACB 0002".

    If I comment out the code for filling the cost center, it goes thru fine.

    Does this sound familiar to anyone?

    Thanks~~

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 24, 2010 at 05:47 PM

    Finally, i was able to find an alternative to BDC suggested here.

    SAP does not provide with any Standard BAPI to park an accounting document instead we have function module PRELIMINARY_POSTING_FB01 which parks the document.

    I have used Following fields in my case, some fields may not be required.

    BKPF table:

    BUKRS GJAHR BLART BLDAT BUDAT MONAT CPUDT WWERT USNAM TCODE GLVOR HWAER HWAE2 BASW2 UMRD2 CURT2

    KUTY2 AUSBK

    BSEG table :

    BUKRS GJAHR BUZEI BSCHL KOART SHKZG DMBTR WRBTR KZBTR PSWBT PSWSL VALUT VORGN KOKRS XKRES HKONT

    XBILK PAOBJNR PASUBNR

    Other issue i faced is that i wanted to POST to COPA too for which we had to generated PAOBJNR number. I made use of function module COPA_PROFITABILITY_SEGMENT.

    Following fields were passed in I_COBL structure :

    GLVOR VORGN BUDAT BLDAT BUKRS HKONT KOART KOKRS GJAHR BLART BSCHL WWERT WAERS DMBTR SHKZG WRBTR DMBE2 VTWEG KUNNR PAPH1

    any extra fields can be populated using IT_COPA internal table.

    I hope this answers everyone's question who have been looking to PARK accounting document .

    Thanks.

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded