SAP - how to get dynamic table and content - abap

I have one question which is getting me really tired lately, since I cannot find anything that could help me.
I have one SAP Smart Form, which is called by my ABAP program, but the thing is that once I call, I want to have on the main window some data coming, like:
I have these fields as you'll can see in the image below:
What I wish to do is to read the table wa-data. Ex:
wa-data-day
wa-data-day_des
wa-data-ctimb
Once I read these data, I need to put it to print in the respective fields, example:
day in the column 1, line 1,
day_des the column 2, line 2.
And then respectively, to fill the form.
Does anyone have tips how I can do that by SMARTFORMS transaction?
Thank you so much for any help guys.
I need to sort it out, getting the solution for this, how can I do that? What is the right steps to do?

Related

So, RStudio 2022.12.0 Build 353 does not show the last rows of the tibble in the R-document file. Anyone knows the solution, please

so, I have this data in the tibble displayed in the R-document. The first rows are shown fine the image of the first rows in the R-document, but the last are not shown (its just empty tibble, which has the data, but these cannot be seen cause I like can copy some of them) the image of the last rows in the R-document. The same thing is happening if the data were in the dataframe. Does anyone know how to overcome this issue, so in the R-document, one can see all the data clearly? Thanks in advance.
I can look at the data with View(), no problem, but it is not the way I want the reader to see the data as it's like a different window and not in the R-Document. I expect these last rows be either non-present or show the actual data.
ok, never mind. I just found a temporary and the best-at-the-moment solution, which is to use the function print.data.frame(). Though, it has not a good view like when you do it using the print() function, but it prints all the data (first rows) (last rows).

Compare Dates in a column corresponding to Changes in an other row

I have a large sample of medical data I need to try and analyze patterns in Excel worksheet.
I also put them up in a database in MS ACCESS to do my first filters and stuff.
I have the infos of patients, with tests results(POS or NEG), dates of the sample.
I need to be able to check for each patients when the results change from POS to NEG and from NEG to POS
and compare the dates of those two samples.
So far I was doing it manually which isn't viable for my sample.
I was trying to do something in SQL, but that didn't work out for me.
I also am trying to do some VBA or Excel formulas but I admit I'm getting kind of stumped.
I know I should do some for each cell loop or something but I really am lost.
I already grouped each patients info together using sub-totals and stuff.
Your help or at least pointers would be greatly appreciated :D
Here's an example of my data.
enter image description here
Use a formula like this, that in case the name is the same as the row before and the POS/NEG is different from the row before gives you the number of days in between, blank otherwise:
Of course it will give you an error if you try to use it on the 1st line, just enter it in the 2nd line and copy/paste in all the rest.
This should give you the basis for the rest of your analysis.

Power Query result doesn't match returned data

This is a cross-post from the PowerBI forum:
I'm new to Power Query (Desktop) having previously only used it within Excel.
I have an SQL query source that returns the following data when viewed in the Power Query Editor:
yet in my report I get the following values for the Cabinet_DocID and Editor_ID:
I'm at a loss to explain what has happened to the values highlighted in red above. Why are they displaying as either 1 or two?
The only difference I can see in the source data between the columns that are correct/incorrect is that the values which were changed are numbers not text.
I feel like I am missing something stupid, but can't figure out what it is.
Any help greatly appreciated.
Thanks,
Alex.
PS. It seems like this response to the same problem might answer my question but I haven't done anything to either of these columns so I'm confused AF right now.
Okay, so it seems the numbers appearing were as a result of the values being numerical.
My initial attempt at changing the format to text lead to frustration because I didn't realise that the report doesn't automatically update the displayed format of any data displayed until you deselect and re-select all the columns.
This seems like a flaw to me, but I guess it's working as designed..?

Get concrete value in Pentaho Report Designer

Let me explain my problem,
in Pentaho Report Designer I want to build such a report, where I have one data set, i.e. one request to database
SELECT code, name FROM EMPLOYEES
and show result of this request not in the form of list, but put every result in appropriate place. i.e. like in below picture
Where field "code" is unique, just one result can be put into red label in picture.
How can I do this in Pentaho Report Designer?
I can solve this problem by creating 3 data set, for each of caption. But what if captions like this will be much more, creating requests for each of this caption will not be so effective.
Hope I could explain my question.
I don't know if I got it right, but If you want to use the values returned by your query, you could create a new formula called "your_formula":
=MULTIVALUEQUERY("name_of_your_query")
This will give you an array with the result of the query. Then you could use another formula to get the 1st result of the array. For example:
=ARRAYLEFT([your_formula])
and get the first result of your query. This way let you use your_formula as parameter. This means you can drag and drop it on your report and use it.
I hope it helps.
Regards,
Tatan.

Display row with condition in Pentaho Report Designer

Assume I have one data set with following fields:
Name, Amount, Time, etc
How can I display only those records with Amount > 100, for example?
Since I need this data set for other report, I can't filter these records when I prepare data set.
I searched around, but couldn't find any answer. I will really appreciate if anyone can help.
By the way, I used Pentaho Report Designer 3.9.
Thanks a lot.
Yes, you can.
You have to find your Details Band - not Details Body -, within your Report Structure, and set up the Style Attribute visible the expression:
=if([Amount]>100;true();false())
Besides, if you want your summaries to consider only the shown data, you can also add an Open Formula function field, that would say:
=if([Amount]>100;[Amount];0)
And you'd summarize it at the end of the report.
Here's the link with the full example built to your situation.