Calculate TVA amount in Transaction FB01 - sap-erp

At the last screen of my Batch Input, normally TVA amount should be calculated, but as shown in screenshot it's not calculated automatically.
In screenshot:
is the amount the must be calculed
the reason why the amount is not calculated in supposedly second line 1.
do someone have an solution to calcule it ?
Thank you,
Best Regards,
Yassine

Related

pine script calculating wrong position sizing

i am trying to calculate the size of a trade based on a fixed amount of risk.For example i am trying to take a risk of 10$ on a short position and my stop loss is previous candle high so the code follows
size = 10 / (high1 - strategy.position_avg_price)
but to my surprise the strategy tester shows the wrong quantity as shown in the image. The position price is 5.058 and stop loss price(previous candle high) is 5.208, so according the formulae
size=10/(5.208-5.058) which equals to 66.66 but the tester shows 50.761. Am i doing anything wrong? Please help me.
attached image

SSRS add Horizontal gridlines on Tablix to occupy the remaining space of report body in PDF format

I know this question has been asked multiple times and were already answered using workarounds multiple times also. But just in case this 2021, someone might have a better solution for this.
What I have tried so far:
Background Image - It's hard(impossible) to align the contents perfectly.
Adding additional table rows and show/hide them based on row count. - Sometimes a row content could occupy more than 1 rows, thus generating an extra page.
This is my desired output.
But then, this inevitably happens:
Any suggestions, workarounds, opinions are gladly accepted. If ever an official solution exists, much better. Thanks.
Add additional logic to your hidden logic to account for the extra space in the Remarks.
This will add additional rows for every 60 characters:
CountRows() + SUM(INT(LEN(Fields.Remarks.Value) / 60))
You may have to play with the 60 number - it's just a guesstimate based on the remarks in your example. It won't be perfect since two text lines don't quite make up a single row but it should be close.

How to make a drop down list as wide as its biggest item

I have a drop down (Combo Box) in MS Access that I would like to make as wide as it's biggest item. At the moment it's currently set to the following:
ListWidth 3.5"
ColumnWidths 1.75";1.75"
This is ok for values that are smaller than this but a problem occurs when longer values come in. I googled the question and found a way to dynamically make a drop down bigger here but this seems rather complicated for what I want.
Does any one have any suggestions - like would it require iterating over the source contents, checking each individual value for its length and if its bigger than the biggest to that point - set it as the biggest and move on until the end of the values is reached.
Thanks
First I would do a query with the SQL string
SELECT TOP 1 * FROM Table ORDER BY Len(Field) Desc
Then create a recordset, do a movefirst and finally multiply the length of the string with the size of one character.
Sorry for any fault in my text. English is not my first language.

Fixed number of rows In Access Report

I am having tried a access 2007 report with fixed numbers of rows (records) per page. For example, I like to fix total number of records (rows) to 10 per page while underlying query might have 5 records in some criteria or 15 records in some case. If any idea, please share me.
TIA
ProNek
You can us a pagebreak with the visible property set to false and then make it visible when a counter reaches the relevant number.
Further information: http://support.microsoft.com/kb/119075
You can count and insert page break on the report's body (or section) format event.
This event fires on every record. You can place a pagebreak at the end of the section and make it visible when you need to print on next page.

How can I make the column widths of a list box in MS-Access2007 automatically size themselves correctly?

Background info:
I was handed a "Tool", which was made using MS-Access 2007, and asked to add some things... The tool is basically a collection of options for querying a database. On a form titled CreatedReport there is a listbox that is bound to a table called analyzed which has all of resulting data from the query/queries that ran. The original creator of this tool set the column widths to specific values but with the new collection of possible results, those widths are very far off.
Desired Outcome:
The final result I want to achieve is, of course, to have the columns be the correct widths for the info that is in the columns. As long as that is achieved, I really don't care which route I have to take to get there.
Question:
How can I get the columns in a listbox in MS-Access 2007 to be sized appropriately for each use? Is there an auto-size feature I haven't stumbled across yet or do I need to hard code the set of column widths for each group? This wouldn't be too hard to do since there would only be about 4 or 5 different groups but I would prefer for the process to be automatic if at all possible.
Another approach would be to have the results returned in a sub form datasheet view, then the user can adjust the column widths also to set the widths automatically use code like this:
Example
This example takes effect in Datasheet view of the open Customers form. It sets the column to fit the size of the visible text.
Forms![Customers]![Address].ColumnWidth = -2
You could put this code into the Current Event of the sub form.
I don't think that Robert Harvey's answer is actually responsive to your question.
What you need to do is:
calculate the maximum length of the values in each column,
AND
figure out, based on the font in use, how wide the column should be.
Note that you may not actually want to set it to the maximum width if the value exceeds a certain threshold.
I don't know to do the second taks, but I suspect Stephen Lebans has already done the work on it. You might want to search his website for it.
Last time I checked, you still had to write code for this.
Your best bet is to use a resizer someone has already written. Here is a good one. It's old, but it shoul still work:
http://www.jamiessoftware.tk/resizeform/rf_jump.html
This is a quick solution that should help when you want to set up listview columns of different widths, and you know in advance the widths you want (eg, you know that column X will always be a 2-character State abbreviation, and column Y will always be a city name).
Just supply all the widths as a single semi colon-delimited string. Code each width as a number and a unit, such as 'in' or 'cm'. This worked well for me: Me.lsvPayHist.ColumnWidths = "1.0 in;0.8 in;1.0 in;1.0 in;2.0 in"