BAPI for ABZU - Asset Write UP

Hi
I need to post asset write up documents through ABZU tcode. Can any one help me out with the appropriate BAPI for the same.
BDC will not solve my problem as the set of screen changes as per the 'Transaction Type'.
Regards,
Sudip Kumar Das.

Write up is allowed only to the extent of accumulated depreciation from previous years.  You can do write up "ABZU". however the accumulated depriciation balance has to carry forward from last fiscal year to current fiscal year and you can do writeup only upto the accumulated depr from the previous yr

Similar Messages

  • ABZU - Asset Write-Up

    Dear All,
    I have attempted to perform a write-up for fixed assets in April 2008 which was capitalised in the
    current year January 2008. However the system does not allow me to post.
    However if I attempt to perform a write-up for fixed assets in April 2008 which was capitalised in Prior Year 2007, the system allows me to post.
    Would someone advise why the system is behaving in such a way?
    Why are we not allowed to post a write-up on the NBV for assets capitalised in the current year?
    Thanks in Advance,
    Puzzled.

    Write up is allowed only to the extent of accumulated depreciation from previous years.  You can do write up "ABZU". however the accumulated depriciation balance has to carry forward from last fiscal year to current fiscal year and you can do writeup only upto the accumulated depr from the previous yr

  • BAPI for Fixed Asset

    hi
    Please list BAPI's that will set value for the asset value (orgin).
    It is found in table ANLA-URWRT.
    The transaction that sets the value is AS01
    I drew up the below list, still not meeting the requirement.
    1. AMBU_TABLE_ENTRIES
    2. AMSF_REVENUE_SHARE_CAL_BASEVAL
    3. AM_CALL_EXIT_RVECKZAHLUNGSPROZ
    4. APCF_PAY_BACK_AMOUNT_DETERMINE
    5. EXIT_SAPLANG_002
    6. EXIT_SAPLAN_004
    7. JV_AM_SUBNUMBER_SELECT
    Any help is appreciated.
    Thank you.

    Hi Guy,
    What do u want to do ?
    If you need to create new assets, the BAPI is :
    BAPI_FIXEDASSET_CREATE
    ( AS01 )
    If you need to create/copy an asset from another system ( legacy ), as this is not a new asset, you'll need to use :
    BAPI_FIXEDASSET_OVRTAKE_CREATE
    ( AS91 )
    Hope this helps,
    Erwan

  • BAPI for changing Asset master

    Hi All,
    I am searching for a BAPI which can be used to change the Asset Master (AS02).
    Basically, i need to delete the existing FROM DATE (Time Intervals) and update with then New Dates and Cost centers.
    Can anyone knows it...????
    Please Help me.....
    Regards
    Pavan

    I am trying to use the BAPI "BAPI_FIXEDASSET_CHANGE".
    I want to update the Time Dependent data in the Asset Master.
    But in the beginning of BAPI, i am facing Runtime error..
    What might be the error..???
    Can anyone help me with the code...???
    Please Help me.....
    Regards
    Pavan

  • Program/BAPI for intercompany asset transfer

    Hello guys,
    I have to industrialize the company code fusion. One of the fusion step is the transfer of the asset from company A to company B.
    I am looking for a tool that will allow me to automate the asset transfer.
    Does any one of you know a batch program, BAPI...that will allow me to automate this porcess?
    I don't want to use the worklist logic because I need to update the target asset master data from the file content...
    Thank you in advance for your help
    regards
    Pascal

    Hi,
    I hope that you want to transfer assets from one company code to another...right?
    You need to use transaction ABT1N.
    But if you want to transfer multiple assets, then there is no SAP standard program or BAPi available to automate the process.
    But you can use either develop a program using BDC recording.
    Or
    Create 2 LSMW batch input recordings. (1 for creation of target asset master(as01) and 2nd for ABT1N)
    Hope this information would help you.
    Regards,
    Srinu

  • BAPI for Posting Asset Documents

    Dear All,
    I have a requirement where I have to post Asset Accounting Documents. The purchase is done from the Vendor. I need to pass the Vendor code, Special GL Indicator and reconciliation Account in one line item and Asset Number in another line item.
    I need to find a BAPI to pass the above values.
    Regards,
    Venkatesh

    Dear All,
    I have a requirement where I have to post Asset Accounting Documents. The purchase is done from the Vendor. I need to pass the Vendor code, Special GL Indicator and reconciliation Account in one line item and Asset Number in another line item.
    I need to find a BAPI to pass the above values.
    Regards,
    Venkatesh

  • Asset write down or scrap of assets

    HI
    we have a scenario that we should writup or scrap the asset for one deprecation are , any one can sugest how to proceed
    re

    Creatrez a new transaction type and lilet that to that depreciation area
    scrap TC SPRO:
    Financial Accounting / Asset Accounting / Transactions / Retirements / Define Transaction Types for Retirements
    Asset write down TC SPRO
    Financial Accounting / Asset Accounting / Depreciation / Unplanned Depreciation / Define Transaction Types for Unplanned Depreciation

  • Fixed asset Write up Error. ABZU(Parallel depreciation area 32 is not poste

    Hi Sap Gurus,
          I am running into an error when trying to post a write up via "ABZU". Here is the error message "Parallel depreciation area 32 is not posted". Message no. AA565.
    Diagnosis
    The asset to be posted does not manage parallel depreciation area 32, or transaction type  that you are using is limited to certain depreciation areas, and does not contain depreciation area 32. This is incorrect.
    System Response
    Posting is rejected.
    Procedure
    Check the asset and the transaction type.
    I tried "Limit Transaction Types to Depreciation Areas" in t-code:OAXE for derpeciation area 01 and 32 but still i am getting the same error. I am using ttype:700. When i look into derpeciation tab in asset master record i have depreciation area 32 is there. Is there any configuration piece i am missing. We are using area 32 as IFRS in group which is copy of 01.
    Any help will be appreciate.
    Thanks and Regards,
    Babu

    Hi,
    There are the following reasons:                                                                               
    1) The wrong transaction type is being used.  Please verify that  you are using transaction type in the 700 series for your write-up.     
    2) The transaction type is restricted to certain depreciation areas.   In transaction OAXE the transaction type can be restricted to post  only to certain areas.  If the asset manages a parallel area you  have to extend the posting to include the parallel area.                 
    3) The asset was created before you introduced parallel currencies and  does not manage the parallel area.  In this case, the parallel  area must be created on the asset or the values need to be  transferred to a new asset that manages the parallel area.                       
    4) Transacion types 600 and 601 can only be used for assets that have a  calculation key in their depreciation area that allows no automatic  calculation (for example depr key MANU).  The unplanned transaction types however can be used with assets that  allow automatic calculation.                                                     
    You also need to verify that there are entries in Table ANLB for the  asset in question for the depreciation area. 
    5) Your company code uses parallel currencies (currency types 10-co.code  currency, 50-Index based currency, 30-Group currency...for example).  The assets created in this company code must have the depreciation areas for parallel currencies active. You can only do this in activating the depreciation areas with  parallel currencies for all the asset classes used in this company code.                                                                            
    Check transaction OAYZ to make sure the areas are activated for all  asset classes in the co.code.  If not, you will need to       activate these areas and ensure the asset has all areas assigned.                
    regards Bernhard

  • Assets Write-Ups ABZU

    Hi,
    I want to post assets write up with $ 5000 and want this to affect the NBV. What is happening is that some of the amount get caught into ordinary depreciation so ultimate impact is just $ 4000.00.
    This way my depreciation for the year is increased and my NBV is falling short by $ 1000.00.
    I tried using different Dep key but they make things more complex due to recalcuation.
    Please suggest how to avoid assets write posted from getting depreciated in that year or month?
    Best Regards
    Rajesh

    Thanks George,
    You have understood my requirement correctly, infact I would favour to post the write up on the last day of the last period of the fiscal year.
    I want that NBV gets affected with the writeup year end (the day write is posted) while the depreciation is recalculated from the next fiscal year.
    Does this allow affecting the NBV year end?
    Regards
    Rajesh

  • BAPI for Asset scrapping

    Hello,
    I have implemented the BAPI BAPI_ASSET_RETIREMENT_POST for background scrapping. Everithin OK for an asset with a subnumber. The problem is that I have to scrap an asset with multiple subnumbers. initially, I was running the BAPI for each subnumber, but I realised that I am creating an FI document for each posting, which is not good.
    Can I scrap multiple subnumbers with this BAPI?
    Thank you !

    BAPI_ASSET_ACQUISITION_POST
    BAPI_ASSET_ACQUISITION_CHECK
    BAPI_CMS_AST_GETDETAIL_MULTI
    BAPI_ASSET_POSTCAP_POST
    BAPI_ASSET_POSTCAP_CHECK
    BAPI_ASSET_RETIREMENT_CHECK
    BAPI_ASSET_RETIREMENT_POST
    BAPI_ASSET_REVERSAL_CHECK
    BAPI_ASSET_REVERSAL_POST
    for Fixed assets
    BAPI_FIXEDASSET_OVRTAKE_CREATE
    BAPI_FIXEDASSET_CREATE1
    BAPI_FIXEDASSET_CREATE
    BAPI_FIXEDASSET_CHANGE
    BAPI_FIXEDASSET_GETLIST
    BAPI_FIXEDASSET_GETDETAIL

  • Bapi for asset deletion (Tcode AS06)

    Hi Guys,
    Do we have any BAPIs for asset deletion (Tcode: AS06) ? Pls. let me know .
    Thanks and Regards,
    Sumit

    There is no BAPI for it: just for creation, change, get list and detail.
    I had the same doubt and then I tried FM AM_ASSET_DELETE_FROM_AI but it asks for a "AI_ID" which I don't have during execution time.
    If possible, do a Batch Input to AS06 as it is very simple.

  • BAPI for asset disposal through tcode F-92

    Dear all,
    Is there any BAPI to perform asset disposal that posted in tcode F-92 in foreground with asset transaction type = 210? I found this BAPI BAPI_ASSET_RETIREMENT_POST however i did not find the field to enter the posting key + gl account info for double entry.
    Thanks.
    Regards,
    CNHO

    Are you trying to give two cost objects simultaneously? Can you elaborate on the account assignments you are giving?

  • Please sugget BAPI for Asset Creation(AS91 Transaction)

    Hi I am Loading Legacy Asset master data into sap transaction(AS91) Please suggeest the right BAPI for this.
    Thanks&regards
    Mahesh

    Hi Raja,
    Thanks a lot for quick info u gave I am getting one error when I am trying to execute my program using the BAPI BAPI_FIXEDASSET_CREATE for the date field (capitalized on) saying " Capitalized on of asset INTERN-00001 0 cannot be changed" this field is mandatory for this transcation AS91 and I am also paassing 'X' value to this field inthe structure postinginformationx-CAP_DATE ='X'.
    Thanks in advance

  • Lsmw for fixed asset

    Hi All,
    I am uploading data for fixed assets using LSMW with bapi -
    business object - BUS1022
    Method - FIXEDASSET_CREATEINCLVALUES
    Message Type - FIXEDASSET_CREATEINCLVALUES02
    According to project settings group asset and group asset subnumber are mandatory fields for depreciation area  15. When i am running the lsmw i am getting the error
    "DEPRECIATIONAREAS-GRP_ASSET ("Group asset") is a required entry field in depreciation area  15. The field was not supplied with data when the BAPI was called."
    Please help me how to solve the problem...
    I am copying the lsmw for which group asset and group asset sub number were not included and i am adding those two fields in my lsmw and i am not able to upload the data because of the error. Previously these two fields were not mandatory and LSMW was working fine.
    Thanks,
    Govinda

    Hi Govinda,
                      Please try with the following code , if it is useful then please allocate points to me
    *& Report  ZASSET_CREATE
    REPORT  zasset_create.
    DATA:
       input parameters to the bapi
        input_key       LIKE  bapi1022_key,
        gen_data        LIKE  bapi1022_feglg001,
        gen_datax       LIKE  bapi1022_feglg001x,
        posting_info    LIKE  bapi1022_feglg002,
        posting_infox   LIKE  bapi1022_feglg002x,
        posting_data    LIKE  bapifapo_gen_info,
        acquis_data     LIKE  bapifapo_acq,
        time_dep_data   LIKE  bapi1022_feglg003,
        time_dep_datax  LIKE  bapi1022_feglg003x,
        real_estate     LIKE  bapi1022_feglg007,
        real_estatex    LIKE  bapi1022_feglg007x,
        allocations     LIKE  bapi1022_feglg004,
        allocationsx    LIKE bapi1022_feglg004x,
        extensionin     TYPE TABLE OF bapiparex,
        origindata      LIKE bapi1022_feglg009,
        origindatax     LIKE bapi1022_feglg009x,
    it_depreciationareas TYPE TABLE OF bapi1022_dep_areas,
    wa_depreciationareas TYPE bapi1022_dep_areas,
                     occurs 0 with header line,
    it_depreciationareasx TYPE TABLE OF bapi1022_dep_areasx,
    wa_depreciationareasx TYPE bapi1022_dep_areasx,
                     occurs 0 with header line,
    it_investment_support TYPE TABLE OF bapi1022_inv_support,
                     occurs 0 with header line,
    output parameters from the bapi
        asset_number    LIKE bapi1022_1-assetmaino,
        sub_number      LIKE bapi1022_1-assetsubno,
        out_return      LIKE bapiret2,
        out_return2     LIKE bapiret2.
    input_key-companycode = 'CAT1'.
    gen_data-assetclass   = '00003000'.
    gen_datax-assetclass = 'X'.
    gen_data-descript = 'Testing BAPI'.
    gen_datax-descript   = 'X'.
    gen_data-serial_no    = '1111'.
    gen_datax-serial_no  = 'X'.
    gen_data-base_uom     = 'KG'.
    gen_datax-base_uom   = 'X'.
    *Append the Depreciation keY VALUE EQUAL TO LINA to the internal table.
    wa_depreciationareas-area = '01'.
    wa_depreciationareas-descript = 'Book deprec.'.
    wa_depreciationareas-dep_key = 'LINA'.
    wa_depreciationareas-ulife_yrs = '2'.
    wa_depreciationareas-ulife_prds = '3'.
    wa_depreciationareas-exp_ulife_yrs = '5'.
    wa_depreciationareas-exp_ulife_prds = '3'.
    *wa_depreciationareas-EXP_ULIFE_SDEP_YRS
    *wa_depreciationareas-EXP_ULIFE_SDEP_PRDS
    *wa_depreciationareas-ORIG_ULIFE_YRS
    *wa_depreciationareas-ORIG_ULIFE_PRDS
    wa_depreciationareas-change_yr = '3'.
    *wa_depreciationareas-dep_units = '3'.
    *wa_depreciationareas-odep_start_date = '01012005'.
    *wa_depreciationareas-sdep_start_date = '01012005'.
    *wa_depreciationareas-INTEREST_START_DATE
    *wa_depreciationareas-READINESS
    *wa_depreciationareas-INDEX
    wa_depreciationareas-AGE_INDEX
    wa_depreciationareas-var_dep_portion = '200'.
    wa_depreciationareas-scrapvalue = '20'.
    *wa_depreciationareas-currency = 'USD'.
    *wa_depreciationareas-currency_iso = 'USD'.
    *wa_depreciationareas-NEG_VALUES
    *wa_depreciationareas-GRP_ASSET
    *wa_depreciationareas-GRP_ASSET_SUBNO
    *wa_depreciationareas-ACQ_YR
    *wa_depreciationareas-ACQ_PRD
    *wa_depreciationareas-SCRAPVALUE_PRCTG
    APPEND wa_depreciationareas TO it_depreciationareas.
    CLEAR: wa_depreciationareas.
    wa_depreciationareasx-area = '01'.
    *wa_depreciationareasX-DESCRIPT = 'X'.
    *wa_depreciationareasX-DEACTIVATE = 'X'.
    wa_depreciationareasx-dep_key = 'X'.
    wa_depreciationareasx-ulife_yrs  = 'X'.
    wa_depreciationareasx-ulife_prds = 'X'.
    *wa_depreciationareasX-EXP_ULIFE_YRS = 'X'.
    *wa_depreciationareasX-EXP_ULIFE_PRDS = 'X'.
    *wa_depreciationareasX-EXP_ULIFE_SDEP_YRS = 'X'.
    *wa_depreciationareasX-EXP_ULIFE_SDEP_PRDS = 'X'.
    *wa_depreciationareasX-ORIG_ULIFE_YRS = 'X'.
    *wa_depreciationareasX-ORIG_ULIFE_PRDS = 'X'.
    wa_depreciationareasx-change_yr = 'X'.
    *wa_depreciationareasx-dep_units = 'X'.
    wa_depreciationareasx-odep_start_date = 'X'.
    wa_depreciationareasx-sdep_start_date = 'X'.
    *wa_depreciationareasX-INTEREST_START_DATE = 'X'.
    *wa_depreciationareasX-READINESS = 'X'.
    *wa_depreciationareasX-INDEX = 'X'.
    *wa_depreciationareasX-AGE_INDEX = 'X'.
    wa_depreciationareasx-var_dep_portion = 'X'.
    wa_depreciationareasx-scrapvalue = 'X'.
    *wa_depreciationareasx-currency = 'X'.
    *wa_depreciationareasx-currency_iso = 'X'.
    *wa_depreciationareasX-NEG_VALUES = 'X'.
    *wa_depreciationareasX-GRP_ASSET = 'X'.
    *wa_depreciationareasX-GRP_ASSET_SUBNO = 'X'.
    *wa_depreciationareasX-ACQ_YR = 'X'.
    *wa_depreciationareasX-ACQ_PRD = 'X'.
    *wa_depreciationareasX-SCRAPVALUE_PRCTG = 'X'.
    APPEND wa_depreciationareasx TO it_depreciationareasx.
    CLEAR wa_depreciationareasx.
    *Append the Depreciation keY VALUE EQUAL TO LINb to the internal table.
    break mukherar.
    CALL FUNCTION 'BAPI_FIXEDASSET_CREATE1'
      EXPORTING
        key                        = input_key
      REFERENCE                  =
      CREATESUBNUMBER            =
      POSTCAP                    =
      CREATEGROUPASSET           =
      TESTRUN                    =
       generaldata                = gen_data
       generaldatax               = gen_datax
      INVENTORY                  =
      INVENTORYX                 =
      POSTINGINFORMATION         =
      POSTINGINFORMATIONX        =
      TIMEDEPENDENTDATA          =
      TIMEDEPENDENTDATAX         =
      ALLOCATIONS                =
      ALLOCATIONSX               =
      ORIGIN                     =
      ORIGINX                    =
      INVESTACCTASSIGNMNT        =
      INVESTACCTASSIGNMNTX       =
      NETWORTHVALUATION          =
      NETWORTHVALUATIONX         =
      REALESTATE                 =
      REALESTATEX                =
      INSURANCE                  =
      INSURANCEX                 =
      LEASING                    =
      LEASINGX                   =
    IMPORTING
      COMPANYCODE                = company_code
       asset                      = asset_number
       subnumber                  = sub_number
      ASSETCREATED               =
       return                     = out_return
    TABLES
       depreciationareas          = it_depreciationareas
       depreciationareasx         = it_depreciationareasx.
      INVESTMENT_SUPPORT         =
      EXTENSIONIN                =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT          =
              IMPORTING
                RETURN        =
    WRITE: / 'Asset Number:',asset_number.

  • What is exact BAPI for FB01 transaction......

    Hi,
       Currently i got requirement to upload transactional data into FB01 using BAPI. I used BAPI_acc_gl_posting_post but it applicable only for GLs, but i want to upload Vendors, Customers, assets, Materials.. Please tell me apropriate BAPI for the requirement. Its urgent.
    Thanks in advance...........
    Regards,
    Chinna.

    Thanks Atish....
        I have written code using BAPI_ACC_DOCUMENT_POST. But it is not posting and it is not generating Object Key...
    Please go thru the code and tell the solutions....
    Thanks in Advance......
    REPORT  zk_fi_fb01                     .
    Data: v_objkey(20) type c.
    Data: Docheader type BAPIACHE09.
    Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
         ACCOUNTRECEIVABLE like BAPIACAR09,
          ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
          CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
          RETURN like BAPIRET2 occurs 0.
    Data: obj_typ like BAPIACHE09-OBJ_TYPE,
          OBJ_KEY like BAPIACHE09-OBJ_KEY,
          OBJ_SYS like BAPIACHE09-OBJ_SYS.
    Data: gv_belnr type belnr_d.
    Data:file_Na type String.
    Data: lsys like TBDLS-LOGSYS.
    *START OF SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
       nr_range_nr                  = '19'
       object                       = 'RF_BELEG' "'FIAA-BELNR'
      QUANTITY                      = '1'
      SUBOBJECT                     = '7777'
      TOYEAR                        = '2007'
      IGNORE_BUFFER                = ' '
    IMPORTING
      NUMBER                        = gv_belnr
    QUANTITY                      =
    RETURNCODE                    =
    *CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      OWN_LOGICAL_SYSTEM                   = lsys
    EXCEPTIONS
      OWN_LOGICAL_SYSTEM_NOT_DEFINED       = 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.
    *concatenate gv_belnr '7777' '2007' into v_objkey.
    *Filling Document Header Details
    *Docheader-OBJ_TYPE = 'BEBD'.
    *Docheader-OBJ_key = V_objkey.
    *Docheader-OBJ_SYS = lsys.
    *docheader-BUS_ACT = 'RFBU'.
    Docheader-USERNAME = sy-uname.
    Docheader-COMP_CODE = '7777'.
    Docheader-DOC_DATE   = '20070725'.
    Docheader-PSTNG_DATE = '20070725'.
    Docheader-FISC_YEAR = '2007'.
    *DOCHEADER-OBJ_KEY_R = 'X'.
    Docheader-DOC_TYPE = 'KR'.
    *Item data for ACCOUNTGL
    ACCOUNTGL-ITEMNO_ACC = '0000000001'.
    ACCOUNTGL-GL_ACCOUNT = '0000000102'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'S'.
    append ACCOUNTGL.
    ACCOUNTGL-ITEMNO_ACC = '0000000002'.
    ACCOUNTGL-GL_ACCOUNT = '0000400002'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'H'.
    append ACCOUNTGL.
    *Account payable
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    *Currency Amount
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    clear CURRENCYAMOUNT.
    clear ACCOUNTGL.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = Docheader
      CUSTOMERCPD             =
      CONTRACTHEADER          =
    IMPORTING
       OBJ_TYPE                =  obj_typ
       OBJ_KEY                 =  obj_key
       OBJ_SYS                 =  obj_sys
      tables
       ACCOUNTGL               = ACCOUNTGL
      ACCOUNTRECEIVABLE       =
      ACCOUNTPAYABLE          = ACCOUNTPAYABLE
      ACCOUNTTAX              =
        currencyamount          = CURRENCYAMOUNT
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = return.
    if sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = ' '.
    endif.
    if sy-subrc = 0.
    WRITE: / OBJ_KEY,
             OBJ_TYP,
             OBJ_SYS.
    endif.

Maybe you are looking for

  • How to use my nokia 2330 with my macbook pro

    I have a Nokia 2330 and was able to transfer photos using the nokia pc suite and a bluetooth adapter on my old PC.  But now I have a new MacBook Pro and I can't get it to work. Is there any software downloads?  How can this be done?  Both phone and m

  • IPod Shuffle 2G Won't Function

    So when I plug my iPod shuffle into my computer, I see it pop up in the My Computer, everything is fine. I open iTunes, the My Computer iPod disappears, but everything is fine on iTunes. I go to add new songs and it tells me that it needs to erase ev

  • After moving my iTunes and iPhoto libraries to an external hard drive and deleting the originals i found i still had no space on my mac.help

    i moved my itunes and iphoto libraries to an external hard drive to free up space on my mac. after i had moved them and checked they could be found i trashed the originals and checked again that the could be found on the external hdd. all seemed to b

  • Internal order  issue

    Hi friends, There is a internal order type created for Capital purchase orders. There are AUC accounts for accounting. How to restrict the user to use only these AUC GL accounts. If any one uses any other GL accounts it should give error message. Tha

  • Home page in internet explorer

    Can anyone tell me why it is that when i open internet explorer the homepage is blank? I have to refresh the page to get the homepage to appear?