05-12-2016 5:44 PM
Hi,
In have POSDM (CAR-POSDTA) feeding POS Sales into ERP.
We want to pass tax amount(not percentage) captured in the tlog to erp, i.e we do not want erp to calculate tax for us.
The challenge we have is that tax code is not being determined in the accounting document when POS Sales is process in ERP
The standard pricing procedure POS000 is build to calculate taxes in erp and uses condition type MWSI.
We copied this condition type and tried many permutations combinations - changing values etc for the marked fields but are still unable to determine the tax code.
Regards,
Dheeraj
05-12-2016 6:45 PM
Hi Dhiraj,
We had similar requirement in one of the earlier project and this is what i had done to achieve this.
In the POS inbound pricing procedure, we had 3 lines for taxes to get the value from POS and derive tax code in ECC.
So with these 3 lines, the tax amount will be taken from POS and tax code will be derived in SAP.
Let me know if you need any other help.
Regards,
Amit
05-12-2016 11:33 PM
HI Amit,
Your idea looks very promising and you wrote it in great detail. Appreciate it.
Let me try this out and get back to you.
REgards
dheeraj
05-26-2016 2:53 PM
Hi Amit,
I am working with Dheeraj to put this in. We have it in but the issue we are running into is that the second condition type needs to post to a GL account in order for this to work.
Did you do anything to get around this? We only want the third condition to post to the GL account.
05-26-2016 3:08 PM
Hi Nathan,
Can you please provide the screen shot of your pricing procedure. If there is any custom routine you had attached, please provide that as well.
This will help to compare what is the different.
Regards,
Amit
05-26-2016 3:37 PM
This is how that section of the pricing procedure looks right now:
This is the custom routine we have put in:
And this is the error message we receive when we try to process the idoc:
05-26-2016 3:42 PM
05-26-2016 3:59 PM
Hi Nathan,
Give me sometime, once I have an access to the system, will do the needful and revert you.
By the way, how did you figured out the issue is caused by second condition type only?
One observation, I did inserted these condition types at the top of my pricing procedure to copy the derived tax code to the conditions below. This will ensure, relevant financial posting will happen with correct tax code.
Regards,
Amit
05-26-2016 4:33 PM
I figured out it was the second one by a combination of research and trial and error. If basically if i set the second condition to not be statistical and give it an account key & GL account, than it works perfect. it assigns the tax codes to the other conditions just like you said it would.
The problem then is that we dont want the second condition to go to the GL account, we want the third to go to the GL account.
05-26-2016 5:07 PM
Hi Nathan,
This is what we did. A snap of three condition types in pricing procedure. I have captured only relevant part.
Here, first condition type ZMW0 is an exact copy of standard MWST. It should be statistical with given requirement and BasType.
Second condition, ZMWS is given below:
This condition type is also reference of MWST but the since I will be receiving tax amount from POS in this condition type, the Manual entries is set to C as highlighted. Please note calculation type is B as I am going to receiving value.
The third condition type ZMW1 is the condition type linked to account key.
Here, condition class and condition category is NOT set to Tax. Because using a routine, I am putting the values and other tax relevant information. This condition type does not take any reference from MWST and this is also not a copy of MWST.
I am not able to access the routine now, but in routine I have mentioned to take the condition base value from subtotal F. You will see in pricing procedure that the value I am getting from POS in ZMWS, I am putting it into subtotal F.
I will try to get you the routine logic once I have access.
Let me know if you need any more details.
Regards,
Amit
05-26-2016 5:20 PM
Hi Nathan,
The routine has only 1 line.
xkwert = xworkf
Make sure you manage your subtotals accurately. Other net value calculation will be affected.
Regards,
Amit
05-26-2016 6:43 PM
Just out of curiosity, how long ago did you implement this?
I am finding some information online that the error message i am getting could be caused by a note that was put in several years ago. therefor i could be running into an issue which you did not face which is causing this not to work for me.
If you have access to it, could you take a look at Function Module: FI_TAX_SV_BSEG_BSET_GROSS
Around line 158, see if you have had note 2051203 applied.
If you did than this could be causing my issues and i will need to look into commenting this out.
Thanks
Nathan
05-26-2016 6:52 PM
Hi Nathan,
Did the steps i had given above helped you? Was there any difference?
I have checked the function and the note you had mentioned is not applied there.
Regards,
Amit
05-26-2016 7:01 PM
I put them in and got the same issue as i was getting before.
I found this thread which is getting the same message as i am:
https://scn.sap.com/thread/825239
it is saying that this message could be from this section of that function module. I will ask my developer to see if we can put some breaks in and pinpoint if this is actually causing the error message.
05-26-2016 7:55 PM
HI Nathan,
I had given all details of my setup and its all working fine.
Try these steps and let us know.
Regards,
Amit