Not able to get ADF select many checkbox working with binding lists
Hi,
I have 2binding lists: list A that holds the selected choices and list B for all the choices. When the user opens the page, a list of checkbox should be displayed all the choices from list B with the saved ones pre-checked from list A. When the user changes the selection, the binding list A should be updated.
I tried to use ADF select many checkbox but could not get it working for this.
There are 2 big issues:
1, can get all the choices from binding list B displayed but not able to pre-check the ones from list A.
2, when the selection changed, not able to updated list A with the new choices
I find some sample but it is talking about saving the selected choices into the managed bean not into binding object and using valueChangeListener. How to implement this in ADF? Please help.
Thanks,
Helen
Helen,
I don't think you can do this with a select many checkbox. This component works on one list whereas you want to handle two. You may archive this if you use a managed bean and handle all the list manipulation in java.
Your use case more looks like a select many shuffle (http://docs.oracle.com/cd/E18196_01/11.1.2.0.0/lovs.html).
Timo
Similar Messages
-
Not able to get the full screen in Youtube with latest firefox
Hi All,
I was using the FF 3.0.10 came with ArchLinux pacman. Recenty I downloaded the latest FF from mozilla website and put that in /opt/firefox. I am able to do all other things in it except watching the full screen flash video from Youtube. The browser stucks when I click on the full screen option. But that is working fine in the old browser ( Gran paradiso ). I am not able to find the root cause of it. An idea ?silvik wrote:launch firefox with: LD_PRELOAD=/usr/lib/libGL.so.1 firefox
Yes that helped, thanks.
But it only happened with youtube flash movies, others were able to go fullscreen.
I got the following error messages in the console after the crash (cut off):
LoadPlugin: failed to initialize shared library /home/andi/.mozilla/plugins/libmks.so [libexpat.so.0: cannot open shared object file: No such file or directory]
*** glibc detected *** firefox: munmap_chunk(): invalid pointer: 0xa8398020 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7cbd281]
/lib/libc.so.6[0xb7cbe4b5]
/usr/lib/libGL.so.1[0xaa912205]
======= Memory map: ========
08048000-0805a000 r-xp 00000000 08:02 136715 /usr/lib/firefox-3.5/firefox
0805a000-0805b000 rwxp 00011000 08:02 136715 /usr/lib/firefox-3.5/firefox
0805b000-0805c000 rwxp 00000000 00:00 0
a419b000-a4f06000 r-xp 00000000 08:02 176929 /usr/lib/libGLcore.so.185.18.14
a4f06000-a50f3000 rwxp 00d6a000 08:02 176929 /usr/lib/libGLcore.so.185.18.14 -
Not able to get Shared Server Mode to work in XE
The server is an HP Dual CPU Xeon, 4 GB RAM. 120GB HD.
Oracle XE reports the following:
SGA 768 Target, 768MB Current.
PGA 256MB Target, 55MB current (when there are a small number of client connections)
The application and database work properly with a small number of connections, but
memory usage goes way up on PGA when I start to add more connections.
I have tried to set up the Oracle server in "Shared Server Mode" , but it appears
that I was unsuccessful.
From what I can tell, the oracle listener does not seem to be fowarding the incoming requests to the shared server dispatchers, but
instead it is deciding to kick off a dedicated server process to handle each client request.
In other words, it is working in dedicated server mode.
I am stumped as to what needs to be done next. From what
I can tell from reading documentation this should be working.
Please advice as to what else I can do to get things working.
Here is additional information:
The parameter SHARED_SERVERS is equal to 4.
parameter dispatchers=(PROTOCOL=TCP) (SERVICE=XEXDB)
max_shared_servers, max_dispatchers, shared_server_sessions have no values.
processes=150
sessions=170
Output of lnsrctl utility:
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: CO_DB, pid: 5844>
(ADDRESS=(PROTOCOL=tcp)(HOST=myhostname)(PORT=1771)
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
ILSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 18-SEP-2007 16:06:55
Uptime 0 days 0 hr. 1 min. 33 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File E:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File E:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhostname)(PORT
=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
The contents of the spfile2init.ora file:
xe.__db_cache_size=104857600
xe.__java_pool_size=4194304
xe.__large_pool_size=469762048
xe.__shared_pool_size=222298112
xe.__streams_pool_size=0
*.audit_file_dest='E:\oraclexe\app\oracle\admin\XE\adump'
*.background_dump_dest='E:\oraclexe\app\oracle\admin\XE\bdump'
*.compatible='10.2.0.1.0'
*.control_files='E:\oraclexe\oradata\XE\control.dbf'
*.core_dump_dest='E:\oraclexe\app\oracle\admin\XE\cdump'
*.db_name='XE'
*.db_recovery_file_dest='f:\oracle_flash_recovery_area'
*.db_recovery_file_dest_size=42949672960
*.dispatchers='(PROTOCOL=TCP) (SERVICE=XEXDB)'
*.job_queue_processes=4
*.open_cursors=300
*.os_authent_prefix=''
*.pga_aggregate_target=268435456
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=20
*.sga_target=805306368
*.shared_servers=4
*.undo_management='AUTO'
*.undo_tablespace='UNDO'
*.user_dump_dest='E:\oraclexe\app\oracle\admin\XE\udump'
The contents of listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = myhostname)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
The contents of tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhostname)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
The contents of sqlnet.ora:
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)I don't think it is supported because of XE multiple cpu usage limitations but "shared server" is not documented in the XE documentation - http://www.oracle.com/pls/xe102/ranked?word=%22shared+server%22
so you may want to follow this guide for setup and try -
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#ADMIN00502
Best Regards,
H.Tonguç YILMAZ
My Oracle blog
http://tonguc.wordpress.com
"Never believe all you read or hear! Just because it is printed or someone is more experienced doesn't mean it is TRUE.." -
Not able to get the all connected mac address with snmpwalk on sg300-28
am having SG300-28 switch, I am using Opennms to monitor it, but somehow the snmpwalk on the switch is not returning me the whole mac table.
the command i am using is snmpwalk -v 2c -c pex 192.168.x.x .1.3.6.1.2.1.4.22.1
the output is
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.6 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.23 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.30 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.6 = Hex-STRING: 76 6B E9 2E xx xx
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.23 = Hex-STRING: 74 D4 35 CF xx xx
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.30 = Hex-STRING: 50 46 5D 06 xx xx
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.6 = IpAddress: 192.168.x.x
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.23 = IpAddress: 192.168.x.xx
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.30 = IpAddress: 192.168.x.xx
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.6 = INTEGER: 3
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.23 = INTEGER: 3
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.30 = INTEGER: 3
it's showing me the three nodes but actually there are 10 nodes connected, anyone having Idea what is wrong?
Regards,
Deepakam having SG300-28 switch, I am using Opennms to monitor it, but somehow the snmpwalk on the switch is not returning me the whole mac table.
the command i am using is snmpwalk -v 2c -c pex 192.168.x.x .1.3.6.1.2.1.4.22.1
the output is
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.6 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.23 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.1.100014.192.168.3.30 = INTEGER: 100014
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.6 = Hex-STRING: 76 6B E9 2E xx xx
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.23 = Hex-STRING: 74 D4 35 CF xx xx
iso.3.6.1.2.1.4.22.1.2.100014.192.168.3.30 = Hex-STRING: 50 46 5D 06 xx xx
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.6 = IpAddress: 192.168.x.x
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.23 = IpAddress: 192.168.x.xx
iso.3.6.1.2.1.4.22.1.3.100014.192.168.3.30 = IpAddress: 192.168.x.xx
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.6 = INTEGER: 3
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.23 = INTEGER: 3
iso.3.6.1.2.1.4.22.1.4.100014.192.168.3.30 = INTEGER: 3
it's showing me the three nodes but actually there are 10 nodes connected, anyone having Idea what is wrong?
Regards,
Deepak -
Using Mac OSX Install Disc 1, I am not able to get any further than the Partition tab. It allows me to select my hard drive selection, but will not allow me to make any other selections such as options. Does anyone know their way around this obstacle? Am I doing anything wrong? Thanks
Hello, The Hatter, I read about the 'trick' of backing up, erasing, and restoring too, but I figured it would take longer than defragmenting the disk.
But the defragmentation process has just finished! so I'm gonna try to run Boot Camp again soon!
Thanks for your helpfulness, anyway.
And P.S. I didn't clone my system onto the external drive, I just inserted the Mac OS X Install CD, rebooted holding down the "C" key, and installed a fresh Snow Leopard system onto the predetermined partition. I will use that in cases of emergency, when my main/internal system becomes unusable. -
How to make interaction between select many checkbox and a database ?
Hi ;
i'm recently setup and start to use jdev Adf faces 11g (11.1.1.3.0), and i'm trying to use a select many checkbox component.
i want to link this select many checkbox with the result of of a select request.
in my data object, i created an attribute as LOV (list of value), now i do not now what's the next step ??
i will be extremely glad if you give me an example..
thank you in advance, and please excuse my englishSee if this helps -
Re: Many to many in ADF BC with selectManyShuttle -
ADF select many shuttle value tracking in the bean
Hi All,
I am working on a one requirement,
I have adf task flow(.jsff component), here i have ADF select many shuttle component,
I need to track value value which i am moving from the left side of panel to the right side panel ,i need to track these values in the Bean class.
I am not doing in the .jspx ,doing it in the .jsff bounded task flow.
can any1 pls suggest me the approach??
thanks
SantoshHere is what I did to get the selected items in the backing bean before they are shuttled across.
Added af:clientListener (<af:clientListener method="showDetails" type="propertyChange"/>) for af:selectManyShuttle
Set ClientComponent for af:selectManyShuttle to true
Added af:serverListener (<af:serverListener type="shuttleItemSelected" method="#{backingBeanScope.mainBean.itemSelected}"/>) to parent of af:selectManyShuttle which is af:panelBox in my case.
Added af:Resource with the following code
<af:resource type="javascript">
function showDetails(event)
if(AdfRichSelectManyShuttle.SELECTION == event.getPropertyName())
var shuttleComponent = event.getSource();
var parent = shuttleComponent.getParent();
var selectedObjs = AdfShuttleUtils.getLeadSelection(shuttleComponent);
AdfCustomEvent.queue(parent, "shuttleItemSelected", {fvalue:selectedObjs}, false);
event.cancel();
</af:resource>
In the backing bean code, implemented serverListener with the following code. "DepartmentsView1" is the list binding used to populate the Shuttle.
public void itemSelected(ClientEvent clientEvent) {
ArrayList ids = (ArrayList)clientEvent.getParameters().get("fvalue");
Object idArray[] = ids.toArray();
BindingContainer bc = this.getBindings();
JUCtrlListBinding listBinding = (JUCtrlListBinding)bc.get("DepartmentsView1");
RowIterator itr = listBinding.getRowIterator();
for (int i = 0; i < idArray.length; i++) {
int idx = Integer.parseInt((String)idArray);
Object str = itr.getRowAtRangeIndex(idx);
System.out.println(str);
When I run the JSPX file, I see the selected value printed in the message window before it is shuttled. If I select multiple values, I see them in the backing bean. -
Not able to get the taxonomy field value of meta data field type
Hi Everyone,
Not able to get the taxonomy filed value from the metadata filed type.
Any one can help me on this.
Label, TermGuid, ValidatedString are showing empty when i debug the code.
Below is the code which i used to get the taxonomy filed valueHi,
Can you please try getting this way?
var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
if (taxonomyField.AllowMultipleValues)
var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
else
var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
return new List<Guid>() { new Guid(fieldValue.TermGuid) };
Hope it helps!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP
Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
Code is :
<h1>JSP Page</h1>
<%
long type = 0;
String tagId = null;
String timeStr = "0";
String deviceName = "";
// Get Event Parameters
// Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
try
type = Long.parseLong(request.getParameter("type")); // Get type
tagId = request.getParameter("id"); // Get tagId
timeStr = request.getParameter("time"); // Get time
deviceName = request.getParameter("deviceName");
catch (Exception e)
out.println( "Error: "+e.getMessage() );
// Write into DB.
try {
if ((tagId == null) || (type != 200) ){
// Do Nothing
//return;
} else {
OracleDataSource ods = new OracleDataSource();
String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";
ods.setURL(URL);
ods.setUser("cus");
ods.setPassword("cus");
Connection myConn = ods.getConnection();
Statement stmt = myConn.createStatement();
String selectQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads ";
ResultSet rs = stmt.executeQuery(selectQuery);
String maxId = "1";
if (rs.next()) {
maxId = rs.getString(1);
String selectMaxTagIDQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
stmt = myConn.createStatement();
rs = stmt.executeQuery(selectMaxTagIDQuery);
String maxTagId = "1";
if (rs.next()) {
maxTagId = rs.getString(1);
long primaryKey = 1;
long tagKey = 1;
try {
primaryKey = Long.parseLong(maxId) + 1;
tagKey = Long.parseLong(maxTagId) + 1;
} catch (Exception e) {
long currentTime = System.currentTimeMillis();
long updateKey = (tagKey - 1);
String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
Statement updateStmt = myConn.createStatement();
updateStmt.execute(updateQuery);
String query =
"INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
Statement insertStmt = myConn.createStatement();
insertStmt.execute(query);
myConn.commit();
myConn.close();
} catch (Exception e) {
%>
<p>For browser debug:
<%
out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
%>
Kindly suggest where is the problem...
Thanks and regards
Mohammad Nasim AkhtarHI Prabhat,
Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
Event statical is showing like this
Events Received: 0 (0.00/sec)
Events Generated: 311 (0.19/sec)
Events Sent: 2 (0.19/sec)
Queued Events: 309 (0.19/sec)
Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
Thanks and regards
Nasim -
Not able to get the data in PE51
Dear Freinds,
I have copied similar to the standard in IN01 , in the Pe51> Windows i have kept under W1 all the wage types which comes under earnings and when i execute the payslip i.e in the simulation run and when i view the form i can see
only the wage types but i dont find the correspnding amounts agains each wage type. Please could any one help me
why iam not able to get the amount agains the wge type?
regards
divya.Hi,
I think u might have done some mistakes while configuring PE51 in cumulation ID ..........
First of all as Siki said check ur master data whether the WT has given in IT 0008 and corresponding amounts entered to the resp WT. if it is ok then check the pe51 config once........
go to pe51 give ur form name and select cumulation IDs go to change mode and double click on Earnings and see whether the data is maintained in this manner or not .......
Table = RT , ID = your WT code , MS = + (sign) , Dsplit = * (sign), rest all coulumn leave blank ........ save it and then again run the payrl in Live mode and see the Pay slip.........
If any problem Pls let us know.... and see other gurus post also.
Regards,
Prashant -
Not able to get the message from Queue using MQ adapter
HI
Using Mq adapter am able to put the message in a queue and am able to get the message if i select the schema type as opaque, but am not able to get the message if i specify any schema type and am getting timed out exception.
Kindly help to proceed with this issue.Hi,
Am also facing the same issue.
I would be thankful if anyone can provide the solution -
Not able to get data while executing in background for mb52
Dear all,
my requirement is i want to schedule the zreport for every 1 hour.but proble is when iam executing in fore ground iam able to get data.but when iam going to scheduling this iam not able to get data.
my code is
type-pools:slis.
data zbudat type RANGE OF budat.
data wab like line of zbudat.
data zmatkl type RANGE OF MATKL.
data waz like line of zMATKL.
data zwerks type RANGE OF werks.
data wax like line of zwerks.
waz-sign = 'I'.
waz-low = 'CRUDE'.
waz-option = 'EQ'.
append waz to zmatkl.
clear waz.
waz-sign = 'I'.
waz-low = 'SGO'.
waz-option = 'EQ'.
append waz to zmatkl.
clear waz.
*waz-sign = 'I'.
*waz-low = 'FINES'.
*waz-option = 'EQ'.
*append waz to zmatkl.
*clear waz.
*waz-sign = 'I'.
*waz-low = 'LUMPS'.
*waz-option = 'EQ'.
*append waz to zmatkl.
*clear waz.
*waz-sign = 'I'.
*waz-low = 'UFO'.
*waz-option = 'EQ'.
*append waz to zmatkl.
wax-sign = 'I'.
wax-low = 'BIMI'.
wax-option = 'EQ'.
append wax to zwerks.
clear wax.
wax-sign = 'I'.
wax-low = 'BIPL'.
wax-option = 'EQ'.
append wax to zwerks.
*waz-sign = 'I'.
waz-low = 'C'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'S'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'UC'.
*waz-option = 'CP'.
*append waz to zmatnr.
*waz-sign = 'I'.
waz-low = 'F'.
*waz-option = 'CP'.
*append waz to zmatnr.
*clear waz.
*waz-sign = 'I'.
waz-low = 'L'.
*waz-option = 'CP'.
*append waz to zmatnr.
types:begin of w_tab,
bwkey type werks_d,
matnr type matnr,
lgort type LGORT_D,
budat type budat,
labst type labst,
endmenge type p decimals 3,
end of w_tab.
DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB WITH HEADER LINE .
FIELD-SYMBOLS: <gt_fieldcat> TYPE slis_fieldcat_alv,
<gt_report_list> TYPE w_tab .
field-symbols <lt_pay_data> type any table.
*FIELD-SYMBOLS : <LT_DATA> LIKE LINE OF IT_TAB .
FIELD-SYMBOLS : <LT_DATA> type any . " i have chaged it
data lr_pay_data type ref to data.
cl_salv_bs_runtime_info=>set( exporting display = abap_false
metadata = abap_false
data = abap_true ).
****SUBMIT ZQM_GR_BARGE_LOADING WITH S_date in zbudat with s_werks in zwerks with p_pend = ' ' AND RETURN .
submit RM07MLBS with MATKLA in zmatkl with werks in zwerks
"with XVBST = 'X'
using selection-SCREEN '1000' and return.
try.
cl_salv_bs_runtime_info=>get_data_ref( importing r_data = lr_pay_data ).
assign lr_pay_data->* to <lt_pay_data>.
catch cx_salv_bs_sc_runtime_info.
message `Unable to retrieve ALV data` type 'E'.
endtry.
cl_salv_bs_runtime_info=>clear_all( ).
data: obj_s type ref to ZKMINCO_MINESTOCKFROM_SAP_OUT.
create OBJECT obj_s.
data : output TYPE ZKMINMINESTOCKFROM_SAP1 ,
record type ZKMINMINESTOCKFROM_SAP_REC_TAB ,
wa_record like line of record.
LOOP AT <lt_pay_data> ASSIGNING <LT_DATA>.
MOVE-CORRESPONDING <LT_DATA> TO IT_TAB .
APPEND IT_TAB .
wa_record-STOCK_AS_ON_DATE = sy-datum .
wa_record-STOCK_AS_ON_TIME = sy-uzeit .
wa_record-PLANT_ID = it_tab-bwkey.
wa_record-STORAGE_LOC_ID = it_tab-lgort .
wa_record-MATERIAL = it_tab-matnr .
wa_record-STOCK_QTY = it_tab-labst.
append wa_record to record.
clear wa_record.
endloop.
output-MINESTOCKFROM_SAP-record = record .
CALL METHOD obj_s->MINESTOCKFROM_SAP_OUT
EXPORTING
output = output .
commit work.
Thanks in advance.Hi,
I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)
zforeground has :
1. a input field to browse excel sheet or some file at the selection screen, and
2. button 'post all' to determine the background processing.
Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked.
So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:
DATA: jobname LIKE tbtcjob-jobname.
DATA :jobcount LIKE tbtcjob-jobcount,
host LIKE msxxlist-host.
DATA: BEGIN OF starttime.
INCLUDE STRUCTURE tbtcstrt.
DATA: END OF starttime.
DATA: starttimeimmediate LIKE btch0000-char1.
DATA: gv_job_dt TYPE sy-datum,
gv_job_tm TYPE sy-uzeit.
jobname = 'EXCLUSION_LISTING'.
gv_job_dt = sy-datum.
gv_job_tm = sy-uzeit.
Job open
CALL FUNCTION 'JOB_OPEN'
EXPORTING
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
IF sy-subrc NE 0.
"error processing
ENDIF.
Insert process into job
SUBMIT ZBACKGROUND AND RETURN
WITH p_file1 = gv_file_cust_exc "<----
Parameters which you want to pass to report zbackground from the report
WITH p_file2 = gv_file_win_deal "------zforeground
USER sy-uname
VIA JOB jobname
NUMBER jobcount.
IF sy-subrc ne 0.
"error processing
ENDIF.
Close job
starttime-sdlstrtdt = gv_job_dt.
starttime-sdlstrttm = gv_job_tm.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
EXCEPTIONS
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
OTHERS = 99.
IF sy-subrc EQ 0.
WRITE:/1 'JOB' COLOR 3,
jobname COLOR COL_GROUP,
'Scheduled in Background' COLOR 3. "error processing
gv_time = starttime-sdlstrttm.
gv_date = starttime-sdlstrtdt.
ENDIF.
Above code will schedule the report zbackground in background.
Note:
the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program schhedulling it in foreground or it has to be thr in application server.
Regards,
Ravi -
Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved. It started with the last upgrade to 10.8
Back up all data.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
Step 1
If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
Step 2 (optional)
The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
resetpassword
That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not going to reset a password.
Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
NOt able to get text value for 0calmonth in the query
hi,
I am not able to get the test for the calmonth in the selection screen of the Query.
i.e If the user enter the value 01/2010 as input in the selection screen. I am not able to get its text Janurary 2010 displayed in the selection screen of the query.
please let me know what could be the reason for this.
regards,
MaheshHi Mahesh,
I regret to inform you there is no option to display the month text.
The system works as designed. The "Key and text" option for the
infoObject is for display the technical name and the description.
I found a customer on SDN which the same doubt and the answer for your
question. Please, check the link below:
0calday text variable
Best Regards,
Des -
Not able to get Form 16 A (SAP Business One 8.8 Version)
Hi all,
I am not able to get Form 16 A, after giving necessary information in Form 16 A Selection criteria screen (after posting Outgoing payment for vendor and Govt authority), then system opens another window u201CForm 16 A reportu201D and clicked u201Cgenerate certificate nou201D , but not able to view form 16A.
system is throwing a message "No certificate number marked to any invoice included in this form",
where to mark the certificate number in the invioice?
In BP master under accounting , tax subtab, for Subject to withholding tas there we have a feild for certificate no, update this feild also the same system mesaage is popping up
Is there any other process to view?
Am working on SAP Business One 8.8 (8.80.229) SP: 00 PL: 10
Can anyone help how to get Form 16 A
Thanks
Kumar
Edited by: kumar on Jun 29, 2010 1:11 PM
Edited by: kumar on Jun 29, 2010 1:12 PMHello Dear,
After posting outgoing payment and payment of TDS on TDS account,Update the challan entries.
You can get the update challan entries form under Financial --CXS-TDS.
After that open the Form 16 A form you will get the report.
Thanks,
neetu
Maybe you are looking for
-
No Disk error in Premiere Elements 13
I am getting the following error: "There is no disk in the drive. Please insert a disk into drive\Device\Harddisk1\DR1." If i click continue about 5 times the box disappears & I can continue working. The same thing occurs at random when i am attem
-
How can I get a List Objects from my NameSpace
Hello to All. I need a list of objects an specifc documentation about these. ( SAP XI) Any transaction o maybe tables , where located this objects . Thanks and Regards Edited by: Luis Ortiz on Oct 10, 2008 2:58 PM
-
When I clip on an Mpeg movie I get a message that the file cannot play because it is being used by the OS X operating system. What does that mean and how do I get rid of it so the movie will play.
-
When sap abap market is going to start
hello can anybody tell that how is sap abap market? when it is going to start?
-
Security & Privacy System Preferences pane cannot open!
my env: - Max OS X 10.7.3 - 2.2 Ghz Intel Core i7 this month , i can not enter Security & Privacy pane from System Preferences - when i click - pop alert windows, tell some error what can i do now?!