Database Transaction In SAP
Hi,
Does SAP support database transations, what I am doing is getting the values from one Zdatabase table , and taking a value which holds the total, adding one to this , and placing the record in a differnt ztable, and then incrementing the 'total' value in the orginal; ztable , I obviously want to make sure the whole transaction occurs or nothing, I'm using insert , update in opensql.
Thanks
You can achieve that by creating Lock objects through SE11. Create one lock object including these tables. Once you do that, the system will generate a ENQUEUE and a DEQUEUE function module. You need to call the ENQUEUE function module before making any updates to the table and then the DEQUEUE after making the updates. This ensures that your data is locked in one single transaction. Now coming to making all updates or no updates, you need to do the entire sequence in one single task. The sequence is
CALL ENQUEUE FUNCTION MODULE
DO THE UPDATES.
CALL DEQUEUE FUNCTION MODULE.
Srinivas
Similar Messages
-
Extracting Values of a Field from a Database Table in SAP ECC System
Hi,
I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
"6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
I did not find WA elemen in Output element of Repeater_0
How can I create WA element?
Thanks.Cemil,
Set up a SAP JCo Interface action block. Use the RFC name RFC_READ_TABLE.
In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
<?xml version="1.0" encoding="UTF-8"?><FIELDS>
<item>
<FIELDNAME>MATNR</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>MTART</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>BSTME</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>XCHPF</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>DATAB</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
</FIELDS>
Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}. You may run into problems with two other fields and optionally they can be removed (set link type to remove xml). I usually remove them initially for testing. The two fields are:
SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~". I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
Once you get this one working, we can explore how to do filtering on the dataset. Your output should be something like this:
<?xml version="1.0" encoding="utf-8"?>
<RFC_READ_TABLE>
<INPUT>
<DELIMITER />
<NO_DATA />
<QUERY_TABLE>MARA</QUERY_TABLE>
<ROWCOUNT>20</ROWCOUNT>
<ROWSKIPS>0</ROWSKIPS>
</INPUT>
<TABLES>
<DATA>
<item>
<WA>000000000000000023ROH 00000000</WA>
</item>
<item>
<WA>000000000000000038HALB 00000000</WA>
</item>
<item>
<WA>000000000000000043HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000058HIBE 00000000</WA>
</item>
<item>
<WA>000000000000000059HIBE 00000000</WA>
</item>
<item>
<WA>000000000000000068FHMI 00000000</WA>
</item>
<item>
<WA>000000000000000078DIEN 00000000</WA>
</item>
<item>
<WA>000000000000000088FERT 00000000</WA>
</item>
<item>
<WA>000000000000000089FERT 00000000</WA>
</item>
<item>
<WA>000000000000000098HALB 00000000</WA>
</item>
<item>
<WA>000000000000000170NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000178NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000188NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000288HALB 00000000</WA>
</item>
<item>
<WA>000000000000000358HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000359HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000521HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000578FERT 00000000</WA>
</item>
<item>
<WA>000000000000000597HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000598VERP 00000000</WA>
</item>
</DATA>
<FIELDS>
<item>
<FIELDNAME>MATNR</FIELDNAME>
<OFFSET>000000</OFFSET>
<LENGTH>000018</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Material Number</FIELDTEXT>
</item>
<item>
<FIELDNAME>MTART</FIELDNAME>
<OFFSET>000018</OFFSET>
<LENGTH>000004</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Material Type</FIELDTEXT>
</item>
<item>
<FIELDNAME>BSTME</FIELDNAME>
<OFFSET>000022</OFFSET>
<LENGTH>000003</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
</item>
<item>
<FIELDNAME>XCHPF</FIELDNAME>
<OFFSET>000025</OFFSET>
<LENGTH>000001</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
</item>
<item>
<FIELDNAME>DATAB</FIELDNAME>
<OFFSET>000026</OFFSET>
<LENGTH>000008</LENGTH>
<TYPE>D</TYPE>
<FIELDTEXT>Valid-From Date</FIELDTEXT>
</item>
</FIELDS>
<OPTIONS />
</TABLES>
</RFC_READ_TABLE>
Add a repeater sourced on:
SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
Link your repeater output to a tracer with this:
Repeater_0.Output{/item/WA}
What you will see in each tracer message is a single line of data with all the fields contents concatenated together. You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc. Then you can parse out the data you are interested in.
Give this a try and let me know how you succeeded.
By the way, I could not find the scenario you referred to. Can you post a link?
Regards,
Mike
Edited by: Michael Appleby on Jan 12, 2009 5:16 PM -
Different between database lock and sap lock
Hi All,
What is different between database lock and sap lock why sap introduced locking mechanism.
Thanks
SantoshFrom a database perspective, every dialog step forms a physical and logical unit:
the database transaction.. The database lock administration can only coordinate
this type of database transaction. From an SAP point of view, however, this is
not sufficient, because SAP transactions, which are formed from a sequence of
logically related work steps that are consistent in business terms, are generally
made up of several dialog steps. SAP systems need to have their own lock
management. This is implemented using the enqueue work process. This also
ensures that the platform-independence of the lock management is maintained. -
Std report transactions in SAP MM
Can somebody provide me all Std SAP MM transactions for SAP MM.
Urgent pl.
ThanksHi,
Pl use Tcode SM01 and enter in the blank line MM and press
enter you will get all Tcodes starting with MM. You can use
OLM and press enter you will go to img. You can use this
transaction only if you have authorization.
Hope this helps you.
Regards,
S.V.ManiKumaar -
Index does not exist in database system DB6 sap
Hi All
In development system i have added a field into already existing index and activated successfully without any errors or warnings and after transported the TR into Quality system,In Quality system it shows the warning Index does not exist in database system DB6 sap
Thanks
VamsiHi Mohan,
After any change in the existing structure of the table you need to adjust and then activate it.
It can be done using SE14 tcode, please try using this.
Regards,
Mohammed -
Can i use java only for database transaction with vb as a front end
Hello All.
I am sorry,i don't know whether this location is the correct location to post my question or not
I have developed one application using complete vb only. That is completly desktop appliation and not suitable for centralized database. Is there any facility to keep my front end as same (vb application) and for the database transaction can i use jdbc? Is there any possibility to do that like View is vb based application and the database connectivity is only jdbc
If my thought is wrongplease execuse me.
thanks in advance
sowjanyaSounds like a really bad choice even if it was possible.
-
Hide command window from transactions in sap portal
Dear experts
sir i want to hide command window from transactions iview in sap portal when i using sap gui for windows sir i know very well settings for sap gui for html. so is there any possiblity for hiding command window from transactions iview when i use sap gui for windows
please help...............
Edited by: mousam jaini on Nov 1, 2010 12:11 PMHi Mousam
You can get solution from the SAP Note: 1010519
If ur system doesnot meet the pre-requiste, then you can set the below parameter under transaction sicf:
~webgui_simple_toolbar=1
Pls go through the below article to display the SAP Transaction as SAP GUI
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
Thanks
Keshari -
Problem with Sproxy transaction in SAP ECC 6.0
Hi,
I executed SPROXY transaction in SAP ECC 6.0 system, some objects of XI/PI repository are listed, some are not listed.
Why?
How can i achieve to be listed all XI/PI objects?
Thanks.Objects are listed belonging to the Software component ECC 6.0 only as you are viewing from ECC server ( makes sense?)
This link exist in SLD where Product and software components are listed.
Now if you have created a third party software component ABC and wants the objects from here also to be listed in ECC then you can go to ECC in SLD and make the Software component ECC 6.0 dependent on ABC.
regards -
Transaction iView - SAP GUI for HTML-blank on some systems
Hi,
I have few transaction iviews - SAP GUI for HTML running perfectly well on few systems. But the same iViews fail to load in few other systems. A blank iview is displayed. What could the problem be?
Thanks and Regards,
ReenaHi Reena,
Have a look at the product availability matrix:
https://websmp108.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=RELEASE&00200682500000002804=01200615320900001250&00200682500000003818=WBRPFM&00200682500000003853=Enterprise%20Portal
IE 7.0 may have some problems if using it with ITS. Ensure that IE are all on the same version (6.0 for example) and the same service pack. We have everyone using IE 6.0.2800.1106 and it works fine now.
Regards,
Nick. -
Transaction Iview - SAP GUI for HTML
Hi,
In SAP transaction iviews - SAP GUI for HTML in portal there is a possibility to go to menu,other transactions from the transaction field.Is there any way to remove the Menu button and hide the transaction field from transaction iview.
Please suggest.
Thanks,
RajaniHi Rajani,
Transaction iview which will control the menu,cancel buttons in SAP GUI for HTML
the url provided by Damian contain the solution for your requirement.
If you are looking somthing different then pls explain the requirement
Just let us know which specifiy buttons you want to show in transcation IVEW.
Thanks,
Anil -
Database transaction management in Web services
Hi,
I am using Oracle8i and firing some database queries from my web services. I want to do the transaction management for the same i.e. When one of the queries fail, i want to rollback. But when i write my own transaction management, it gives me an error :
java.sql.SQLException: Cannot call Connection.commit in distributed transaction.Transaction Manager will commit the resource manager when the distributed transaction is committed.
Can anyone please help me out as to how to perform the database transaction management in web services.
Thanking in advance.
PrashantUnfortunately to manage transactions over web services there is no viable solution available in market. All implementations come with restrictions e.g. Metro works with only EJBs on Glassfish, JBossTS works on JBoss but not with JAX-WS, Atomikos supports only Axis as of now.
1. See explanation above.
2. Yes, it can be but conditions mentioned above are applied :-)
3. [www.oasis-open.org/committees/ws-tx/|www.oasis-open.org/committees/ws-tx/]
4. Unfortunately as of now I do not see an easy way to this problem. -
Placing the transaction in SAP Menu
hi all,
i have created a ztable and maintaining a transaction for that. T-code is zm93f.
this transaction i have to place in the SAP Menu
logistics -> Material Management->Purchasing->Purchase Order-->Messages
Please let me know the procedure to follow .Please help me out from this.....
Thanks in Advance....Hi,
have a look at the below threads.
Re: sap menu folder
Add transactions in SAP Menu
Adding Report to SAP Menu
Regards,
nagaraj -
RELATIONAL DATABASE TABLES IN SAP BW
hi
friends please give me the information regarding the RELATIONAL DATABASE TABLES IN SAP BW?Hi,
See the tables.
InfoObjects Table:
RSDIOBJ Directory of all InfoObjects
RSDIOBJT Texts of InfoObjects
InfoCube Tables:
RSDCUBE Directory of InfoCubes
RSDCUBET Texts on InfoCubes
DSO Tables:
RSDODSO Directory of all ODS Objects
RSDODSOT Texts of all ODS Objects
PSA Table:
RSTSODS Directory of all PSA Tables
For reports:
RSRREPDIR
Thanks & Regards,
Sathish -
Transaction IView -- SAP GUI for Windows
Hi,
I have created a transaction iview -- sap gui for windows in my portal.
Even thought i logoff from my portal, sap gui session that is opened is not closed.
Can any one please suggest me a way to stop sap gui session also when i logoff from my portal.
Regards,
Nidhideep.Very difficult. The SAPGUI window doesn't know anything about being launched by the portal.
You could try launching inside the portal content area.
Also, what is the problem with having the SAPGUI still open?
Cheers -
The third party database supported by SAP BW
Hi
Apart from SAP R/3 , my client has a historical data in thier legacy system so called MFG/PRO, they wondering if SAP BW is allow to connect to such system. Anyone know where I can check the third party database supported by SAP BW ?
PanaddaHi:
The native SAP NetWeaver BI functionality delivered to connect with such a system is called UDconnect ("BW" is an old term).
Here are some resources
http://help.sap.com/saphelp_nw2004s/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff
You should be able to find a JDBC or ODBO driver for such a system that can work with UDconnect.
Thanks for any points you choose to assign.
Best Regards -
Ron Silberstein
SAP
Maybe you are looking for
-
Hi, I'm trying to resolve a "cannot be cast" error on Oracle JDeveloper 11.1.2.2.0. My application is using eclipselink JPA provider, which works fine on a fresh start WLS. However, when I redeployed my application without restarting the WLS, I got a
-
I create artworks from scratch by referring or using many other images opened in Photoshop as separate documents and arranged in a special layout in the workspace that takes a lot of time. I would like to be able to save my current session so that Ph
-
Have two servers, 'sapserver' and 'iscap02' on the network. While performing a client copy on sapserver received the error message "Cannot open log: iscap02\sapmnt\trans\log\CC001088.ECC". Created a host file on 'sapserver' to route the log. The fix
-
I want to create a flipping calendar. I had this brilliant idea of putting each date 01 02 03, etc in one text box, with a hard return in between, and then set the line height to zero. Then set the type to appear one paragraph at a time. It would eli
-
My ipod is under a year old.
However, during this years Lollapalooza Festival the rain destroyed my ipod. Is this by any chance covered under the warranty?