Tax Amount for Invoice Creation using BAPI_INCOMNGINVOICE_CREATE ?

Hi,
     I am using BAPI_INCOMNGINVOICE_CREATE function module for cearting Invoice for a PO with referrence to Goods Receipt. In this case got a problem that if i did GRC for 10 Quantity for a Line Item in PO which consists 20 Quantity then i need to caliculate Tax Amount and add it to the Gross Amount of Bapi Header Structure Field Gross_Amount.
So can any suggest me how to pass caliculate Tax for only GRC and pass to Bapi Header Gross_Amount Filed.

I thank you, need to calculate the tax first. Add this up with your header data. You can you below function module to calculate tax:
CALCULATE_TAX_DOCUMENT
CALCULATE_TAX_ITEM
Kuntal

Similar Messages

  • Table required for GRN tax amount before invoice

    Dear guru's
    In which tabels we can split of basic value & taxes separately after GR is done for a Purachse order.
    I can see the total value in the material document in amount in Lc, but i need the split of total value into basic price & tax for preparing a report.
    Regards
    Praveen

    So now you only tell us that based on the GR can we find any table where these value will automatically get distributed....here i think you have to go for some indirect logic like for VAT or CST from the table KONV you can get the non-deductable tax amount for each po line item...now from MSEG you can get the PO and its line item & gr quantity..for the same PO & line item you can find out the original ordered quantity from EKPO as well as the non-deductable tax from KONV...so in the report in one column you can fetch the total amount from MSEG-DMBTR...in the tax column you enter a formula that (non-deductable tax from KONV / original ordered quantity from EKPO) * gr quantity...the last column for the amount without tax can be (Column1 - column 2)
    For service related you have to check each service line quantity & price from ESLL table
    I am not sure whether this will work or not but you can check & discuss the same with your ABAP person...also check for some expert comments
    Regards,
    Indranil

  • Func module/bapi  for invoice creation

    Any function module for invoice creation WITH REFERENCE TO A SALEORDER. ??

    Hi,
    check this FM:GN_INVOICE_CREATE or BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE
    check this link also.
    BAPI for creating sales invoice
    Regards
    Appana

  • User Exits for Invoice creation ,cancellation and sales return

    Hi Gurus,
    Pl help me it's very urgent.
    I did not find any user exit invoice creation so i wrote the following code in include program
    MV60AF0B_BELEG_SICHERN.
    This code is to update the Z*table while saving invoice ,cancellation and sales return.
    The code modification is like below
          FORM BELEG_SICHERN                                            *
          Buchen Fakturabelege                                          *
    FORM BELEG_SICHERN.
      READ TABLE XVBRK INDEX 1.
      IF SY-SUBRC NE 0.
        CALL FUNCTION 'DEQUEUE_ALL'.
        MESSAGE S032.
        EXIT.
      ENDIF.
      IF SAMH_MOD = ON.
        EXPORT XKOMFK TO MEMORY ID 'SDBILLDL'.
      ENDIF.
      DATA: CALC_TYPE.
      IF REBATE_DETERMINED = 'Y'.
        CALC_TYPE = 'A'.
      ELSE.
        CALC_TYPE = 'I'.
      ENDIF.
    *{   INSERT         RD1K903017                                        1
    Work Area*********************
    data : wa_xvbrk type VBRKVB.
    data : wa_xvbrp type vbrpvb.
    data : wa_zmigo type zmigo.
    data : wa_vbrp type vbrp.
    Internal table Creation*******
    DATA:  BEGIN OF tab_XVBRP OCCURS 100.
             INCLUDE STRUCTURE VBRPVB.
    DATA:  END OF tab_XVBRP.
    data : begin of tab_vbeln occurs 10,
           vbeln type vbrk-vbeln,
           knumv type vbrk-knumv,
           end of tab_vbeln.
    data : tab_zmigo type table of zmigo.
    data : tab_vbrp type table of vbrp.
    *****Data declaration*************
    data : v_no_of_inv type i.
    data : v_vbeln_no(10) type n.
    data : v_last_inv_no(10) type n.
    data : v_first_inv_no(10) type c.
    data : v_tot_qty type i.
    data : v_frbnr type mkpf-frbnr.
    *******Ranges*********************
    ranges : r_vbeln for vbrk-vbeln.
    *****Populating IT****************
    tab_xvbrp[] = xvbrp[].
    describe table xvbrk lines v_no_of_inv.
    *}   INSERT
      CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD'
           EXPORTING
                VBSK_I           = VBSK
                WITH_POSTING     = 'A'
                PREISFINDUNGSART = CALC_TYPE
           IMPORTING
                VBSK_E           = VBSK
           TABLES
                XKOMFK           = XKOMFK
                XTHEAD           = XTHEAD
                XVBFS            = XVBFS
                XVBSS            = XVBSS
                XVBRK            = XVBRK
                XVBRP            = XVBRP
                XVBPA            = XVBPA
                XKOMV            = XKOMV.
    *{   INSERT         RD1K903017                                        2
    data : v_count type i,v_fkimg type i .
    data : v_no_of_records(10) type n.
    wa_xvbrk = xvbrk.
    ********Selecting the last rec no from ZMIGO
          select max( sr_no ) from zmigo into v_no_of_records.
    *****If Distribution channel is not ZB*********
    if  wa_xvbrk-vtweg ne 'ZB' and ( wa_xvbrk-fkart = 'ZRIN' or wa_xvbrk-fkart = 'ZRTE' ).
    if v_no_of_inv = 1.              " Process only when there is one invoice
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = wa_xvbrk-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = wa_xvbrk-vbeln.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    endloop.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    clear v_no_of_inv.
    else.                              "When there are Split Invoices
    v_last_inv_no = wa_xvbrk-vbeln.
    v_vbeln_no = v_last_inv_no - v_no_of_inv + 1.
    v_first_inv_no = v_vbeln_no.
    sort tab_xvbrp by vbeln.
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = v_vbeln_no.                      "wa_vbrp-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = v_vbeln_no.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    at end of vbeln.
    v_vbeln_no = v_vbeln_no + 1.
    endat.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    endloop.
    endif.                             "End of first 2nd IF.
    clear : v_no_of_inv, v_vbeln_no.
    endif.
    ****************Sales return************************************
    if  wa_xvbrk-fkart = 'ZRRE' and wa_xvbrk-vtweg ne 'ZB'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                wa_zmigo-mtype = '651'.
                condense wa_xvbrk-xblnr.
                wa_zmigo-reference = wa_xvbrk-xblnr.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg, v_frbnr.
    endloop.
    endif.
    *******Invoice Cancellation*****************************
    if  wa_xvbrk-fkart = 'ZRS1' and wa_xvbrk-vtweg ne 'ZB'.
    delete tab_xvbrp[] where shkzg eq 'X'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                condense wa_xvbrk-zuonr.
                wa_zmigo-reference = wa_xvbrk-zuonr.
                wa_zmigo-mtype = '602'.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg.
    endloop.
    endif.
    clear : v_no_of_records.
    *}   INSERT
      CALL FUNCTION 'STACK_RESET'.
      R185D-DATALOSS = SPACE.
      FOLGEAUFRUF102 = SPACE.
      PERFORM SETPAR_INIT.
    *{   INSERT         RD1K903017                                        3
    *}   INSERT
      LEAVE.
    ENDFORM.
    This program is working fine for single user but in production where no of people are creating the invoices from different places the data is not getting updated in table ZMIGO.
    sometime populating with wrong data , partial data and sometimes no updation at all.
    I have used the table locking system enqueue and dequeue FM's before n after updation but still the same
    thing is happening.
    What could be the reason.
    Looking for help very urgent any other alternate option.

    Hi,
    Go thru these..
    Enhancement
    SDVFX009 Billing doc. processing KIDONO (payment reference numbe
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    SDVFX001 User exit header line in delivery to accounting
    SDVFX002 User exit for A/R line (transfer to accounting)
    SDVFX003 User exit: Cash clearing (transfer to accounting)
    SDVFX004 User exit: G/L line (transfer to accounting)
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX006 User exit: Tax line (transfer to accounting)
    SDVFX005 User exit: Reserves (transfer to accounting)
    Business Add-in
    SD_CIN_LV60AU02 BADI for billing
    If it is helpful rewards points
    Regards
    Pratap.M

  • Tax tables for Invoices

    Hello Experts,
    I am trying to create a Vendor Spend report (both MIRO and KR invoices) which also needs some tax information on it. Can you help in locating the tax amounts in the following cases:
    1) The company pays the whole amount (including taxes) to the vendors and then the vendor is responsible to pay the taxes to the government. How can i locate what amount went to the vendor and what was the tax amount - which table stores this information?
    Thanks,
    Rishi

    Hi Michael,
    The Line item ID = 'T' identifies only those taxes which the company pays on its own. In other words, the tax amounts which hit the company's G/L account. However, I also want to track down the taxes which were part of the Vendor payment. E.g. I pay the Vendor 600 $ for an invoice of which only 550 $ was for the material and the rest 50 $ was tax but the total invoice was created for 600 $. in this case, I won't see a line item in the BSEG table for those 50$. How can I locate this break-up.
    Thanks,
    Rishi

  • PO: how to get Tax Amount of Invoice Receipt of each Goods Receipt?

    Hi all,
    For a PO, I have got a list GRs with their IRs via table EKBE as below:
    Item 1 -> GR 1 -> IR 1
    Item 2 -> GR 2 -> IR 1
    And I see in table RBKP which have field VAT (WMWST1), this field VAT is VAT amount of IR 1 for both GR 1 & GR 2.
    But I would like to get VAT of IR 1 separately for GR 1 & GR 2 as below:
    Item 1 -> GR 1 -> IR 1 -> I would like to get VAT (tax amount = A USD).
    Item 2 -> GR 2 -> IR 1 -> I would like to get VAT (tax amount = B USD).
    (In table RBKP: field VAT (WMWST1) = C USD = A USD + B USD).
    If anyone know which table I can get A and B separately, please help me?
    Thanks a lot in advance,
    Vinh

    You can pass the Invoice no. + GJAHR (concatenate) to BKPF- AWKEY and output the BELNR.
    Pass BKPF-BELNR to BSEG-BELNR which has fields MWART to identify the tax vlaues (DMBTR or WRBTR).

  • Payment amount for invoice .......

    Hi gurus,
    I have problem when caculate paid amount for the invoice, which be paid partial. I don't know fields save that amount.I see fileld NEBTR, but sometime it's valid, sometime no.  Please help me !!! Tks a lot !!!

    Kiran,
    if you use an docuement type to ofsett/clear balances then the clearing document amount is zero.
    e.g. credit memo amount$ 1000 and invoice amount $1000, if you clearn both these only the clearing document value would be zero.
    to check what it has cleared goto payment usage
    Hope this helps
    pls assign points as way to say thanks

  • Unable to set IP address for VM creation using createVmBasedOnTemplate

    Hi,
    I'm trying to create VM using LifeCycleService - createVmBasedOnTemplate api
    The VM gets created and i m able to power on
    The ethernet cards are inactive when i checked thorugh console and IP address is not set
    So i'm unable to login to the VM using the IP address
    Below is the code snippet for reference
    // CreateLifeCycleServiceClient lifeCycleServiceClient
    LifecycleService.TemplateVmConfig templateVMConfig = new VirtualMachineController.LifecycleService.TemplateVmConfig();
    templateVMConfig.serverPoolName = "server pool name";
    templateVMConfig.templateName = "mytemplate";
    templateVMConfig.consolePassword = "password1";
    templateVMConfig.guestLogin = "guestuser1";
    templateVMConfig.guestLoginPassword = "password1";
    templateVMConfig.vmName = "rhel5_sample";
    templateVMConfig.haEnable = false;
    LifecycleService.NICConfig nic = new VirtualMachineController.LifecycleService.NICConfig();
    nic.name = "VIF0";
    nic.bridge = "xenbr0";
    nic.ipAddress = "10.10.10.227";
    nic.subnetMask = "255.255.255.128";
    nic.defaultGateway = "10.10.10.129";
    nic.domainName = "localhost.localdomain";
    nic.hostName = "rhel5_sample";
    nic.macAddress = "00:16:3E:09:56:C2";
    nic.dnsServer = "";
    nic.frontEndName = "rhel5_sample";
    nic.qosEnabled = true;
    nic.rateLimit = 100;
    LifecycleService.NetworkConfType oNetworkConfType = new LifecycleService.NetworkConfType();
    oNetworkConfType.type = "Static";
    nic.networkConfType = oNetworkConfType;
    LifecycleService.NetworkType oNetworkType = new VirtualMachineController.LifecycleService.NetworkType();
    oNetworkType.networkType = "ioemu";
    nic.networkType = oNetworkType;
    //nic.set
    LifecycleService.NICConfig\[] vifs = new VirtualMachineController.LifecycleService.NICConfig[] { nic };
    templateVMConfig.vif = vifs;
    vm = lifeCycleServiceClient.createVmBasedOnTemplate(templateVMConfig);
    Please help
    Edited by: user12180212 on Nov 6, 2009 5:16 AM
    Edited by: user12180212 on Nov 6, 2009 5:17 AM
    Edited by: user12180212 on Nov 6, 2009 5:18 AM

    Hi,
    I checked out the log file but there were no exceptions
    Am i missing something to set the IpAddress ?
    Log - for vm creation
    "2009-11-09 07:15:10" INFO=> new_async_task_ext: success. ->cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3') => 875AD9EC47EC43E599CC7482ACB861E9
    "2009-11-09 07:15:10" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3'
    "2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_vm_size ('/OVS/seed_pool/RHEL5_1C1G_149', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
    "2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_storage_repos ('875AD9EC47EC43E599CC7482ACB861E9',) => success:repos=/OVS;free_space=301273
    "2009-11-09 07:15:11" INFO=> utl_cp_vm: vm('/OVS/seed_pool/RHEL5_1C1G_149') -> vm('/OVS/running_pool/575_SampleVM3') start...
    "2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
    "2009-11-09 07:19:25" INFO=> xen_clear_vif_mac: success. vm('/OVS/running_pool/575_SampleVM3')
    "2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
    "2009-11-09 07:19:25" INFO=> xen_remove_shared_disk: success. vm('/OVS/running_pool/575_SampleVM3').
    "2009-11-09 07:19:25" INFO=> regenuln_uuid: /OVS/running_pool/575_SampleVM3/vm.cfg.
    "2009-11-09 07:19:25" DEBUG=> regenuln_uuid: System.img.
    "2009-11-09 07:19:26" DEBUG=> regenuln_uuid: mount -o loop System.img /tmp/tmpJ8Ag17ovs_mount_point failed.
    "2009-11-09 07:19:26" INFO=> xen_update_uuid: success. vm('/OVS/running_pool/575_SampleVM3/vm.cfg') uuid=65104130-1e5e-18cf-163a-460b853e0c85
    "2009-11-09 07:19:26" INFO=> utl_cp_vm: vm (/OVS/running_pool/575_SampleVM3) created!
    "2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. utl_cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
    "2009-11-09 07:19:26" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3' => success:size=10241
    "2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
    "2009-11-09 07:20:12" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
    "2009-11-09 07:20:12" INFO=> xen_set_vifs: success. vm('/OVS/running_pool/575_SampleVM3') set vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu, mode=setall, scope=cfg
    "2009-11-09 07:20:12" INFO=> set_vm_vifs: vm('/OVS/running_pool/575_SampleVM3') vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu scope=cfg => rs=success
    "2009-11-09 07:20:12" INFO=> xen_set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3')
    "2009-11-09 07:20:12" INFO=> set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3') => success
    "2009-11-09 07:20:12" INFO=> set_vm_policy: vm('/OVS/running_pool/575_SampleVM3') policy=[] append=False=> success.
    Log when VM is  powered on
    "2009-11-09 07:34:21" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
    "2009-11-09 07:34:21" INFO=> xen_correct_cfg: success. vm('/OVS/running_pool/575_SampleVM3') => cfg_file('/OVS/running_pool/575_SampleVM3/vm.cfg')
    "2009-11-09 07:34:24" INFO=> xen_start_vm: success. vm('/OVS/running_pool/575_SampleVM3')
    "2009-11-09 07:34:24" INFO=> start_vm: vm('/OVS/running_pool/575_SampleVM3') on srv('10.237.214.149') => success
    "2009-11-09 07:34:24" INFO=> start_vm: success. vm('/OVS/running_pool/575_SampleVM3') ip=''

  • Need Sample Code for Vendor creation using JAVA API

    Hi,
    I have a scenario like Vendor creation using <b>Java API</b>.
    1.I have Vendors (Main) Table.
    2.I have <b>look up</b> tables like Account Group.
    3.Also <b>Qualifier table</b>(Phone numbers) too.
    Could you please give me the sample code which helps me to create Vendor records using Java API?
    <b>I need Code samples which should cover all of the above scenario.</b>
    <b>Marks will be given for the relevent answers.</b>
    Best Regards
    PK Devaraj

    Hi Devraj,
    I hope the below code might solve all your problem:-
    //Adding Qualified field
    //Creating empty record in Qualifed table 
    //Adding No Qualifiers
    Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
    try {
    qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
    catch (IllegalArgumentException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    catch (MdmValueTypeException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    //Creating Record in Qualified table
    CreateRecordCommand create_command = new CreateRecordCommand(connections);
    create_command.setSession(sessionId);
    create_command.setRecord(qualified_record);
    try
    create_command.execute();
    catch(Exception e)
    System.out.println(e.toString());
    RecordId record_id = create_command.getRecord().getId();
    //Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
    QualifiedLookupValue lookup_value = new QualifiedLookupValue();
    int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
    //Adding Yes Qualifiers
    lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
    //Now adding LookUP values
    //Fetch the RecordID of the value selected by user using the following function
    public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
    ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
    rsd.addSelectField(new FieldId(Fieldid));
    StringValue [] val = new StringValue[1];
    val[0] = new StringValue(value);
    RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
    val_command.setSession(sessionID);
    val_command.setResultDefinition(rsd);
    val_command.setFieldId(new FieldId(Fieldid));
    val_command.setFieldValues(val);
    try
         val_command.execute();
    catch(Exception e)
    RecordResultSet result_set = val_command.getRecords();
    RecordId id = null;
    if(result_set.getCount()>0)
         for(int i = 0 ; i < result_set.getCount() ; i++)
         id = result_set.getRecord(i).getId();     
    return id;
    //Finally creating the record in Main table
    com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
    try {
         empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
         empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
    empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp  value Retrieved above
    } catch (IllegalArgumentException e1) {
    // TODO Auto-generated catch block
         e1.printStackTrace();
    } catch (MdmValueTypeException e1) {
         // TODO Auto-generated catch block
         e1.printStackTrace();
    //Actually creating the record in Main table
    CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
    create_main_command.setSession(sessionId);
    create_main_command.setRecord(empty_record);
    try
         create_main_command.execute();
    catch(Exception e)
         System.out.println(e.toString());
    Thanks
    Namrata

  • Problem to add the Note for Invoicing Document using Idoc

    Hi All,
    I would like to use the idoc to create the Invoicing document (MIRO). it seem can't use standard segment E1EDKT1 to create the standard text.
    Anybody have any suggestion to create this standard text?
    Regards,
    Luke

    Hi Krishna,
    I checked WE60 and tried use the E1EDKT1 to create the standard text for invoicing document.
    Document created successful but can't add the standard text in this document.
    also i try to find some exit for update the standard text. i can't find out any exit after creating the invoiceing document.
    would you please give more advise to me ?
    Regards,
    Luke

  • Vendor invoice creation using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am trying to create vendor invoice(FB60) using BAPI_ACC_DOCUMENT_POST.
    Could anyone please let me know what all mandatory fields we have to pass in vendor item and header to create this ?
    Regards,
    Anubhuti Pandey

    Hi,
    Please call the FM BAPI_ACC_DOCUMENT_POST and try with the following parameters:
    Function module to post the accounting document
          CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'           
    "      EXPORTING
              documentheader    = w_documentheader                                          
    "      TABLES
              accountgl               = i_accountgl
              accountreceivable = i_accountreceivable
              accountpayable     = i_accountpayable
              currencyamount    = i_currencyamount
              return                     = i_return
              contractitem           = i_contractitem.
    The required fields in the header document:
        w_documentheader-bus_act    
        w_documentheader-username    = sy-uname.                                             "Username
        w_documentheader-header_txt 
        w_documentheader-comp_code 
        w_documentheader-doc_date  
        w_documentheader-pstng_date  = sy-datum. 
        w_documentheader-trans_date                                 " Transaction date value as per document date
        w_documentheader-fisc_year   = sy-datum(4).      
        w_documentheader-doc_type      
    Pass the necessary information in the account GL and accounts payable.
    I hope this helps you in some way.

  • Error in invoice creation using BAPI BAPI_INCOMINGINVOICE_CREATE

    Hi All,
    I am using BAPI_INCOMINGINVOICE_CREATE to create an invoice using below data,
    wa_header-invoice_ind = 'X'.
    wa_header-doc_date = sy-datum.   "Enter the document date
    wa_header-pstng_date = sy-datum. "Enter the posting date
    wa_header-ref_doc_no = 'Test'.
    wa_header-comp_code = 'L110'.
    wa_header-gross_amount = '528.2400'.  "Enter the gross amount(aft. tax) for the invoice
    wa_header-calc_tax_ind = 'X'.
    wa_header-currency = 'USD'.
    wa_item-invoice_doc_item = '000001'.
    wa_item-po_number = '4600013733'.    "Enter the PO number
    wa_item-po_item = '00010'.           "Enter the PO item number
    wa_item-tax_code = 'I1'.             "Enter the tax code applicable
    wa_item-item_amount = '528.2400'.     "Enter the item amount
    wa_item-quantity = '1'.           "Enter the invoice quantity
    wa_item-po_unit = 'PC'.              "Enter the UoM
    APPEND wa_item TO it_item.
    when i call the BAPI its giving me an error
    Enter a tax code in item 000001
    so  when i entered a data in  TAXDATA  table of BAPI again it throw an error,
    Enter value in either field HEADERDATA-CALC_TAX_IND or field TAX_AMOUNT (import parameter TAXDATA).
    As per my requirement we wanted to set CALC_TAX_IND .
    Kindly suggest me.
    Thanks and regards,

    Dear Reddy
    My excel contain date format 'YYYYMMDD'
    But the server in i am uploading data having date format 'DDMMYYYY'.
    bapi also having date format YYYYMMDD.
    BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
    Due to this format it is giving error.

  • Belgium Tax Code for Invoices & Credit Notes

    Hi,
    According to SAP note 174811 (Configuring a Belgian Company Code) a distinction must be made between the VAT codes for SD invoices and credit notes:
    "... distinction which is obligatory, is the distinction between
    invoices and credit notes for which separate codes have to be
    created. The reason is that the VAT generated by an input tax code
    on credit notes must be posted to an output VAT account instead of
    an input VAT account, and reversals of invoices must be seen as an
    invoice in minus and not as a credit note."
    However the standard MWST condition record does not provide the option of splitting the tax code determination by document type (VK11). Has anyone encountered this issue before or can you suggest a solution to this problem?
    Your help is very much appreciated.
    Kind regards
    P

    Hi Riaan,
    Could you confirm your current path set is correct to the shared folder?  It should be something like
    YourServer\B1_SHR\WordDocs\*LanguageCode*.  Check if you have that kind of folder on your B1 shared server.
    Thanks,
    Gordon

  • BAPI for invoice creation with reference SalesOrder

    hi Mr Anjireddy,
    i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
    plz give the information for that prob,
    eswar

    Hi Vinod,
    This is just idea.
    Get Purchase Requisition details using
    <b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
    *******Poorna*********

  • How to Debugg workflow for Article Creation using MM41 In IS Retails System

    Existing system they are using business BUS1001006,Event Created for triggering workflow when you create article using transaction code MM41.
    I could see one more business object named ZBUS100106 for triggering workflow when you Create an article.
    I just want to debugg the workflow to add some additional validations to trigger workflow when i can create article using transaction code MM41.
    Let me know how to debugg the workflow.
    Thanks in Advance.

    ZBUS100106 is nothing but Custom Business Object of BUS100106 creating by extending BUS100106.
    You can debug Business Object code thru putting breakpoint in Code and executing the Business Object thru SWO1.
    For your requirement you could possibly use SWB_COND Tcode so as to limit workflow lanches.
    Refer [this|http://mailman.mit.edu/pipermail/sap-wug/2003-November/011005.html].
    Regards
    Shital

Maybe you are looking for