Method CMD_EI_API= MAINTAIN_BAPI to update KNVI tax data

Hi Experts,
I am using method CMD_EI_API=>MAINTAIN_BAPI to create/update customer. I could not find the parameters/fields in the deep structure to update KNVI data. Please suggest the solution.
Regards,
Ashok

Dear Ashok,
possibly structure CMDS_EI_TAX_IND_KEY
Greetings
Winfried

Similar Messages

  • How to run RFWT0020 to update withholding tax data

    Can anyone explain the difference between these two options when running RFWT0020 to update withholding tax data? Data Regeneration vs. Changes to Source Tax Code? I can't find any mention of the two options in the program documentation
    When I do test runs with the two different options, the program is selecting difference documents to update. If we are just turning on the 1099 functionality now (beginning with the 2011 tax year), should I run the program once with Regeneration mode and once with Changes to Source Tax Code???
    Thanks for any advice!
    Allison

    Hi,
    he program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same. The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for invoices and then executed for payments in a subsequent step.
    When you start the program, the selection screen appears. You can make selections according to vendors, tax code 1, tax code 2 (vendor master record), customers, tax code 1, tax code 2 (customer master record), company codes, document numbers and posting data. The selection determines which items are checked for possible subsequent entries in tables BSEG, BSAK, BSIK, BSAD, BSID, WITH_ITEM.
    You can also decide whether only withholding tax data is to be handled for cases where the documents in question contain no withholding tax data. There is no withholding tax data if no withholding tax entries exist for the item selected in table WITH_ITEM (extended withholding tax) or the die withholding tax fields in table BSEG are not filled.
    The selection can also be made in test mode. If you do this, no changes are made in the database. You are therefore advised to run the program in test mode initially.
    Regards
    Aditya

  • Method CMD_EI_API MAINTAIN_BAPI fails on missing KNVK-NAME1

    Hi experts. I'm trying to create a new contact for a customer using CMD_EI_API method MAINTAIN_BAPI and I'm getting a message saying "KNVK-NAME1: Plausibility check failed". I've set up the structure and tables reference with type cmds_ei_extern. The mapping within the method finds my values and maps correctly to the internal address structure  (using ADDRESS_TYPE_1). I've also tried using ADDRESS_TYPE_2 and ADDRESS_TYPE_3 with the same results. The error occurs when checking the new KNVK record in method STRUC_KNVK_PLAUSIBILITY_CHECK and I suspect that I'm missing some required data that is preventing the record from be created correctly. Any ideas.
    ...thanks in advance

    Hi
    At first, for the contact you should maintain ADDRESS_TYPE_3 structure.
    Lastname is mandatory.
    This should solves your trouble
    As a general help for filling that complex structure, you could run method GET_DATA of class CMD_EI_API_EXTRACT for an existing customer.
    Regards
    Alain

  • Cmd_ei_api= maintain_bapi

    Hi All;
    I am trying to write a test program to use this method.  I almost have it working but I am getting an error message that I am missing critical partner functions.  I have tried adding the Partner Functions to the Sales Data component but keep getting an error when attaching the "Functions" table to this component.  Below is my sample program.  It is based on other examples in this forms.  Any ideas?
    report zcreate_customer.
    data: wa_header          type cmds_ei_header,
          wa_central_data    type cmds_ei_vmd_central_data,
          wa_central_datax   type cmds_ei_vmd_central_data_xflag,
          wa_address         type bapiad1vl,
          wa_addressx        type bapiad1vlx,
          wa_tax_ind_st      type cmds_ei_tax_ind,
          wa_tax_ind         type cmds_ei_cmd_tax_ind,
          wa_bankdetail_st   type cvis_ei_cvi_bankdetail,
          wa_bankdetail      type cvis_ei_bankdetail,
          wa_company_code_st type cmds_ei_company,
          wa_company_code    type cmds_ei_cmd_company,
          wa_functions_st    type cmds_ei_functions,
          wa_functions_t     type CMDS_EI_FUNCTIONS_T,
          wa_functions       type cmds_ei_cmd_functions,
          wa_sales_data_st   type cmds_ei_sales,
          wa_sales_data      type cmds_ei_cmd_sales,
          wa_customer        type cmds_ei_extern,
          wa_customers       type cmds_ei_main,
          wa_correct         type cmds_ei_main,
          wa_defective       type cmds_ei_main,
          wa_mes_correct     type cvis_message,
          wa_mes_error       type cvis_message.
    constants: c_update type c value 'M',
               c_insert type c value 'I'.
    start-of-selection.
    * A "customer" is made up of 4 Main Sections
    *    1. HEADER
    *    2. CENTRAL_DATA
    *    3. COMPANY_DATA
    *    4  SALES_DATA
      free: wa_customer, wa_company_code_st, wa_customer.
      wa_address-name       = 'CUSTOMER NAME'.
      wa_address-city       = 'CITY'.
      wa_address-postl_cod1 = '99999'.
      wa_address-street     = '1400 9TH ST W'.
      wa_address-country    = 'US'.
      wa_address-langu      = 'EN'.
      wa_address-region     = 'FL'.
      wa_address-sort1      = 'SORT1'.
      wa_address-sort2      = ''.
      wa_address-taxjurcode = 'FL0000000'.
    * wa_address-time_zone = 'UTC-6'.
    * Assign address data directly
      wa_customer-central_data-address-postal-data = wa_address.
      wa_customer-central_data-address-postal-datax = wa_addressx.
    * Account account group directly
      wa_customer-central_data-central-data-ktokd = 'Z001'.
    *  wa_customer-central_data-central-datax-ktokd = 'X'.
      wa_company_code_st-task           = c_insert.
      wa_company_code_st-data_key-bukrs = '1000'.
      wa_company_code_st-data-zuawa     = '009'.
      wa_company_code_st-data-akont     = '0000121000'.
      wa_company_code_st-data-zwels     = 'ACDETY'.
      wa_company_code_st-data-zterm     = 'Z000'.
      wa_company_code_st-data-zgrup     = '02'.
      wa_company_code_st-data-xausz     = '2'.
      wa_company_code_st-data-xzver     = 'X'.
      append wa_company_code_st to wa_company_code-company.
    Continued...
    Edited by: kishan P on Nov 3, 2010 8:13 AM
    Edited by: kishan P on Nov 3, 2010 8:15 AM

    Part II
      wa_sales_data_st-task             = c_insert.
      wa_sales_data_st-data_key-vkorg   = '1000'.
      wa_sales_data_st-data_key-vtweg   = '10'.
      wa_sales_data_st-data_key-spart   = '10'.
      wa_sales_data_st-data-kalks       = '1'.
      wa_sales_data_st-data-inco1       = 'FOB'.
      wa_sales_data_st-data-inco2       = 'Free on board'.
      wa_sales_data_st-data-antlf       = '9'.
      wa_sales_data_st-data-kzazu       = 'X'.
      wa_sales_data_st-data-vsbed       = '01'.
      wa_sales_data_st-data-waers       = 'USD'.
      wa_sales_data_st-data-ktgrd       = '01'.
      wa_sales_data_st-data-zterm       = 'Z000'.
    *  wa_sales_data_st-functions-functions-data_key-parvw = 'SP'.
      wa_functions_st-data_key-parvw    = 'SP'.
      wa_functions_st-data_key-parza    = '000'.
      append wa_functions_st to wa_functions_t.
      wa_functions_st-data_key-parvw    = 'BP'.
      wa_functions_st-data_key-parza    = '000'.
      append wa_functions_st to wa_functions_t.
      wa_functions_st-data_key-parvw    = 'PY'.
      wa_functions_st-data_key-parza    = '000'.
      append wa_functions_st to wa_functions_t.
      wa_functions_st-data_key-parvw    = 'SH'.
      wa_functions_st-data_key-parza    = '000'.
      append wa_functions_st to wa_functions_t.
    *  wa_functions = wa_functions_t.
    *  wa_sales_data_st-functions        = wa_functions.
      append wa_sales_data_st to wa_sales_data-sales.
      wa_customer-header-object_instance-kunnr = ''.
      wa_customer-header-object_task = c_insert.
      wa_customer-company_data = wa_company_code.
      wa_customer-sales_data   = wa_sales_data.
      append wa_customer to wa_customers-customers.
      call method cmd_ei_api=>maintain_bapi
        EXPORTING
          iv_test_run         = 'X'
          iv_collect_messages = 'X'
          is_master_data      = wa_customers
        IMPORTING
          es_master_data_correct   = wa_correct
          es_message_correct       = wa_mes_correct
          es_master_data_defective = wa_defective
          es_message_defective     = wa_mes_error.
      if wa_mes_error-is_error is initial.
        commit work.
      endif.

  • RFWT0020 withholding tax data - Data Regen vs. Change to Source Tax Code?

    Can anyone explain the difference between these two options when running RFWT0020 to update withholding tax data?  Data Regeneration vs. Changes to Source Tax Code?  I can't find any mention of the two options in the program documentation
    When I do test runs with the two different options, the program is selecting difference documents to update.  If we are just turning on the 1099 functionality now (beginning with the 2011 tax year), should I run the program once with Regeneration mode and once with Changes to Source Tax Code???
    Thanks for any advice!
    Allison

    Hi,
    he program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same. The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for invoices and then executed for payments in a subsequent step.
    When you start the program, the selection screen appears. You can make selections according to vendors, tax code 1, tax code 2 (vendor master record), customers, tax code 1, tax code 2 (customer master record), company codes, document numbers and posting data. The selection determines which items are checked for possible subsequent entries in tables BSEG, BSAK, BSIK, BSAD, BSID, WITH_ITEM.
    You can also decide whether only withholding tax data is to be handled for cases where the documents in question contain no withholding tax data. There is no withholding tax data if no withholding tax entries exist for the item selected in table WITH_ITEM (extended withholding tax) or the die withholding tax fields in table BSEG are not filled.
    The selection can also be made in test mode. If you do this, no changes are made in the database. You are therefore advised to run the program in test mode initially.
    Regards
    Aditya

  • Change Customer Master using CMD_EI_API MAINTAIN_BAPI Method

    Hi Experts,
    I am using CMD_EI_API=>MAINTAIN_BAPI method for Creating Customer through Custom program. The Creation of Customer Master is working fine.
    I have another requirement i need to perform the following for the Customer Change
    1 . Delete all Phone , Fax and SMTP entries from the table and create a new entries for Customer.
    2 . Delete a Contact Person based on the information from the legacy system.
    I am facing problem in the above two issues
    ADR2, ADR3 and ADR6 entries are retrieved for customer.
    this values are populated and passed to the method with Task as 'D' - delete.
    there is no error message  from the Method. when i call commit statement
    1 . the address details are not getting deleted in the tables
    2. if a contact person is deleted then i am getting a short dump while commit.
    Please help me if you know the details of MAINTAIN_BAPI method whic can be used for the Deletion purpose.
    Thanks,
    Shrikanth R

    Hi Experts
    I'm having the same problem it looks like the method maintain_bapi does not commit the new values, I debuged it and found a call to a badi lr_badi_update but I could not find information about it.
    Any help will be appreciate
    Leo

  • Is there any method or function to update/modify an existing trip data?

    Hey, ABAP  gurus,
    Is there any method or function to update/modify an existing trip (PR05) receipts data and cost distribution data?
    Thanks in advance!
    Fisher

    Hi Fisher,
    Please try HRTRV_IF_MODIFY_TRIP.
    Regards,
    Dilek

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • Insert/update japanese langunage data in a column of datatype varchar2(..)

    Hello,
    I am using ORACLE DATABASE 11g (EE) and RHEL 5.
    I want to insert/update japanese language data in a column which has the datatype as varchar2(256).
    I tried to change the NLS_LANGUAGE and NLS_TERRITORY parameters with 'ALTER SESSION set ...' command but no effect.
    I tried to bounce back ( shutdown and startup ) the DB but still no effect.
    I tried to inset the NLS_LANGUAGE and NLS_TERRITORY in init.ora file but still no use.
    If anybody knows the detail steps which i have mentioned above .... let me know. Might be that i am wrong in my method.
    Can you please guide me how to change the language of DB for a perticular session to japanese ???
    Thanks in advance...
    Edited by: VJ4 on May 9, 2011 6:21 PM

    VJ4 wrote:
    Thanks for the info.
    Yes i tried with UNISTR function and was able to insert the data successfully.
    but the point is that we can't remember unicode for each of the letter. It's their any method that we can directly insert japanese character using an insert.
    As you said :-
    Note that changing database character set is something complicated that requires many steps.
    Can you please provide me some links or some stuffs to study about the detail steps of chaining database character set.
    I have gone through the Oracle online documentation.. if you can pin point any good link in it you can else provide me some other stuff.
    Thanks .You will need to convert your database characterset to AL32UTF8. This is not a trivial exercise if your database already has data in it. See these MOS Docs
    Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode)          (Doc ID 260192.1)
    AL32UTF8 / UTF8 (Unicode) Database Character Set Implications          (Doc ID 788156.1)
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430
    HTH
    Srini

  • Hello Technical Experts... please help me on this error :- 'Tax data is missing ArrayOffset 12, srcLineNum 0, srcGroupNum -1'.

    In my A/P credit memo screen i have incorporated a column for adding reference to closed A/P Invoices. upon filling this field with DocNum of APInvoice certain other fields also get filled from an SQL query. One among them is the TaxCode. My problem is that the TaxAmount(LC) field at the last row of the matrix is not filled with the appropriate value, it remains 0. On trying to add the document or pressing the link button on the TaxAmount field a status bar error message pops up showing, 'Tax data is missing ArrayOffset 12, srcLineNum 0, srcGroupNum -1'.
    Please Help me solve this issue.
    Thanks in Advance
    Rajeev

    Hi,
    Please check SAP note:
    1860926 - When updating a Purchase Order via DI API "-12109 Tax data
    is missing..." Error occurs
    Thanks & Regards,
    Nagarajan

  • Customer master with holding tax data

    Hi,
    I am working on customer master transaction 'XD01'. I want add new fields to the existing subscreen 'with holding tax' and new fields in the new subscreen. There is  no enhancement is available for this, but there a BADI 'CUSTOMER_ADD_DATA_CS'. But with this we can not update the data to table KNBW(with holding tax data). Can anybody worked on this type of requirements.
    Thanks in Advance
    Rajavardhana Reddy

    Hi Rajavardhana
    Here there two interfaces you can use for transfering data to database and getting data from database.
    SET_DATA     Data Transfer
    GET_DATA     Transfer Data
    Hope this helps you.
    Cheers
    Manohar

  • How to update pick up date (VBAK-ABHOD) field in sales order

    I am creating sales orders using BAPI_SALESORDER_CREATEFROMDAT2 but it is not updating VBAK-ABHOD field i .e pick up date. Is there any FM which updates the pick up date VBAK-ABHOD also.
    I need to update pick up date for a special type of sales orders (Delivery orders) which are created in reference to schedule agreement.
    Is there any other way we can update pick up date. My last option is BDC but donot want to use it.
    Thanks in Advance.
    Rajesh.

    Hi Rajesh,
    You can not find any field in BAPI Change Or Create for sales order even header change BADI is for SAP Modification only. The best way to code in form USEREXIT_MOVE_FIELD_TO_VBAP  in MV45AFZZ, orelse you can use CALL TRANSACTION Method.
    Please let me know if you have any issues.
    Thanks and regards,

  • Updation of tax amount via FM IDOC_INBOUND_SINGLE

    Hi All,
    I am having a requirement in which I am using a custom function module to create and post an IDOC. The program is taking data from flat file and passing it to the function module IDOC_INBOUND_SINGLE which calls a BAPI BAPI_ACC_INVOICE_RECEIPT_POST to post the IDOC.
    For posting IDOCS, IDOC type ACC_INVOICE_RECEIPT03 is being used.
    The IDOC, if posted successfully update data in BSET table. But the posting is not updating the 'Tax in local currency' (HWSTE) field in BSAT table.
    It seems it is not calculating the Tax amount.
    I am passing the tax code and the total amount to the IDOC. I wanted to know whether the FM IDOC_INBOUND_SINGLE internally calculate the tax amount (Tax code gives the tax percentage and the total amount is being passed by me)
    Also in the IDOC type ACC_INVOICE_RECEIPT03 there is no segment in which there is a field for Tax amount to be passed.
    Please help me as to how the tax amount will reflect in the BSAT table.
    Thanks in advance.
    regards,
    gaurav

    that is really weird! You can try one more thing.. See if you can create more than one Address with subty 1 ie infotype 0006 subty 1 for an employee in PA30. If the system allows it, the problem is not with the BAPI..but with the Time Constraints..
    Regards,
    Suresh Datti

  • Extended withholding tax - US  Error 7Q 301 updating withholding tax

    Cannot get the system to allow me to change the withholding tax information on the accounting documents.  Extended withholding tax has been configured. The fields in the line items have been opened to allow changes to the withholding tax data, both for K and S.  The venodor has been updated for the withholding tax type and code. Program RFWT0010 does not update any records.  The funny thing is it works in the sandbox but not the regular testing dev client.  I have compared config and it is the same in both places.   Any ideas?
    Thank you.

    Hi,
    Please refer to note 363650, you will see the following information;
    C) Change Rules for classical and extended withholding tax If the withholding tax base amount should be changed after a
          docment has been paid already, the following steps are required:
    For Classical Withholding Tax and only if the withholding tax amount is zero.
    Change of withholding tax base amount or withholding tax code of a cleared invoice.
    If the withholding tax base amount and/or the withholding tax code needs to be changed after an invoice has been cleared please follow steps;
    As you see from the above information the following quotation "only if the withholding tax amount is zero".  Is this the case in your scenario?
    If a withholding tax amount other than zero has been posted, you cannot change the values via transaction FB02.
    Please also review the IMG documentation for transaction OB32 via spro -> Financial accounting -> Financial accounting global settings -> Document -> Line item -> Document change rules, line item. here you will see the following information;
    Document Change Rules, Line Item
    In this activity, you determine under which circumstances fields within posted documents can be changed.
    Note
    For a number of fields, the system itself determines that they can no longer be changed after posting. This includes all fields which are central to the principles of orderly accounting, for example, the amount posted and the account.
    The system also prevents the update objects from being changed in documents which have already been posted, independent of the document change rules
    Thus as you can see from the above description if an amount has been posted to the account you cannot change the fields despite entering in the field in OB32 as changable.
    Please also be aware that the important table concerning extended withholding tax is WITH_ITEM.  This is where the data found through the button  'Withholding tax Information' in FB03 is held.
    (For example in the 'Withholding tax data button' If you click on the help of the field Withholding Code and select the button 'Technical information' you will see that the field name is WT_WITHCD) The fields concerned with same
      WITH_ITEM-WT_QSSHB
      WITH_ITEM-WT_WITHCD
    should be customized in the document change rules (transaction OB32) You will also have to ensure that the posting keys in the document are set to optional (transaction ob41)
    Regards
    Ravinagh Boni

  • Tax Data calculation using BAPI_ACC_INVOICE_RECEIPT_POST

    Hi,
    We are creating invoices using BAPI_ACC_INVOICE_RECEIPT_POST. However Tax is not getting calculated for the line items even if we pass the tax data through the field u201CTAX_CODEu201D in the table u201CACCOUNTGLu201D. The Tax value is to be updated in table BSEG and BSET, which is not happening after the IDOC posting. Please advice whether we need to pass the parameter (table) u201CACCOUNTTAXu201D (with data filled) in order to calculate the tax for the line items.
    We are passing the following parameters presently and IDOCS are getting posted successfully even though tax amounts are not getting calculated.
             CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
    exporting
       DOCUMENTHEADER = DOCUMENTHEADER  (With data)
       CUSTOMERCPD = CUSTOMERCPD                  (blank)
                  importing
                    OBJ_TYPE = OBJ_TYPE (blank)
                    OBJ_KEY = OBJ_KEY     (blank)
                    OBJ_SYS = OBJ_SYS      (blank)
           tables
             ACCOUNTPAYABLE = ACCOUNTPAYABLE   (Filled with data)
             ACCOUNTGL = ACCOUNTGL                           (Filled with data)
             ACCOUNTTAX = ACCOUNTTAX              (blank)
             CURRENCYAMOUNT = CURRENCYAMOUNT                          (Filled with data)
             PURCHASEORDER = PURCHASEORDER            (blank)
             PURCHASEAMOUNT = PURCHASEAMOUNT            (blank)
             RETURN = RETURN
             CRITERIA = CRITERIA
             VALUEFIELD = VALUEFIELD
             EXTENSION1 = EXTENSION1
           exceptions
             OTHERS =  1
    Regards,
    Gaurav.

    hiiii
    go throgh following link..it will solve your problem..
    make BAPI_ACC_DOCUMENT_POST calculate tax.
    regards
    twinkal

Maybe you are looking for