How to post asset using BAPI_ACC_DOCUMENT_POST w/o creating custom OBJ_TYPE

Hi,
I want to post asset together with expense into one document. The first approach is to use BAPI_ACC_DOCUMENT_POST with custom obj_type, like ZBKPF. But when we post using the custom obj_type, we cannot reverse the document using FB08.
Is that anyway we can post using BAPI_ACC_DOCUMENT_POST and reverse using FB08?
Or is that any BAPI that can do this?
Thanks,
Tai
Edited by: Tai Pang Ng on Apr 8, 2011 9:37 PM

It is because I want to post asset. I tried to post my asset without specified the obj_type and acc_type, then I got an error saying cannot direct post thru my GL account. That's true becuase posting asset, we just use asset number and reconciliation GL.
Then I tried to put my asset no in GL field, then I got another error saying the GL is not in Chart of Account, and that's true also becuase the asset no is never config in our chart of account.
Then I found out that I had to specified the acct_type to 'A'. After that, I got another error saying RFBURFBU000000000000 is not define. That's I cannot post this thru obj_type RBFU. After checking that, I had to specified bus_act to RMWE and custom obj_type to some Z value to make it go.
But after all these, I cannot reverse my posting using FB08 anymore because this is an custom obj_type and not allow to reverse using FB08.
Please let me know if I made mistake in the above.
Thanks,
Tai

Similar Messages

  • How to purchase assets using internal orders?

    How to purchase assets using internal orders? Also how do AuC's turn into assets?

    Hi,
    Review the link below
    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=4&ved=0CEEQFjAD&url=http%3A%2F%2Fhelp.sap.com%2Fbp_blv1600%2FBL_CA%2FDocumentation%2FScenarios%2FV8K_BPP_EN_CA.doc&ei=ZRw8T5ODGYKN0QHX8Om-Cw&usg=AFQjCNGWPZ8CseftCgue2pZZmdnfyLfY9g&sig2=l1ZFy5LrVjLZA-dfGF4Ibg
    Regards
    Carlos
    Edited by: Carlos Gonzalez on Feb 15, 2012 4:01 PM

  • How to post Asset acquisition by using BAPI_ACC_DOCUMENT_POST

    Hello All,
    Can we use the bapi BAPI_ACC_DOCUMENT_POST to post ASSET ACQUISITION?
    I have posted ASSET ACQUISITION by using the transaction code F-90 successfully and the values are updated in asset aswell. but, I could not generate the same result by using the bapi BAPI_ACC_DOCUMENT_POST.
    Can anybody please suggest me how should I use this bapi to post Asset acquisition?
    Thanks in advance for your help.
    Regards,
    Vijay

    hi,
    BADI AC_DOCUMENT is available in the system.
    This badi is called whenever the account document is posted in the system.
    With the help of this badi, i guess you can change the t.code value.
    regards,
    Vinod.

  • Down payment request for assets using bapi_acc_document_post

    Hi guys(girls)!,
    I<< priority reduced >>
    I'm posting a down payment request to an asset with a z program using bapi_acc_document_post. Everything is fine, but, when i go to fb03 to check the generated document i don't see the asset number associated to the purchase doc. When i go to bseg to check, i don't see the asset number and the subnumber. I lack just these to fields even i'm passing the values to correct fields in bapiacgl09.
    This is the values i'm passing:
    wa_acctgl-itemno_acc  =  iterator.
    wa_acctgl-gl_account  =  lv_skont.
    wa_acctgl-vendor_no   =  p_vendor.
    wa_acctgl-doc_type    =  p_tipdoc.
    wa_acctgl-item_text   =  p_txtcab.
    wa_acctgl-po_number   =  p_ponum.
    wa_acctgl-po_item     =  s_ekpo-ebelp.
    wa_acctgl-serial_no   =  imp_no.
    wa_acctgl-asset_no    =  wa_ekkn-anln1.
    wa_acctgl-sub_number  =  wa_ekkn-anln2.
    wa_acctgl-acct_type   =  'A'.
    wa_acctgl-CS_TRANS_T  =  '100'.
    wa_acctgl-asval_date  =  sy-datum.
    APPEND wa_acctgl      TO gt_acctgl.
    CLEAR wa_acctgl.
    Please help!.
    Edited by: Rob Burbank on Oct 24, 2011 9:44 AM
    Edited by: ramvargash on Oct 25, 2011 2:54 PM

    Hi Eduardo, what i'm trying to do is a down payment request for an asset. Indeed, i do the post. My problem is that the asset main number and the asset subnumber are not getting saved in bseg, so when i go to fb03 and double click on a line item, i got prompt to fb03 in visualize mode, and the fixed asset field is blank.
    I have now a week trying to get the asset main number and the asset subnumber getting saved in bseg. I note that i have other field that are not getting saved 'cause i'm not passing the value thru the bapi. This field is LNRAN.
    If you or anybody have a clue how to solve this, i would appreciate the help.
    Ramón Vargas

  • Posting Assets using ABSO

    Hi,
    When i am trying to post the Asset using T code ABSO i am getting the following error.
    FISCAL YEAR 2008 IS INCORRECT FOR POST-CAPITALIZATION OF ASSET 1000 ABC11122-0
    Can some please help me why i am getting this error.
    Thanks & Regards,
    Rams.N

    I believe fiscal year 2007
    is not closed for that company code you are processing.So please close the fiscal year 2007 using AJAB.
    Hope this helps...

  • How to use standard classes to create custom modulepool program like ME21N

    I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
    CL_TABLE_VIEW_MM
    CL_BASIC_MODEL_VIEW_MM
    CL_COMPOSITE_SCREEN_VIEW_MM
    CL_SCREEN_VIEW_MM
    CL_TABLE_VIEW_MM
    CL_TABSTRIP_VIEW_MM
    CL_TC_BUTTON_VIEW_MM
    CL_TC_ITEM_VIEW_MM
    CL_TOGGLE_VIEW_MM
    CL_VALUE_MODEL_VIEW_MM
    and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programming

    I think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
    If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
    Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
    Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
    Regards
    Marcin

  • How to  extract  data from PCD tables to create  custom activity report

    Hi Friends
    I have a requiremnt for creating custom portal activity report, even though we have
    standard report for that, we need to extract the data from the following pcd tables
    WCR_USERSTAT, WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,
    WCR_USERPAGEUSAGE.
    This extraced data will be used to create BW Reports.
    my questions  are
    1.How to extract the  data from   pcd tables?
    2.can i use   UME API   for  extracting the  data from the given PCD tables?
    3.Can i querry   the  PCD tables from JSPdynpage or  Webdynpro APP?
    Please guide me.
    Thanks in advance
    Ashok

    Hi Kishore,
    Refer to
    http://wiki.sdn.sap.com/wiki/display/Snippets/DirectAccesstoDatabaseTables
    http://wiki.sdn.sap.com/wiki/display/WDJava/OracleConnectivitywithEJBusingWebDynproApplication
    JDBC Connectivity with Webdynpro and Max DB
    Thanks
    Prashant

  • How to post or use fi upload bapis

    hi everybody,
      this is giri i need some help in bapis upload report. its related to fi module, here i have given details regarding this below. in how to pass data to bapi i dont know .and this bapi containig idoc segenets like IDOC Segment - BAPIACHE08,IDOC Segment - BAPIACAR09 and IDOC Segment - BAPIACGL08.
    the main use of this program is it take flat file from application or presentation server and then post thru bapi function module, can i use above idoc structures or seperately i can build a structure.pls its urgent req.
    some details abt this:
    The program should be able to generate postings in FI AR in the specific company code similar to the postings generated using standard SAP transaction code F-22 (Invoice) or F-27 (Credit Memo) or an on account AR payment posting.The above transactions are the online transactional equivalent of this interface. In order to accommodate the volume, standard SAP delivered BAPI – Z_BAPI_ACC_DOCUMENT_POST that corresponds to these transactions will be utilized.

    Hi Kamal Shaik,
    YES.
    If new GL is active, all standard FI functions and transactions will populate the FAGLFLEX tables.
    For this purpose, all standard modules use
      CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE'
        IMPORTING
          e_glflex_active = gv_newgl_active.
    to decide what tables are relevant.
    We used  FUNCTION 'BAPI_ACC_GL_POSTING_POST' for posting successfully including FAGLFLEXT update.
    Regards,
    Clemens

  • Problem in Posting data using BAPI_ACC_DOCUMENT_POST

    Hi ,
    I am trying to post a Sub-ledger account using the BAPI_ACC_DOCUMENT_POST.
    The Details I am passing are
    DOCUMENTHEADER
    USERNAME  -        UPPUVID
    COMPANY CODE - 1030
    DOC_DATE -           2/2/2009 
    PSTNG_DATE-        2/2/2009
    FISCAL YEAR-        2009
    PERIOD -                02
    DOC TYPE -            DR
    ACCOUNTGL
    ITEMNO_ACC   0000000002
    GL_ACCOUNT  230400   
    PROFIT_CTR    110001          
    ACCOUNTRECEIVABLE
    ITEMNO_ACC     0000000001
    CUSTOMER       40000087
    GL_ACCOUNT   110100  
    CURRENCYAMOUNT
    ITEMNO_ACC       CU CURRE CUR AMT_DOCCUR 
    0000000001          USD                    1,000.0000 
    0000000002          USD                    1,000.0000-
    The result shown is as follows.
    Document posted successfully: BKPFF 180001511510302009 DV1CLNT200 
    But when we go and check in FB03 .
    I am getting an error message saying Document doesnot exist for the Tcode 1030 .
    Also there is no corresponding entry in BKPF .
    Please let me know If I have to pass anything else to post the  data.
    Regards,
    Vidyulatha U.

    Hi Vidyulatha,
    You can also use FM : POSTING_INTERFACE_START & POSTING_INTERFACE_DOCUMENT & POSTING_INTERFACE_END.
    As you know you can post all types of documents through FB01.
    You can set the i_tcode as 'FB01' & i_sgfunct as 'C'.
    You just Pass on the values to these FMs.
    Edited by: Yogesh Karanjikar on Feb 2, 2009 10:55 AM
    Edited by: Yogesh Karanjikar on Feb 2, 2009 10:56 AM

  • Using Bookmark Names to create Custom Stamps

    Hi all,
      I am a VB programmer that is struggling with a task in JS.  I am trying to do 1 of 2 things:  I would prefer #2.
    1.Create a custom stamp using the filename.
    or
    2.Create a custom stamp using the bookmark name (which in turn will be the filename)
    I have been foooling around for a number of hours trying to get this to work out, here's what I have done so far:
    I have created a stamp, the stamp has two text boxes that I need to fill from one string. The string is in the format of
    "08363-G-5109-DWG-R-00001_A.pdf" with a varying number of characters before the underscore, but always the same after the underscore. In the first text box I need
    08363-G-5109-DWG-R-00001 which I get with
    Code:
    event.value = event.source.source.documentFileName.slice(0,-6); this work great. The second box needs to contain the letter(s) that are between the "_" and the ".pdf" and everything I have tried doesn't produce a result.
    I focused most of my time trying to split the filename up, figuring the same logic would be applied to the bookmarks.
    The things I have tried:
    [CODE]
    var str = event.source.source.documentfilename;
    var strt = str.lastindexof("_");
    var end = str.lastindexof(".");
    event.value = str.substring(strt,end);
    and
    var arrStr = event.source.source.documentfilename.split("_");  ' **Harcoding = "08363-G-5109-DWG-R-00001_A.pdf" works**
    var arrstr2 = arrStr[1].split(".");                                             'But isn't very dynamic
    event.value = arrstr2[0];
    and
    var str = event.source.source.documentfilename;
    var arrStr = str.split("_");
    var arrstr2 = arrStr[1].split(".");
    event.value = arrstr2[0];
    [/CODE]
    Any assistance would be greatly appreciated!
    Bent

    GJ - The bookmark would be selected manually and the stamp would reflect the change.  The sole purpose of this is to combine and stamp hundreds of documents in the most efficient manner.
    So for example:
    I combine 3 docs by selecting them in Windows and right clicking and selecting combine:
    08363-G-5109-DWG-R-00002_A.pdf
    08363-G-5109-DWG-R-00002_B.pdf
    08363-G-5109-DWG-R-00002_C.pdf
    I would have 3 bookmarks automatically when the combination occurs:
    08363-G-5109-DWG-R-00002_A
    08363-G-5109-DWG-R-00002_B
    08363-G-5109-DWG-R-00002_C
    So when I select the bookmark 08363-G-5109-DWG-R-00001_A then click stamps - dynamic stamps , my two text boxes have used this bookmark to get                 Text 1                          Text 2
                                                                           08363-G-5109-DWG-R-00001     A
    Then I manually select the next bookmark and select stamp and it has used the next bookmark name to create a stamp  with two text boxes now              08363-G-5109-DWG-R-00002      B
    If I had to stamp them first them combine, I would have to open one, stamp, save close rinse and repeat 100 times then combine.
    GK - I did have a poke around with bookmarkRoot.children, but the only result I ended up with was the word "Root" in the second box.  I couldn't seem to determine if JS automatically builds the children collection based on the number of bookmarks off the root, or if I had to programmatically build it with an array.

  • Use solution manager to create customer message and apply oss notes

    Hello All,
    Is it possible to use SAP Solution Manager to create/ open Customer Messages and for the application of OSS notes in satellite systems via solution manager?
    Currently, our Solution Manager system is bieng used for Central System Monitoring!
    Please let me your your expert thoughts!
    Thanks,
    Antarpreet

    Hi,
    By using Service Desk scenario of Solution Manager you can convert an issue to an OSS message and follow it up.
    Refer the  [Link|http://help.sap.com/saphelp_smehp1/helpdata/en/b3/64c33af662c514e10000000a114084/frameset.htm]
    Snote application is also integrated with this Service Desk, you can apply SAP notes to any satellite systems.

  • Can I use OA framework to create custom pages

    Hi,
    My client is using 11.5.8 and the Framework version is 5.6.
    And we want to add a custom page to iSupplier application.
    Can I use OA Framework extension to develop the page and add it to the application without upgrading the applications techstack.? If Yes, what version of the OA patch do I need to use for development.
    If not, is there any way to add a custom page to this application?

    OAF can be technology of choice only after 11.5.9 . Use JSP instead to develop your custom pages.
    --Mukul                                                                                                                                                                                                                                                               

  • Scenerios for using I_STEP parameter for creating customer exit variables.

    Hi All,
    I need to create a customer exit variable.
    Please explain the different scenerios for using each i_step parameters.
    For eg. in which practical scenerio i_step 3 is used?

    Hi Shobhit,
    You can find plenty of info on this in the forums, So i suggest you to do a small search with imp Key words. Anyways below is the std usage of I_STEP
    I_STEP = 1
    Call takes place directly before variable entry. Can be used to pre populate selection variables
    I_STEP = 2
    Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    This is basic info from help.sap.com.
    regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 4, 2011 2:18 PM

  • How to transfer Customers to GTS immedeately after creating Customer master

    Hi Folks,
    Is there a possibility to transfer Customers to GTS immediately after creating Customer master.
    I know /SAPSLL/DEBMAS_DISTRIBUTE_R3, but this report should run only at night,
    becaus performance...
    So the question is, right after creating the customer you can enter a sales order
    and in this situation the customer is not in GTS.
    We want to transfer the customer automatically right after(or while) creating the customer to GTS.
    Is there any way to obtain this?
    Thanks
    Regards
    Dieter

    Hello Dieter,
    unfortunately it not possible to have it done immediately when you create/change a partner.
    These data changes are transferred to GTS via change pointers.
    You can schedule the change pointers report every 10 minutes but still it has to be done as bgr. job.
    At first Activate Change Pointers for Message Types (BD50)
    /SAPSLL/DEBMAS_SLL
    and Activate Change Pointers for Reduced Messages - Press create icon to create it. (BD53)
    /SAPSLL/DEBMAS_SLL
    Then schedule  RBDMIDOC for /SAPSLL/DEBMAS_SLL which send changes via IDoc.
    Cheers,
    Gabriel.

  • Error when using BAPI_ACC_DOCUMENT_POST...

    [code]
    Hello Experts,
    Iam using the said BAPI for the first time and I am not sure if I filled up the
    fields correctly. What I want to do is to post multiple debit entries(40) and a
    special G/L entry for vendor(posting key 39). I also need to generate the tax and
    withholding tax. So my entries will be like:
    40 -->amount = 1,120(This value has a VAT included which is 12% or 120)
    39 -->amount = 1,120(Special G/L for vendor)
    For these 2 entries below, they must be generated automatically.
    40 -->amount = 120(Tax)
    50 -->amount = 20(This is the EWT or withholding tax)
    Below is my code:
    wa_documentheader-obj_type = 'BKPFF'.
    CONCATENATE sy-sysid sy-mandt INTO wa_documentheader-obj_sys.
    wa_documentheader-obj_key = '$'.
      wa_documentheader-username = sy-uname.
      wa_documentheader-comp_code = '1000'.
      wa_documentheader-bus_act = 'RFBU'.
      wa_documentheader-header_txt = 'AVH Testing...'.
      wa_documentheader-fisc_year = '2007'.
      wa_documentheader-doc_date = sy-datum.
      wa_documentheader-pstng_date = sy-datum.
      wa_documentheader-fis_period = '11'.
      wa_documentheader-doc_type = 'S3'.
      CLEAR wa_accountpayable.
      wa_accountpayable-itemno_acc = 1.
      wa_accountpayable-vendor_no  = '2000000058'.
      wa_accountpayable-sp_gl_ind  = 'V'.
      wa_accountpayable-tax_code   = 'DI'.
      APPEND wa_accountpayable TO it_accountpayable.
      CLEAR: wa_accountgl.
      wa_accountgl-itemno_acc = 2.
      wa_accountgl-gl_account = '0060000061'.
      wa_accountgl-item_text = 'Aris' .
      wa_accountgl-DE_CRE_IND = 'S'.
      wa_accountgl-tax_code  = 'DI'.
      wa_accountgl-comp_code = '1000'.
      wa_accountgl-fisc_year = '2007'.
      wa_accountgl-fis_period = '11'.
      wa_accountgl-pstng_date = sy-datum.
      wa_accountgl-doc_type = 'S3'.
      INSERT wa_accountgl INTO TABLE it_accountgl.
      CLEAR wa_accounttax.
      wa_accounttax-itemno_acc = 3.
      wa_accounttax-tax_code = 'DI'.
      wa_accounttax-gl_account = '0010018291'.
      wa_accounttax-acct_key = 'VST'.
      APPEND wa_accounttax TO it_accounttax.
      CLEAR: wa_currency.
      wa_currency-itemno_acc = 1.
      wa_currency-currency = 'PHP'.
      wa_currency-curr_type = '00'.
      wa_currency-amt_doccur = 1120.
      wa_currency-amt_base = 1000.
    wa_currency-exch_rate = 1.
      APPEND wa_currency TO it_currency.
      CLEAR: wa_currency.
      wa_currency-itemno_acc = 2.
      wa_currency-currency = 'PHP'.
      wa_currency-curr_type = '00'.
      wa_currency-amt_doccur = 1120.
      wa_currency-amt_base = 1000.
    wa_currency-exch_rate = 1.
      APPEND wa_currency TO it_currency.
      CLEAR: wa_currency.
      wa_currency-itemno_acc = 3.
      wa_currency-currency = 'PHP'.
      wa_currency-curr_type = '00'.
      wa_currency-amt_doccur = 120.
    wa_currency-amt_base = 120.
    wa_currency-exch_rate = 1.
      APPEND wa_currency TO it_currency.
    Post
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader = wa_documentheader
        IMPORTING
          obj_type       = obj_type
          obj_key        = obj_key
          obj_sys        = obj_sys
        TABLES
          accountgl      = it_accountgl
          currencyamount = it_currency
          return         = it_return.
      LOOP AT it_return INTO wa_return.
        WRITE : /1 wa_return-message.
      ENDLOOP.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = wa_return3.
    When I checked the return table there are 2 problems that says:
    1. Error in document: BKPFF $ ED1CLNT140
    2. Balance in transaction currency
    Hope you can help me guys. Simple examples will be appreciated. Thank you and take care!
    [/code]

    <u>you can check the code.</u>
    IF NOT wa_data-lifnr  IS INITIAL.
          ADD 1 TO g_lino.
          x_vendoritem-itemno_acc        = g_lino.
          x_vendoritem-vendor_no         = wa_data-lifnr.
          IF wa_data-newbk IS INITIAL.
            x_vendoritem-comp_code = wa_data-bukrs.
          ELSE.
            x_vendoritem-comp_code = wa_data-newbk.
          ENDIF.
          x_vendoritem-comp_code         = t001-bukrs.
          x_vendoritem-item_text         = wa_data-csgtxt.
          x_vendoritem-pmnttrms          = wa_data-pyterm.
          x_vendoritem-bline_date        = wa_data-bldate.
          x_vendoritem-pymt_meth         = wa_data-zlsch.
          x_vendoritem-alloc_nmbr        = wa_data-zuonr.
          x_vendoritem-tax_code          = wa_data-mwskz.
          x_vendoritem-taxjurcode        = wa_data-txjcd.
          APPEND x_vendoritem TO it_vendoritem.
          x_currencyamount-itemno_acc    = g_lino.
          x_currencyamount-curr_type     = c_ct1.
          x_currencyamount-currency      = t001-waers.
          x_currencyamount-amt_doccur    = wa_data-cwrbtr.
          APPEND x_currencyamount TO it_currencyamount.
          x_currencyamount-curr_type     = c_ct2.
          APPEND x_currencyamount TO it_currencyamount.
          IF t001-land1 = c_lnd.
            x_currencyamount-curr_type   = c_ct3.
            APPEND x_currencyamount TO it_currencyamount.
          ENDIF.
        ENDIF.
        IF NOT wa_data-dsaknr IS INITIAL.
          CLEAR:
            x_accountgl,
            x_currencyamount,
            x_vendoritem.
          ADD 1 TO g_lino.
          x_accountgl-itemno_acc         = g_lino.
          x_accountgl-doc_type           = x_doc_hdr-doc_type.
          IF wa_data-newbk IS INITIAL.
            x_accountgl-comp_code = wa_data-bukrs.
          ELSE.
            x_accountgl-comp_code = wa_data-newbk.
          ENDIF.
          x_accountgl-gl_account         = wa_data-dsaknr.
          x_accountgl-costcenter         = wa_data-dkostl.
          x_accountgl-item_text          = wa_data-dsgtxt.
          x_accountgl-orderid            = wa_data-daufnr.
          x_accountgl-wbs_element        = wa_data-dwbs.
          x_accountgl-pstng_date         = p_pdate.
          x_accountgl-vendor_no          = wa_data-lifnr .
          x_accountgl-alloc_nmbr         = wa_data-zuonr.
          x_accountgl-tax_code           = wa_data-mwskz.
          x_accountgl-taxjurcode         = wa_data-txjcd.
          APPEND x_accountgl TO it_accountgl.
          x_currencyamount-itemno_acc    = g_lino.
          x_currencyamount-curr_type     = c_ct1.
          x_currencyamount-currency      = t001-waers.
          x_currencyamount-amt_doccur    = - wa_data-dwrbtr.
          APPEND x_currencyamount TO it_currencyamount.
          x_currencyamount-curr_type     = c_ct2.
          APPEND x_currencyamount TO it_currencyamount.
          IF t001-land1 = c_lnd.
            x_currencyamount-curr_type     = c_ct3.
            APPEND x_currencyamount TO it_currencyamount.
          ENDIF.
        ENDIF.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'                   
        EXPORTING
          documentheader = x_doc_hdr
        TABLES
          accountgl      = it_accountgl
          accountpayable = it_vendoritem
          currencyamount = it_currencyamount
          return         = it_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    Reward if helpful.

Maybe you are looking for

  • Web pages failing to load (quite an essay)

    I had BT Infinity installed into my property on Friday 28the October upgrading from BT Total Broadband. The broadband connection that I had used to average at 3.5mb-4mb connection so Infinity with its up to 40mb seemed great! Engineer came and instal

  • I've been a long time with my I pod close...now I can't use or charge it!

    Many months ago, I've lost my apple shuffle charger. Recently, my brother command me a new one from China. I didn't use I tunes for a long time and I uninstalled it. Now that I can recharge my I pod shuffle, I plugged it to my computer but the status

  • Frustrated with browsers... please help

    Hi, doesn't seem to matter what I do, my web pages always looks different in IE vs Firefox.  Firefox is always appears bigger.  When I test other people's web design pages in both... they look the same.  Not mine thought they consistently look differ

  • Bootcamp missing in windows 8.1

    Hello all, I have installed windows 8.1 in my OS X Mavericks via bootcamp. It ran perfectly and when Windows first started, everything was wonderful. I could see Bootcamp on my taskbar, which means drivers were all enabled to Windows. Problem started

  • WAE disk_check.sh and disk_clean.pl

    I ran the disk_chck.sh script on a WAE and disk_status.txt says 'device /dev/md2 (/state) is File system errors were detected. <snip>'. The readme for disk_clean.pl says 'Although the device is on the network, it will be offline in the CM GUI. Deleti