Clearing Sales Tax at Header Level in an Order

Hi,
I have a requirement to not charge any tax on an order if the credit card used on the order is a government credit card. Currently I have implemented this logic in USEREXIT_SAVE_DOCUMENT_PREPARE. I am able to clear out the sales tax at the line level but this change does not reflect at the header level. I have to manually click on update pricing to zero out the tax displayed at the header level. I could not find a variable to tap into header level pricing condition and tax value field.
I would greatly appreciate if any one can give me some pointers on where to look for header level data for tax. Also, is there any better user exit to implement this functionality.
Folliwing is the code I am using to clear out line item level tax:
          LOOP AT XKOMV INTO WA_XKOMV WHERE KSCHL EQ 'UTXJ'.    "GET THE TAX CONDITION
              CLEAR WA_XKOMV-KWERT.                               "Set the TAX to 0
              CLEAR WA_XKOMV-KAWRT.
              CLEAR WA_XKOMV-KBETR.
              MODIFY TABLE XKOMV FROM WA_XKOMV
                TRANSPORTING KWERT KAWRT KBETR.
          ENDLOOP.
          LOOP AT XVBAP INTO WA_XVBAP.    "GET THE TAX VALUE
              CLEAR WA_XVBAP-MWSBP.                               "Set the TAX to 0
              MODIFY TABLE XVBAP FROM WA_XVBAP
                TRANSPORTING MWSBP.
          ENDLOOP.
Thanks,
Paresh

Hi,
In the case of sales cycle, All the item level taxes are summirised and come to the header level. So we can't find the conditions at header level for taxes. Check the user exit , because, the values are already moved to the header level structure and then you are clearing the item level taxes. I hope thats why the changes are not reflected in header level.
Regards,

Similar Messages

  • Rounding of sales tax at header level

    HI
    I want to roundoff tax at header level . we already using the tax rounding off at item level .
    But new requirement is instead of Item level roundoff , they want the roundoff at header level
    Plz provide solutions

    Hi
    U have 2 options
    1. Conversion rule(OY04)
    2. SPRO-Ref IMG-Global setting Data- Conversion  Rule
    or once u r maintaining the condition record for Tax value (FV11/ vK11/Vk19)
    there u can find rounding rule.
    thanks
    mk

  • Delete sales employee in header level with BAPI_CUSTOMERQUOTATION_CHANGE

    hi  experts,
    I try to delete sales employee in header level, but i always get the error message:
    FB call: insufficient parameters
    The sales document is not yet complete: Edit data
    Sales document 0007002015 was not changed
    Please give a light  how to delete sales employee successfully . Thank you very much!!
    My program:
    REPORT z_test_change_partner .
    DATA:
          order_header_inx LIKE bapisdh1x,
          order_header_in LIKE bapisdh1,
          return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
          quotation_item_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
          partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
          partnerchanges LIKE bapiparnrc OCCURS 0 WITH HEADER LINE
    order_header_inx-updateflag = 'U'.
    quotation_item_inx-updateflag = 'U'.
    quotation_item_inx-itm_number = '000010'.
    APPEND quotation_item_inx.
    CLEAR partners.
    partners-partn_role = 'VE'.
    partners-partn_numb = '00001000'.
    APPEND partners.
    CLEAR partnerchanges.
    partnerchanges-document = '0007002015'.
    partnerchanges-itm_number = '000000'.
    partnerchanges-updateflag = 'D'.
    partnerchanges-partn_role = 'VE'.
    *partnerchanges-p_numb_old = '00001111'.
    *partnerchanges-p_numb_new = '00001000'.
    APPEND partnerchanges.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
      EXPORTING
        salesdocument                = '0007002015'
       quotation_header_in          = order_header_in
        quotation_header_inx         = order_header_inx
      SIMULATION                   =
      BEHAVE_WHEN_ERROR            =
      INT_NUMBER_ASSIGNMENT        =
      LOGIC_SWITCH                 =
      NO_STATUS_BUF_INIT           = ' '
      TABLES
        return                       = return
      QUOTATION_ITEM_IN            =
       quotation_item_inx           = quotation_item_inx
       partners                     = partners
       partnerchanges               = partnerchanges
      PARTNERADDRESSES             =
      CONDITIONS_IN                =
      CONDITIONS_INX               =
      QUOTATION_CFGS_REF           =
      QUOTATION_CFGS_INST          =
      QUOTATION_CFGS_PART_OF       =
      QUOTATION_CFGS_VALUE         =
      QUOTATION_CFGS_BLOB          =
      QUOTATION_CFGS_VK            =
      QUOTATION_CFGS_REFINST       =
      SCHEDULE_LINES               =
      SCHEDULE_LINESX              =
      QUOTATION_TEXT               =
      QUOTATION_KEYS               =
      EXTENSIONIN                  =
    LOOP AT return.
      WRITE / return-message.
    ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       wait          = 'X'
    IMPORTING
      RETURN        =

    Hi Edith,
    Thank you very much for your reply.
    I changed my program by following your steps in the reply. Now the BAPI is showing error messages: "Instance 7200000060 of object type PurchaseOrder could not be changed" and "Price without service not allowed".
    Please refer my code below.
    poitem-po_item = '0010'.
    poitem-pckg_no = '0000001964'.
    poitem-item_cat = '9'.
    APPEND poitem.
    poitemx-po_item = '10'.
    poitemx-po_itemx = 'X'.
    poitemx-pckg_no = 'X'.
    poitemx-item_cat = 'X'.
    APPEND poitemx.
    Parent line
    poservices-pckg_no = '0000001964'.
    poservices-line_no = '0000000001'.
    poservices-ext_line = '0000000000'.
    poservices-subpckg_no = '0000001965'.
    poservices-matl_group = '01040107'.
    *poservices-delete_ind = 'X'.
    *poservices-quantity = ' '.
    *poservices-base_uom = ' '.
    *poservices-gr_price = ' '.
    APPEND poservices.
    CLEAR: poservices.
    Child line.
    poservices-pckg_no = '0000001965'.
    poservices-line_no = '0000000002'.
    poservices-ext_line = '0000000010'.
    poservices-quantity = '1'.
    poservices-service = '000000000005000010'.
    poservices-base_uom = 'EA'.
    poservices-gr_price = '150'.
    poservices-subpckg_no = '0000000000'.
    poservices-matl_group = '01040107'.
    poservices-delete_ind = 'X'.
    APPEND poservices.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        purchaseorder = '7200000060'
      TABLES
        return        = return[]
        poitem        = poitem[]
        poitemx       = poitemx[]
        poservices    = poservices[]
        posrvaccessvalues = posrvaccessvalues[].
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Revanth

  • Central Sales Tax Amount with respect to Purchase Orders

    Is there any way to get Central Sales Tax amount with respect to Purchase Order Numbers. I need this for report.
    Pls get me table numbers from which i can extract

    Hi,
    Refer report J1I2 - Sales Tax Register
    Here in the selection screen, enter Tax code, CST Condition type, etc...
    Also refer report S_ALR_87012357 - Advance Return for Tax on Sales/Purchases

  • Header level pricing is not triggered

    Hi
    I am facing problem when I change some line item data on my sales transaction then header level pricing is not triggered though system triggers line item pricing and all the line item condition types are calculated but header condition types are not calculated.
    Would you please let me know how can I trigger my header level pricing.
    Regards
    Javed

    Hi Javed,
    As I understood your problem, the item level condition types are calculated and condition records are fetched while the header level conditions are not calculated. This is a strange thing because the pricing procedure associated with the document will have condition types marked relevant for header and item level. Depending on these and the formulae associated with the condition types in the pricing procedure, IPC calculates the condition values and are summed up as different items at the header level.
    I would suggest you to to switch on the debugging parameter for your user id and try to debug to check condition types failing at the header level.
    Regards,
    Pavithra
    **PS : Please reward points if you find this useful.

  • Order Import of Sales Tax

    I have an order with a number of order lines. For each of the order line there is a sales tax associated with it. The orders are created outside OM and needs to be imported into Order Import as order lines and sales tax lines.
    What is the proces to setup Order Import and OM to receive orders, order lives and tax lines?
    The only way I have found is to setup "dummy" transaction types.
    Any help on this will be greatly appreciated.
    Please reply here or to [email protected]
    Thanks,
    Hans

    Hello Rahul,
    I think you didn't get my question. If customer give purchase order i.e. our sales order in PDF file, how to upload this file in SAP Business One?
    Regards,
    Akshata

  • Error in entering header level conditional value - toomany line items to PO

    Hi experts
    I have an issue while  processing a PO. While entering condition values like Freight, Customs duty etc in header level where the order contains more than 1000 line items, i am getting an error " too many line items, msg no.899". Can somebody, guide on this how this can be resolved.
    rgds
    Raghu

    HI Raghu,
    The only possible way is to create two diffrent PO's.
    As you have maintain various conditions, this will lead to updation of many FI documents at the time of GRN.
    This is SAP Limitation.
    Regards,
    Amit
    njoy SAP..
    njou Life....

  • Formatted search on header level UDF

    Hi All
    How do you call a UDF at Warehouse header level into purchase order row level?
    Thanks
    SV Reddy

    HI,
    and what if the Warehouse code is located in a UDF at header level of the marketing document ??  I mean, how can we access a UDF value in a FMS ?
    We tried the following, but it didn't work :
    SELECT T0.OnHand
        FROM OITW T0
        WHERE T0.ItemCode=$[$38.1.0]
        AND T0.WhsCode=$[$U_Nwr_WH.0.1]
    And it seems that the UDF do not have number assigned to it so we can't use the following syntax
    $[$99.0.1]
    thanks,
    Luce
    Edited by: Luce Veilleux on Nov 26, 2009 4:32 PM

  • Sales Tax Calc (Line Item level calc versus header level calc)

    Hello,
    My company utilizes vertex to calculate sales and use tax in our sales orders that are created via resource related billing (DP96).
    We store tax code O1 using condition type UTXJ for each SD Contract.
    Condition types XR1 thru XR6 receive the sales tax calculations/amounts from vertex for EACH line in the billing request.
    See below example of calculated tax amount per line item
    Line1 of Bilreq:   NetVal  2.25     X tax rate for XR1 .05  = sales tax of 0.11  (rounded up to 2 decimal places)
    Line2 of Bilreq:   NetVal  2.25     X tax rate for XR1 .05  = sales tax of 0.11  (rounded up to 2 decimal places)
    Totals                             4.50                                                                  0.22
    When our invoice(billing document) is sent to our customer which shows just totals our customer sees:
    Net Amout:  4.50
    tax rate .05
    Sales Tax Amt:  0.22
    When our customer multiplies 4.50 by .05 they come up to 0.23
    So they are questioning why the calculation is incorrect and they want it to match to the penny.
    Anyone have any suggestions to solve this problem.
    Any help is greatly appreciated.
    Thanks,
    Ermanno Incollingo

    Hello Ermanno
    Does your pricing Procedure have condition type DIFF just after the tax conditions XR 1-6?  If not, please review standard pricing procedure RVAXUS ( Step 917).
    Also try to use condition types NETP and PNTP  as described in OSS note  80183 - Rounding.
    Hope this helps. Thanks.

  • ME21N-Clear error at header level

    Hello Experts,
    I have a requirement to throw an error message in ME21N if the PR's Sale order has credit limit exceeded.
    I have done this with exits. Once the error message is thrown, this error message sits at the header level. Even when deleting the erroraneous line item, this message is not cleared.
    I want to remove this message at header level when this erroraneous record is deleted. Please guide me for this.
    Thanks
    Seema

    Hi,
    Deactivate that Exit and do this with the BADI.
    BADI for this is ME_PROCESS_PO_CUST.
    There is one method Process_header. Do the validation in this method for the header level.
    Hope this will be easy comparing with Exits.
    With Regards,
    Sumodh.P

  • User exit for pricing to calculate net sales value and tax at billing level

    Hi,
    Can anyone give the solution for below thing.
    I have written the code for to calculate the net sale a value and tax value based on condition types YTN1 & YTN2 and with pricing procedure "ZXTNIC"  under   user exit "userexit_field_modification"  in include program LV69AFZZ
    Calculation as per below
    FD:
    The user exit will run on the values of the line item and the header of the pricing conditions
    The user exit will subtract the current net value from the value of the conditions YTN1 & YTN2, also the Tax value will be added to the value of the conditions YTN1 & YTN2.
    Need the Net value = 8,032 and not 8,882  " here 8832 value is before calculation
    This value will be calculated as follows = Current Net u2013 YTN1 u2013 YTN2 = 8,882 u2013 0,773 u2013 0,077 = 8,032
    Need the Tax value = 2,395 and not 1,545  " here 1545 value is before calculation.
    This value will be calculated as follows = Current Tax + YTN1 + YTN2 =     1,545 + 0,773 + 0, 077 = 2,395
    When i will execute the VF01 transaction there in initial screen values are not updating automatically.Once we will select item line and  then clicking on " item pricing condition" icon i.e., item level , then only the values are updating both in item level and header level.
    But when we will execute the VF02 and VF03 the values are updating automatically as per condition.
    So please suggest me is there any exit for this requirement.
    Regards,
    Jayaram

    Hi,
    You should implement your logic in VOFM Copying routine for billing document.
    Regards
    Prasenjit

  • Discount at header level not getting printed when tax exempted.

    29.09.2008
    Hi friends,
    I have incorporated Header discount in my Sales Order. Since there are no deliveries, invoices are printed against Sales Orders. The invoice output shows the discount if the tax classification of the customer is 1 (Liable for taxation). But strangely if the customer is exempted from tax, the discount entered at the header level is not printed on the output even though i can see the discount  computed in the invoice.
    Please suggest how i can sort this problem out.
    Regards,
    Udaynath.

    Thanks Khaled,
    but it does not work bcos as the item category group LUMF takes the price for the component (and the header price is not displayed), then if I set up the price ref. mat. of the components to be the header, the total value of the order will be zero (since price of the header material is zero).
    Any other idea?
    I was thinking in creating a rule to apply the discount of the header condition at the sub-item conditions, but I am not sure whether this can be done.
    Regards
    Julian

  • Change the tax code at order header level that reflect the change in all it

    Dear consultant,
    Change the tax code at order header level that reflect the change in all items lines under this order
    Facts:
    Define tax code,
    Assign it to bill & ship to customers,
    I do all setup in oracle receivable guide for defining tax
    Examples: I navigate to order management to create order
    First I select the customer and order type after that I navigate to tab line
    I enter the item in the first line the tax code coming by default
    I enter the second items line also the tax code coming by default etc three ,four, five until line 40
    Now I want to change the tax code for all items but not by enter and change it in each line? No,
    I want the way that I change Tax Code at order header after that the change is reflect in all items line
    Business Impacts:
    Suppose I create order include 40 items , I want to change the tax code that coming by default , that require me to enter in each line to change tax cod 40 times ,this not logic and not acceptable from my customer

    Hi,
    The defaulting rules apply only for the first time when you are adding new lines on to the Sales Order. Respective field vaues will be defaulted from the SO header level.
    In case, if you want to update all the 40 lines for Tax Code in one shot, then please select all the lines on the sales order, try Mass Change.
    (Navigation: Tools->Mass Change).
    Regards,
    Hemanth

  • Sale order close at header level

    Hi
    How can I cose a sale order completely at header level having more than one line items so that no schedule line can be used for delivery.
    Regards
    Rajesh

    Dear Mr.G. Lakshmipathi
    Thanks for your answer.I know this option but it does n't fulfill my requirement.
    There are more than one sale orders of the same material at a time for different customers having daywise schdule.System confirms the complete qty.in sale order used in first.While I need partely qty.to be sale to the other customer also.How can I transfer the qty.confirmed in first sale order to other sale order.
    Thanks
    Rajesh

  • Billing plan (Downpayment) for saved and open sales orders at header level?

    Hi gurus,
    I have configured billing plan in my SD environment at Item Level.
    I want to change it to header level.
    Questions:
    1- When I make the changes to update the system to have billing plan at header level for future sales orders, is that possible for me to change all my saved orders and open orders with the new settings so that I can also have those saved and open orders with a billing plan at item level?
    2- If that scenario is not possible, could we for example copy the data of a previously saved or open sales order into a new sales order with the new customizing (Billing plan at Header level?)
    Thanks for your input
    Kind regards
    Chris

    Hi
    I am afraid you cannot do that converstion for the existing orders. BP at header level are enabled at teh document type level, while BP at item level is done at item category. So both are independent. Mostly it is advisabel to use BP at item level only.
    If you are already using item level BP, and want to mvoe to header BP, then only future transactions can be executed with BP at header level. Existing item level BPlans will remain so in the system.

Maybe you are looking for

  • Should I use an @me email

    Hi, I need to know that should I switch to @me or keep my yahoo rmail,thanks.

  • Screenshot of current TV show

    Hi, i would like to know if it is possible to make a screenshot of the current TV show using MHP: create an Image or record a sound from the current TV show. (like the option print screen in PC). regards sebastien

  • R12 Cheque Print to Printer

    Hi I need a solution to print the cheque directly to the printer(exclusively used for printing Cheque printer name HPLASER) from R12, As of know once the conc program Format Payment Instructions is completed normal, I click the view button to view th

  • Bug while editing and compiling the procedure

    Bug while editing and compiling the procedure in Sql Developer 1.5.4 the error is ora -00904 "ATTRIBUTE" Invalid Identifier Edited by: user4448643 on Mar 16, 2009 5:09 AM

  • When I join a new network I

    When I am away from home and have to join a network I have problems playing my games.  The iPad will show that I am connected, and I can use the Internet, but my games will not play.  I get the pop up that says "you must be connected to the Internet