How the data integrity is maintained between different EJB calls.
Can anybody pls. clarify on how to maintain data integrity when different business logic components (EJB's) calls different database instance.
Say client calls Session EJB1 which debits a account
client calls Session EJB2 which credits another account
Will the session facade help?. Can we use CMB for this.
Use Session Facade design pattern.
SessionFacadeBean {
transfer() // trasaction attribute for this method shud be RequiresNew or Required
lookup(ejb1);
EJB1.debit(); // trasaction attribute for this method shud be Required or Supports
lookup(ejb2);
EJB2.credit(); // transaction attribute for this method shud be Required or Supports
}
Similar Messages
-
How to select the data from a Maintainance View into an internal table
Hi All,
Can anybody tell me how to select the data from a Maintainance View into an internal table.
Thanks,
srinivas.HI,
You can not retrieve data from A mentenance view.
For detail check this link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
Regards,
Anirban -
Entire Scenario how the data is being process.
Hi,
I need the full scenario in detail, when the sender adapter pick the file from the source directory, how the data is passed to IS and how the data is passed to adapter engine and how the adapter engine process the data and how the data is send to adapter framework and wat all the steps adapter framework perform and on wat step the audit logs is maintain, how messaging, logging and queing will done in AFW and after processing the data in adpter engine how the data is being passed to Integration Engine and how the pipeline steps will get execute and how the data is been transfered to receiver.
All others steps being process while sending the data from sender system to receving steps and how the data is process internally and where audit log is maintain etc.Hi,
Please see the below links
see the below links to helps you lot
http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
/people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/a12241c20af16fe10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/6019419efeef6fe10000000a1550b0/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/327dc490-0201-0010-d49e-e10f3e6cd3d8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/34a1e590-0201-0010-2c82-9b6229cf4a41
Regards
Chilla -
Hi Experts,
How the data is stored in Info cube and DSO...in the back end what will happen???
I mean Cube contain Fact table and Dimension tables How the data will store and what will happen in the backend???
Regards,
Swetha.Hi,
Please check :
How is data stored in DSO and Infocube
InfoCubes are made up of a number of InfoObjects. All InfoObjects (characteristics and key figures) are available independent of the InfoCube. Characteristics refer to master data with their attributes and text descriptions.
An InfoCube consists of several InfoObjects and is structured according to the star schema. This means there is a (large) fact table that contains the key figures for the InfoCube, as well as several (smaller) dimension tables which surround it. The characteristics of the InfoCube are stored in these dimensions.
An InfoCube fact table only contains key figures, in contrast to a DataStore object, whose data part can also contain characteristics. The characteristics of an InfoCube are stored in its dimensions.
The dimensions and the fact table are linked to one another using abstract identification numbers (dimension IDs) which are contained in the key part of the particular database table. As a result, the key figures of the InfoCube relate to the characteristics of the dimension. The characteristics determine the granularity (the degree of detail) at which the key figures are stored in the InfoCube.
Characteristics that logically belong together (for example, district and area belong to the regional dimension) are grouped together in a dimension. By adhering to this design criterion, dimensions are to a large extent independent of each other, and dimension tables remain small with regards to data volume. This is beneficial in terms of performance. This InfoCube structure is optimized for data analysis.
The fact table and dimension tables are both relational database tables.
Characteristics refer to the master data with their attributes and text descriptions. All InfoObjects (characteristics with their master data as well as key figures) are available for all InfoCubes, unlike dimensions, which represent the specific organizational form of characteristics in one InfoCube.
http://help.sap.com/saphelp_nw04s/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
Check the threads below:
Re: about Star Schema
Differences between Star Schema and extended Star Schem
What is the difference between Fact tables F & E?
Invalid characters erros
-Vikram -
How the data is entered in the customized table
Hi,
In implemenation scenario when we create generic extraction , how the data is entered
in the customized table if it is huge data ( around 5000 records)
Regards,
VivekHi Vivek,
Follow bellow steps:
1.Goto RSO2.
Choose Datasource from bellow of Three
a). Transaction Data
b). Master data Attributes
c). Master data Text
2.Specify Application component(SD/MM..)
3.There are three extraction methods to fill datasource.
4.Select extraction method extracts the data from a transparent table or database view.
5.Select Extraction from View, then we have to create the View.
a).Specify the view name.
b).Choose the view type (Database view) from bellow mentioned views.
i). Database view.
ii). Projection view.
iii).Maintainance view.
iv). Help view.
6. Specify Tables and Join Conditions and define view fields.
7. Assign View to Datasource
8. Once you specify view in Data source, the extract structure will generate.
9. you can check the data in RSA3.
Regards,
Suman -
How the data is fetched from the cube for reporting - with and without BIA
hi all,
I need to understand the below scenario:(as to how the data is fetched from the cube for reporting)
I have a query, on a multiprovider connected to cubes say A and B. A is on BIA index, B is not. There are no aggregates created on both the cubes.
CASE 1: I have taken RSRT stats with BIA on, in aggregation layer it says
Basic InfoProvider *****Table type ***** Viewed at ***** Records, Selected *****Records, Transported
Cube A ***** blank ***** 0.624305 ***** 8,087,502 ***** 2,011
Cube B ***** E ***** 42.002653 ***** 1,669,126 ***** 6
Cube B ***** F ***** 98.696442 ***** 2,426,006 ***** 6
CASE 2:I have taken the RSRT stats, disabling the BIA index, in aggregation layer it says:
Basic InfoProvider *****Table Type *****Viewed at *****Records, Selected *****Records, Transported
Cube B *****E *****46.620825 ****1,669,126**** 6
Cube B *****F ****106.148337**** 2,426,030***** 6
Cube A *****E *****61.939073 *****3,794,113 *****3,499
Cube A *****F ****90.721171**** 4,293,420 *****5,584
now my question is why is here a huge difference in the number of records transported for cube A when compared to case 1. The input criteria for both the cases are the same and the result output is matching. There is no change in the number of records selected for cube A in both cases.It is 8,087,502 in both cases.
Can someone pls clarify on this difference in records being selected.Hi,
yes, Vitaliy could be guess right. Please check if FEMS compression is enabled (note 1308274).
What you can do to get more details about the selection is to activate the execurtion plan SQL/BWA queries in data manager. You can also activate the trace functions for BWA in RSRT. So you need to know how both queries select its data.
Regards,
Jens -
How the data is fetched from the cube for reporting
hi all,
I need to understand the below scenario:(as to how the data is fetched from the cube for reporting)
I have a query, on a multiprovider connected to cubes say A and B. A is on BIA index, B is not. There are no aggregates created on both the cubes.
CASE 1: I have taken RSRT stats with BIA on, in aggregation layer it says
Basic InfoProvider *****Table type ***** Viewed at ***** Records, Selected *****Records, Transported
Cube A ***** blank ***** 0.624305 ***** 8,087,502 ***** 2,011
Cube B ***** E ***** 42.002653 ***** 1,669,126 ***** 6
Cube B ***** F ***** 98.696442 ***** 2,426,006 ***** 6
CASE 2:I have taken the RSRT stats, disabling the BIA index, in aggregation layer it says:
Basic InfoProvider *****Table Type *****Viewed at *****Records, Selected *****Records, Transported
Cube B *****E *****46.620825 ****1,669,126**** 6
Cube B *****F ****106.148337**** 2,426,030***** 6
Cube A *****E *****61.939073 *****3,794,113 *****3,499
Cube A *****F ****90.721171**** 4,293,420 *****5,584
now my question is why is here a huge difference in the number of records transported for cube A when compared to case 1. The input criteria for both the cases are the same and the result output is matching. There is no change in the number of records selected for cube A in both cases.It is 8,087,502 in both cases.
Can someone pls clarify on this difference in records being selected.Hi Jay,
Thanks for sharing your analysis.
The only reason I could think logically is BWA is having information in both E and F tables in one place and hence after selecting the records, it is able to aggregate and transport the reords to OLAP.
In the second case, since E and F tables are separate, aggregation might be happening at OLAP and hence you see more number of records.
Our Experts in BWA forum might be able to answer in a better way, if you post this question over there.
Thanks,
Krishnan -
What is RT , BT in HR Reporting ? How the Data is Populated into RT, BT ?
Hi
Iam Debugging an HR ( used LDB )Report. In that Report 'RT' is used.
What is the Meaning of 'RT'. And how the Data is populated in to that RT ?
What is the Meaning of 'BT'. And how the Data is populated in to that BT ?
Kindly clarify my doubts.
Regards,
N.L.Hi nl,
1. These are related to payroll results.
2. Whenver salary is processed,
VAST & varied amount of information needs
to be stored.
3. Hence, sap uses the concept of CLUSTER table.
4. when salary is processed,
some wage types,amounts etc
are generated.
ie. RESULTS are generated.
the table name is RT
5. Same way, BANK Transfer
ie. bank code, name, amount etc.
also needs to be stored.
Its table name is BT.
Similary there are other tables also viz WPBP etc.
6. Payroll data can be retrived using
macros and also using FM.
7. Below is the technique
DATA: myseqnr LIKE hrpy_rgdir-seqnr.
DATA : mypy TYPE payin_result.
DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
SELECT SINGLE seqnr FROM hrpy_rgdir
INTO myseqnr
WHERE pernr = mypernr
AND fpper = '200409'
AND srtza = 'A'.
IF sy-subrc = 0.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = 'IN'
employeenumber = mypernr
sequencenumber = myseqnr
CHANGING
payroll_result = mypy
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
myrt[] = mypy-inter-rt.
READ TABLE myrt WITH KEY lgart = '1899'.
IF sy-subrc = 0.
entl-cumbal = myrt-betrg.
MODIFY entl.
cumul = entl-cumbal.
ENDIF.
regards,
amit m. -
How the data extraction happens from HR datasources from R/3 to BW system.
Hello All
How the data extraction happens from HR datasources from R/3 to BW system.Incase of delta records ( for CATS datasources ) ,Is there any flow like LO .
Incase of Full and delta loads how does the data will be taken from R/3 to BW,DO we need to fill setup tables ?
Searched forum but couldnt able to find the relevant one.
Thankyou
ShankarHi Shankar.
HR Datasources do not have setup tables . Though before implementation, certain customizations should be done and the delta loads have dependency on other data sources. Also you must have implemented Support Package SAPKH46C32, or have made the relevant corrections in SAP Note 509592.
Follow this link for details on customization and dependencies for all CATS datasources.
http://help.sap.com/saphelp_nw70/helpdata/en/86/1f5f3c0fdea575e10000000a114084/frameset.htm
Regards,
Swati -
How the data populated into tables like USR01,USR02 etc
Hi,
I have one theoritical doubt. How the data is populated into tables like USR01, USR02 etc after creating the
user using SU01. Let me know the process behind it.
Rgds,
Chandra.Hi Chinna,
When you create users using SU01, SU10 transaction codes, it uses BAPI_USER_CREATE1 which will update the data in the respective tables.
Same way BAPI_USER_CHANGE is used when you modify any existing users.
Hope this answers!!
Warm Regards,
Raghu -
How the data gets replicated from CRM to ISU
Hello All,
How the data gets replicated from CRM to ISU?
Would appreciate documents send to [email protected]
Regards,
RemiHere is the link!
http://help.sap.com/saphelp_crm50/helpdata/en/c8/b0a68afbb3624cbabeb5ea12a8c639/frameset.htm
Cheer,
Daniel
http://sapro.blogspot.com -
API & sample examples for the data integration to Oracle WMS.
Hi All,
Is there any API support for the data integration to Oracle WMS?
and after that, we want to take the data from WMS to Oracle E-Business Suite..
Please send the link from where we can find the API and sample examples..
Any help would be highly appreciated
Thanks,Hi Sanjitanand,
Thanks for your reply.
What i are trying is;
I want to develop generic interfaces using Oracle API; which will help us in sending the RFID related data to WMS and then to EBS.
My input will be xml or flat files, i'll parse that; get the data and want to send this RFID data to WMS and from WMS to EBS..
If you have any sample examples/ docs / code etc , pls send me same..
Any help would be highly appreciated
Thanks, -
How the data is filled in the table HRP1000 by giving OTYPE as BA
Hi All,
I have table HRP1000 in which we have OTYPE. If we have OTYPE = 'Q' and execute the data is displayed based on this OTYPE. Can anybody tell from where the data is being filled into the table.
Can anybody provide FM or relationship between the tables where the data is being filled.
ThanksHi Mr reddy,
We maintain the qualification code for the enterprise for object type Q in HRP1000 table this information is coming..
Transaction Code to maintain qualification Catalog is OOQA
Warm Regards,
Kapil Kaushal -
How can I link text boxes between different Master Pages in InDesign?
I want to link text boxes back and forth between different Master Pages in InDesign. How can I do this?
I'm interested to know what it is you're trying to achieve - can you explain what you want your text to do?
Regards,
Malcolm -
How the data is embedded in the image
please explain this code clearly !!! how the file is embedded inside the image and retrieved back !!!
Private Sub btn4(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NLabel4.Click
Using O As New OpenFileDialog With {.Filter = "(Image Files)|*.jpg;*.png;*.bmp;*.gif;*.ico|Jpg, | *.jpg|Png, | *.png|Bmp, | *.bmp|Gif, | *.gif|Ico | *.ico", .Multiselect = False, .Title = "Select image"}
If O.ShowDialog = 1 Then
Try
Using FS As New IO.FileStream(O.FileName, IO.FileMode.Open)
FS.Seek(0, IO.SeekOrigin.End)
While Not FS.ReadByte = Asc("|")
FS.Position -= 2
End While
Dim s As String = Nothing
While Not FS.Position = FS.Length - 4
s &= Chr(FS.ReadByte.ToString)
End While
Dim Ext As String = Nothing
FS.Seek(0, IO.SeekOrigin.End)
While Not FS.ReadByte = Asc("*")
FS.Position -= 2
End While
While Not FS.Position = FS.Length
Ext &= Chr(FS.ReadByte.ToString)
End While
FS.Seek(FS.Length - ((s.Length + s) + 5), IO.SeekOrigin.Begin)
Using sfd As New SaveFileDialog With {.DefaultExt = Ext, .Filter = "*." & Ext & " | *." & Ext}
If sfd.ShowDialog = 1 Then
Using FSw As New IO.FileStream(sfd.FileName, IO.FileMode.Create)
While Not FS.Position = FS.Length - (s.Length + 5)
FSw.WriteByte(FS.ReadByte)
End While
End Using
End If
End Using
End Using
Catch ex As Exception
MessageBox.Show("There was an error!" & vbNewLine & vbNewLine & "The application will now close.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Me.Close()
End Try
End If
End Using
End Sub
Private Sub btn3(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NLabel3.Click
Dim ext As String = TextBox1.Text.Substring(TextBox1.Text.LastIndexOf(".") + 1)
Using SFD As New SaveFileDialog With {.DefaultExt = ext, .Filter = "*." & ext & " | *." & ext}
If SFD.ShowDialog = 1 Then
Try
Dim ImageBytes() As Byte = IO.File.ReadAllBytes(TextBox1.Text)
Dim FileBytes() As Byte = IO.File.ReadAllBytes(TextBox2.Text)
Dim FS As New IO.FileStream(SFD.FileName, IO.FileMode.CreateNew)
FS.Write(ImageBytes, 0, ImageBytes.Length)
FS.Write(FileBytes, 0, FileBytes.Length)
FS.WriteByte(Asc("|"))
Dim FileSize() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(New IO.FileInfo(TextBox2.Text).Length)
FS.Write(FileSize, 0, FileSize.Length)
FS.WriteByte(Asc("*"))
Dim Extention() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox2.Text.Substring(TextBox2.Text.LastIndexOf(".") + 1))
FS.Write(Extention, 0, Extention.Length)
FS.Close()
FS.Dispose()
MsgBox("Done")
Catch ex As Exception
MessageBox.Show("There was an error!" & vbNewLine & vbNewLine & "The application will now close.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Me.Close()
End Try
End If
End Using
End Sub1. the new file which we are creating will be in this order or not
file_extension * data_file_size | data_file image_file
No. The file will be in the order in which it is written in the writing routine:
1. Image File
2. Data File
3. "|"
4. Data File Size (ASCII)
5. "*"
6. File Extension (ASCII)
2. explain this snippet .. why we are changing position while we are extract file
While Not FS.ReadByte = Asc("|")
FS.Position -= 2
End While
Dim s As String = Nothing
While Not FS.Position = FS.Length - 4
s &= Chr(FS.ReadByte.ToString)
End While
Dim Ext As String = Nothing
FS.Seek(0, IO.SeekOrigin.End)
While Not FS.ReadByte = Asc("*")
FS.Position -= 2
End While
While Not FS.Position = FS.Length
Ext &= Chr(FS.ReadByte.ToString)
End While
FS.Seek(FS.Length - ((s.Length + s) + 5), IO.SeekOrigin.Begin)
The file read position is recalculated before each read, depending either on the position of the marker ("|" and "*") or on the length of the data. That's how each portion is extracted - the position is set to the start of the portion, and that
portion is read for the correct number of bytes. The portions are extracted from the end back towards the beginning because the markers can only be guaranteed as unique (they are illegal in a filename extension) when searching backwards.
3. after combining the files with the image .. how the created image is visible (even we are not using any algorithm)
That depends on the image file format, but most formats will use header information that describes the location within the file of the various bits of data that are needed to create the image. The side effect of this is that if there is information
in the file that is not referenced from this header data then it is simply ignored. That's what this procedure is relying on - because the new data is appended to the end of the file it will not be referenced from the header data and will be ignored.
For a complete description of what this code does and why it works you should refer to the original author.
Maybe you are looking for
-
IPod has a problem charging.
OK so I found my iPod last month after having been m.i.a. for 7 months. So I plugged it into my computer and let it charge. It's been charging for over a month now and when I unplugged it and tried to listen to some music it said that the battery was
-
ITunes will not recognise my new Gift Card Code or Serial Number. Help!
I have just purchased an iTunes Gift Card with $30 credit. When I go to my iTunes and click 'redeem' it asks for my Gift Card Code. So I enter the code and it brings me to a new screen asking for the Gift Card Code, Serial Number and then my name and
-
Linksys BEFW11S4 version 3.2 need help finding software setup
Hey i have a wireless access point router its older and i lost the software disk and the support page on here only has firmware ugrades it had a setup wizard but everytime i download it and launch it it brings up a firmware upgrader the router i
-
Photoshop trials for students?
I was talking to my graphic design teacher and he told me there was a 3 year trial I could download for Photoshop because i'm a student. is this correct and if so does anyone have a link? Thanks so much
-
Should I open more trades?
Hi All! Rebuilding is well under way, score has jumped 80 points in 5 months....all of the bad items are out of the way...NOTHING PAST DUE (!), disputes/goodwills have been sent and resolved, etc. I recently applied for a JCP card, two reasons for de