No Records Display in List
Hi,
We just upgraded our sandbox environment from 4.6C to ECC6. I'm finding that no Infotype 0000 records (Actions) display when I click on the Overview icon from transaction PA20, even though I know they exist. Whether there is actually just one record or many, none of them show in the Actions Overview list. I can click the Display icon from Display HR Master Data screen and the current record displays; and then I can walk through the records using the "Next Record" button. But, the overview function does not work. Has anyone else experienced this problem?
Thanks,
Varsha.
Hi,
We had this problem when we upgraded from 4.0B to 4.7. We solved it by adding an entry to table t77s0 for ADMIN EVSUP, which lets you determine if additional actions in Infotype 0302 will be used (Blank deactivated, 1 activated).
ALSO:
Go to Table T77S0 (transaction SM31) and change the ADMIN, EVSUP to 0 (instead of 1). Then the records will be shown again. With an upgrade you have to know that your own settings in table T77S0 will be overwritten
Reward points if found helpfull...
Cheers,
Siva.
Similar Messages
-
Urgent help needed: how to display a list of records on the screen
Hello,
This is very urgent. Can anyone help me. I have posted this query of mine before also but still no reply came. My whole application is dependent on this problem. Actually I am developing an application for mobile phone using MIDP. I have a record store which contains personal details for users. I am able to add records to the record store. Now I want that these records can be edited. For this I want to display a list of firstname field on the screen (and not console) so that i can select a user to edit its details. I have written the code to read the records and individual fields and display it on the console but i want to display that list on screen. I tried list and array but it s giving some error.
I am giving the code to read the records below. Please tell me how can I display it in a list on the screen.
public void readStream(){
try
byte[] recData=new byte[50];
String varname;
ByteArrayInputStream strmBytes = new ByteArrayInputStream(recData);
DataInputStream strmData=new DataInputStream(strmBytes);
if (rsperdt.getNumRecords() > 0){
ComparatorString comp=new ComparatorString();
int i=1;
RecordEnumeration re=rsperdt.enumerateRecords(null, comp, false);
while(re.hasNextElement()){
rsperdt.getRecord(re.nextRecordId(), recData,0);
System.out.println("Record #" + i );
varname = strmData.readUTF();
System.out.println("Name #"+varname);
System.out.println("---------------------------");
i=i+1;
strmBytes.reset();
comp.compareStringClose();
re.destroy();
strmBytes.close();
catch(Exception e){
System.err.println("read Records class:read");
}I could not understand ur point "post the code in tags". I am pasting the code below. Please help as my whole application is stuck due to this problem and I have a deadline of 7th oct.
This midlet is getting called from some other midlet.
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
import java.io.*;
import java.util.*;
public class frmread extends Form implements CommandListener
static final String rec_store="db_per";
private RecordStore rsperdt=null;
private Vector vecname;
private ChoiceGroup chname;
private boolean flagSortByPriority = false, flagShowPriority = true;
private Form fmmain;
private Command cmdBack;
private teledoc midlet;
public frmread(String title, teledoc midlet)
super(title);
this.midlet = midlet;
openRecStore();
this.setCommandListener(this);
chname = new ChoiceGroup("new", Choice.EXCLUSIVE);
vecname = new Vector();
cmdBack = new Command("Back", Command.BACK, 1);
fmmain = new Form("Record Search");
addCommand(cmdBack);
setCommandListener(this);
readStream();
rebuildTodoList();
closeRecStore();
* Process events for this form only
protected void rebuildTodoList()
for(int j=chname.size(); j>0; j--)
chname.delete(j-1);
int priority;
todoitem item;
String text;
StringBuffer sb;
for (int j=0; j<vecname.size(); j++)
item=(todoitem) vecname.elementAt(j);
priority = item.getPriority();
text = item.getText();
sb = new StringBuffer((flagShowPriority ? (Integer.toString(priority) + "-"): ""));
sb.append(text);
chname.append(sb.toString(), null);
public void commandAction(Command c, Displayable s)
if (c == cmdBack){
midlet.displayteledoc();
public void readStream(){
try
byte[] recData=new byte[100];
String varname;
int varname1=0;
ByteArrayInputStream strmBytes = new ByteArrayInputStream(recData);
DataInputStream strmData=new DataInputStream(strmBytes);
if (rsperdt.getNumRecords() > 0){
ComparatorString comp=new ComparatorString();
int i=1;
int id = 1;
vecname.removeAllElements();
RecordEnumeration re=rsperdt.enumerateRecords(null, comp, false);
while(re.hasNextElement()){
rsperdt.getRecord(re.nextRecordId(), recData,0);
System.out.println("Record #" + i );
varname = strmData.readUTF();
varname1 = strmData.readInt();
id = re.nextRecordId();
System.out.println("Name #"+varname);
todoitem item = new todoitem(varname1, varname, id);
vecname.addElement(item);
System.out.println("---------------------------");
i=i+1;
strmBytes.reset();
comp.compareStringClose();
re.destroy();
strmBytes.close();
catch(Exception e){
System.err.println("read Records class:read");
public void openRecStore(){
try{
rsperdt=RecordStore.openRecordStore("db_per",true);
catch(RecordStoreException e){
db(e.toString());
public void closeRecStore(){
try{
rsperdt.closeRecordStore();
catch(Exception e){
db(e.toString());
public void db(String str){
System.err.println("Msg:" + str);
class ComparatorString implements RecordComparator{
private byte[] recData = new byte[20];
private ByteArrayInputStream strmBytes = null;
private DataInputStream strmDataType = null;
public void compareStringClose(){
try{
if(strmBytes != null)
strmBytes.close();
if(strmDataType != null)
strmDataType.close();
catch (Exception e)
public int compare(byte[] rec1, byte[] rec2)
String str1, str2;
try {
int maxsize = Math.max(rec1.length, rec2.length);
if (maxsize > recData.length)
recData = new byte[maxsize];
strmBytes = new ByteArrayInputStream(rec1);
strmDataType = new DataInputStream(strmBytes);
str1=strmDataType.readUTF();
strmBytes = new ByteArrayInputStream(rec2);
strmDataType = new DataInputStream(strmBytes);
str2=strmDataType.readUTF();
int result=str1.compareTo(str2);
if (result == 0)
return RecordComparator.EQUIVALENT;
else if (result < 0)
return RecordComparator.PRECEDES;
else
return RecordComparator.FOLLOWS;
catch (Exception e)
return RecordComparator.EQUIVALENT; -
How can I display a list of records from a JSP to my Midlet ??
Hi there !
I'm new in J2ME. I have been strugling with this problem for weeks now. All I find on the net is some theory and is not helping me much. Here the deal
I have created a Midlet that shoud display a certain list which is from the remote database. The list comes from a JSP file in the server. When I use the browser I can see the list.
The problem comes when I have to take the same list and output it in my midlet file. Then finding the selected index of the selecte item of the same list and using it somewhere else.
I would appreciate it if somone could help me !!
My head is speaning now !!! If you want me to post my code so one could identidy the proble, I don't mind !! Help please !!Here is my Code !!
String url = "http://10.2.25.3:8080/CreateAppointment/doctorsList.jsp";
String dateUrl = "http://10.2.25.3:8080/CreateAppointment/date.jsp";
String myUsername,myPassword;
// Custom declaration code starts here
public CreateAppointment_GUI()
//Creating a login Form
loginScreen = new Form("Login");
//Login form Textfields
username = new TextField("Username:", null, 200, TextField.ANY);
password = new TextField("Password:", "Initial text", 200, TextField.ANY| TextField.PASSWORD);
loginScreen.append(username);
loginScreen.append(password);
//Adding the commands
loginScreen.addCommand(loginCommand);
loginScreen.addCommand(cancelCommand);
loginScreen.setCommandListener(this);
loginScreen.setItemStateListener(this);
// Creating my selection list
String[] selectionList = { "1.Appointments", "2.Add New Patient", "3.Patient Details" };
listSelectAction = new List("Select Action", List.IMPLICIT, selectionList, images);
listSelectAction.addCommand(backCommand);
listSelectAction.addCommand(nextCommand);
listSelectAction.setCommandListener(this);
public void startApp() throws MIDletStateChangeException
display = Display.getDisplay(this);
display.setCurrent(loginScreen);
public void pauseApp()
public void destroyApp(boolean unconditional) throws MIDletStateChangeException
notifyDestroyed();
public void itemStateChanged(Item item)
void getDoctors(String url) throws IOException {
HttpConnection connection = null;
InputStream is = null;
OutputStream os = null;
StringBuffer stringBuffer = new StringBuffer();
TextBox textBox = null;
String newStr =null;
String newStr2=null;
Vector v = new Vector();
try {
connection = (HttpConnection)Connector.open(url);
connection.setRequestMethod(HttpConnection.POST);
//connection.setRequestProperty(String key, String value)
connection.setRequestProperty("IF-Modified-Since","20 Jan 2001 16:19:14 GMT");
connection.setRequestProperty("User-Agent","Profile/MIDP-2.0 Confirguration/CLDC-1.0");
connection.setRequestProperty("Content-Language", "en-CA");
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
os = connection.openOutputStream();
is = connection.openInputStream();
int ch;
while ((ch = is.read()) != -1) {
stringBuffer.append((char) ch);
System.out.print((char)ch);
}//while
newStr = stringBuffer.toString();
newStr2=newStr.trim();
int start = 0;
position = newStr2.indexOf("%", 0);
while ((position = newStr2.indexOf("%",start)) > -1) {
String aName = newStr2.substring(start,position);
v.addElement(aName); // store the substring
start = position + 1; // so the next time we start checking following the space
String[] theNames = new String[v.size()]; // create an array big enough to store the strings
v.copyInto(theNames); // Now theNames is a String array with the list of names
// now we can create a List using this array:
listDoctors = new List("Select Doctor", List.IMPLICIT, theNames,null);
listDoctors.addCommand(backCommand);
listDoctors.addCommand(nextCommand);
listDoctors.setCommandListener(this);
} //try
finally {
if(is!= null) {
is.close();
} //if
if(os != null) {
os.close();
}//if
if(connection != null) {
connection.close();
}//if
}//final
display.setCurrent(listDoctors);
} //invoke
public void commandAction(Command c, Displayable d)
if (c == loginCommand)
myUsername = username.getString();
myPassword = password.getString();
Thread thread = new Thread() {
public void run() {
try {
getDoctors(url);
display.setCurrent(listSelectAction);
}// Try
catch (IOException ioe) {
ioe.printStackTrace();
}// catch
}// Public void
};//Thread
thread.start();
else if (c == cancelCommand && d == listSelectAction)
else if (c == nextCommand && d == listSelectAction)
int selectedAction = listSelectAction.getSelectedIndex();
Alert displayNewText =
new Alert("Selected","Screens are still being developed", null, AlertType.INFO);
displayNewText.setTimeout(1000);
if (selectedAction == 0)
Thread thread = new Thread() {
public void run() {
try {
getDoctors(url);
display.setCurrent(listSelectAction);
}// Try
catch (IOException ioe) {
ioe.printStackTrace();
}// catch
}// Public void
};//Thread
thread.start();
if (selectedAction == 1)
display.setCurrent(displayNewText);
if (selectedAction == 2)
display.setCurrent(displayNewText);
}//Else
else if (c == backCommand && d == listDoctors)
display.setCurrent(listSelectAction);
else if (c == nextCommand && d == listDoctors)
Thread thread1 = new Thread() {
public void run() {
try {
getDate(dateUrl);
display.setCurrent(listDate);
}// Try
catch (IOException ioe) {
ioe.printStackTrace();
}// catch
}// Public void
};//Thread
thread1.start();
else if (c == backCommand && d == listDate)
display.setCurrent(listDoctors);
}That is my midlet !! Now here is the code for my JSP !!
<%@ page import="java.sql.*" %>
<%@page import="java.util.*,java.text.*" %>
<%
String name="";
String id = "";
String connectionURL = "jdbc:microsoft:sqlserver://10.2.25.223;DatabaseName=NDOH_PAAB";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%>
<%
try
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
catch (Exception ex)
out.println(ex.toString());
connection = DriverManager.getConnection(connectionURL,"remotepaab_user","mohwiti2004");
statement = connection.createStatement();
String mysql ="SELECT * from physicians";
//out.println(mysql);
rs = statement.executeQuery(mysql);
%>
<%
while (rs.next()) {
name= rs.getString("name");
id = rs.getString("id");
out.print(name + "%");
out.print(id + "%");
%>
<%
%>
<% rs.close(); %>In the JSP the name variable is the one that has my List. The problem is how do I say in my Midlet = display the list contained in name. Or in id. I need to use both of them "name + id". the id I will use to find out which name a user ha selected !! Not sure how !!!
Any help would be appreciated !! Thanks !! -
Rows Per Page doesn't affect the number of records displayed
I just updated from 3.2 to 4.0 this morning. When I change the Rows Per Page value in the action menu the report doesn't change and the number of records displayed stays at 10. The report has ~6000 records. I edited the report attributes and add the rows selector to the IR search bar. This doesn't change the behavior either. I noticed that if I change the rows per page in the action menu then the drop down select list is updated, but the report still doesn't change from 10. I tried paging to the next set of results and it still remains at 10.
Has anyone else experienced this problem?
TonyYes, Tony, I've seen this in several versions of APEX. In most cases, simply starting a new session was enough to force APEX to refresh the page and grab the new set of pagination directives. If that doesn't work, please give more info like: what type of report you are doing and what the Pagination values are. Please note the following:
Report Template
Pagination Scheme
Enable Partial Page Refresh
Display Position
Number of Rows/Number of Rows Item
Maximum Row Count -
Conditional display of list box in form (depends on other report column)
Hello,
i have one question regarding conditional display in forms.
I have a tabular form where only one column ("flag") is updateable, all other columns are visible only.
I changed the column "flag" from "standard report column" to "Select list (static lov)", which has the values "yes" and "no".
This works fine. But in the running form i want to display the list box only if the column "status" = 'ERROR'.
The column "status" can have the values 'ERROR' and 'OK'.
When one record has "status" = 'OK', the column "flag" should not display the list box (only empty column row),
when one record has "status" = 'ERROR" the column "flag" should display the list box.
The idea behind is that if a record has "status" = 'ERROR' i have the possibility to confirm that "error" and update the column "flag" with "YES". This should only be possible for errors.
This is my main problem.
I tried with conditional display, but this hides or shows the column for the whole report/form, not on record level...
The second problem then is, that if the column "flag" is changed to "YES" in case of column "status" = 'ERROR', then it should not be possible to change it again to 'NO". At the beginning it is 'NO', but once changed to 'YES' it should not be changeable any more.
Is this possible?
Thank you in advance,
MatthiasHello Mike
your solution sounds good, but unfortunately it is not working.
None of my 2 columns are displayed, although i tried it as you wrote and the conditions should match...
But i am no sure if this can work. If so, the 2 columns must fuse to 1 column:
ID STATUS FLAG
1 ERROR yes/no => comes from column1
2 OK (null => comes from column2
so "FLAG" must display column1 and column2 in one column. is that possible?
regards,
Matthias -
To display the list of File Name in a report region from a Directory
Hello All,
Can any one guide me in displaying the list of file name from a file system directory in a report region with link?
On click of the link it should display the open/save dialog box.
I will appreciate the early solution. (It is bit urgent)
Thanks,
ShyamA quick, "dirty solution would be to have a cron job (I am assuming you are on a UNIX-based system) that populates a file periodically with the names of files in a directory/directories. Then have an external table that points to that file. You can then create an Apex report that lists the contents of the external table.
1) crontab job:
ls -1 /source_dir/* > /destination_dir/file.list
2) create external table:
CREATE DIRECTORY filedir AS ' destination_dir ';
GRANT READ ON DIRECTORY xfer_files TO public;
CREATE TABLE file_list_ext (file_names VARHCAR2(100))
ORGANIZATION EXTERNAL
TYPE oracle_loader
DEFAULT DIRECTORY files_dir
ACCESS PARAMETERS
records delimited by newline
fields terminated by ','
missing field values are null
(file_name)
LOCATION ('file.list')
REJECT LIMIT UNLIMITED;
3) create APEX report on table: file_list_ext
Hope this helps. -
Populate multi record display item
Hellou gurus!
I have forms 10g and i need to populate display item in enter query mode. My problem is that I have table T1 with some static values. Table T2 is through ID connected (reference) to table T1 1:1 cardinality and T2 table also have reference to T3 table.
I have block B2 based on table T2 and in this block I have multirecord item for inserting and updating new values for T2, but in this block ii also have no DB, multi record display item (because i don't want to allow editting in T1 table records) for diplaying static values for table T1. I want to display all static values from T1 next to the editable values in T2 (T2 multi record field is not insert yet). I tried for loop, select into but it not work. T1 values need to be selected before I started to inserting values into T2 items, but off course they need to be referenced It is hard to explain but i belive you understand.
Can you help me how I can populate multi record item??You have to write the code again for your second list item....
group_id RecordGroup;
list_id Item := Find_Item('button.tyear');
list_id1 Item := Find_Item('button.tperiod');
status NUMBER;
rg_name varchar2(40) := 'recgroup';
BEGIN
----------------------------- LIST
clear_list(list_id);
group_id := Find_Group(rg_name);
IF NOT id_null(group_id) then
Delete_Group(group_id);
End if;
group_id := Create_Group_From_Query(rg_name,
'select vm_year, vm_year from fwqgl.vouchermaster
group by vm_year');
status := Populate_Group(rg_name);
Populate_List(list_id, group_id);
/* --------------------SECOND LIST ITEM...BUT REC. GRP NAME CAN BE SAME,better to use another name if you need to retrieve list and store qry..other wise the fol. code is enuf-----------------------*/
clear_list(list_id1);
group_id := Find_Group(rg_name);
IF NOT id_null(group_id) then
Delete_Group(group_id);
End if;
group_id := Create_Group_From_Query(rg_name,
'select vm_period, vm_period from fwqgl.vouchermaster
group by vm_period');
status := Populate_Group(rg_name);
Populate_List(list_id1, group_id);
END;Edited by: Dora on Dec 5, 2009 10:41 AM -
Calculate % of answers across all records in a list
I have a list that gathers information from users. I want to calculate the percentage of a given answer across all records. To keep things simple, consider the following example.
A list called "Shirts" contains 3 choice fields:
1) Color: with choice options of Red, Blue or Green
2) Size: with choice options of Small, Medium or Large
3) Style: with choice options of T-Shirt, Button-up or Long-Sleeve
At the bottom of the page I want to display what percentage (across all records) that the shirt color chosen was Blue.
So if I had 10 records in the list and 4 of those listed color as Blue, the bottom of the main view page would show: Blue = 40%. This percentage would then update as more records are added. ie - an 11th record is added that does not choose Blue so the percentage
would then display as 36%.
I know how to do calculations like this within a given list record but I need a way to keep a running calculation across all records that updates as new records are added.Hi Mike,
As a workaround, you can use JavaScript to retrieve items value from a List and calculate the value according to your requirement, then display the result in the list
view page.
Here is a link about how to retrieve items from a List using JavaScript:
http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
I modify the script a bit in the link above, you can apply the script below to your list view page, it will display the percentages of each value as you need:
<script type= text/javascript>
_spBodyOnLoadFunctionNames.push("ready");
function ready()
ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
function retrieveListItems()
var clientContext = new SP.ClientContext.get_current();
var oList = clientContext.get_web().get_lists().getByTitle('List1');
var camlQuery = new SP.CamlQuery();
this.collListItem = oList.getItems(camlQuery);
clientContext.load(collListItem);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded(sender, args)
var blueCount = 0, redCount = 0, yellowCount = 0;
var listItemEnumerator = collListItem.getEnumerator();
var sum = collListItem.get_count();
while (listItemEnumerator.moveNext())
var oListItem = listItemEnumerator.get_current();
if(oListItem.get_item('Color') === 'Blue')
blueCount += 1;
if(oListItem.get_item('Color') === 'Red')
redCount += 1;
if(oListItem.get_item('Color') === 'Yellow')
yellowCount += 1;
document.getElementById('blueSpan').innerHTML = "Blue: " + blueCount/sum*100 + "%";
document.getElementById('redSpan').innerHTML = "Red: " + redCount/sum*100 + "%";
document.getElementById('yellowSpan').innerHTML = "Yellow: " + yellowCount/sum*100 + "%";
function onQueryFailed(sender, args)
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
<p id="blueSpan">Blue:</p>
<p id="redSpan">Red:</p>
<p id="yellowSpan">Yellow:</p>
About how to add JavaScript into SharePoint page:
http://blog.cloudshare.com/2012/10/29/how-to-insert-custom-javascript-code-in-sharepoint-2013-pages-part-i/
Best regards
Patrick Liang
TechNet Community Support -
How to display Call list Large view as the initial view dynamically.
My requiremet is that
1) User chooses a call list -> then clicks display calls -> then clicks Calls Full view
Now ClmCallListDetailsLarge View is displayed
2) Now the user chooses a call and then prceeds to Account confirmation, Interaction Record and then ends the call.
3) Now when the Call list is choosen from navigation bar Available 'ClmAvailbleCallLists' View is displayed, but the requirement is to display 'ClmCallListDetailsLarge' view.
4) There is some standard code related to this in 'DO_REPLACE_INITIAL_VIEW' method of the window controller. but this method is not getting triggered at all.
Please let me know how this can be achievedThanks for idea.
Assume I stored my data in a List of HashMap.
Could you provide an example of JSTL for displaying this list? -
Hi,
I would like to display two lists in one page of my report: one under the other.
Since the length of the lists can vary, I put them one directly under each under. Unfortunatly, the first list is displayed on the second one when many lines are displayed in the first list.
How do I define the lists so they don't display on each other?
Thank you.Hi Sose,
The solution to your problem is that you can actually join the 2 table border. So that even if the records increase you wont have the tables overlapped.
To do this simply right click on the second Table > select Position.
The Relative position window will appear.
Usually the 2 tables are refered as blocks.
In first Three Feilds select 0 px from the Left Edge of Block 1
In the Next Three Feilds select 0 px from the Bottom Edge of Block 1
This will join the 2 tables border one below the other.
This should solve your problem.
Thanks,
Chirag Desai. -
About selecting record from a list
hai sir ,
i have displayed on list using alv function module . but ,i want to select one or more record from the list.
and press any function key it shoud display the records which i was selected.how its possible give some idea.hi,
u can easily do ot using a alv grid control as follows
1.create a class with handle toolbar method by which u can create customized button .Here i have given the function code as DISPLAY.In the handle user commad u have to write the command for displaying the selected row.Using the get selected row methos ,u will get the selected row index so that u can read the internal table with that index to get the record.After getting the selected row u can display it as pop up by calling the function module POPUP_WITH_TABLE_DISPLAY
For enabling the selection in grid ,set the layout like this ls_layout-sel_mode = 'A'.
for pasiing it to set_table_for_first_display
*--->class defenition and implementation
*class defenition
CLASS cl_eventhandler DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm,
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_row_id e_column_id es_row_no.
ENDCLASS. "cl_eventhandler DEFINITION
*class implementation
CLASS cl_eventhandler IMPLEMENTATION.
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
CLEAR ls_toolbar.
MOVE 'DISPLAY' TO ls_toolbar-function.
MOVE icon_print TO ls_toolbar-icon.
MOVE 'Print warranty sheet' TO ls_toolbar-quickinfo.
MOVE 'Print warranty sheet' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
CLEAR ls_toolbar.
ENDMETHOD. "handle_toolbar
METHOD handle_user_command.
CASE e_ucomm.
WHEN 'DISPLAY'.
CALL METHOD gr1->get_selected_rows
IMPORTING
et_index_rows = lt_rows.
ENDCASE.
ENDMETHOD. "handle_user_command
METHOD handle_hotspot_click .
READ TABLE it_alv INTO wa_alv INDEX e_row_id-index.
IF sy-subrc EQ 0.
CHECK NOT wa_alv-vbeln IS INITIAL.
SET PARAMETER ID '/DBM/ORDER_NUMBER' FIELD wa_alv-vbeln.
CALL TRANSACTION '/DBM/ORDER03' AND SKIP FIRST SCREEN.
ENDIF.
ENDMETHOD. "handle_HOTSPOT_CLICK -
How to display mutilpe list in a screen ( ALV list)
Hello,
Could you please help me the source code sample for displaying many list in an ALV screen (Basic list)
For example : I 've 2 table with different information.
Table A Col A1 col A2 Col A3
Table B Col B1 B2 B3 B4 B5
Now I need to display them in only 1 screen like :
List of record in table A
Col A1 Col A2 Col A3
List of record in table B
B1 B2 B3 B4 B5
Thanks,for this kind of requirement use the LIst ALV.
The below sample code might help you
DATA : g_t_print TYPE slis_print_alv.
Initialize ALV
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = sy-repid.
ADD first ALC
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = g_t_layout
it_fieldcat = g_t_fieldcat[]
i_tabname = 'g_t_strans'
it_events = g_t_events_strans
TABLES
t_outtab = g_t_strans
EXCEPTIONS
program_error = 1
maximum_of_appends_reached = 2.
IF sy-subrc NE 0.
MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
STOP.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = g_t_layout
it_fieldcat = g_t_fieldcat[]
i_tabname = 'g_t_sretrev'
it_events = g_t_events_sretrev
TABLES
t_outtab = g_t_sretrev
EXCEPTIONS
program_error = 1
maximum_of_appends_reached = 2.
IF sy-subrc NE 0.
MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
STOP.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = g_t_layout
it_fieldcat = g_t_fieldcat[]
i_tabname = 'g_t_stransrev'
it_events = g_t_events_stransrev
TABLES
t_outtab = g_t_stransrev
EXCEPTIONS
program_error = 1
maximum_of_appends_reached = 2.
IF sy-subrc NE 0.
MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
STOP.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = g_t_layout
it_fieldcat = g_t_fieldcat[]
i_tabname = 'g_t_sret'
it_events = g_t_events_sret
TABLES
t_outtab = g_t_sret
EXCEPTIONS
program_error = 1
maximum_of_appends_reached = 2.
IF sy-subrc NE 0.
MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
STOP.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
is_print = g_t_print. -
Displaying the list of values in the Report
Hi All,
Is there any possibility to include the scrollable list on the face of report(Not in the left side i.e as input control)
For example If I have a country with different counties.
Based on the country selection in the block it should display the list of counties as scrollable list.
Would it be possible.
Please help
thanks
Edited by: VP S on Sep 1, 2010 2:45 PMNot sure if you are looking for the same..
Have you tried applying the filter at the filter pane..i.e.
Click on the the show\hide filter pane (filter icon is present nearby the drill icon)
Now drag the required object on this pane.
It will create the dropdown filters on top of the report.
Regards,
Rohit -
Change number of record displayed for a single item alone
Hi,
I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.
Is this achievable?
Or should i have to put that item in a separate data block and choose the data block property to "Number of records displayed" as 10?
Thanks,
Yuvaraaj.983448 wrote:
Hi,
I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.Yes you can. But i will say re-check your design.
Hamid
Mark correct/helpful to help others to get right answer(s).* -
Items to display in list view web part not showing the items setup
Hi, I have the following issue. I have a list view web part, but the web part is showing more items that the ones setup in the: Number of items to display in list view web part for this view.
It is because that works when using datasheet view and not a normal view? Is there any technical documentation from Microsoft supporting this?thank you for your answer. It is interesting that the mobile view with the items to show in the mobile view doesn't work in the webpart, but it works when you are using datasheet view, but if you uncheck to activate the mobile view, then, the webpart doesn't
show information, so, it works partially because one part works and not the other.
Maybe you are looking for
-
Using LDIFDE to Export/Import configuration
Hi All, I need to create a "copy" of a domain using LDIFDE. To do that, I exported the Configuration, Schema, OUs, Users and Groups. I'm having plenty of troubles during the import, so I wanted to clarify a few things: 1) What order should the data b
-
Screen flicker with temporary lockups
System: 1.4 G Athlon Asus A7M266 motherboard MSI 8831 Geforce2 Pro Video card Sound Blaster Live! I-Will SATA RAID controller card 2 x 120 Gig Maxtor Diamond Max Plus HD ethernet card I recently upgraded to the 2 maxtor hard drives. And since my mot
-
Problems with image attributes
I'm not a native speaker but I give it a try :-) I tried to add attributes of my image element directly in the attributes window, for example I set the alignment to left. But the image is then still aligned center and it won't save the setting when I
-
Change the email address in VF02 before saving
Hi Experts, I have a requirement in which I have to change the email address when the user selects my custom output type in VF02 transaction . The process : VF02 - Enter a billing document number - Go To - OUTPUT - Select the desired OUTPUT TYPE whic
-
How to install HP ScanJet G4050
How do I install HP Scanjet G4050. The message says: You can't open the application HP Scanjet Scanner Install.app because PowerPC applications are no longer supported.