08-08-2007 9:15 AM
Hi all,
I'm currently using the FM MRM_INVOICE_CREATE to park gr/ir-invoices. I'm not able to use the BAPI at this point because the correnction indicators from the EDI have to be used for the document.
The parking works fine just right now, the only problem I have is the VAT. I can set the flag "Calculate tax" which would work but I need to enter the tax amount directly. For this, I entered the tax amount in the field WMWST1 in the input structure I_RBKPV but the value isn't passed to the document. Does anyone have an idea if there is a flag that needs to be filled so that the tax amount is enterd into the doument?
Thanks and kind regards,
Andreas Schilling
08-08-2007 9:25 AM
hi,
define one local variable with same data element( with same data element which has defined in FM 'MRM_INVOICE_CREATE' for the TAX field)
pass that tag value to one local varaible,
then this variable u can pass into the FM.
reward points if helpful,
regards,
seshu.
08-08-2007 11:01 AM
Hi,
thanks for your quick answer. Unfortunately, the proposed solution does not have any effect. As I have the tax amount in a database field, there is no difference between writing it first in a local variable and then into i_rbkpv-wmwst1 or write it directly into this field.
Kind reagards,
Andreas
08-08-2007 12:35 PM
Hi all,
I found the solution: In addition to the fields WMWST1 an MWSKZ1 of structure i_rbkpv, I filled the fields MWSKZ and WMWST of strucutre i_rbkpv-rbtx which seems to work...
Kind regards,
Andreas Schilling