Not getting the tax details in me23n using custom smartform

Hi to all,
   I am useing bapi to get the details of service order and printing the details in my custom smartform which is assigned in me23n. My problem is i am getting all the details like line item and all related but not the tax details. I need to print the net amount which is net amount + tax . Can any one help me in this regards.

Use function module   CALL FUNCTION 'CALCULATE_TAX_ITEM'
      EXPORTING
       dialog                    = lc_n
       display_only              = lc_x
       i_taxcom                  = lwa_taxcom
      IMPORTING
    E_NAVFW                   =
       e_taxcom                  = lwa_taxcom
    E_XSTVR                   =
       nav_anteil                = lv_taxamt
     TABLES
       t_xkomv                   = lt_komv
     EXCEPTIONS
       mwskz_not_defined         = 1
       mwskz_not_found           = 2
       mwskz_not_valid           = 3
       steuerbetrag_falsch       = 4
       country_not_found         = 5
       OTHERS                    = 6
    IF sy-subrc <> 0.
   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
LT_KOMV will return the tax related data.
Nabheet

Similar Messages

  • Iam not getting the data on screen after using the user exit zxpadu01

    Dear Freinds
                As per my requirement when the user enters value Ansal  it should get defaulted to Amount field (bet01 ) based on the wage type
    i have written calculation ( q0008-bet01 = ansal/100) before it getting defaulted to bet01, i found that value is not getting default  on the screen for bet01 once i enter value for Ansal , please any body correct my code
    in   ZXPADU02 i have written the code as  below :
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.   -- HERE I GOT ALL THE DATA EXCEPT BET01
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008  --- HERE I CAN SEE EVEN THE BET01 IS FILLED
    IMPORTING
    prelp = innnn.         --- HERE I CAN SEE LGART BUT NOT AMOUNT VALUE
    endif.
    when others.
    endcase.
    IN ZXPADU01 I HAVE WRITTEN AS BELOW:
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008   --- I CAN SEE ONLY WHEN I COME AGAIN
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    Now my problem is as follows :
                   i have entered the value for Ansal (ex: p0008-Ansal = 1000) ..........and i say enter then i should found the calculated value for the ansal through my coding
    and it should  display in bet01 as 10 ( q0008-bet01 =  p0008-ansal /100)
    but i dont find the value 10 being displayed for the field bet01 on the screen  when
    user enters Ansal  as 1000 .........even then i have saved it to test the scenario......
    now i came in displayed mode (pa20 ) for the infotype 008 for the same personnel no for the same  dates .....where i created the record........i found that the value
    bet01 is there i.e i can see  the value bet01 as 10 ( my requiremnt here matching)
    but when the user say enter during the time of creation of the record the value
    bet01 is not getting defaulted with 10 .........why iam not able to understand
    PLEASE ANY BODY HELP ME IN THIS REGARD 
    regards
    shanti.

    Hi Pranesh,
                   i have used the logic which you hav given as below
    in ZXPADU02
      FIELD-SYMBOLS <fs>  TYPE ANY.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .  ---  amount as (ansal /100 i.e 1000/100 = 10) 10
    endif.
    still iam not getting the data for the field bet01
    this is the coding i am using
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
      FIELD-SYMBOLS <fs>  TYPE ANY.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .
    endif.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    please help me as iam still not getting (value in bet 01) when i press enter once i enter value in ansal feild.
    regards
    shanti.

  • HT201363 I have requested the email to help me with forgotten security questions several times over many days but I do not get the email; now I cannot use my account without knowing the security question answers?

    I have repeatedly requested the email to help with forgotten security question passwords but never receive it; I cannot access my account for purchases with out the answers; how can i fix this?

    Hello Jamped,
    It sounds like you are doing the correct process to reset your security questions, but you are not getting the email at your recovery address. I recommend checking your spam folder first. If it is not there I would next reach out to
    our iTunes Account Security team who may be able to help if you can verify your account info:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Not getting the child details

    Hi Friends,
    Iam implementing a master detail page.
    Here I have taken two sequences...one(emp id sequence)  for emp  custom table and  one (dependent id) for family details.
    empid is common column for them. Based on this empid I should get child details (family details)
    In my search page,create/update page  Iam getting the master details , but Iam not able to get child details for the  selected employee.
    I have created a ASSOCIATION  say EmpFamAO  between two EO's (emp table    and   family details table)...................Based on empid column
    AND
    I have created a VIEW LINK  between this EO's  from master (EmpFamAO) left side  and child(EmpFamAO) right side of the view link editor
    But the issue is Iam not getting this common column (emp id) in my child table when querying  therfore Iam not getting related child details...when Iam clicking on details icon or update icon .
    Let me know for any clarifications.
    Thank you.
    Aravinda.

    Hi Aravind just you have to fallow these methods.
    public void createEmployee()
            EmpHeadersEOVOImpl hVo = getEmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            if(!hVo.isPreparedForExecution())
                hVo.executeQuery();
            Row row = hVo.createRow();
            hVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number empId= tr.getSequenceValue("KSK_EMP_ID_SEQ");
            hVo.getCurrentRow().setAttribute("EmpId", empId);
        public void createEmpFamily()
            EmpFamilyEOVOImpl sfVo = getEmpFamilyEOVO();
            EmpHeadersEOVOImpl ehVo = get EmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            sfVo.setMaxFetchSize(0);
            Row row = sTVo.createRow();
            sfVo.first();
            sfVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number familyId= tr.getSequenceValue("KSK_FAMILY_ID_SEQ");
            String empId = ehVo.getCurrentRow().getAttribute("StudentId").toString();
            sfVo.getCurrentRow().setAttribute("FamilyId", familyId);
            sfVo.getCurrentRow().setAttribute("EmpId", empId);
    now above first method show for master table and
    second one show Child Creation methos
    so in that method we are inserting empid into Child table and inserting child id also.
    So now your requirement will fullfill.
    Let me know if required any details.
    Thanks
    San
        public void save()
            OADBTransaction tr = getOADBTransaction();
            tr.commit();

  • I AM NOT GETTING THE TAX TAB CAN ANY ONE HELP ME

    HELLO      I AM NEW TO SAP SD WHILE CREATING THE CUSTOMER I HAVE NOT GOT THE TAX OPTION CAN ANY ONE HELP ME

    Hi
    1.Go to OVK4(check tax relevancy data for customer master) and put your tax calculation type eg. MWST-0(tax exempted)
                                                          MWST-1( full tax)
    2.Go to OVK3(check tax relevancy data for material master)
    and put your tax calculation type eg. MWST-0(tax exempted)
                                                          MWST-1( full tax)
    3.Now goto OVK1 and assign country IN to this condition type.
    4.Goto OX10 and assign your plant for tax determinaton.
    hope it helps out
    plz. drop poins in success.
    krishan kumar rai

  • Not getting the leave details in the WF12300111

    Hi all,
    Am using the standard workflow 12300111 for the leave reuest in ESS.
    The supervisor of the workflow initiator getting the leave request but he is not able to view the leave details and the leave type. The supervisor is getting only the employee details.
    can anyone guide me to resolve dis issue?
    Thanks,
    Ravi.

    Hi Ravi,
    Kindly check that in the Binding you are passing all the required data that needs to be transferred from 1 container to another. The Supervisor is not able to see leave Details because you have not passed them correctly  in the Binding.
    Let me know if it helps and even if you have any doubts
    With  Best Regards,
    Kanika

  • BP_CONT: not getting the contact person email value from custom controller

    Hi Experts
    not able to find the email address in any of the context node, actually my requirement is while creating the BP contact , get the email address  BP_ADDR/StandardAddress STRUCT.E_MAILSMT . take this email id and check whether this email id exists in system if exists throw the error while saving . for this I did the codin in BP_CONT component on save method but while saving some times my custom controller is getting initiated some times it was not containing any value , kindly let me know how can I get the email value of contact person in BP_CONT  component in view BPCONTOverview .
    here is my code on method eh_onsave
    lr_curo_bpcont_custcntrlr ?= me->get_custom_controller( controller_id = 'BP_CONT/BPCont' ).
      IF  lr_curo_bpcont_custcntrlr IS BOUND.
        TRY.
            lr_entity_privstdaddr ?= lr_curo_bpcont_custcntrlr->typed_context->privstdaddr->collection_wrapper->get_current( ).
            lv_privstdaddr_e_mailsmt = lr_entity_privstdaddr->get_property_as_string('E_MAILSMT'). " Get runtime email value of contact person
            lr_entity_bpcategory ?= lr_curo_bpcont_custcntrlr->typed_context->builheader->collection_wrapper->get_current( ).
            lv_partner_category = lr_entity_bpcategory->get_property_as_string('BP_CATEGORY'). " Get Partner Category value
          CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
        ENDTRY.
      ENDIF.
    here the problem is some times I'm getting the value and some times I'm not getting value the related objects also through get related entities contact person emial is not getting populated any where
    kindly help what is going wrong
    Thanks & Regards
    Rajasekhar

    Hello Rajasekhar,
    Could you please share how you resolved this issue? I have the exact same requirement (duplicate check based on email).
    Kind regards

  • HT1751 i could not get the file to drag over using windows 7  what am i doing wrong?

    I am trying to back up itunes on an external hard drive.  When I get to the advanced tab (in edit_preferences) I see the file but I am unable to drag it to the external drive.  what am i doing wrong?

    You cannot drag anything from the Advanced tab.
    Go to the location indicated in the Advance tab, that folder is what needs to be moved.

  • How to pass the tax details for the PO in me23n to script??

    Hi friends,
    I have a requirement to display the tax details for every line item of the PO in PO layout through script.  Here I am gettin the tax details value for Purchase Order from the transaction ME23N. In   this transaction, there is tab called invoice, when you click the tab, you will get the tax details. I need to print this details in the my PO layout. I checked in the technical field, the values are getting from the structure KOMVD. I tried to pull the value from the structure itself, but I am getting only Gross price. I am not able to display the taxes details in the layout. I need the condition type value and name and amount field also.
    Please help me how to achieve this.<< priority reduced>>
    I would appreciate the replies.
    Thanks in advance.
    Please let me know if you need anything more.
    Regards,
    Ahamed.
    Edited by: Rob Burbank on Oct 11, 2011 3:42 PM

    Hi
    You can Try with Tables EKPO AND BSET.
    Regards
    Ajit

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • HT2534 I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    Follow the steps on this page when creating a new account http://support.apple.com/kb/HT2534
    e.g. if using a computer's iTunes : https://discussions.apple.com/message/24321860
    If you've already created an account and are being prompted to review it when trying to see it then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054

  • I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    Return, cancel, or exchange an Adobe order

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless i select the list in the sub file. How do I get backto the old method of seeing and using iTunes??

    I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless I select the list in the sub file. How do I get back to the old method of seeing and using iTunes??

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • I have IMac 10.7.5 Lion I use I forgot the password and I did a few fixes from the we sites, which did not work and now I can not get the computer to reboot the gray screen comes on and if a shift c I get a load bar and it goes half way and help

    I have IMac 10.7.5 Lion I use I forgot the password and I did a few fixes from web sites, which did not work and now I can not get the computer to reboot the gray screen comes on with the apple and if a shift+c, I get a load bar and it goes half way and stops, I can get into the black screen area with the hard drive info
    I did the following:   mount -uw /    rm/var/db/.AppleSetupDone    shutdown/uses/us  reboot Ok I know I should not have, but now I need help to reboot and hopefully not lose everything on the desk top, Linda Markle

    You did the wrong things. In the future it's a good idea to remember not to do something when you don't know what you are doing and what happens when you do it.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see:
           Reset a Mac OS X 10.7 Lion Password
           OS X Mountain Lion- Reset a login password,
           OS X Mavericks- Solve password problems,
           OS X Lion- Apple ID can be used to reset your user account password.

Maybe you are looking for

  • Create Goods Receipt PO from  AP Reserve Invoice (bug?)

    Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice". In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible

  • Invoking Web Service with array paramter

    Hi, I'm trying to invoke a Java web service having an array as input parameter but it only works if i have only one child or if i chose one specific element with xpath. bpel variables: <variables> <variable name="mergedSupps" element="client:supplier

  • IDVD and Toast-anyone else had this problem?

    I apologize for the long post, but it is necessary to explain the situation. I have made 4 projects in iDVD6, 2 SL, 2 DL with no problems. I edit in imovie, send to idvd, then make images which I burn with toast (though I know it is not recommended f

  • Sound delay while playing video in iTunes.

    Dear community, When playing video in iTunes the sound is increasingly delaying and after approximately 10 seconds it becomes almost impossible to watch the video. When you move to the other part of the video, the sound is back to normal for a short

  • How do I get a browser window in firefox

    I have just downloaded firefox on my Galaxy note and have no idea how to use it. I expect to open the firefox app and see a browser window so I can just put in a search quickly. I have no menu or search bar, just the start page which has a shortcut t