Results in CALCULATE_TAX_ITEM are not the same as in me23n
Hello all!
I'm using CALCULATE_TAX_ITEM function in order to get the Tax values of each position in an Purchase Order. I'm calling the function almost in the same way as the tx: me23n does. But the results in table XKONV are different, I guided my self with the INCLUDE MM06EFKO_KOND_TAXES to see how it was called. Can any one tell me what I'm doing wrong.
The different values that I'm getting for example are:
In ME23N
KSCHL = BIC0
KBETR = 18%
In my program
KSCHL = BIC0
KBETR = 10%
My code:
READ TABLE it_ekko INDEX 1 INTO wa_ekko.
READ TABLE it_ekpo INDEX 1 INTO wa_ekpo.
SELECT SINGLE waers FROM t001 INTO iv_waers
WHERE bukrs = wa_ekpo-bukrs.
it_taxcom-bukrs = wa_ekpo-bukrs.
it_taxcom-budat = wa_ekko-bedat.
it_taxcom-waers = wa_ekko-waers.
it_taxcom-kposn = wa_ekpo-ebelp.
it_taxcom-mwskz = wa_ekpo-mwskz.
it_taxcom-txjcd = wa_ekpo-txjcd.
it_taxcom-shkzg = 'H'.
it_taxcom-xmwst = 'X'.
it_taxcom-wrbtr = wa_ekpo-netwr.
it_taxcom-lifnr = wa_ekko-lifnr.
it_taxcom-land1 = wa_ekko-lands.
it_taxcom-ekorg = wa_ekko-ekorg.
it_taxcom-hwaer = iv_waers.
it_taxcom-llief = wa_ekko-llief.
it_taxcom-bldat = wa_ekko-bedat.
it_taxcom-matnr = wa_ekpo-matnr.
it_taxcom-werks = wa_ekpo-werks.
it_taxcom-bwtar = wa_ekpo-bwtar.
it_taxcom-matkl = wa_ekpo-matkl.
it_taxcom-meins = wa_ekpo-meins.
it_taxcom-mglme = wa_ekpo-menge.
it_taxcom-mtart = wa_ekpo-mtart.
APPEND it_taxcom.
*Obtiene las condiciones de impuesto.
CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
i_taxcom = it_taxcom
dialog = 'X'
display_only = 'X'
IMPORTING
e_taxcom = it_taxcom
TABLES
t_xkomv = it_xkomv
EXCEPTIONS
OTHERS = 01.
Thanks guys if you have something about this.
Felipe
Hi Felipe,
I am using this code:
*& Form ZF_READ_KOMV
* text
FORM zf_read_komv USING i_ebeln TYPE ebeln
i_ebelp TYPE ebelp
CHANGING e_tkomv TYPE komv_tab.
* Local Structe
DATA:
ls_ekko TYPE ekko,
ls_ekpo TYPE ekpo,
ls_lfa1 TYPE lfa1,
ls_j_1b_taxcom TYPE j_1b_taxcom,
ls_taxcom TYPE taxcom.
CLEAR ls_ekko.
SELECT SINGLE *
INTO ls_ekko
FROM ekko
WHERE ebeln EQ i_ebeln.
CLEAR ls_ekpo.
SELECT SINGLE *
INTO ls_ekpo
FROM ekpo
WHERE ebeln EQ i_ebeln AND
ebelp EQ i_ebelp.
CLEAR ls_lfa1.
SELECT SINGLE *
INTO ls_lfa1
FROM lfa1
WHERE lifnr EQ ls_ekko-lifnr.
ls_taxcom-bukrs = ls_ekpo-bukrs.
ls_taxcom-budat = ls_ekko-bedat.
ls_taxcom-waers = ls_ekko-waers.
ls_taxcom-kposn = ls_ekpo-ebelp.
ls_taxcom-mwskz = ls_ekpo-mwskz.
ls_taxcom-txjcd = ls_ekpo-txjcd.
ls_taxcom-shkzg = 'H'.
ls_taxcom-xmwst = abap_true.
ls_taxcom-wrbtr = ls_ekpo-netwr.
ls_taxcom-lifnr = ls_ekko-lifnr.
ls_taxcom-land1 = ls_ekko-lands.
ls_taxcom-ekorg = ls_ekko-ekorg.
ls_taxcom-hwaer = ls_ekko-waers.
ls_taxcom-llief = ls_ekko-llief.
ls_taxcom-bldat = ls_ekko-bedat.
ls_taxcom-matnr = ls_ekpo-matnr.
ls_taxcom-werks = ls_ekpo-werks.
ls_taxcom-bwtar = ls_ekpo-bwtar.
ls_taxcom-matkl = ls_ekpo-matkl.
ls_taxcom-meins = ls_ekpo-meins.
ls_taxcom-mglme = ls_ekpo-menge.
ls_taxcom-mtart = ls_ekpo-mtart.
* Fill tax fields relevant for PO
CLEAR ls_j_1b_taxcom.
ls_j_1b_taxcom-txreg_sf = ls_lfa1-txjcd.
ls_j_1b_taxcom-txreg_st = ls_ekpo-txjcd.
ls_j_1b_taxcom-taxbs = ls_lfa1-taxbs.
ls_j_1b_taxcom-ipisp = ls_lfa1-ipisp.
ls_j_1b_taxcom-brsch = ls_lfa1-brsch.
ls_j_1b_taxcom-mtuse = ls_ekpo-j_1bmatuse.
ls_j_1b_taxcom-mtorg = ls_ekpo-j_1bmatorg.
ls_j_1b_taxcom-ownpr = ls_ekpo-j_1bownpro.
ls_j_1b_taxcom-steuc = ls_ekpo-j_1bnbm.
ls_j_1b_taxcom-matkl = ls_ekpo-matkl.
ls_j_1b_taxcom-vrkme = ls_ekpo-meins.
ls_j_1b_taxcom-mgame = ls_ekpo-menge.
ls_j_1b_taxcom-loc_pr = ls_lfa1-txjcd.
CALL FUNCTION 'J_1B_SAVE_TAX_FIELDS'
EXPORTING
i_taxcom = ls_j_1b_taxcom.
CALL FUNCTION 'J_1B_NF_PO_DISCOUNTS'
EXPORTING
i_kalsm = ls_ekko-kalsm
i_ekpo = ls_ekpo
IMPORTING
e_ekpo = ls_ekpo
TABLES
i_konv = e_tkomv.
CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
i_taxcom = ls_taxcom
TABLES
t_xkomv = e_tkomv.
ENDFORM. " ZF_GERAR_KOMV
Best regards,
Similar Messages
-
HT4864 How can I change my iCloud email to my AppleID email they are not the same
How can I change my iCloud email to my AppleID email? They are not the same and somehow were switched by my teenage daughter. I can access the account and change anything except my iCloud eMail account.
Hi itsjeffb,
If I am understanding you correctly, it sounds like your daughter may have set up an alias account under iCloud. Your AppleID email address may or may not be the same as you iCloud email address, depending on how it was set up. The following articles provide more information about iCloud email addresses and how aliases work under iCloud:
iCloud: About your icloud.com, me.com, and mac.com email addresses
http://support.apple.com/kb/HT2623
iCloud: Using your @icloud.com email address
http://support.apple.com/kb/HT5441
iCloud: Create or change email aliases
http://support.apple.com/kb/PH2622
Cheers,
- Brenden -
The song palying and the album are not the same.
When I'm playing my music on my iphine, the song and the album are not the same. Sometimes they are not even close to the same thing.
hi
You have to click on the song with the right click (or Option Click) and click on get information,
in that menu you can define the order in the album -
Can Anyone help with syncing my contacts are getting duplicated and there is a file from my computer and they are not the same it is driving me carazy can anyone help?
Are you in DSL? Do you know if your modem is bridged?
"Sometimes your knight in shining armor is just a retard in tin foil.."-ARCHANGEL_06 -
Hierarchies are not the same as in R/3
Hi experts !
My Hierarchies in BW we are not the same as the source hierarchy in R/3.
They are not time-dependant, and the upload is scheduled every night, and gives no error messages.
Is there any known issues here?
I'm in the 7.0 version, but the upload for the hierarchy is in the old version.
The source hierarchy for account is using intervalls. Is that a problem ?
Thankfull for good advise !
Is there a possibility that the production bw is loading from the wrong client.. ?
That the RFC connection secretly gets the Hierarchies from elsewhere...
Message was edited by: Ingrid
Ingrid HusbyI had not found the button for choosing the last hierarcy in the infopackage..
-
I have an iMac OS X Version 10.5.8 but I also have a MacBookPro 10.7.5 version, why software updates are not the same? For example, the way to see how much memory I have in my iMac is diferent than MacBookPro. And where I can see the memory of the disc I've got in my iMac? Than you very much.
If you want everything the same on both computers you need to be running the same OS X version. You can't because your iMac is a PPC machine, not Intel.
But to see information about your hard drive is the same for both. Simply select the drive icon on the Desktop. Press COMMAND-I to open the Get Info window. Disk information is in the upper panel. -
"Batch NO SALEAB. and valuation type 1ST CHOICE are not the same"
Hi MM guru,
Please help me with the error message - "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" encountered during MB1b transaction.
Thanks in advance,
IramHello Amuthan,
I'm using mov type 311 and the material is not batch managed. I've entered the supplying & receiving batch and then error "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" was encountered, I found out that in table MCHA that the batch & valuation type for this material is not the same thats why its showing the error. Can you please guide me on how to maintain the data in table MCHA? What configuration we need to set?
Thanks in advance,
Iram -
Personal area and EE subgroup of Infotype 01 and 77 are not the same. Help!
Hi All,
Good day.
I read your thread here and I guess we have a common problem. Can I ask for your help?
I run the program RPURACU0 to update the new race and ethnicity data in infotype 77. But why it changed the Personnel Area and Employee Subgroup. Only the race and ethnicity codes should have been changed and not the Personnel Area and Employee Subgroup.
Please help me what causes these discrepancies in data.
Example:
In PA20, enter personnel number 7600634. Personal area = US81 and EE Subgroup = U0. But when displaying infotype 77 the Personal area = US02 and EE Subgroup = U1.
The personal area and EE subgroup of infotype 01 and 77 should be the same. In this example, they are not the same. Please help me to find out what causes this problem.
Please reply asap because this problem should be solved immediately.
Thanks in advance.
CarinaHi GRM,
Thanks for your reply.
I checked the date from the table and I found out that:
P0001-ENDDA not equal P0077-ENDDA
P0001-BEGDA not equal P0077-BEGDA
Please reply asap.
Thanks,
Carina -
Combo chart- left right y-axis scale are not the same scale
http://img20.imageshack.us/img20/6264/questionk.png
the left and right axis scale are not the same.
how to set it?
Thank you very much!Hi,
Try this
In Chart, Goto Advanced properties -> check Synchronize Line and Bar Axis
This will make both scale values same.
Thanks,
Vino -
iPad changed to Suomi language can't set it back to English. The settings are not the same as the advice given by support???
Just follow this:
http://support.apple.com/kb/ht2371 -
Why am i getting this error? they are not the same?
1021: Duplicate function definition.
1021: Duplicate function definition.
stop();
import flash.events.MouseEvent;
// home button definition \\
// Portfolio button definition \\
Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
function pClick(event:MouseEvent):void{
gotoAndStop("getPortfolio");
// Contact Me button defintion \\
Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
function cClick(event:MouseEvent):void{
gotoAndPlay("contactme");
why am i getting this error the functions have different names... idk what to do they are for two different buttons I am using action script 3.0i did what u said and it said these two lines were the same
// Portfolio button definition \\
Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
function pClick(event:MouseEvent):void{ <--------this one
gotoAndStop("getPortfolio");
// Contact Me button defintion \\
Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
function cClick(event:MouseEvent):void{ <--------and this one
gotoAndPlay("contactme");
it gave me the same error but they are not the same -
I want some of the same apps available on my iphone and ipad2 to be available on my macbook pro app store and to be able to link them through icloud. Is this not possible? If not, why not?
The Mac uses Mac OS X and iDevices use iOS. These are two different operating systems and the apps must be written for each operating system specifically, even when the apps go by the same name, such as the iWork apps, they are two ifferent versions of the same app for the two different platforms.
So, as an example, Safari has been written for three different operating systems, Mac OS X, iOS and Windows. And the Safari apps, as similar as they are visually, are not interchangeable for the different platforms. -
I want to have all my local iPhone Contacts in the cloud to have them also on my iPad.
iCloud only saved 36 from 225 total Contacts. My IPhone Contacts are saved on the iPhone itself, but how can I Transfer them into the cloud?The Mac uses Mac OS X and iDevices use iOS. These are two different operating systems and the apps must be written for each operating system specifically, even when the apps go by the same name, such as the iWork apps, they are two ifferent versions of the same app for the two different platforms.
So, as an example, Safari has been written for three different operating systems, Mac OS X, iOS and Windows. And the Safari apps, as similar as they are visually, are not interchangeable for the different platforms. -
I have different users on my computer, me, spouse, etc. We share the same email. I have thunderbird loaded correctly in one account. In the other account it only grabs the inbox messages, not the sent messages. How do I get it so both thunderbirds work in both accounts on the same computer? Right now I need to switch user to view the sent emails that are sent from the other account.
IMAP will sync messages, but if your sharing on a single computer you would probably be better off sharing the same profile. It is not as if you will both be using it at the same time. The information in this link should help with that.
http://kb.mozillazine.org/Moving_your_profile_folder_-_Thunderbird -
Contacts on iPad are not the same as iPhone after iPad restore
I had to restore my iPad as i had forgotten the password 10 times (dooh!)
i had to create a new itunes as effectively it was a new ipad.
Everything is generally fine apart from;
1) the contacts on the iPad are different from my iphone. I am scared to plug in my iPhone to iTunes incase I mess up my contacts on there.
2) the mailbox set upon my iPad is way different too, for example I now only have an inbox, trash and sent, no junk or others that there were before.
As I said before I am scared to plug my phone in incase it messes my contacts up. e.g it takes the iPad info. and deletes the iphone data. But if that is the only way to do it so be it. And one other thing, I'm not a techno geek, plain words are good for me!
I hope someone can help me please.. Thank you.The Mac uses Mac OS X and iDevices use iOS. These are two different operating systems and the apps must be written for each operating system specifically, even when the apps go by the same name, such as the iWork apps, they are two ifferent versions of the same app for the two different platforms.
So, as an example, Safari has been written for three different operating systems, Mac OS X, iOS and Windows. And the Safari apps, as similar as they are visually, are not interchangeable for the different platforms.
Maybe you are looking for
-
How to change SSO Partner Application Login_url and Logout_url
As part of a deployment in a different data centre, we needed to change the domain name of an application using SSO for authentication. We have gone through the process of re-registering the SSO server but this does not update the domain name By usin
-
Problem with getRealPath in the class ServletContext
this is a bug in tomcat 4.1 ServletContext scon=getServletConfig().getServletContext(); String path = scon.getRealPath("index.html"); this lines return the path of the archive index.html but with a caracater of espace example: C:\Archivos de programa
-
Export slideshow with quicktime
I want to export my slideshow as a movie. The problem is that I want to chance my resolution to 720X576 (I live in the PAL world). But the export dialog box only gives 3 choices. Strange, since quicktime can handle HD. Any thoughts?
-
Hi, we have updated our System to SPS 14 (MW+BE) to make our clients vista ready. I have create a new setup package and updated the Java version of the client to jdk 1.5.0_11. After Starting the client I get the "Time Out 61 Error". The Startup Outpu
-
I want to be able to catch errors that occur during the execution of Matlab code in a LabVIEW Matlab script node. According to my understanding of the documentation, errors of this type should be available at the "error out" signal point on the Matla