How to view SN history of the PWO? - sap-erp

Is there a T-code or a table that can retrieve the history of multiple serial numbers along with the Production Work Order (PWO) associated to the Serial Numbers (SN)?

You can try this:
Go to IQ02/IQ03 transaction aka "Change/View material serial" and enter the material and serial number
Click History button at the bottom of the SerData tab
Voila! You can see all the documents that are linked to this serial: notifications, orders, etc.

Related

MoonMail: Tracking clicks per email

I'm looking to extract a list of email addresses belonging to users who clicked a specific link in a MoonMail email campaign. Is this possible? The documentation only states there's an incrementClickCount function, but doesn't describe individual tracking or filtering.
The same happens with opens.
The function saveClicks stores the information about a link click in Clicks DynamoDB table. It contains campaignId, linkId and recipientId (which is the Base64 representation of the email)

Add FIRST Attachement (picture) to a report in access

I have a table [List_Models] which has 3 fields
PK - Model_ID (num)
Model_Name (txt)
Picture (attachment)
A certain model has plenty of colour combinations (one has 52) and so 52 pictures attached.
On my report, however, I simply want to attach first (or any) of those pictures, as long as it is a correct model.
Basically no matter colour combination, simply show a picture so it is easier to visualise the model itself.
How do I go about this in the easiest way?
I have made a query to fetch first picture from the attachment (ie. 2 columns, Model_ID, Picture.FileData). Here is the syntax:
SELECT Zoznam_Modelov.Model_ID, Zoznam_Modelov.Picture.FileData
FROM (SELECT Zoznam_Modelov.Model_ID, Max(Zoznam_Modelov.Picture) AS MaxzPicture FROM Zoznam_Modelov WHERE (((Zoznam_Modelov.model_id) Is Not Null)) GROUP BY Zoznam_Modelov.Model_ID) AS U_Pic
INNER JOIN Zoznam_Modelov ON U_Pic.Model_ID = Zoznam_Modelov.Model_ID
WHERE (((Zoznam_Modelov.Picture.FileName)=U_Pic.[MaxzPicture]));
Then I tried attaching the FileData to the report in this way:
Make Attachment field in Form
Set Control Source as:
=DLookUp("Zoznam_Modelov.Picture.FileData";"qryUnique_Pictures_Data";"Model_ID = " & [Model_ID])
However, it remains blank.
How do I go about this in the easiest way?
Just open the report in Design View, then drag and drop the Attachment field onto the report. That will add an Attachment control that is bound to the Attachment field. The default settings will display the first attachment (picture) on the report like this:

Trac Advanced Reports

I have a trac report that displays how many tickets are at each stage of the workflow. Is it possible to make reports dynamic, so if a row is clicked a report for those tickets are shown.
SELECT stage,
count(status) as 'Number of Matches',
id as _id,
'[..1] Tickets Here' as link
FROM ticket
Failing that, it would be useful to have a link to another report that shows all the tickets at that stage but links are seen as text in the report.
[..1] Tickets Here
You can also make dynamic reports using wiki pages. Personally, I find that to be the easier approach most of the time.
For your purposes, you could have something like this:
== Open Tickets, By State ==
[report:4 New] ([[TicketQuery(status=new,format=count)]])\\
[report:5 Accepted] ([[TicketQuery(status=accepted,format=count)]])\\
[report:6 Code Review] ([[TicketQuery(status=codereview,format=count)]])\\
[report:7 Testing] ([[TicketQuery(status=testing,format=count)]])
This will result in output that looks like:
New (40)
Accepted (12)
Code Review (8)
Testing (17)
where the name of the state is a link to a detailed report listing all of the tickets in that state. You will need to create a report for each state and fill in the correct report numbers for the report:# links in the example.
If you are interested in viewing this information per milestone then you might do well to customise your milestone page instead of creating a separate report. This page explaining how to create custom state groupings in the milestone progress bar will be useful to you in such case.

Copying MySQL Blob Rows - to other rows with a different username

OK - I updated from Horde Webmail 3 to Horde Webmail 4.
In that transition, the 'horde_prefs' table now shows that the 'pref_value' field is of type BLOB. Previously, it was of type LONGTEXT.
When setting up new accounts, I want to give all of the users default preferences before the user logs in - to ensure that they all have the proper default preferences.
Before, I simply created a PHP script with all of the default values as SQL entries - and inserted them with the username. Now, because these are BLOB entries, I cannot do so.
So in essence, the table has four fields:
pref_uid (the username)
pref_scope (the application that the preference is set for - like horde, ingo, imp, etc)
pref_name (the name of the preference - such as last_login, last_maintenance, etc)
pref_value (the BLOB entry that contains the actual preference)
So - there might be 20+ rows for one user account and all the preferences.
I'd like to copy all of the rows from one user (say tester#test.com) to make the default preferences for the new user (say newuser#test.com)
Is there any way that this can be done?
Thank you!
It is possible like the following:
insert into horde_prefs(pref_uid, pref_scope, pref_name, pref_value)
select 'newuser#test.com', pref_scope, pref_name, pref_value
from horde_prefs
where pref_uid='tester#test.com'
the insert into .. select .. works with blobs too.

Setting the APP_USER as a value to be passed to target page in APEX

I'm making a student management system on apex. The short of it is a place where lecturers and students can log on. Lecturers create assignments, assign them, mark them, take attendance, record issues ...... all that, and students log on to view their attendance and results.
Now when a student clicks the "My Results" link it navigates to the same page that a lecturer sees, though the select list where a student is selected to view the results of is hidden. The select list displays the students name and returns the id for that student, which also happens to be the user name for a student to log in.
So i want to pass the value of the app-user when a student clicks the link so that only their results are shown.
I've tried to set
these items
:P10_SELECT_STUDENT
with these values
#APP_USER#
which works but no the message "no data found" is shown.
Just for testing i've set that select list to be displayed for a student, and when the page loads it loads with the null value at the top of the list which is
display value
select a student
return value
-1
I've gone and manually set the value passed to be the id of the test student. works a treat, the data loads for that student!!
So does anyone know why the #APP_USSER# value im sending isnt being set in the listbox
Thanks in advance
What you need is the session state of the APP_USER variable. In a query you would reference this with :APP_USER. When you need to pass on the value as a parameter for, for example, a link, you would use the substitution string notation &APP_USER. Much the same way you would refer any other variable/page item.
For example, setting up a button:
A good page to read up on Substitution strings: Application Builder Concepts
The hash-sign notation is commonly used for non-plsql-variables substitution, like the value of a column in report when passed through in a link,
Zac,
If the users haven't authenticate themselves then the :APP_USER parameter is null. If the user authenticated via a SSO, or via DB credentials or whatever you have in the application then the :APP_USER will get populated.
Here is what i understood :
In page 12 , P12_STUDENTS is a select list, and you want it to reflect the current student if he enters or the full list if he's a teacher right?
You don't need to pass :APP_USER via a link or a branch or whatever. It exists as a global Apex variable and is visible in page 12 via :APP_USER but again , its null if the user is not authenticated.
Your select list source should be like:
select display d, return r
from table
where (:APP_USER is NULL
OR (:APP_USER IS NOT NULL AND :APP_USER = student))
tell me if this helps?
regards,
Alex