Matrix Output in forms
Hi All,
Is is possible to display the matrix output in forms, if is possible please guide me how?
Regards,
YKING
HI
Create table Matr(
RL_Name Varchar2(20),
Ob_Name Varchar2(15),
Ob_Ver Varchar2(15),
R_Num Number )
Values are
Insert Into Matr Values ('ABC', 'X','C1234',1111);
Insert Into Matr Values ('ABC', 'Y','C1235',2222);
Insert Into Matr Values ('ABC', 'Z','C1234',3333);
Insert Into Matr Values ('ABC', 'P','C1231',7777);
Insert Into Matr Values ('DEF', 'X','C3698',4444);
Insert Into Matr Values ('DEF', 'Y','C7895',5555);
Insert Into Matr Values ('DEF', 'Z','C4563',6666);
Insert Into Matr Values ('DEF', 'Q','C1238',9999);
Required output:
RL_Name 'ABC' | 'DEF'
-------------------------------------------------------------- |--------------------------------------------
Ob_Name Ob_Ver | R_Num | Ob_Ver | R_Num
------------------------------------------------------------- |---------------------------------------------
X C1234 1111 | C3698 4444
Y C1235 2222 | C7895 5555
Z C1234 3333 | C4563 6666
P C1231 7777 |
Q C1238 9999
Regards
YKING
Similar Messages
-
F110 - output using Form and Driver program
Hi All,
I need to prepare Sap Script Form for F110 tcode.
standard scriptname to be use is F110_IN_AVIS
standard driver program to be use is RFFOAVIS_FPAYM.
but i dont know, where to assign these to F110 and check the output weather Form is displaying the data in correct way or not.
Thanks for you help.
SrinivasHi Jayasri,
Thanks for your reply, if i mentioned wrong, could you please tell me what should i mention for "Payment Advisor to Vendors".
After mentioned the form name in FBZP. How to check the output on Form using F110. Because, to execute it, when I hit "Printout", am getting jobname. With that jobname, if i go to sm37, i am getting the status has "Finished". So can't i see the output.
If i see the output, then only i can do the need full changes to my client requirement.
Could you please help me on this.
Thanks for your reply.
Satya Srinivas -
A Matrix Output for some enthusiastic students
Hi folks,
Greetings. I am trying to create a Matrix Output for some Students who have decided to take Music and/or Sports or neither. I am hoping to break it down by Age and Gender and Interest (Music/Sports).
Any help is greatly appreciated!
Thanks
Scripts to create the tables and INSERT records
create table student_tb(student_id varchar2(4), birth_date date, gender varchar2(1));
create table sports_tb (student_id varchar2(4));
create table music_tb (student_id varchar2(4));
-- INSERTing into STUDENT_TB
insert into student_tb (student_id,birth_date,gender) values ('1001',to_date('01-JAN-90','DD-MON-RR'),'M');
insert into student_tb (student_id,birth_date,gender) values ('1002',to_date('10-JUL-91','DD-MON-RR'),'M');
insert into student_tb (student_id,birth_date,gender) values ('1003',to_date('01-DEC-90','DD-MON-RR'),'M');
insert into student_tb (student_id,birth_date,gender) values ('1004',to_date('10-AUG-92','DD-MON-RR'),'F');
insert into student_tb (student_id,birth_date,gender) values ('1005',to_date('01-JAN-91','DD-MON-RR'),'F');
insert into student_tb (student_id,birth_date,gender) values ('1006',to_date('01-FEB-91','DD-MON-RR'),'F');
insert into student_tb (student_id,birth_date,gender) values ('1007',to_date('01-AUG-90','DD-MON-RR'),'M');
insert into student_tb (student_id,birth_date,gender) values ('1008',to_date('01-SEP-90','DD-MON-RR'),'F');
insert into student_tb (student_id,birth_date,gender) values ('1009',to_date('01-OCT-90','DD-MON-RR'),'F');
insert into student_tb (student_id,birth_date,gender) values ('1010',to_date('10-MAR-89','DD-MON-RR'),'F');
-- INSERTing into SPORTS_TB
insert into sports_tb (student_id) values ('1001');
insert into sports_tb (student_id) values ('1004');
insert into sports_tb (student_id) values ('1005');
insert into sports_tb (student_id) values ('1009');
insert into sports_tb (student_id) values ('1010');
-- INSERTing into MUSIC_TB
insert into music_tb (student_id) values ('1001');
insert into music_tb (student_id) values ('1003');
insert into music_tb (student_id) values ('1010');
I am hoping to have an Output in this fashion
Please note that I am not intending on adding up the Males and Females on a row by row basis. That's because its the same Student who could be occuring in each Category (MUSIC/SPORTS)
--------- MUSIC -------------------- SPORTS -----------
Females Males Females Males
Age
20 0 0 1 0
21 0 0 0 0
22 0 1 2 0
23 0 1 0 1
24 1 0 1 0
My Query - Problem: I clearly have all the data in here but I have lost the information where how many girls or boys are taking Sports, Music or Neither
select age,
sum(female) female_count,
sum(male) male_count,
count(music_student_id) music_count,
count(sport_student_id) sports_count
from
select age, male, female, students.student_id student_id, music.student_id music_student_id, sports.student_id sport_student_id
from
select student_id, trunc(months_between(sysdate, birth_date)/12) age,
case gender
when 'F' then 1
else 0
end
) female,
case gender
when 'M' then 1
else 0
end
) male
from student_tb
) students,
select student_id from music_tb
) music,
select student_id from sports_tb
) sports
where students.student_id = music.student_id(+)
and students.student_id = sports.student_id(+)
group by age
order by age;SQL> select age,
2 sum(case when gender='F' and mid is not null then 1 else 0 end) music_females,
3 sum(case when gender='M' and mid is not null then 1 else 0 end) music_males,
4 sum(case when gender='F' and sid is not null then 1 else 0 end) sport_females,
5 sum(case when gender='M' and sid is not null then 1 else 0 end) sport_males
6 from (
7 select trunc(months_between(sysdate, a.birth_date)/12) age, a.gender, s.student_id sid, m.student_id mid
8 from student_tb a, sports_tb s, music_tb m
9 where a.student_id = s.student_id (+)
10 and a.student_id = m.student_id (+)
11 ) group by age
12 order by age;
AGE MUSIC_FEMALES MUSIC_MALES SPORT_FEMALES SPORT_MALES
20 0 0 1 0
21 0 0 0 0
22 0 1 2 0
23 0 1 0 1
24 1 0 1 0 -
Displaying a matrix on a Forms 6 form
Guys:
I'm trying to figure out a way to display
a matrix on a form with three fields
2 text items and 1 check box eg.
Dept
====
Emp Finance Projects Transport ...
===
John X
Tom X
Sam X
Pete X X
Any ideas???
Thanks!
AbhayHi
I had similar problem. May be my dicision will be helpfull for you.
There are table (for simplicity) sheet(emp, day, job) with the primary key(emp, day). It's needed matrix with X axis as 'emp', Y axis as 'day' (for a one month) and 'job' as the cell.
I created block SHEET_BLOCK with the items: EMP, DAY_01, DAY_02, ..., DAY_31. 'Query Data Souce Name' is:
SELECT emp FROM sheet;
EMP is the 'Database Item', but another (DAY_??) aren't 'Database Item'.
Cteated POST_QUERY trigger for populating fields DAY_??:
DECLARE
v_dest_item VARCHAR2(80);
v_rec_num NUMBER;
CURSOR c_emp_day_job IS
SELECT day, job
FROM sheet
WHERE emp = :SHEET_BLOCK.EMP
BEGIN
IF :System.Mode != 'QUERY' THEN
RETURN;
END IF;
FOR v_emp_day_job IN c_emp_day_job LOOP
v_dest_item := ':SHEET_BLOCK.DAY_' | | v_emp_day_job.day;
COPY( v_emp_day_job.job, v_dest_item );
END LOOP;
END;
Andrew. -
Problem with AddRow() in custom matrix on System Form
Hello all,
I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
My code is simple:
[B1Listener(BoEventTypes.et_CLICK, false)]
public virtual void OnAfterClick(ItemEvent pVal)
Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
// Add matrix line
Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
pMatrix.AddRow();
// Set matrix line data
The matrix shows ok in the system form, inside a new folder.
What is the problem with my code?
Is there any way to add rows to a custom matrix in a system form?
This code runs ok if executed in a custom form...
Thanks!
Manuel Diashi.
R u facing any problem ...
actually add row and del row both are same.
in normal customization form and system form matrx...
Any problem are u facing... -
SSRS - How to achieve multiple instances of a matrix output in a single page?
Hi,
I am in a scenario where I am supposed to build a report aggregated on Sales for each store in a city.
I have a data set like this.
City Store Name Yr Sales
C1 S1 2000
100000
C1 S1 2001
150000
C2 S2 2000
200000
C2 S2 2001
250000
C2 S3 2000 300000
C2 S3 2001 300000
Now my report has to be displayed in this way:
C1
Yr S1
2000 100000
2001 150000
C2
Yr S2 S3
2000 200000 300000
2001 250000 300000
How do I achieve this..? I tried to use Matrix report but not able to arrive at the required result.??
Can someone please help me!!Thats easy
DO the following steps
1. Add a matrix with rowgroup as Yr field and Column group on StoreName
2. Add a parent row group on City field. delete the columns or grouping retaining group alone(ie choose Delete Columns only option
3. Add a new tablix with a single row group on City field
4. Add a row below under same group in table
5. Move the matrix inside the new row and you will get desired output
see screenshots below
Also attached is a sample report for your reference using your sample data
https://drive.google.com/file/d/0B4ZDNhljf8tQek1HNldPOFVjNTA/view?usp=sharing
Just change datasource to point to any of your server and database and execute the rdl
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Hi,
when execute the program to show smart form, it comes up with error "Output could not be displayed (it may not be complete)"
can you please let me know the reason for this error and how to resolve it?
waiting for kind replies...
Regards
Shabbarcheck whether there any run ttime errors on the form..
open the Tcode..SFTRACE.. then activate Trace. in one session.. after this .. in onother session Run the form... after u gettin the errror... come back to SFTRACE... press Refresh button on the bottom.. then
u'll find the 1 entry with today date and u r user name... select that press on Display... u'll find the wexact problem..
the problem colud be lay out
Message was edited by:
Naresh Reddy -
Hey all,
I´m asking for some help to deal with the following:
I want to show a new Matrix in a System Form. The data is from a UDO (line data - detail).
How should i do that ? Can i use UDO methods ? Anyone can help me ?Hi Christiano,
If you are modifying a System Form then you cannot use the UDO methods to save everything automatically. How you will add your matrix to the system form? Are you adding a new folder?
If you want to use the UDO methods then you need to create a separate form linked to your UDO. In this case you can add a button to the system form opening your form.
Hope it helps
Trinidad. -
How to add new columns in predefined matrix in system form
Hi all,
I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix".
=========================================================
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
oCol = oCols.Item("U_MyCol")
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True And pVal.FormType = "143" Then
Try
oForm = SBO_Application.Forms.Item(pVal.FormUID)
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
'oCol = oCols.Item("U_MyCol1")
oCol = oCols.Add("U_MyCol1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oCol.TitleObject.Caption = "Qty Accepted"
oCol.Width = 40
oCol.Editable = True
oCol = oCols.Item("U_MyCol1")
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End If
oDBDataSource = oForm.DataSources.DBDataSources.Add("PDN1")
''oEdit.DataBind.SetBound(True, "PDN1", "U_QtyAccepted")
============================================================
And i also added for Datasource to Databind. what there is no result ??i wanted Clear information regarding this to add new columns in matrix in middle of Matrix items. I wanted Clear coding& information for this to add new Columns in Matrix ?help me regarding this asap??
Regards
ANANDAnand,
If you use the "search" feature of this forum and type "add column", you will find many posts that may help you such as this one ...
How to add a column on sales order matrix?
HTH,
Eddy -
Problem to output a form through transaction f110+sp01
hi ,
when i perform in se38 the program :
rffoavis_fpaym
with : program run date - 19.08.2009
andwith : identifiction feature - dpay3
i can see+print the form (sapscript) .
but when i run transaction f110
with the same example
and then go to spool by sp01
there is no output .
can someone help ?Hi,
1. Please check variant is assigned correctly to the program in F110->printout/datamedium
2.After clicking on printout make sure that you have selected start immediatly
3. Please check in sm37 is there any job is scheduled( Not completed) with the name F110-*
4. If it is not done immediatly, It is a BASIS maintainance problem
Thanks and Regards, -
Print program and output type, form layout
Hi all
Where I can see output type for Account Statements. I cannot find it in NACE.
Regards
Mona.Hi,
You can find them in spro settings under the
financial accoung->line items->correspondence->
Execute define form names for correspondence print.
Or
go to spro-> sapreference imp
go with find and provide this
Define Form Names for Correspondence Print
and go with enter
and select the approprite line with the corresponding discription
Accounts Receivable and Accounts Payable
Thanks,
NN. -
Output message form based on Vendor
Hello Gurus,
I have 2 SAPScript forms to output delivery schedule lines by fax or by email.
How can i make the system to select the correct output form based on vendor?
So far i am thinking to create a different message type and create a condition record by vendor and doc type. I will use the mostly used form in the default condition combination (Purchase Org/ DOc type) and then rarely used form in the (Vendor/Pur Org / DOc type) condition combination.
Do you guys think this is good way or is there any better way?
thanks!
Khan
Edited by: Owais Khan on Jan 20, 2010 4:18 PMthanks for your reply.
I setup exclusive flag but system still doing both the outputs for the fax type. We have one for Purchase Org and Doc type condition and also the Purchase org, Vendor and doc type level, but prints out both fax types.
Email is working fine because we only have at vendor and pur org level.
thanks!
khan -
Hi All,
I've created a simple form based on an registered UDO (2 tables: Document and Document Lines).
This form contains a matrix bounded to the lines of my UDO document.
Everything works fine except the Delete button that should delete a document line in the matrix: it never
deletes the lines from database, although it deletes them from the form. But if I select again the same
record, the deleted line is show again!
My code is very simple:
void btRemove_ClickEvent()
// Remove selected row from Matrix
SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix) oForm.Items.Item("mxMatrix").Specific;
int iPos = oMatrix.GetNextSelectedRow( 0, SAPbouiCOM.BoOrderType.ot_RowOrder );
if( iPos > -1 )
oMatrix.DeleteRow( iPos );
oMatrix.FlushToDataSource();
oForm.Update();
What is the problem with my code? Is it missing something?
Regards,
Manuel DiasThanks Gianluigi,
By the way, I want to delete the Matrix line with DI API has you suggest, so I was thinking in using this code:
SAPbobsCOM.UserTables pUT = Main.oSBOCompany.UserTables;
SAPbobsCOM.UserTable dt = pUT.Item("@PDWC_LINE");
bool xx = dt.GetByKey( sKey );
int res = dt.Remove();
The problem is that UserTable object, has a GetByKey() method that works only for user tables whose PK
contains only one column (GetByKey requires only a single value).
Since my table is created in SBO with the UDO Document Lines template, the PK is composed automatically
by Code and LineId columns, so the GetByKey() method does not allow me to select a specific record in
order to delete it next.
Do you know any workaround for this? Of course I could user the Recordsed object and write SQL to
delete my table line, but I think it must be an esay way to do this....
Regards,
Manuel Dias -
Problem in resizable 2 matrix in own form
I want to design a form with exactly like <b>journal voucher</b>
so it has 2 matrix object (upper and below)
here's my code
Set oFormPOS = SBO_Application.Forms.Add("formPointOfSales", ft_Sizable, -11)
'// set the form properties
oFormPOS.Title = "Form Point of Sales"
oFormPOS.Left = 300
oFormPOS.Width = 520
oFormPOS.Top = 100
oFormPOS.Height = 500
oFormPOS.AutoManaged = False
Set oItem = oFormPOS.Items.Add("PMatrix1", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = 25
oItem.Height = 160
Set oPOS.oMatrix = oItem.Specific
Set oPOS.oColumns = oPOS.oMatrix.Columns
Set oItem = oFormPOS.Items.Add("PMatrix2", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = 300
oItem.Height = 170
Set oPOS.oMatrix2 = oItem.Specific
Set oPOS.oColumns2 = oPOS.oMatrix2.Columns
but when I resize down my form, <b>the matrix followed my resize and increasing the height automatically and stacking with another matrix</b>.
even though I set AutoManaged = False, it still resize automatically , and make my form
screw up
Please anyone help me to solve this problem
I want my form to exactly like journal voucher (doesn't has a problem with resize)
ThanksHi Rasmus Thanks for the answer
and what do you mean by catch the form resize event ?
about my code what is the use of Automanaged = false, I didn't feel any different
I thought Automanaged = false will make my matrix not resize automatically,but it didn't
if i can change my matrix not resize automatically, I think i will change my code to these code, and I hope will auto arrange the position of my matrix
Set oItem = oFormPOS.Items.Add("PMatrix1", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = oFormPos.Top + 10
oItem.Height = (oFormPos.height/2) - 30
Set oPOS.oMatrix = oItem.Specific
Set oPOS.oColumns = oPOS.oMatrix.Columns
Set oItem = oFormPOS.Items.Add("PMatrix2", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = (oFormPos.Height/2) + 10
oItem.Height = (oFormPos.Height/2) - 50
Set oPOS.oMatrix2 = oItem.Specific
Set oPOS.oColumns2 = oPOS.oMatrix2.Columns
but I don't know how to disable the resize of the matrix automatically
so Rasmus beside what is the form resize event, do you know the use of automanaged ?
Thanks -
Output of form so result is pdf and not xml
I am new to Adobe Lifecycle Designer ES and have created a simple form, which will be submitted by email. When the form is emailed, the resulting output is an XML file. I need the resulting file to be a pdf, with all fields showing.
I have searched and cannot find the means and option to do this. I would appreciate help on this matter.
I am using LC Designer ES ver 8.2.1.
Thanks.
Mark KYes you can.. You need to use xfa.host.importData(); method to import an XML file to your PDF. Before you do that you need to add a data connection using the XML in form and bind the fields to tags in the XML. This way, when you import the XML ,the form knows where to pupulate the XML tag values..
Check this thread to get a sample file and XML..
http://forums.adobe.com/thread/622594
Hope this helps..
Thanks
Srini
Maybe you are looking for
-
I have been having this problem for a while now and I am fed up with it. Help?
-
HT1766 How to transfer a backup to an iphone.
Hi! I bought an IPhone 5 and unfortunately it wont back to my older version of itunes. Luckily I have an old Iphone 3 that's compatible with my itunes and I backed up my contacts and such about a month ago. However, the number for this iphone 3 isnt
-
No fax number could be determined for partner
Hi, I received this message when I was trying to see output type after creating, saving sales activity (VC01N), then come back to this sales activity > Goto> Output. My output type is not shown here. So I went to Determin Analysis, I found 3 messages
-
Xml parse tries to access the internet
Why is this happening and how can I stop this? Thanks. My code: DocumentBuilder htmlBuild = DocumentBuilderFactory.newInstance().newDocumentBuilder(); logentry = htmlBuild.newDocument(); sitelog = htmlBuild.parse(this.getClass
-
Dear All, I am kindanew in oracle dataguard implementation. I want to know how to test failover scenario. I have shutdown the server which contain the primary database but i still dont know how to test the scenario. I keep on executing "select mode f