How to print the out put for each customer in table
Dear SDN Team Members!
I've created a report and the output is displayed on the smartform for the same.
In this report, I've selected a list of customers and the report has to print the list of transactions being made by each customer in Smartform.
These details must be printed seperately for each customer.
I'm thinking of control statement AT NEW & AT END. But i don't know how to use them exactly so that the output is displayed seperately for each customer in the Smartform.
Please provide syntax and points will be awarded for.
Best Regards!
Hi Krsihna,
Its simple.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = '<form name>'
importing FM_NAME = lv_func_name.
loop at itab.
at new customer. "customer must be the fisrt field in the itab and itab mus be sorted by customer.
call function lv_func_name
endat.
endloop.
Regards,
Ravi
Similar Messages
-
How to use the different class for each screen as well as function.
Hi Experts,
How to use the different class for each screen as well as function.
With BestRegards,
M.Thippa Reddy.Hi ThippaReddy,
see this sample code
Public Class ClsMenInBlack
#Region "Declarations"
'Class objects
'UI and Di objects
Dim objForm As SAPbouiCOM.Form
'Variables
Dim strQuery As String
#End Region
#Region "Methods"
Private Function GeRate() As Double
Return Double
End Function
#End Region
Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
If pVal.MenuUID = "ENV_Menu_MIB" Then
End If
Else ' Before Action False
End If
End Sub
#End Region
End Class
End Class
Rgds
Micheal
Vasu Anna Regional Feeling a???? Just Kidding
Edited by: micheal willis on Jul 27, 2009 5:49 PM
Edited by: micheal willis on Jul 27, 2009 5:50 PM -
How can identify the default currency for a customer?
How can identify the default currency for a customer?
I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
BlueHi Gary,
As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
<b>Reward points if it helps!!</b>
Best regards,
Vikash -
HOW TO PRINT THE MATTER IN FOR ALL ENTRIES
HI HOW T PRINT THE FOR ALL ENTRIES MATTER
Hi Naresh,
You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client).
For example:
SELECT * FROM sflight INTO wa_sflight
FOR ALL ENTRIES IN ftab
WHERE CARRID = ftab-carrid AND
CONNID = ftab-connid AND
fldate = '20010228'.
This condition, return all entries of the sflight.
When using FOR ALL ENTRIES the number of matching records is restricted to the number of records in the internal table. If the number of records in the database tables is too large then join would cause overheads in performance. Additionally a JOIN bypasses the table buffering.
Thanks,
Reward If Helpful. -
How to get the time interveral for each status of worklow (wating,Inprocess
Hi Friends,
I have requreiemnt to get the time interval for each status of workflow.
ex.
status
workflow id | startd date | enddate | waiting | Inprocessing|Error|......
1026 10.10.2008 25.10.2008 1hr 1hr 30 min 2 hr
Please do give me idea how to get the time stam of each status of workflow.
Thanks,
D.prabhuHi,
I think the following tables would be helpful to you:-
SWW_CONT Container Contents for Work Item Data Container
SWW_CONTOB "Container Cont. for Work Item Data Container (Only Objects)"
SWWLOGHIST History of a work item
SWWORGTASK Assignment of WIs to Org.Units and Tasks
SWWUSERWI Current Work Items Assigned to a User
SWWWIHEAD Header Table for all Work Item Types
Hope it Helps!
Regards,
Kanika -
How to display the out put of the sql query in a text file using forms
I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz
Have a look at the text_io package:
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
cheers -
How to get Sales rep information for each customer
Hi
For each record in ra_customers, I want to find associated Sales rep for each customer.
Can some one please tell me what table stores this information?
Thanks
AaliTry
SELECT rc.customer_name, rc.customer_number, jrs.NAME
FROM jtf_rs_salesreps jrs, ra_customers rc
WHERE rc.primary_salesrep_id = jrs.salesrep_idHope this helps,
Sandeep Gandhi -
How to pass the out put of ListFiles as input to SynchronousRead FileAdaptor in Oracle SOA
Hi All,
I have list of XML Files in one folder, i want to read all the files one by one ,
i can use the ListFiles to get all the files, i want pass each files at a time as input to SynchronousRead.
i know how to pass the file names dynamically to SynchronousRead File Adaptor, but i dont know how to handle the file list, and passing one at a time from the list
Any help please,Thanks for your reply PuneetRekhade,
i could not see ant for each activity in the Bepel activities,but in transformation i could make use of for-each do display the all the filenames,
i have used while , with following condition number(bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist','/ns1:filelist/@size'))>=number(bpws:getVariableData('count_Files')),
and in side the while loop , created assign activity which gives assign one file name at a time by acessing the list index.
bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist',"/ns1:filelist/ns1:file[bpws:getVariableData('count_Files')]/ns1:filename")
i have incremented count variable at the end of the loop. -
How to find the lowest grade for each student using a Select query?
Hey I'm having a bit of trouble here
I have this table
Student - Grade
John - 8
Richard - 9
Louis - 9
Francis - 5
John - 13
Richard - 10
Peter - 12
Grades can range from 0 to 20.
Name - varchar(50)
Grade - integer
I am trying to generate a SQL search to find each lowest grade for each student.
So far I have done:
select s.name,s.grade
from student s
where s.grade = (select min(grade) from student)
The result of that search returns me only the lowest grade of all the grades posted above, which is Francis - 5.
I want to find the lowest grade, but not only for Francis but also for every other student in the table.
How do I do that?
Thank you in advanced.ok,
Now we are moving into Analytic SQL:
with student as (select 'John' name, 8 grade, 'fail' result from dual union all
select 'John' name, 13 grade, 'pass' result from dual union all
select 'Francis', 5 grade, 'fail' from dual union all
select 'Peter', 12, 'pass' from dual)
-- End of your test data
SELECT name,
MAX (result) KEEP (DENSE_RANK FIRST ORDER BY grade) result,
MIN (grade) min_grade
FROM student
GROUP BY namePlease note that I passed ;)
Regards
Peter
To read more:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions056.htm#SQLRF00641 -
How to select the first row for each pair of values ?
Hi guys, am hoping someone can help me here.
If I have 4 tables - Building, Dept, Emp, Text
B D E T
A 1 Z blah1
A 1 X blah2
A 1 W blah3
A 2 V blah4
A 2 G blah5
A 2 H blah6
B 1 K blah7
B 1 L blah8
B 2 E blah9
B 2 F blah0
I need a query that will bring back the first bit of text for each pair of building and dept records.
So the results I would get would be
A 1 blah1
A 2 blah4
B 1 blah7
B 2 blah9
blah2 wouldnt be returned, because we have already had a record from the Building A, dept 1 pairing.
Likewise we wouldnt get blah5 because we have already had a record from the Building A, dept 2 pairing.
Can this be done in 1 query??
Thanks all.
Message was edited by:
Scott Hillierhere you go
SQL> drop table t;
Table dropped.
SQL> create table t(B char(1), D integer, E char(1), T varchar2(5));
Table created.
SQL> insert into t values('A', 1, 'Z', 'blah1');
1 row created.
SQL> insert into t values('A', 1, 'X', 'blah2');
1 row created.
SQL> insert into t values('A', 1, 'W', 'blah3');
1 row created.
SQL> insert into t values('A', 2, 'V', 'blah4');
1 row created.
SQL> insert into t values('A', 2, 'G', 'blah5');
1 row created.
SQL> insert into t values('A', 2, 'H', 'blah6');
1 row created.
SQL> insert into t values('B', 1, 'K', 'blah7');
1 row created.
SQL> insert into t values('B', 1, 'L', 'blah8');
1 row created.
SQL> insert into t values('B', 2, 'E', 'blah9');
1 row created.
SQL> insert into t values('B', 2, 'F', 'blah0');
1 row created.
SQL> select b,d,t
2 from (
3 select row_number() over(partition by b, d order by b,d) rno,b,d,t
4 from t)
5 where rno = 1;
B D T
A 1 blah1
A 2 blah4
B 1 blah7
B 2 blah9karthick
http://karthickarp.blogspot.com/ -
How to set the applications private for each user?
I created different users in a single work space. I want the applications of each user to be private so that the applications of one user should not be viewed by others.
Can any one suggest me .....So, the term "user" was used in the context of "Application Developer".
The idea behind Apex Application Builder is Team working and therefore you have features for team working. You want to go the reverse way for your reasons.
The only way I am aware of is to create separate workspace for each of the developers. This way each developer sees only his / her applications in Application Builder. If the developers use the same db tables/views then you will have to assign the schema that holds the data to each of these Workspaces.
But if you want to ensure that developers do not even see each other's data then they you have to keep the data also separate.
While doing all this just do not forget that some day the applications have to be deployed and end users have to access it !
I am not aware of any other mechanism to isolate developers.
Regards, -
How to get top 10 records for each option in table prompt?
Hi,
I have created one report in which my requirement is to get top 10 highest salaries for each departments. I have created one table prompt which contains the names of all departments. On the salary column I have applied one filter i.e. TOP 10. Currently I am having 3 departments. I want to show the top 10 salaries for each department, but I am getting top 3 from first, 4 from second and 3 from third.They are calculating top 10 salaries based on all departments, not on individual department. How can I get top 10 salaries for each department?Hi,
Use TopN function in your column formula.
Ex: TOPN("Sales ,5 BY department)
Thanks,
Satya -
How to append parameter with URL for each record in table control?
Hi,
I have one table control which contains 5 columns.
(tripno, startdate, destination, reason, activities)
In 5th column, i need to display URL for each record.
for ex:
www.abc.com/test?tripno=1
www.abc.com/test?tripno=2
www.abc.com/test?tripno=3
when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
How to assign URL to Reference field of LINK_TO_URL element at run time?
OR
2) we can do like this.
Simply assign url to reach record without key field.
www.abc.com/test
www.abc.com/test
www.abc.com/test
when user clicks a particular link, we can assign corresponding key field to the URL.
Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
how to do?Hi MOg.
Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1) which contains the refernce attribute.
Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
Hope tis helps,
Sascha.
Bind the -
Re : How to find the Account Group for a Customer
hi
i know the Sale Area ( Sales Org,Dist Channel & Division), Company code but when i go to XD01 TO create a Customer it is asking for a Account Group.My Question is how to find the Account Group
& is there any link between Sales Area and the Account Group?
RegardsHi murali,
Account group makes the fields in the customer master data as
1. suppress
2.req. entry
3. opt. entry
4.display
the above 4 are the radio buttons available.
Before u create the customer master in XD01.
you must gothrough the following paths to create xd01
Img->Fin.Accouting->AccountRec & Account Payable->Master data ->prepare for creating customer master data
In the above path
I. define account groups
In this you cretae your own account group
II. create number ranges for customer accounts
In this maintain any number range
III.Assign number ranges to customer account group
in this Assign the number range here.
Now go for XD01
select the account group you created.
Give the customer number,this number must be in the range that u made in the above II point. -
How to see the dropdown option for field of a table during selection
Hello,
I am adding a new custom field in the table. Now when user goes to the screen after clicking the content button icon in se11, he sees all fields for selection.
That custom field is one character field. I want the user to see P and S option when he hits F4 (Dropdown).
How can I achieve this ?
Regards,
Rajesh.hi check this..
report .
TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.
DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.
PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
PERFORM get_data.
LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
LOOP AT it_vbap.
WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
ENDLOOP.
*& Form get_Data
text
--> p1 text
<-- p2 text
FORM get_data .
SELECT vbeln
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. " get_Data
regards,
venkat
Maybe you are looking for
-
SRM: Transformation Error
Dear Experts, When activating the Transforamtions DSO--> Datasource. Error Message: Start Routine Syntax Error. I checked the syntax for the start routine Error Msg: In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is
-
Treo Pro locking on incoming call
My Treo has the habit on "locking buttons and screens" on incoming calls. If I don't answer quickly, nothing works anymore and the call is abandoned. Quickly means less then 10 seconds! Is there a way to stop this from happening? I've went through al
-
When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id, I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.
-
Hi i cant access to my house wifi but to all the others wifiS I can connect. I have restarted my iPhone and my home wifi. What should I do?
-
I have a passport hard drive. Can a ipod be hooked up to one and get movies and songs off it?