BAPI for GL Account doc parking

Hi All,
Is there any BAPI for the GL Account Doc parking in SAP R/3.
Pls let me know at the earliest.
Thanks in advance.
Murgesh.

Hi
I've tried several FMs and non seem to work but try the following:
All credit for Rteve Sowan
se24 create class ZCL_FI_UTILS
Create Class, Static method ACC_DOCUMENT_POST
with the following import params:
IP_BKPF     Importing     Type     FM_BKPF_TAB
IP_BSEG     Importing     Type     FM_BSEG_TAB
IP_BSEC     Importing     Type     FM_BSEC_TAB
IP_BSET     Importing     Type     FM_BSET
IP_BSEZ     Importing     Type     ZFM_BSEZ_TAB (your table type of BSEZ)
Method Code (you could call the function direct, but at least this informs other developer that the method is intended for parking GL Account docs):
method ACC_DOCUMENT_PARK.
  CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
  TABLES
    t_bkpf                 = ip_bkpf
    t_bseg                 = ip_bseg
    t_bsec                 = ip_bsec
    t_bset                 = ip_bset
    t_bsez                 = ip_bsez
endmethod.
Within your program populate Header BKPF
Accounting Document Header
gs_bkpf-bukrs                         = '1000'.
gs_bkpf-gjahr                         = '2007'.
gs_bkpf-blart                         = 'SA'.
gs_bkpf-bldat                         = sy-datum.
gs_bkpf-budat                         = sy-datum.
gs_bkpf-monat                         = '12'.
gs_bkpf-wwert                         = sy-datum.
gs_bkpf-usnam                         = sy-uname.
gs_bkpf-tcode                         = sy-tcode.
gs_bkpf-waers                         = 'GBP'.
gs_bkpf-glvor                         = 'RFBU'.
gs_bkpf-hwaer                         = 'GBP'.
APPEND gs_bkpf TO gt_bkpf.
Populate the Item
Accounting Document Segment
gs_bseg-bukrs                         = '1000'.
gs_bseg-gjahr                         = '2007'.
gs_bseg-buzei                         = '001'.
gs_bseg-bschl                         = '40'.
gs_bseg-koart                         = 'S'.
gs_bseg-shkzg                         = 'S'.
gs_bseg-wrbtr                         = '1'.
gs_bseg-pswsl                         = 'GBP'.
gs_bseg-vorgn                         = 'RFBU'.
gs_bseg-kokrs                         = 'N999'.
gs_bseg-kostl                         = '1000E021'.
gs_bseg-xkres                         = 'X'.
gs_bseg-hkont                         = '221001101'.
Format the Account Doc
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = gs_bseg-hkont
  IMPORTING
    output = gs_bseg-hkont.
APPEND gs_bseg TO gt_bseg.
Call the Class Method previously created
CALL METHOD zcl_fi_utils=>acc_document_park
exporting
    ip_bkpf = gt_bkpf
    ip_bseg = gt_bseg
    ip_bsec = gt_bsec
    ip_bset = gt_bset
    ip_bsez = gt_bsez
So long as GT_BKPF and GT_BSEG are populated (minimum) the document will park.
The other tables need to be passed as empty tables.
Have a play
LMc

Similar Messages

  • Canceling a billing doc for which accounting doc not yet generated

    Hello,
    I have strange issue in canceling billing doc. What happened user created Intercompany billing doc IV against a delivery and accounting doc also released to FI. After that he found that value in that IV doc is not correct so he went and cancelled that doc IV and he created internal credit memo IG .But for this IG the accounting doc not generated due to FI period closing. Because the IV is created in the month of Oct and IG is created in the month of Nov'07.Due to this issue Accounting document not generated for this IG doc.
    But unfortunately by mistake he went cancelled the IG doc and it created IV again. Now what happened both IG and new IV created are showing in cancelled status. This is because if we cancel a billing doc for which accounting doc not created, then both doc will turning into cancelled status in doc flow. This is confirmed similar situation in my quality box and confirmed.
    Now can anybody come across this kind of issue and tell me what is the best approach to handle this kind of situation.
    Thanks
    Mathi

    Hi Nina
    As you are doing Delivery and then billing  with the service item category ZTAD , so go to VOV7 and check wheather the Billing Relevance ( Delivery related billing ) has been maintained or not .
    Also check wheather in VTLA & VTFL copy controls  ,  ZTAD item category has been maintained or not
    Regards
    Srinath

  • Bapi for F-63 changing parked document

    hi all!
      I need bapi or fm for changing parked document for f-63 transaction.if any one knows just send me,
    Thanks in advance

    Hi Raj,
    This is the Bapi for parking for that transaction check wether it is useful to you
    'BAPI_INCOMINGINVOICE_PARK'.
    Also check this link for more number of bapis
    http://www.sapbapi.com/bapi-list/ It is really very helpful 
    Regards,
    Sana.

  • Table for Invoice accounting doc

    I have got the invoice number posted in MIRO,i need to get the accounting document number generated for this invoice number.
    Can any one please let me know th etable where i could give the  the invoice number posted in MIRO and get accounting doc generataed for it.I need to pass invoice number posted in MIRO and get the accounting doc.

    Hi,
    Table BKPF will help you...
    BELNR = Accounting document number
    AWKEY = Object Key which is nothing but Material Doc no + Fiscal year
    From SE16, select table BKPF
    In the field AWKEY (Object Key), give the material doc number+fiscal year ( for example, 50000000002009)
    Execute.
    You will get the corresponding accounting doc number
    Regards,
    Mike

  • Error in BAPI for salary account posting

    Dear Experts,
        I am developing and report for salary account posting whrere i am using a bapi called BAPI_ACC_DOCUMENT_POSTING. Which require RFC destinetion of the target system where the document should post in its import parameters.But m not passing anything thr and its automatically taking an rfc destinatin.But while i try to run this report document is not posted and in its return table 2 error msgs comes
    1. Error in document: BKPFF $ CLNTD11320
    2. FI/COinterface: Line item entered several times
       Pls provive me input if any one has come across this error.
    Thanks

    Line item passed to the vendor and gl tables of the bapi cannot be same.ie. if vendor table contains 3 entry with line item 1,2,3 gl should contain line item starting from 4.Line item field cannbe field manually using a count variable.

  • BAPI FOR VENDOR ACCOUNT POST

    HI
    please any body tell me how to insert BAPI for transaction code F-43/FB01.
    I want to map data from external software.
    I am using insert BAPI using tables BSEG,BKPF,LFA1.
    data is not displaying in FB03.
    Kindly reply me as soon as possible.....
    Waiting for a reply....
    Thanks

    Make sure that you call BAPI_TRANSACTION_COMMIT after your BAPI call.
    Rob

  • Require standard BAPI for GL Account Posting

    We are creating a GL Account Posting in Transaction F-02.
    We are giving Document date Document type Posting Date, Currency type , Company code, Posting Key AccountNo, Amount.
    Click on Save Button . A screen appears.  Then the Document is Parked. A document No is generated.
    i want a standard BAPI which does this Process

    Hi,
    Check the BAPI's
    <b>BAPI_ACC_DOCUMENT_POST
    BAPI_INCOMINGINVOICE_PARK</b>
    regards
    vijay

  • 0FI_GL_10 to be enhanced for the Accounting Doc Num and Order

    Hi Gurus,
    We have used 0FI_GL_10  datasource and now we need data for the below two fields:
    1. Accounting Document Number (BSEG u2013 BELNR )
    2. Order Number (BSEG u2013 AUFNR)
    The above both fields are present in the datasource 0FI_GL_04.
    Can 0FI_GL_10  be enhanced for the above two fields? or do we have any simple method of pulling these
    Thanks in advance,
    Upender

    Hi,
    You can do it in 2 ways. Use both the datasources to fill same DSO. In that way, you would be able to update your required fields.
    Alternatively, you can enhance the datasource with these 2 fields and write your code in CMOD to fill these fields. Please refer to the below article for enhancing the datasource.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    Please note that the article talks about master data, therefore the enhancement EXIT_SAPLRSAP_002 is used. In your case, you need to code under EXIT_SAPLRSAP_001.
    Edited by: Rahul K Rai on Sep 9, 2010 1:36 PM

  • BAPI for posting account with special GL indicator

    Hi all,
    is there any other BAPI except than BAPI_ACC_DOCUMENT_POST that can be used to post unt with special GL indicator

    use program RFBIBL00, by setting the TCODE 'FB01' in the structure BBKPF, but if the transaction FB01 does not support the special G/L indicator you require, it may not be possible. I would still give it a shot.
    read the documentation of the program. Additionally, it can be used in conjunction with LSMW for easy setup.
    Re: program to upload vendor/customer items with special GL indicator?

  • BAPI for posting accounting documents

    Hi,
    Can anyone please provide me with the BAPI to be used for GL postings with example.

    Hi,
    Use  the BAPI   BAPI_ACC_DOCUMENT_POST for posting Documents.
    Check the sample code related to posting.
    REPORT  acc_bapi_document                  .
    selection-screen begin of block bl01 .
    parameters:
      check_l             radiobutton group rb1,
      check_a default 'X' radiobutton group rb1,
      post                radiobutton group rb1.
    selection-screen uline.
    parameters:
      rev_c               radiobutton group rb1,
      rev_p               radiobutton group rb1.
    selection-screen uline.
    parameters:
      ref_key like bapiache01-obj_key default 'TEST000001BAPICALL',
      dest    like bdi_logsys-logsys  default '          '.
    selection-screen end   of block bl01 .
    data:
      gd_documentheader    like bapiache09,
      gd_customercpd       like bapiacpa09,
      gd_fica_hd           like bapiaccahd,
      it_accountreceivable like table of bapiacar09 with header line,
      it_accountgl         like table of bapiacgl09 with header line,
      it_accounttax        like table of bapiactx09 with header line,
      it_criteria          like table of bapiackec9 with header line,
      it_valuefield        like table of bapiackev9 with header line,
      it_currencyamount    like table of bapiaccr09 with header line,
      it_return            like table of bapiret2   with header line,
      it_receivers         like table of bdi_logsys with header line,
      it_fica_it           like table of bapiaccait with header line,
      it_accountpayable    like table of bapiacap09 with header line,
      it_paymentcard       like table of bapiacpc09 with header line,
      it_ext               like table of bapiacextc with header line.
    it_re                LIKE TABLE OF bapiacre09 WITH HEADER LINE,
    it_ext2              LIKE TABLE OF bapiparex  WITH HEADER LINE.
    perform fill_internal_tables.
    if check_l = 'X'.
      call function 'BAPI_ACC_DOCUMENT_CHECK'
           destination dest
           exporting
                documentheader    = gd_documentheader
                customercpd       = gd_customercpd
                contractheader    = gd_fica_hd
           tables
                accountgl         = it_accountgl
                accountreceivable = it_accountreceivable
                accountpayable    = it_accountpayable
                accounttax        = it_accounttax
               currencyamount    = it_currencyamount
                criteria          = it_criteria
                valuefield        = it_valuefield
                extension1        = it_ext
                return            = it_return
                paymentcard       = it_paymentcard
                contractitem      = it_fica_it.
               extension2        = it_ext2
               realestate        = it_re.
      write: / 'Result of check lines:'.                        "#EC NOTEXT
      perform show_messages.
    endif.
    if check_a = 'X'.
      call function 'BAPI_ACC_DOCUMENT_CHECK'
        destination dest
        exporting
          documentheader    = gd_documentheader
          customercpd       = gd_customercpd
          contractheader    = gd_fica_hd
        tables
          accountgl         = it_accountgl
          accountreceivable = it_accountreceivable
          accountpayable    = it_accountpayable
          accounttax        = it_accounttax
          currencyamount    = it_currencyamount
          criteria          = it_criteria
          valuefield        = it_valuefield
          extension1        = it_ext
          return            = it_return
          paymentcard       = it_paymentcard
          contractitem      = it_fica_it.
         extension2        = it_ext2
         realestate        = it_re.
      write: / 'Result of check all:'.                          "#EC NOTEXT
      perform show_messages.
    endif.
    if post = 'X'.
      data: l_type like gd_documentheader-obj_type,
            l_key  like gd_documentheader-obj_key,
            l_sys  like gd_documentheader-obj_sys.
      if dest = space or
         dest = gd_documentheader-obj_sys.
       post synchron
        call function 'BAPI_ACC_DOCUMENT_POST'
          exporting
            documentheader    = gd_documentheader
            customercpd       = gd_customercpd
            contractheader    = gd_fica_hd
          importing
            obj_type          = l_type
            obj_key           = l_key
            obj_sys           = l_sys
          tables
            accountgl         = it_accountgl
            accountreceivable = it_accountreceivable
            accountpayable    = it_accountpayable
            accounttax        = it_accounttax
            currencyamount    = it_currencyamount
            criteria          = it_criteria
            valuefield        = it_valuefield
            extension1        = it_ext
            return            = it_return
            paymentcard       = it_paymentcard
            contractitem      = it_fica_it.
           extension2        = it_ext2
           realestate        = it_re.
        write: / 'Result of post:'.                             "#EC NOTEXT
        perform show_messages.
      else.
      create Idoc
        it_receivers-logsys = dest.
        append it_receivers.
        call function 'ALE_ACC_DOCUMENT_POST'
          exporting
            documentheader    = gd_documentheader
            customercpd       = gd_customercpd
            contractheader    = gd_fica_hd
          tables
            accountgl         = it_accountgl
            accountreceivable = it_accountreceivable
            accountpayable    = it_accountpayable
            accounttax        = it_accounttax
            currencyamount    = it_currencyamount
            criteria          = it_criteria
            valuefield        = it_valuefield
            extension1        = it_ext
            paymentcard       = it_paymentcard
            contractitem      = it_fica_it
           extension2        = it_ext2
           realestate        = it_re
            receivers         = it_receivers
          COMMUNICATION_DOCUMENTS =
          APPLICATION_OBJECTS     =
          exceptions
            error_creating_idocs    = 1
            others                  = 2  .
        if sy-subrc = 0.
          write: / 'IDoc created'.                              "#EC NOTEXT
        else.
          write: sy-msgid.
        endif.
      endif.
    endif.
    if rev_p = 'X' or rev_c = 'X'.
      data: rev like bapiacrev,
            rev_key like ref_key.
      rev_key       = ref_key.
      rev_key(1)    = 'R'.
      rev-obj_type  = gd_documentheader-obj_type.
      rev-obj_key   = rev_key.
      rev-obj_sys   = gd_documentheader-obj_sys.
      rev-obj_key_r = ref_key.
      if rev_c is initial.
        if dest = space or
           dest = gd_documentheader-obj_sys.
          call function 'BAPI_ACC_DOCUMENT_REV_POST'
            exporting
              reversal = rev
              bus_act  = gd_documentheader-bus_act
            tables
              return   = it_return.
        else.
          it_receivers-logsys = dest.
          append it_receivers.
          call function 'ALE_ACC_DOCUMENT_REV_POST'
            exporting
              reversal                      = rev
              busact                        = gd_documentheader-bus_act
            OBJ_TYPE                      = 'BUS6035'
            SERIAL_ID                     = '0'
            tables
              receivers                     = it_receivers
            COMMUNICATION_DOCUMENTS       =
            APPLICATION_OBJECTS           =
            exceptions
              error_creating_idocs          = 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.
          else.
            write: / 'IDoc created'.                            "#EC NOTEXT
          endif.
        endif.
      else.
        call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
          exporting
            reversal = rev
            bus_act  = gd_documentheader-bus_act
          tables
            return   = it_return.
      endif.
      write: / 'Result of Reversal Posting:'.                   "#EC NOTEXT
      perform show_messages.
    endif.
    commit work.
         Form  fill_internal_tables
    form fill_internal_tables.
      perform fill_header.
      perform fill_accountgl.
    perform fill_accountar.
      perform fill_accountap.
      perform fill_accounttax.
      perform fill_currencyamount.
    perform fill_criteria.
    perform fill_valuefield.
    perform fill_re.
    perform fill_cpd.
    perform fill_contractitem.
    perform fill_contractheader.
    perform fill_paymentcard.
    perform fill_extension.
    endform.                               " fill_internal_tables
         Form  Show_messages
    form show_messages.
      if it_return[] is initial.
        write: / 'no messages'.
      else.
        skip 1.
        loop at it_return.
          write: /    it_return-type,
                 (2)  it_return-id,
                      it_return-number,
                 (80) it_return-message,
                    IT_RETURN-LOG_NO
                    IT_RETURN-LOG_MSG_NO
                      it_return-message_v1,
                    IT_RETURN-MESSAGE_V2
                    IT_RETURN-MESSAGE_V3
                    IT_RETURN-MESSAGE_V4
                 (20) it_return-parameter,
                 (3)  it_return-row,
                      it_return-field.
                    IT_RETURN-SYSTEM
        endloop.
      endif.
      uline.
    endform.                               " Show_messages
          FORM fill_accountgl                                           *
    form fill_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 2.
      it_accountgl-gl_account     = '0021510201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
    it_accountgl-bus_area       = '01'.
    it_accountgl-profit_ctr     = '0000010101'.
    it_accountgl-comp_code      = 'SLOC'.
      append it_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 3.
      it_accountgl-gl_account     = '0082000201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
      it_accountgl-bus_area       = '01'.
      it_accountgl-profit_ctr     = '0000010101'.
      it_accountgl-comp_code      = 'SLOC'.
      it_accountgl-tax_code       = 'A3'.
      append it_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 5.
      it_accountgl-gl_account     = '0021510201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
    it_accountgl-bus_area       = '01'.
    it_accountgl-profit_ctr     = '0000010301'.
    it_accountgl-comp_code      = 'SLOC'.
      append it_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 6.
      it_accountgl-gl_account     = '0082000201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
      it_accountgl-bus_area       = '01'.
      it_accountgl-profit_ctr     = '0000010301'.
      it_accountgl-comp_code      = 'SLOC'.
      it_accountgl-tax_code       = 'A3'.
      append it_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 7.
    it_accountgl-itemno_acc     = 8.
      it_accountgl-gl_account     = '0021510201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
    it_accountgl-bus_area       = '90'.
    it_accountgl-profit_ctr     = '0000900008'.
    it_accountgl-comp_code      = 'CORP'.
      append it_accountgl.
      clear it_accountgl.
      it_accountgl-itemno_acc     = 8.
    it_accountgl-itemno_acc     = 9.
      it_accountgl-gl_account     = '0082000201'.
      it_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
      it_accountgl-bus_area       = '90'.
      it_accountgl-profit_ctr     = '0000900008'.
      it_accountgl-comp_code      = 'CORP'.
    it_accountgl-tax_code       = 'A3'.
      append it_accountgl.
    endform.                    "fill_accountgl
          FORM fill_header                                              *
    form fill_header.
    CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
       IMPORTING
         own_logical_system = gd_documentheader-obj_sys.
    OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
    gd_documentheader-obj_type   = 'IDOC'.
    gd_documentheader-obj_key    = ref_key.
      gd_documentheader-username   = sy-uname.
      gd_documentheader-header_txt = 'BAPI Test'.               "#EC NOTEXT
    gd_documentheader-obj_key_r  =
    GD_DOCUMENTHEADER-reason_rev =
    gd_documentheader-comp_code  = 'SLOC'.
    GD_DOCUMENTHEADER-AC_DOC_NO  =
      gd_documentheader-fisc_year  = sy-datum(4).
      gd_documentheader-doc_date   = sy-datum.
      gd_documentheader-pstng_date = sy-datum.
    GD_DOCUMENTHEADER-TRANS_DATE =
    GD_DOCUMENTHEADER-VALUE_DATE =
    GD_DOCUMENTHEADER-FIS_PERIOD =
    gd_documentheader-doc_type   = 'KR'.
    gd_documentheader-ref_doc_no = 'xxxx'.
    GD_DOCUMENTHEADER-COMPO_ACC  =
      gd_documentheader-bus_act    = 'RFBU'.
    endform.                    "fill_header
          FORM fill_contractheader                                     *
    form fill_contractheader.
    gd_fica_hd-doc_no           =
    gd_fica_hd-doc_type_ca      =
    gd_fica_hd-res_key          =
    gd_fica_hd-fikey            =
    gd_fica_hd-payment_form_ref =
    endform.                    "fill_contractheader
          FORM fill_cpd                                                 *
    form fill_cpd.
    gd_customercpd-name
    gd_customercpd-name_2
    gd_customercpd-name_3
    gd_customercpd-name_4
    gd_customercpd-postl_code
    gd_customercpd-city
    gd_customercpd-country
    gd_customercpd-country_iso
    gd_customercpd-street
    gd_customercpd-po_box
    gd_customercpd-pobx_pcd
    gd_customercpd-pobk_curac
    gd_customercpd-bank_acct
    gd_customercpd-bank_no
    gd_customercpd-bank_ctry
    gd_customercpd-bank_ctry_iso
    gd_customercpd-tax_no_1
    gd_customercpd-tax_no_2
    gd_customercpd-tax
    gd_customercpd-equal_tax
    gd_customercpd-region
    gd_customercpd-ctrl_key
    gd_customercpd-instr_key
    gd_customercpd-dme_ind
    gd_customercpd-langu_iso
    endform.                    "fill_cpd
          FORM fill_ar                                                  *
    form fill_accountar.
    CLEAR it_accountreceivable.
    it_accountreceivable-itemno_acc =
    it_accountreceivable-customer   =
    IT_ACCOUNTRECEIVABLE-REF_KEY_1  =
    IT_ACCOUNTRECEIVABLE-REF_KEY_2  =
    IT_ACCOUNTRECEIVABLE-REF_KEY_3  =
    IT_ACCOUNTRECEIVABLE-PMNTTRMS   =
    IT_ACCOUNTRECEIVABLE-BLINE_DATE =
    IT_ACCOUNTRECEIVABLE-DSCT_DAYS1 =
    IT_ACCOUNTRECEIVABLE-DSCT_DAYS2 =
    IT_ACCOUNTRECEIVABLE-NETTERMS   =
    IT_ACCOUNTRECEIVABLE-DSCT_PCT1  =
    IT_ACCOUNTRECEIVABLE-DSCT_PCT2  =
    IT_ACCOUNTRECEIVABLE-PYMT_METH  =
    IT_ACCOUNTRECEIVABLE-DUNN_KEY   =
    IT_ACCOUNTRECEIVABLE-DUNN_BLOCK =
    IT_ACCOUNTRECEIVABLE-PMNT_BLOCK =
    IT_ACCOUNTRECEIVABLE-VAT_REG_NO =
    IT_ACCOUNTRECEIVABLE-ALLOC_NMBR =
    it_accountreceivable-item_text  =
    IT_ACCOUNTRECEIVABLE-PARTNER_BK =
    IT_ACCOUNTRECEIVABLE-GL_ACCOUNT =
    it_accountreceivable-comp_code
    it_accountreceivable-bus_area
    it_accountreceivable-pmtmthsupl
    it_accountreceivable-paymt_ref
    it_accountreceivable-scbank_ind
    it_accountreceivable-businessplace
    it_accountreceivable-sectioncode
    it_accountreceivable-branch
    it_accountreceivable-pymt_cur
    it_accountreceivable-pymt_cur_iso
    it_accountreceivable-pymt_amt
    it_accountreceivable-c_ctr_area
    it_accountreceivable-bank_id
    it_accountreceivable-supcountry
    it_accountreceivable-supcountry_iso
    it_accountreceivable-tax_code
    it_accountreceivable-taxjurcode
    it_accountreceivable-tax_date
    it_accountreceivable-sp_gl_ind
    it_accountreceivable-partner_guid = '1465464654'.
    APPEND it_accountreceivable.
    endform.                    "fill_accountar
          FORM fill_ap                                                  *
    form fill_accountap.
      clear it_accountpayable.
      it_accountpayable-itemno_acc = 1.
    it_accountpayable-vendor_no  = '0000060259'.
      it_accountpayable-vendor_no  = '0000060693'.
    it_accountpayable-gl_account
    it_accountpayable-ref_key_1
    it_accountpayable-ref_key_2
    it_accountpayable-ref_key_3
    it_accountpayable-comp_code = 'SLOC'.
    it_accountpayable-bus_area = '01'.
    it_accountpayable-pmnttrms = 'A000'.
    it_accountpayable-bline_date
    it_accountpayable-dsct_days1
    it_accountpayable-dsct_days2
    it_accountpayable-netterms
    it_accountpayable-dsct_pct1
    it_accountpayable-dsct_pct2
    it_accountpayable-pymt_meth
    it_accountpayable-pmtmthsupl
    it_accountpayable-pmnt_block
    it_accountpayable-scbank_ind
    it_accountpayable-supcountry
    it_accountpayable-supcountry_iso
    it_accountpayable-bllsrv_ind
    it_accountpayable-alloc_nmbr
      it_accountpayable-item_text  = 'BAPI Test A/P line item'. "#EC NOTEXT
    it_accountpayable-po_sub_no
    it_accountpayable-po_checkdg
    it_accountpayable-po_ref_no
    it_accountpayable-w_tax_code
    it_accountpayable-businessplace
    it_accountpayable-sectioncode
    it_accountpayable-instr1
    it_accountpayable-instr2
    it_accountpayable-instr3
    it_accountpayable-instr4
    it_accountpayable-branch
    it_accountpayable-pymt_cur
    it_accountpayable-pymt_amt
    it_accountpayable-pymt_cur_iso
    it_accountpayable-sp_gl_ind
      append it_accountpayable.
    endform.                    "fill_accountap
          FORM fill_tax                                                 *
    form fill_accounttax.
      clear it_accounttax.
      it_accounttax-itemno_acc = 4.
      it_accounttax-gl_account = '0011361502'.
      it_accounttax-tax_code   = 'A3'.
      it_accounttax-acct_key   = 'VST'.
      it_accounttax-cond_key   = 'MWVS'.
    it_accounttax-itemno_tax = 8.
      append it_accounttax.
    clear it_accounttax.
    it_accounttax-itemno_acc = 7.
    it_accounttax-gl_account = '0011361502'.
    it_accounttax-tax_code   = 'A3'.
    it_accounttax-acct_key   = 'VST'.
    it_accounttax-COND_KEY   = 'MWVS'.
    append it_accounttax.
    clear it_accounttax.
    it_accounttax-itemno_acc = 10.
    it_accounttax-itemno_acc = 9.
    it_accounttax-gl_account = '0011361502'.
    it_accounttax-tax_code   = 'A3'.
    it_accounttax-acct_key   = 'VST'.
    it_accounttax-cond_key   = 'MWVS'.
    it_accounttax-itemno_tax = 4.
    append it_accounttax.
    endform.                    "fill_accounttax
          FORM fill_currencyamount                                      *
    form fill_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 1.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '-7408036.2'.
      append it_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 2.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '5336472.00'.
      append it_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 3.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '3840.00'.
      append it_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 4.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_base   = '5548.00'.
      it_currencyamount-amt_doccur   = '832.2'.
    it_currencyamount-amt_doccur   = '576.00'.
    it_currencyamount-amt_base   = '3840.00'.
      append it_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 5.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '2051279.00'.
      append it_currencyamount.
      clear it_currencyamount.
      it_currencyamount-itemno_acc   = 6.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '1690.00'.
      append it_currencyamount.
    clear it_currencyamount.
    it_currencyamount-itemno_acc   = 7.
    it_currencyamount-curr_type    = '00'.
    it_currencyamount-currency     = 'MXN'.
    it_currencyamount-amt_base     = '1690.00'.
    it_currencyamount-amt_doccur   = '253.5'.
    append it_currencyamount.
      clear it_currencyamount.
    it_currencyamount-itemno_acc   = 8.
      it_currencyamount-itemno_acc   = 7.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
      it_currencyamount-amt_doccur   = '13905.00'.
      append it_currencyamount.
      clear it_currencyamount.
    it_currencyamount-itemno_acc   = 9.
      it_currencyamount-itemno_acc   = 8.
      it_currencyamount-curr_type    = '00'.
      it_currencyamount-currency     = 'MXN'.
    it_currencyamount-amt_base     = '2.70'.
      it_currencyamount-amt_doccur   = '18.00'.
      append it_currencyamount.
    clear it_currencyamount.
    it_currencyamount-itemno_acc   = 10.
    it_currencyamount-itemno_acc   = 9.
    it_currencyamount-curr_type    = '00'.
    it_currencyamount-currency     = 'MXN'.
    it_currencyamount-amt_doccur   = '2.70'.
    it_currencyamount-amt_base     = '18.00'.
    append it_currencyamount.
    endform.                    "fill_currencyamount
          FORM fill_criteria                                            *
    form fill_criteria.
    CLEAR it_criteria.
    it_criteria-itemno_acc = 2.
    it_criteria-fieldname = 'BZIRK'.
    it_criteria-character = '000001'.
    append it_criteria.
    endform.                    "fill_criteria
          FORM fill_valuefield                                          *
    form fill_valuefield.
    CLEAR it_valuefield.
    it_valuefield-itemno_acc = 2.
    it_valuefield-fieldname = 'VV010'.
    it_valuefield-curr_type
    it_valuefield-currency = 'EUR'.
    it_valuefield-currency_iso
    it_valuefield-amt_valcom
    it_valuefield-base_uom
    it_valuefield-base_uom_iso
    it_valuefield-qua_valcom
    append it_valuefield.
    endform.                    "fill_valuefield
          FORM fill_extension                                           *
    form fill_extension.
    CLEAR it_ext.
    it_ext-field1
    it_ext-field2
    it_ext-field3
    it_ext-field4
    APPEND it_ext.
    DATA: ls_zzz TYPE ZZZ_ACCIT.
    CLEAR it_ext2.
    it_ext2-structure = 'ZZZ_ACCIT'.
    ls_zzz-posnr = 2.
    ls_zzz-awref_reb = '123654'.
    ls_zzz-aworg_reb = '654654'.
    ls_zzz-grant_nbr = '0022002'.
    MOVE ls_zzz TO it_ext2-valuepart1.
    APPEND it_ext2.
    endform.                    "fill_extension
          FORM fill_paymentcard                                         *
    form fill_paymentcard.
    CLEAR it_paymentcard.
    it_paymentcard-itemno_acc = 1.
    it_paymentcard-cc_glaccount
    it_paymentcard-cc_type
    it_paymentcard-cc_number
    it_paymentcard-cc_seq_no
    it_paymentcard-cc_valid_f
    it_paymentcard-cc_valid_t
    it_paymentcard-cc_name
    it_paymentcard-dataorigin
    it_paymentcard-authamount = '100'.
    it_paymentcard-currency = 'EUR'.
    it_paymentcard-currency_iso
    it_paymentcard-cc_autth_no
    it_paymentcard-auth_refno
    it_paymentcard-auth_date
    it_paymentcard-auth_time
    it_paymentcard-merchidcl
    it_paymentcard-point_of_receipt
    it_paymentcard-terminal
    it_paymentcard-cctyp = '1'.
    APPEND it_paymentcard.
    endform.                    "fill_paymentcard
          FORM fill_contractitem                                        *
    form fill_contractitem.
    CLEAR it_fica_it.
    it_fica_it-itemno_acc
    it_fica_it-cont_acct
    it_fica_it-main_trans
    it_fica_it-sub_trans
    it_fica_it-func_area
    it_fica_it-fm_area
    it_fica_it-cmmt_item
    it_fica_it-funds_ctr
    it_fica_it-fund
    append it_fica_it.
    endform.                    "fill_contractitem
    *&      Form  fill_re
    form fill_re .
    CLEAR it_re.
    it_re-itemno_acc      =
    it_re-business_entity =
    it_re-building        =
    it_re-property        =
    it_re-rental_object   =
    it_re-serv_charge_key =
    it_re-settlement_unit =
    it_re-contract_no     =
    APPEND it_re.
    endform.                    "fill_re
    Please check these links
    http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST
    http://www.sapfans.com/forums/viewtopic.php?p=76232&sid=b6519d31b5097f49dc303d03b35eed43
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_acc_document_post-622561
    Regards,
    Raj.

  • BAPI for FV60 tcode parking (Vendor Invoic)

    Hi All,
    I want to park Vendor invoice through FV60 tcode using BAPI
    I got one BAPI (BAPI_INCOMINGINVOICE_PARK), which is doing for incoming invoice i.e. MIR7 only. but it is not suitable for FV60.
    Please help me in finding BAPI for Vendor Invoic (FV60) parking.
    Thanks,
    Ramanjaneyulu Reddy

    Hi. I know it is very late, but I was looking for an answer to this on SDN today and found your post amongst others, but could not find a solution so had to have a look through SAP in more detail.
    I have managed to get a finance invoice to park just like FV60 using function module PRELIMINARY_POSTING_FB01.
    To find the right data to pass the easiest way is to park an invoice manually in FV60, then call function PRELIMINARY_POSTING_DOC_READ and get the data for the parked invoice.
    Then just populate all the same fields in PRELIMINARY_POSTING_FB01 apart from the document number and it should work fine.
    I hope this was of some help.
    Regards,
    Dave.

  • Number range of billing doc and accounting doc to be same

    Hi Gurus,
    Can any one help me out to make the number ranges of billing doc and accounting doc same every time.
    Even though the invoice is cancelled the same no range should come for cancellation accounting doc.
    Thanks in advance
    Dushyant

    Hi,
    Create or change the same interval for the BILLING DOCUMENTS & ACCOUNTING DOCUMENTS in VN01 and FBN1*
    For BILLING DOCUMENTS assign this Number range in the VOFA transaction code for the Billing document tyes*
    For ACCOUNTING DOCUMENTS assign this Number range in the FBN1 for your company code and fiscal year*
    activate the External Field [] . this is mandtry
    please check and revert back.
    regards,
    Anup Shukla

  • Tax not appearing in accounting doc wrt a material document

    Hi All,
    In one material doc's accounting doc, tax lines are not appearing. I wanted to know how the system picks up the tax code for a material doc posting. Here the posting is an inventory posting.
    Regards
    Rudra

    Basically there has been no tax calculation for an Accounting doc .User wants to know why so?
    He is telling why the tax lines are not appearing. As stated above, its a material doc which when posted,
    generated the stated accounting doc.The movt type is 702.
    Please let me know why there has been no tax line items in the accounting doc.

  • Accounting Doc is created and it is in RSA3, but not loaded into BW side ?

    Hi all,
        One Accounting Document (of Credit Memo type) has been created with Tcode VF01 and this document exists in Extractor Checker (RSA3) and BSEG & BKPF tables and it has the corresponding Billing Document (VBELN) details in those tables. The Document with VA03 the Status for Sales Doc & Billing Doc is Cleared, but for the Accounting Doc is 'Not Cleared'. We have loaded the delta with 0FI_GL_4 Extractor in to an ODS, but this record is not coming into BW. Why it is missing ? Is it sitting somewhere and waiting for some other process, PLEASE ???
    Thanks in advance.
    Regards,
    Venkat.

    Hi Sam,
       There are no Selections in the InfoPackage.
       As you said, as default this extractor pulls records a day old. This record was created yesterday and it should be available today in RSA7, isn't it? But, it is NOT in RSA7. I thought that if it is in RSA7 then I could load the Delta again to get the records that were created yesterday. Does it require any other process to move them into RSA7, PLEASE?
    Thanks,
    Venkat.

  • Document Sequence Information Does not Exist for Bank Account

    Hello,
    Oracle E-Bus Suite: 11.5.10.2
    OS: Windows 2003
    We are facing the problem while executing the ARPLABIM - Bank Statement Import program, 'Document Sequence Information Does not Exist for Bank Account'.
    We have already reviewed Oracle Metalink Document: Document Sequence Information Does not Exist for Bank Account: Doc ID: Note:147773.1.
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:3345134018905587318::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,147773.1,1,1,1,helvetica
    But the profile option Sequential Numbering cannot be set to Not Used due to certain funcational limitations. Please advise any other workaround.
    Thank you

    Adith,
    There are only two options:
    1. Setup document Sequence. OR
    2. Change the profile either the user level who runs this program (assuming a batch user name) or at the resp or application level. Not necessarily at the site level.
    Thanks
    Nagamohan

Maybe you are looking for

  • How can I install beacons in a place?

    Hi, is there an "easy way" to install beacons in a place and set them without using third-party services like these ones: http://www.fosbury.co/beacon-comparison Thank you for your info Eric

  • Open wifi in hotels

    Hi I have 2 playbooks that we're trying to use in a hotel. the problem we seem to have is this - the wifi is open and gives you access when you enter the code on the first web page you see - which is pushed at you byt the hotel servers. Problem is th

  • FileInfo Custom Panel doesn't show xmp data: flex 3.6, FileInfo SDK 5.1

    Just getting into XMP. Decided to make custom File Info panel for our custom xmp namespace data that will be applying to all our images in our archive. Since still on Adobe CS 5.5, got the FileInfo 5.1 SDK. Got the Flex 3.6a package. I'm on Mac OS X

  • Another JS query please - identifying paragraphs by length

    Hi all Based on all the new things I discovered yesterday I want to build upon on one of the code snippets and use it to identify all paragraphs up to 10 words in length and apply a "heading" paragraph style. I'm starting with app.findGrepPreferences

  • Bulk orchestration fail on trusted recon

    Hi Experts, I have a post process event handler which triggers on trusted recon which is working fine. I also have the logic for updating the email id in the same event handler, it is working fine while creating the user from admin console but fails