How to post a Object in HttpService?
Such as:
<mx:HTTPService id="HSDemo" method="POST"
showBusyCursor="true" url="goalInsert.action">
<mx:request>
<book.title>{names.text}</book.title>
</mx:request>
</mx:HTTPService>
RESULT: "{names.text}" is undefined.
WHY?
First, you are doing a few things I don't undertand.
The url property, for instance does not look valid. Can you
type that in a browser address and get anything back?
The child tags of mx:request are supposed to create
properties on the request object. I don't think "book.title" is
valid. Does that compile ok?
How are you invoking the send?
How are you handling the result?
Assuming "names" is the id of a TextInput or TextArea, I
would think your code should look like this:
<mx:HTTPService id="HSDemo" method="POST"
showBusyCursor="true"
url="
http://myWebServer/myApp/myJSP.jsp">
<mx:request>
<action>insert</action>
<booktitle>{names.text}</booktitle>
</mx:request>
</mx:HTTPService>
Also, to do this in AS:
var oRequest
bject = {title:names.text,action:"insert"};
HSDemo.send(oRequest);
You do not need the mx:request tags this way, and you can
more easily debug to make sure names.text has a value.
Tracy
Similar Messages
-
How to POST an object in an Applet to a JSP server?
I'm trying to realize such a functionality: when the 'Submit' button of a form is clicked, the form fields as well as a 'byte[]' object in an Applet in the page are POSTed to the JSP server. How to implement this?
PS I hope I'm posting in the right forum.You could do something like this. Probably you want to make it more generic to be able to add an arbitrary number of fields, but I hope you get an idea.
private void postData() {
URL url = new URL(/* your url here */);
URLConnection connection = url.openConnection();
String boundary = "----------" + Long.toHexString(System.currentTimeMillis());
connection.setRequestProperty("method", "POST");
connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
String name1; // the name of the first field
String value1; // the value of the first field
String name2; // the name of the second field
byte[] value2array; // the value of the second field or some object converted to a byte array
String output =
"--" + boundary + "\r\n"
+ "Content-Disposition: form-data; name=\"" + name1 + "\"\r\n"
+ "Content-Type: text/plain\r\n"
+ "Content-Transfer-Encoding: quoted-printable\r\n\r\n"
+ value1 + "\r\n"
+ "--" + boundary + "\r\n"
+ "Content-Disposition: form-data; name=\""+ name2 +"\"\r\n"
+ "Content-Type: image/png\r\n"
+ "Content-Transfer-Encoding: base64\r\n\r\n"
+ new String(value2array) + "\r\n"
+ "--" + boundary + "--\r\n";
connection.setDoOutput(true);
connection.getOutputStream().write(output.getBytes());
connection.connect();
} -
HOW TO: Post a SQL statement tuning request - template posting
This post is not a question, but similar to Rob van Wijk's "When your query takes too long ..." post should help to improve the quality of the requests for SQL statement tuning here on OTN.
On the OTN forum very often tuning requests about single SQL statements are posted, but the information provided is rather limited, and therefore it's not that simple to provide a meaningful advice. Instead of writing the same requests for additional information over and over again I thought I put together a post that describes how a "useful" post for such a request should look like and what information it should cover.
I've also prepared very detailed step-by-step instructions how to obtain that information on my blog, which can be used to easily gather the required information. It also covers again the details how to post the information properly here, in particular how to use the \ tag to preserve formatting and get a fixed font output:
http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
So again: This post here describes how a "useful" post should look like and what information it ideally covers. The blog post explains in detail how to obtain that information.
In the future, rather than requesting the same additional information and explaining how to obtain it, I'll simply refer to this HOW TO post and the corresponding blog post which describes in detail how to get that information.
*Very important:*
Use the \ tag to enclose any output that should have its formatting preserved as shown below.
So if you want to use fixed font formatting that preserves the spaces etc., do the following:
\ This preserves formatting
\And it will look like this:
This preserves formatting
. . .Your post should cover the following information:
1. The SQL and a short description of its purpose
2. The version of your database with 4-digits (e.g. 10.2.0.4)
3. Optimizer related parameters
4. The TIMING and AUTOTRACE output
5. The EXPLAIN PLAN output
6. The TKPROF output snippet that corresponds to your statement
7. If you're on 10g or later, the DBMS_XPLAN.DISPLAY_CURSOR output
The above mentioned blog post describes in detail how to obtain that information.
Your post should have a meaningful subject, e.g. "SQL statement tuning request", and the message body should look similar to the following:
*-- Start of template body --*
The following SQL statement has been identified to perform poorly. It currently takes up to 10 seconds to execute, but it's supposed to take a second at most.
This is the statement:
select
from
t_demo
where
type = 'VIEW'
order by
id;It should return data from a table in a specific order.
The version of the database is 11.1.0.7.
These are the parameters relevant to the optimizer:
SQL>
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.1.0.7
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUE
SQL>
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL>
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL>
SQL> show parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACT
SQL>
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL>
SQL> select
2 sname
3 , pname
4 , pval1
5 , pval2
6 from
7 sys.aux_stats$;
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 01-30-2009 16:25
SYSSTATS_INFO DSTOP 01-30-2009 16:25
SYSSTATS_INFO FLAGS 0
SYSSTATS_MAIN CPUSPEEDNW 494,397
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM
SYSSTATS_MAIN MREADTIM
SYSSTATS_MAIN CPUSPEED
SYSSTATS_MAIN MBRC
SYSSTATS_MAIN MAXTHR
SYSSTATS_MAIN SLAVETHR
13 rows selected.Here is the output of EXPLAIN PLAN:
SQL> explain plan for
2 -- put your statement here
3 select
4 *
5 from
6 t_demo
7 where
8 type = 'VIEW'
9 order by
10 id;
Explained.
Elapsed: 00:00:00.01
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
14 rows selected.Here is the output of SQL*Plus AUTOTRACE including the TIMING information:
SQL> rem Set the ARRAYSIZE according to your application
SQL> set autotrace traceonly arraysize 100
SQL> select
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
Execution Plan
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
Statistics
0 recursive calls
0 db block gets
149101 consistent gets
800 physical reads
196 redo size
1077830 bytes sent via SQL*Net to client
16905 bytes received via SQL*Net from client
1501 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
149938 rows processed
SQL>
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsThe TKPROF output for this statement looks like the following:
TKPROF: Release 11.1.0.7.0 - Production on Mo Feb 23 10:23:08 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Trace file: orcl11_ora_3376_mytrace1.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
select
from
t_demo
where
type = 'VIEW'
order by
id
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1501 0.53 1.36 800 149101 0 149938
total 1503 0.53 1.36 800 149101 0 149938
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 88
Rows Row Source Operation
149938 TABLE ACCESS BY INDEX ROWID T_DEMO (cr=149101 pr=800 pw=0 time=60042 us cost=0 size=60 card=1)
149938 INDEX RANGE SCAN IDX_DEMO (cr=1881 pr=1 pw=0 time=0 us cost=0 size=0 card=1)(object id 74895)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1501 0.00 0.00
db file sequential read 800 0.05 0.80
SQL*Net message from client 1501 0.00 0.69
********************************************************************************The DBMS_XPLAN.DISPLAY_CURSOR output:
SQL> -- put your statement here
SQL> -- use the GATHER_PLAN_STATISTICS hint
SQL> -- if you're not using STATISTICS_LEVEL = ALL
SQL> select /*+ gather_plan_statistics */
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
SQL>
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID d4k5acu783vu8, child number 0
select /*+ gather_plan_statistics */ * from t_demo
where type = 'VIEW' order by id
Plan hash value: 1390505571
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads |
| 0 | SELECT STATEMENT | | 1 | | 149K|00:00:00.02 | 149K| 1183 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 1 | 149K|00:00:00.02 | 149K| 1183 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | 1 | 149K|00:00:00.02 | 1880 | 383 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
20 rows selected.I'm looking forward for suggestions how to improve the performance of this statement.
*-- End of template body --*
I'm sure that if you follow these instructions and obtain the information described, post them using a proper formatting (don't forget about the \ tag) you'll receive meaningful advice very soon.
So, just to make sure you didn't miss this point:Use proper formatting!
If you think I missed something important in this sample post let me know so that I can improve it.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/Alex Nuijten wrote:
...you missed the proper formatting of the Autotrace section ;-)Alex,
can't reproduce, does it still look unformatted? Or are you simply kidding? :-)
Randolf
PS: Just noticed that it actually sometimes doesn't show the proper formatting although the code tags are there. Changing to the \ tag helped in this case, but it seems to be odd.
Edited by: Randolf Geist on Feb 23, 2009 11:28 AM
Odd behaviour of forum software -
How to create an object within the same class???
hi im just a newbie
i v been always creating an object from the main class..
but how to create an object inside the same class??
i got main and students class
the main got an array
Students[] stu = new Students[]
and i got
stu[i] = new Students(id,name);
i++;
but i wanna do these things inside the Students class..
i tried ..but i got errors.....
how to do this
.javaexpert, :)
I really have no idea what you are trying to do since you say you've always been creating an object from the main class, yet you always want to create an object inside the same class.
I'll assume that you have an object in the main class that you are trying to access from the Students class.
If you are trying to access objects that are contained within the main class FROM the Students class, then know that there are two ways of doing so, one being static, and the other dynamic (look up definitions if unclear):
1.) make the objects in the main class both static and public and access the the objects using a convention similiar to: Main.object; It's important to note that Main is the name of your main class, and object is a static object. There are better ways of doing this by using gettter/setter methods, but I'll omit that tutorial.
2.) Create a new instance of the main class and access the objects using a similiar fashion: Main myInstance = new Main(); myInstance.myObject;
You should really use getter and setter methods but I'll omit the code. In terms of which approach is better, step one is by far.
I don't mean to be condecending, but you should really brush up on your programming skills before posting to this forum. This is a fundamenetal concept that you will encounter time and time again. -
How to create good object model?
Does anybody know how to create good object model?
Again and again I have to create different object models in various projects. I have to solve a lot of problems.
- Define all entities
- Create objects for it
- Define relations (ususlly i use SQL Databases)
- Define methods to load/edit/save/delete entities.
- Define methods to search and featch set of entities
- Define events for entities (fired when it change)
- the biggest problem is the events for collections. If i got the collection of entities for filter [FirstName = 'Sam'] i want to recieve event NewEntityAdded(), when new entity with FirstName='Sam' is created. But i want not to recieve event when that new entity's FirstName = 'Jack'.
Do anybody know good book or set of articles for such a questions?Hi Facedown12,
Does the issue resolved based on the Tatynan's suggestion? If the issue persists, please post the detail information about
your issue, so that we can make further analysis.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to persistent static object
JDO always assigns a StateManager to a PersistenceCapable object when
creating instance. If an object is static, it'll keep its StateManager for
ever after instantiation. So If I excute the following code repeadly, kodo
will complain that persistence manager has been closed.
1) Get PersistenceManager
2) Begin transaction
3) Get object from datastore. If not exist, create a new object. This
object is a static.
4) Commit transaction
5) pm.close
For the first time, kodo will assign a new StateManager to this static
object. But for the second time, exception, "persistence manager has been
closed", will arise when excuting some of object's methods. Because each
StateManager object owns a PersistenceManager object. If this pm is
closed, according StateManager object is also useless.
After enhancing, kodo will change some getter/setter methods to
according jdo getter/setter ones. These methods may invoke
startManager.isLoaded(), which invokes pm.isActive(). Unfortunately, pm
has been closed.
Any other tricky methods to persistent static object ?
Thanks !Dear Marc,
Thanks for your kind help. It's an effective advice to prevent
persistent object from being static.
However, what if the object to be persistent is an enumeration type
constant ? For example :
public class MyEnumType
private String name = null;
private int value = 0;
protected MyEnumType( String name, int value )
this.name = name;
this.value = value;
public static final TYPE_1 = new MyEnumType( "type 1", 1 );
public class EnumTypeUseClass
private MyEnumType type = null;
public void setType(..) {..}
public MyEnumType getType() {..}
public class TestClass
public void f()
PersistenceManager pm = null;
try
// Obtain pm
pm = ...;
pm.currentTransaction().begin();
EnumTypeUseClass use = new EnumTypeUseClass();
// Obtain myenumtype object from datastore
MyEnumType type = getJdoObject( pm, MyEnumType.class, "value ==" +
MyEnumType.TYPE_1.getValue() );
// Following line will cause "PersistenceManager has been closed"
exception
use.setType( type );
pm.makePersistent( use );
pm.currentTransaction().commit();
catch( .. )
finally
pm.close();
public static void main( String args[] )
for( int i = 0; i < 10; i ++ )
f();
Actually, exception is caused by MyEnumType.TYPE_1.getValue() because
this object's pm has been closed in the first loop time.
Now I solved this problem by not persistent MyEnumType objects, and
change type field in EnumTypeUseClass from MyEnumType to int.
But I still wonder how to persistent static objects.
Maybe your first advice is feasible, but I think it will make your
program tangly. Do you think so ? :)
Marc Prud'hommeaux wrote:
Liang-
You are correct that a persistent instance must be associated with a
PersistenceManager. You could always just leave the PersistenceManager
open (if using optimistic transaction, Kodo won't tie up database
resources in this case). Another option is to not have the singleston
instance be a static variable, but have it be obtained via a factory
method that takes a PersistenceManager argument.
If this doesn't help, perhaps you could help clarify the situation by
posting some code that shows that you would like to do?
In article <[email protected]>, Liang Zhilong wrote:
JDO always assigns a StateManager to a PersistenceCapable object when
creating instance. If an object is static, it'll keep its StateManager for
ever after instantiation. So If I excute the following code repeadly, kodo
will complain that persistence manager has been closed.
1) Get PersistenceManager
2) Begin transaction
3) Get object from datastore. If not exist, create a new object. This
object is a static.
4) Commit transaction
5) pm.close
For the first time, kodo will assign a new StateManager to this static
object. But for the second time, exception, "persistence manager has been
closed", will arise when excuting some of object's methods. Because each
StateManager object owns a PersistenceManager object. If this pm is
closed, according StateManager object is also useless.
After enhancing, kodo will change some getter/setter methods to
according jdo getter/setter ones. These methods may invoke
startManager.isLoaded(), which invokes pm.isActive(). Unfortunately, pm
has been closed.
Any other tricky methods to persistent static object ?
Thanks !
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
How can I pass objects across neywork?
How can I pass a ObjectOutputStream to a ObjectInputStream, across a socket?
Thanks in advance for your posts!Or maybe I am misunderstanding your question?-Probably
Lets see: ObjectOutputStream passes data trought aout
Stream; ObjectInputStream receives data trought a in
Stream: so, I suppose that they can use as streamsthe
connections betwen two sockets, in one point the
ObjectOutputStream sending, an in another the
ObjectInputStream receiving.Yes. The sockets provide the connections, and you can
call getInputStream or getOutputStream on the sockets
to read what the other guy is sending, or to write to
the other guy. You don't actually pass the sockets or
streams back and forth--they're just the channels by
which you pass your data.I knew that, thanks anyway. But my question is how can I pass objects throught that streams.
Anyone knows?
Thanks -
How to deploy olap object to BIEE
hello everybody,
I had build a project use OWB,but I dont know how to deploy this object to BIEE. I only select which table or view in build the BIEE and must setup the dimension which had been setup in OWB. Could I get the dimension information to the BIEE and dont not build it again in the BIEE.
Could you give me some good advice.
thinksOWB 10g and 11gR1 only deploy to OBISE (Discoverer), the OBIEE deployment directly from OWB is in the OWB 11gR2 release. You will have to build this model in OBIEE.
There are some interesting posts below on OBIEE and OWB developments here:
http://www.rittmanmead.com/2008/03/16/re-wiring-obiee-logical-models-to-use-a-data-warehouse-part-1/
http://www.rittmanmead.com/2008/03/16/migrating-obiee-logical-models-to-use-a-data-warehouse-part-2/
http://www.rittmanmead.com/2008/03/17/migrating-obiee-logical-models-to-use-a-data-warehouse-part-3/
Cheers
David -
How to Post a file(Flat File ) into Application server of the XI(AL11)?
How to Post a file(Flat File ) into Application server of the XI(AL11)?
Best Regards,
JoseHi,
1) goto SXDA_TOOLS Transaction code
2) Provide the Following details
Object Type : DXPROJECT
Program Type: BAPI
Program/Method: CREATE
3) Click on Copy Button
4) Select the Source as Presentation Server
a) Select the File where you saved in your Local machine
5) Select the Target as Application server
a) Check the check box Remote Server
b) Select the File type as Physical
c) In File name give /usr/sap/SSD/DVEBMGS00/work\Your file name (This the Server path
Where the file is going to save)
6) Click on Continue
Go to AL11 and check whether the File has been create in the following path /usr/sap/SSD/DVEBMGS00/work
Provide this path in the Communication channel path when you select the Transport Protocol as NFS and you place the file in AL11 directory.
Regards
Seshagiri -
How to avoid the objects dependency in the packages by standard settings?
Hi,
How to avoid the objects dependency in the packages by standard settings?
Example Scenario -> Our project uses two packages u2018ZZP1u2019 and u2018ZZP2u2019 for developments in the system u2018SN1u2019. We created a domain u2018ZZ_DO_TESTu2019 in the Package u2018ZZP1u2019. Now we have to make sure that the developer should not use or refer domain u2018ZZ_DO_TESTu2019 for the developments in the package u2018ZZP2u2019.
u2026NaddyEvevn i felt that in the CTS at least a warning can be given if the included objects refer to any other object(s) which arre:
1. Local Objects
2. Locked under other requests,
3. Lastly able to detect cyclic dependency as in we had a situation where we had a program locked in request A which calls an FM locked in request B. Now Request B refers to a message which is locked in request A.Since it was a message it gave only requrn code 4 in transport and transport ended with warnings. But if it is some other object then it is going to give compile error in at least one transport and neither can be moved without the other.
Anyways, i will check the BAPI he has mentioned and see if any workaround can be done,
Request: Please keep the post active until we arrive at a good solution,Thanks. -
How to post an Event (mouse left click) to JTree node
Hi,
I am using JTree for my application just like the windows explorer tree. By default, Jtree node will got focus using left click. But, I'd like that my tree will detect a right click so that I can copy any file to the Jtree. I've added a mouselistener to it but the node is not selected by the right click. Anyboby can teach me how to post a mouse left click event to the Jtree so that it will become selected using left click.
Thanks a millionSee if this is useful
public void mouseClicked(MouseEvent event)
Object object = event.getSource();
if (object == mTree)
mTree_mouseClicked(event);
private void mTree_mouseClicked(MouseEvent event)
if(event.getModifiers()==event.BUTTON3_MASK)
//your logic goes here
}//close method -
How to call request object of IPortalComponent in KM Scheduler application
Hi
We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
IJCOClientPoolEntry jcoPoolEntry = null;
jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
Thanks,
SusmitaHello GopalY,
In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
Regards,
Zafer, -
Hi,how can i transport objects from one server to other like (Dev To Qty)
Hi Sir/madam,
Can u explain how can i transport objects from one server to other like (Development To Quality To Production).
Regards,
Vishali.Hi Vishali,
Step 1: Collect all Transports(with Packages) in Transports Tab(RSA1)- CTO
Step 2: Release the subrequests first and then the main request by pressing Truck button
Step 3: STMS or Customized transactions
Object Collection In Transports:
The respective Transports should have the following objects:
1. Base Objects -
a. Info Area
b. Info object catalogs
c. Info Objects
2. Info Providers u2013
a. Info Cubes
b. Multi Providers
c. Info Sets
d. Data Store Objects
e. Info Cube Aggregates
3. Transfer Rules u2013
a. Application Components
b. Communication Structure
c. Data Source replica
d. Info Packages
e. Transfer Rules
f. Transformations
g. Info Source Transaction data
h. Transfer Structure
i. Data sources (Active version)
j. Routines & BW Formulas used in the Transfer routines
k. Extract Structures
l. (Note) If the transfer structures and related objects are being transferred without preceding
Base Objects transport (e.g. while fixing an error) it is safer to transport the related Info
Objects as well.
4. Update Rules u2013
a. Update rules
b. Routines and formulas used in Update rules
c. DTPs
5. Process Chains u2013
a. Process Chains
b. Process Chain Starter
c. Process Variants
d. Event u2013 Administration Chains
6. Report Objects u2013
a. Reports
b. Report Objects
c. Web Templates
Regards,
Suman -
My MacBook Pro is running VERY slowly. After reading other questions and responses, I ran an EtreCheck, but do not know how to post the report here. Any help would be greatly appreciated.
My MacBook Pro is running VERY slowly. After reading other questions and responses, I ran an EtreCheck, but do not know how to post the report here. Any help would be greatly appreciated.
-
FEBA - How to post two or more transactions at the same time?
Hi,
one of our banks sends the statemets with many lines that belongs to the same transaction. We have to post partially one line, and afterwards the other line. Any of you know how to post two lines at the same time from the bank statement?
Thank you in advance,
MiguelHi,
I'm sorry for replying so late.
The solution I reached was to change the a few things in the standard.
Now I have a new "context menu item". I select two or more transactions and I right-click the mouse. I select that "context menu item" and the next part of the code adds the total amount of the transactions to look for the correct post for the first transaction. Once posted automatically, the next transaction is posted automatically by the system.
I hope you understand my English. I've problem with technical FI terms.
Here you are the code:
First I added a new contextual menu item:
CL_FEBAN_ALV_GRID=============CCIMP
call method e_object->add_function
EXPORTING
fcode = 'BS_POST_ITEMS'
text = text-002.
*{ INSERT DHTK904078 1
*--> Miguel Estu00E9vez - 16/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
call method e_object->add_function
EXPORTING
fcode = 'ZBS_POST_ITEMS'
text = text-Z02.
*<-- Miguel Estu00E9vez - 16/06/2008
*} INSERT
call method e_object->add_function
EXPORTING
fcode = 'BS_KILL_ADVICE'
text = text-004.
CL_FEBAN_ALV_GRID=============CCIMP
when 'BS_POST_ITEMS'.
call method cl_feban_propagator=>raise_event
EXPORTING
i_event = 'POST_ITEMS'
i_ref_to_item = l_ref_to_item.
*{ INSERT DHTK904078 2
*--> Miguel Estu00E9vez - 16/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
when 'ZBS_POST_ITEMS'.
call method cl_feban_propagator=>raise_event
EXPORTING
i_event = 'ZPOST_ITEMS'
i_ref_to_item = l_ref_to_item.
*<-- Miguel Estu00E9vez - 16/06/2008
*} INSERT
when 'BS_LOCK_ITEMS'.
call method cl_feban_propagator=>raise_event
EXPORTING
i_event = 'LOCK_ITEMS'
i_ref_to_item = l_ref_to_item.
CL_FEBAN_PROPAGATOR===========CM001
when 'POST_ITEMS'.
raise event post_items
exporting i_ref_to_item = i_ref_to_item.
*{ INSERT DHTK904078 1
*--> Miguel Estu00E9vez - 16/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
when 'ZPOST_ITEMS'.
data: zvalor(1) value '' .
export zvalor from 'X' to memory ID 'ZFEBA01'.
raise event post_items
exporting i_ref_to_item = i_ref_to_item.
*<-- Miguel Estu00E9vez - 16/06/2008
*} INSERT
when 'LOCK_ITEMS'.
raise event lock_items
exporting i_ref_to_item = i_ref_to_item.
Now, I proceed to calculate the total amount of the selected transactions to look for the correct one to post.
LNEW_FEBAF01
* user parameter
l_feban_position type c.
field-symbols: <items> type item_tab_type.
*{ INSERT DHTK904077 1
*--> Miguel Estu00E9vez - 16/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
data: zvalor(1) value '',
zkwbtr type kwbtr,
kwb type kwbtr.
import zvalor to zvalor from memory ID 'ZFEBA01'.
if ( zvalor is not initial ).
if not i_ref_to_item is initial.
assign i_ref_to_item->* to <items>.
loop at <items> into h_item.
select single kwbtr
into kwb
from febep
where kukey = h_item-kukey and
esnum = h_item-esnum.
zkwbtr = zkwbtr + kwb.
endloop.
endif.
export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
endif.
*<-- Miguel Estu00E9vez - 16/06/2008
*} INSERT
refresh g_picked_items.
if not i_ref_to_item is initial.
assign i_ref_to_item->* to <items>.
loop at <items> into h_item.
move-corresponding h_item to h_picked_items.
append h_picked_items to g_picked_items.
endloop.
endif.
submit rfebbu00 and return
user sy-uname
with anwnd = r_doc->*-anwnd
with s_kukey in s_kukey
with s_esnum in s_esnum
with buber = g_posting_area
with mregel = '1'
with function = 'C'
with mode = g_mode
with p_bupro = g_bupro.
*{ INSERT DHTK904077 2
*--> Miguel Estu00E9vez - 17/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
if ( zkwbtr is not initial ).
select single kwbtr
into kwb
from febep
where kukey = h_kukey-low and
esnum = h_esnum-low.
zkwbtr = zkwbtr - kwb.
export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
endif.
*<-- Miguel Estu00E9vez - 17/06/2008
*} INSERT
refresh s_kukey.
refresh s_esnum.
clear h_kukey.
clear h_esnum.
endloop. "loop over all picked items
call function 'CUSTOMIZED_MESSAGE'
EXPORTING
i_arbgb = 'NEW_FEBA'
i_dtype = '-'
i_msgnr = '110'.
RFEBBU00
* original transaction currency provided and posting area = 2.
ftclear-selvon = febep-fwbtr. "INSERT - mpEURO
ENDIF. "INSERT - mpEURO
CONDENSE ftclear-selvon NO-GAPS.
*{ INSERT DHTK903977 1
*--> Miguel Estu00E9vez - 16/06/2008
* RIPI 24/04/2008 - Conciliaciones
* Permitir conciliar mu00E1s de un apunte a la vez
data: zkwbtr type kwbtr.
import zkwbtr to zkwbtr from memory ID 'ZKWBTR'.
if ( zkwbtr is not initial ).
ftclear-selvon = zkwbtr.
clear zkwbtr.
endif.
*<-- Miguel Estu00E9vez - 16/06/2008
*} INSERT
APPEND ftclear.
** Begin of comment C5053248
* perform druck_buzei_ftclear using ftclear-agkon.
Maybe you are looking for
-
Deployment From JDeveloper 11.1.1.1.0
Hi All, I am currenly using JDeveloper 11.1.1.1.0. We have developed an application and need to deploy it at one of our customers. They currently have Weblogic 10.3 installed with 1 ADF Application developed using the previous version of JDeveloper 1
-
Selecting one of several similar records based on a column value
Ok, here is the table structure: test_name test_count test_result ABC 1 2.5 ABC 2 2.6 ABC 3 2.7 BCD 1 1.5 CDE 1 3.0 DEF 1 7.6 and so o
-
Create export-csv with dynamic (unknown amount) columns
Hi, This is my first post, hopefully I include everything you need. My code block is at the bottom of my post..... I have written a PS script that gives me the info I need, but I would like to format it differently. Currently I import a CSV with 2
-
CONFIGURE RETENTION POLICY TO REDUNDANCY 0
Our database is 11g R2, below is our RMAN script Presently our retention policy is 1, so 1 backup is retained along with the current backup. I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup. Will it work if i cha
-
Business Objects and SAP BI Integrated Planning material
hi guys i am looking for Business Objects and SAP BI Integrated Planning any material site plz send me regards suresh