How to pass the check  'calculate Tax Automatically' in IDOC

Hi,
I need mark the check box in the 'calculate Tax Automatically' in the IDOC. The IDOC will then go to BDC session 'FB01' to post. Which program I should to make the modification and what IDOC structure has this XMWST field?
Any help is appreciated!
Thanks,
Helen

I am trying to do the same using INVOIC01 MM and MIRO
I found an OSS note that I thought may help but found a few anomolies.
Solution
The user exit CUSTOMER-FUNCTION '015' is available in the subroutine MRM_DOCUMENT_COMPLETE (include LMRMH1F). In this user exit, the "Calculate Tax" indicator (XMWST) can be set automatically for the IDoc.
Here the field e_rbkpv-xmwst must be set to 'x' in the structure e_rbkpv. In addition, f_change must be set to 'x'.
The Include is not LMRM1F but LMRMHFOT, in this include if I change the two fields rbkpv-xmwst and f_change in debugging, it works. There must be a way to do this!
We already do this using FI posting with INVOIC02 and the calculate taxes is flagged when you set calculate taxes on net amount in FB00.
Any suggestions would be gratefully recieved.
Thanks Ian

Similar Messages

  • How to pass the check box values from one view to another view

    Hi Experts,
    I have a selection screen view which consists of check boxes.
    WBS System status.
    Release                      Completed                  Closed as 3 check boxes.
    Note : The above ones are check boxes.
    Based on the selection made by the user, those values needs to be passed to second view which retrieves the data and
    displays the data accordingly.
    At the same time if the user does not make any selection, then WBS System status should contain Released, Completed and Closed values and that needs to be sent to Second view.
    Kindly advise.
    Regards,
    Chitrasen

    hi ,
    make a attribute of type WDY_BOOLEAN to achieve this functionality
    u need to follow these steps :
    1 in side ur component controller , under the ATTRIBUTES tab , make 3 attributes say attr1 , attr2 and attr3 of type WDY_BOOLEAN
    2 create a context node , cn_check and 3 context attribute ca_check1 , ca_check2 and ca_check3 in ur first view for
    release , complete and close check boxes
    3 inside the DOINIT of ur 1st view , set the attributes attr1 , attr2 and attr3 to blank
    wd_comp_controller->attr1 = ' '
    wd_comp_controller->attr2 = ' '
    wd_comp_controller->attr3 = ' '
    4 inside the method , where u r validating , if the check boxes are checked or not , read the attributes ca_check1 , ca_check2 and
    ca_check3
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check1 LIKE ls_cn_check-ca_check1.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check1 ).
    IF lv_ca_check1 EQ 'X' .
    wd_comp_controller->attr1 = ' X'
    wd_comp_controller->attr2 = 'X '
    wd_comp_controller->attr3 = ' X'

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • How does the system calculate taxes?

    Dear All,
    How does the system calculate taxes?
    Can anybody explain in detail how the values will flow from PB00 / PBXX to BASB ?
    Is this flow will remains same in both deductible & non deductible taxes ..??
    Pls explain
    With Regds

    Hi
    Just remove the base type 362 in the taxing procedure & check if your tax is calculating or not.
    The Tax determination still works.
    FORM FRM_KOND_BASIS_362.
    *Application country specific
    *This alternate base value is to be attached to BASB. This routine
    *fetches KZWI6 captured in the pricing procedure.
    Thanks & Regards
    Kishore

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • Problem with "Tax Code" and "Calculate tax automatically" fields

    Hi again.
    I have made a program which posts account documents through the BAPI_ACC_DOCUMENT_POST function module, and, since there were some fields which weren't available for me to fill having the FM by itslef, I have implemented the AC_DOCUMENT BAdI.
    All document data is provided by means of an SAP XI interface, through a Z IDoc.
    When I create the Account Receivable (and/or Payable) structure, I fill, through the BAdI, the BKPF-XMWST (Calculate tax automatically) and BSEG-MWSKZ (Tax code) fields. However, even the resulting posted document does have the Tax Information fields completed (the ones in the BSET table), the BAPI doesn't create the tax position automatically (just like the FB01 or FB60 transactions do). Note that the amounts are sent in their gross value by the interface (that's why the debit and credit sides remain consistent and the document is posted correctly).
    How can I have that position created? Is there a function module which I can call or something?
    Thanks a lot in advance.

    Hi
    I only use the fm CALCULATE_TAX_FROM_NET_AMOUNT or CALCULATE_TAX_FROM_GROSSAMOUNT in order to get all information I need to transfer to the BAPI. Both fms return the data by table parameter T_MWDAT.
    U can read this table and get all information u need, these code is from my old program, I hope it can help you:
    - Calculate tax data:
    CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
            EXPORTING
              I_BUKRS           = BUK_TO
              I_MWSKZ           = T_BASE-MWSKZ_OUT
              I_WAERS           = _BKPF-WAERS
              I_WRBTR           = T_BASE-WRBTR
            TABLES
              T_MWDAT           = T_MWDAT
           EXCPTIONS.
          IF SY-SUBRC <> 0.
          ELSE.
    * Load tax item
            LOOP AT T_MWDAT.
              CLEAR W_GL_ITEM.
              W_GL_ITEM-HKONT   = T_MWDAT-HKONT.
              W_GL_ITEM-MWSKZ   = T_BASE-MWSKZ_OUT.
              IF T_BASE-KBETR = T_MWDAT-KBETR.
                W_GL_ITEM-WRBTR   = T_BASE-FWSTE.
              ELSE.
                W_GL_ITEM-WRBTR   = T_MWDAT-WMWST.
              ENDIF.
              W_GL_ITEM-IVA   = 'X'.
              W_GL_ITEM-KTOSL = T_MWDAT-KTOSL.
              W_GL_ITEM-TXJCD = T_MWDAT-TXJCD.
              W_GL_ITEM-KSCHL = T_MWDAT-KSCHL.
              W_GL_ITEM-TXJCD_DEEP = T_MWDAT-TXJCD_DEEP.
              W_GL_ITEM-TXJLV = T_MWDAT-TXJLV.
              W_GL_ITEM-BASE  = T_BASE-WRBTR.
              COLLECT W_GL_ITEM INTO GL_ITEM.
    - Append GL or Tax item for the BAPI
    LOOP AT GL_ITEM INTO W_GL_ITEM .
        ITEMNO_ACC = ITEMNO_ACC + 1.
        IF W_GL_ITEM-IVA = SPACE.
    * GL item
        ELSE.
    * Tax item
          ACCOUNTTAX-ITEMNO_ACC = ITEMNO_ACC.
          ACCOUNTTAX-TAX_CODE   = W_GL_ITEM-MWSKZ.
          ACCOUNTTAX-ACCT_KEY   = W_GL_ITEM-KOSTL.
          ACCOUNTTAX-COND_KEY   = W_GL_ITEM-KSCHL.
          ACCOUNTTAX-TAXJURCODE = W_GL_ITEM-TXJCD.
          ACCOUNTTAX-TAXJURCODE_DEEP  = W_GL_ITEM-TXJCD_DEEP.
          ACCOUNTTAX-TAXJURCODE_LEVEL = W_GL_ITEM-TXJLV.
          APPEND ACCOUNTTAX.
          PERFORM FILL_AMOUNT USING W_GL_ITEM-WRBTR W_GL_ITEM-BASE.
        ENDIF.
      ENDLOOP.
    Max
    Edited by: max bianchi on Nov 25, 2009 7:43 PM

  • How To pass the value within the page using jsp?

    How to passing the textbox value within the jsp page without using javascript or reload the page.
    I have a scenario like this:
    I have a textbox named as "accno" which allow user to key in the accno. After key in the accno, this accno value will used to do a query from database using jstl.
    here is part of my code
    <input name="accno" type="text" onChange="checkLC()"/>
    <sql:query var="results" dataSource="${db}">
    select accno,name from account where accno = '<%=value get from accno textbox%>'          
    </sql:query>
    <c:out value="${result.rows[0].name}"/>
    note that onChange() is the javascript when user key in accno then automatically go to check database then only show out the name. So how can i get the '<%=value get from accno textbox%>' from accno textbox.

    How to passing the textbox value within the jsp page
    without using javascript or reload the page.No, jsp executes on the remoter server, the text box is on a client machine, you need to send information to the server over the network, http does this with a request, which will reload the page.....................

  • How to Pass the Criteria?

    Hi All,
    I am new to this SAP And BO environment. Now I have Designed a Report in Cryatal Report XI.
    I Want to Integrate the Report with SAP Enterprise Portal and I need to pass the criteria (Parameters) to Cryatal Report.
    Kindly Let me know Where i should design the criteria Screen and how to pass the Values to Crystal Report. Thanks for your support in advance.
    Thanks & Regards
    Sivaramakrishnan V

    Hello,
    first you have to configure your Portal and your BO Server correct that you can view Reports out of the Portal. Check the Installation Guide for the SAP integration Kit on How to do that.
    Than you could use an openDoc URL which is an URL where you call your Report with your Parameters directly. After creating this URL you could create an iView with this URL and deploy it in your Portal. Use this second Guide on How to create this URLs
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Regrds
    -Seb.

  • How to activate the Check box in Purchase Order after Goods Receipt

    Hi All,
    How to activate the check box after Goods receipt of Purchase order in Item view (Goods Receipt is completed).
    Where t make the settings in SPRO.
    Regards,
    Shailendra Hadkar

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • REUSE_ALV_GRID_DISPLAY , how to pass the 'tick' button to internal table

    hi all i have coded:
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          chk(1),
         END OF itab.
    SELECT vbeln
           posnr
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    x_fieldcat-fieldname = 'CHK'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    x_fieldcat-input = 'X'.
    x_fieldcat-edit = 'X'.
    x_fieldcat-checkbox = 'X'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_layout-window_titlebar = 'Popup window'.
    x_events-name = slis_ev_end_of_page.
    x_events-form = 'END_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    x_events-name = slis_ev_top_of_page.
    x_events-form = 'TOP_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        is_layout                = l_layout
        i_callback_pf_status_set = 'STATUS'
        i_callback_user_command  = 'USER_COMMAND'
        it_fieldcat              = it_fieldcat
        it_events                = it_events
       I_SCREEN_START_COLUMN    = 10
       I_SCREEN_START_LINE      = 1
       I_SCREEN_END_COLUMN      = 50
       I_SCREEN_END_LINE        = 20
      TABLES
        t_outtab                 = itab
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    itab-chk is a check button, after execute for the second time, i need to get this ticked button to perform upload transaction..how to pass the ticked button inside itab ?

    just loop at itab and pass X to chk
    loop at itab into wa_itab.
       wa_itab-chk = 'X'.
       modify itab from wa_itab.
    endloop.

  • How to pass the key pressed in javascript

    I'm asking this question here as I could not find the needed help elsewhere .
    I don't know how to pass the key pressed in the function on OnKeyPress event .
    I'm trying the following :
    <input type="text" name="a" onKeyPress="check();">
    I want to pass the key presses in the check function .
    How to collect the key pressed in the function check ?
    Thanks.

    As I said above, that won't work in Mozilla.
    In fact IMO Netscape/Mozilla javascript event handling has been behind IE since version 4.
    Be that as it may: here is a workaround (for Mozilla): It seems you have to assign the onkeypress event for it rather than declaring it as part of the textfield.
    Of the two textfields on this form, both work in IE, and only the first one will work properly in Mozilla. I left it in just to demonstrate the difference.
    And a couple of links for ya
    javascript forum: http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=3
    Keypress events: http://www.din.or.jp/~hagi3/JavaScript/JSTips/Mozilla/Samples/KeyEvent.htm
    <html>
    <head>
    <script language="javascript" >
    <!--
    function check(evnt){
      alert("A key was pressed!");
      // IE handling
      if (window.event){
        evnt = window.event;
        alert(evnt.keyCode);
      // netscape/mozilla handling 
      else{
        alert(evnt.which);
    //-->
    </script>
    </head>
    <body >
    <form name="myform" method="post">
    Test <input type="text" name="myTest"><BR>
    Test <input type="text" name="myTest2" onKeyPress="check();"><BR>
    <script> document.myform.myTest.onkeypress = check; </script>
    </form>
    </body>
    </html>

  • How to pass the input control

    Hi, how to pass the input control from  1 report to another report please reply me ...

    HI Stefen,
    That feature is not yet provided .
    But you can achieve if you ahve that kind of requirement using the reportfilter summary options.
    please check if it can help you
    User input control for more than one tab in webI

  • How do I disable  check for updates automatically for a silent install

    Does any know what the msi parameters are to disable the check for updates automatically. I have tried the following
    autoupdatecheck 0
    ju 0
    update 0
    These do not seem to work as the update tab and check and uncheck is still available
    Also
    Does anyone know how to remove all old versions silently.
    Edited by: DrArms on May 8, 2008 5:24 AM
    Edited by: DrArms on May 8, 2008 5:24 AM
    Edited by: DrArms on May 8, 2008 5:27 AM

    hi,
    in ur PBO one loop will be there...
    make one module disable there.
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'MYTAB1'
      MODULE get_data.
      MODULE mytab1_change_tc_attr.
      LOOP AT   mytab
           INTO mytab
           WITH CONTROL mytab1
           CURSOR mytab1-current_line.
        MODULE disable.
        MODULE mytab1_get_lines.
      ENDLOOP.
    MODULE disable OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'MYTAB-MATNR'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " disable  OUTPUT
    here mytab is my internal table and mytab1 is my table control name...
    reward if usefull....

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

Maybe you are looking for

  • Best practice of OSB logging Report handling or java code using publish

    Hi all, I want to do common error handling of OSB I did two implementations as below just want to know which one is the best practice. 1. By using the custom report handler --> When ever we want to log we will use the report action of OSB which will

  • Screen (Window) maximum size in Photoshop (ScriptUI or something?)

    Hi! I can't get the right dimensions of the maximum screen size in Photoshop. Neither with javascript nor with Actionscript. I'm trying to use Window.maximumSize but when Photoshop is fullscreen-d, it returns the height value, as if Windows Taskbar i

  • HERE Drive + Beta constantly crashes after upgrade...

    After i upgraded to Here Drive + Beta on my Lumia 920, the app constantly crashes when i start it! I have tried to restart the phone, uninstall the app, and reinstall....but it still crashes! The other Here-apps is ok, and works fine! Didn't anyone a

  • Use of Statistical key in CATS

    Hi , Can any body guide me what is the use of Statistical key in CATS and where he options for its dropdown is mainatained? I need this for urgently, So kindly help. Regards

  • How do I join 2 clips in the timeline so that they "snap" together?

    This is probably a very, very simple answer, but I cannot get it to work right. Here's my situation. I trimmed a clip. So now there is a gaping hole in my timeline. Sure, I could drag the other after it until it matches up and plays continously with