What is use of Reference object in BW
Hi All,
I have a small doubt about use of Reference object.Since reference object uses same database table of referenced object and also we can not load data in this.Only loaded data in Referenced object will be available in newly created reference object.
Also if we create more than 2 objects referencing the same object and used them in InfoProvider then what is use of these objects in that infoprovider whether they have same data and also all properties.
For example if we have created two objects u2018Sender Cost Centeru2019 and u2018Receiver Cost centeru2019 referencing the same object u2018Cost Centeru2019 and used them in an InfoCube.
Then what is use of these objects whethet they are refering same database table of u2018Cost Centeru2019.And how we can differentiate them during Reporting.
Regards
Vinay
consider below table:
cost center (master data table):
Cost SID, Center name, Other details
1 ..., xyz....., bla bla
2 ..., abc....., bla bla
Purchase Order Header Table (transcation table)
PONumber, Sender CostCntr, RecevierCostCntr, Other details.
101, 1, 2, xxxxxx
102, 2, 1, yyyyy
in cube, u've SIDs for MD... so when u read the details for say PONo 101, u pick sender SID & receiver SID & read details from master data table...
other example:
u r working somewhere.. u have employee ID & ur other details like name, address... all these get store in 0employee master data..
when in HR module ur salary is generated, salary module will hold only ur employee ID.. but from ur ID other details u can get.. rite?
same way leave module will have ur Id.. & it can get details bout ur leave & address...
both is true for ur manager.. but when ur leave is to be approved.. ur manager ID is required...when ur manager apply for leave his managerID is used.. all this get store in same leave module..
Similar Messages
-
Appraisals EHP4 - multiple reference objects not working in the same TAB
Dear SAP Experts,
I am working on MBO Performance Mgmt EHP4. I have created an appraisal template and testing this in MSS.
Now the structure of the template has a VB object called u201CMy Developmentu201D.
Within this VB Object I have created two other VB objects in the following order called
u201CSuccess Profilesu201D and
u201CAdditional Areas of Developmentu201D
The business requirement is to
a) within success profiles have the requirements of the position of the appraisee to be defaulted
b) then have the ability for the Manager to select one of the requirements and select the ADD functionality to add another element which has 4 customs columns to then be completed by the Manager
c) Within u201CAdditional Areas of Development, the Manager needs to be able to have an ADD button to create the 5 custom columns to be completed by the Manager.
The good newsu2026u2026..I have created the structure ok, with custom columns and have used fixed enhancement for defaulting the requirements of the appraiseeu2019s position and then having the reference object to each one of these requirements to then create 4 additional fields when the Manger selects the ADD button next to each requirement.
I have also used a separate set of reference objects to have an ADD button against the VB object u201CAdditional Areas of Developmentu201D which is in the sequence after the VB object Success Profiles, then this will allow the creation of the 5 columns ok and works fine.
I have also used the reference object for the Success Profiles which would expect to show the ADD function to add the new element with 4 fields. Also the ADD function for the u201CAdditional Areas of Developmentu201D appears.
I have created the config to display the My Development as a tab and have both the u201CSuccess Profilesu201D and the u201CAdditional Areas of Developmentu201D within this tab.
The bad newsu2026.. When I select the ADD button against the VB object u201CSuccess Profilesu201D nothing happensu2026u2026u2026
The defaulting of the requirements of the appraiseeu2019s position into the appraisal document under the Success profiles ONLY works if the VB object u201CAdditional Areas of Developmentu201D is DELETED from the appraisal document.
However, when I delete the VB object u201CAdditional Areas of Developmentu201D the ADD of the VB object for Success Profile now works
So it only seems to work if I delete the u201CAdditional Areas of Developmentu201D VB in the document which seems wrong to me.
Please can someone advise
Thanks
OliverHi SAP experts,
does anyone have an answer to my question above.
Much appreciated it
Not sure how to get screenshots stored in SDN f someone could explian.......
Thanks
Oliver -
What is the use of passing object reference to itself ?
What is the use of passing object reference to itself ?
regards,
namancThere is an use for returning an object reference from itself, for instance:
class C {
public:
C append(C c) {
// do something interesting here, and then:
return this;
}You can "chain" calls, like this:
C c = new C();
C d = new C();
C e = new C();
c.append (d).append (e);Maybe the OP has "inverted" the common usage, or thought about a static method of a class C that requires a parameter of type C (effectively being a sort of "non-static method").
class C {
static void doAnotherThing (C c) {
c.doSomething(); //-- effectively C.doAnotherThing(c) is an "alternative syntax" for c.doSomething() -
What is the use of Adapter objects in I.R
what is the use of Adapter objects in I.R
congratulations you successfully opened 1000 new threads...
adapters are components of the adapter engine, their main action is to connect different sysems with each other. therefore are different adapters:
SAP-2-SAP Adapters: like IDoc and RFC
SAP-2-NOT-SAP-ADapters: like JMS, JDBC, HTTP..
and B2B Adapters...
there are some rules in any board that you should accept:
use search first
use the sap help http://help.sap.com/
and read the forum rules
regards cc -
BPM SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
Hi ,
I am working on a IDOC to SOAP synchronous scenario
So I am using a BPM....
I have written a operation mapping outside BPM
1) Request MM creates the SOAP rquest
2) Response is a ABAP mapping where i am checking the response from webserice and then generating an email using ABAP code.
now when i am running this scneario works fine and the mail gets generated...
however i get a green flag in moni and in SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
PS : Also the response coming from the webserice has a custom header which does not match with the response ABAP mapping source MT
however if I work on the same thing using Proxy to SOAP sync there is no sysfail message and it works fine
Is this a bug in the system ...i am using PI 7.1Hi,
Try to implement SAP note 1164228 or apply package SAPKB71007 to resolve your issue. -
What is the use for lock object and how to use the lock objects
Hi Guru's,
I am new to ABAP .Can you please clarify the that what is the use of lock object and how to use the loct object .what is use of the Deque & Enque function modules .hi ,
below are some minfo about lock objects :
Lock Objects
These types of objects are used for locking the access to database records in table. This mechanism is used to enforce data integrity that is two users cannot update the same data at the same time. With lock objects you can lock table-field or whole table.
In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.
To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.
Creating Lock Objects
Lock object is an aggregated dictionary object and can be defined by using the following steps:
o From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen
o Enter short text as usual and the name for primary table.
-Save
-Select Tables option
From this screen you can:
Select secondary tables, if any, linked by foreign key relationship.
Fields for the lock objects. This option allows you to select fields for objects (R/3 system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.
1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
Also, last but not the least, locking the object is logical (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .
reward if helpful ,
Regards,
Ranjita -
What is the use of mutable Objects ?
Hi all,
I want to know the use of mutable objects?
Could u please help me ?
regards,
Nalinipublic class Sum {
double value;
public void add(double d) {
value += d;
}The sum class is mutable, since you can change it's value. The Integer class is an example of a class that's immutable. You can't change the value of an Integer after you have constructed the object.
/Kaj -
What is use of Read-Text command in Sapscript plz replay
What is use of Read-Text command in Sapscript plz replay
i m geting problem with read-text command in sapscript as will as
perform and endperform .Hi Majid,
It's a function module to read the texts from a text file. Generally it is used to retrieve the long texts.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ´
ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
Br,
laxmi. -
Dynamically loading the url of a web reference object in C#
Hi,
We have a number of assemblies (C# - VS 2010) that access third party web services via SOAP. The url to access the site is part of the web reference object.
We have need to be able to change the url used to access the service at run runtime when conditions require.
What would the be the best practice of dynamically setting the url to be used at run time?
Thanks in advance.
SanDegan99You could specify the URLs as keys in the application configuration file (App.config or web.config) of the main application:
https://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/aa374182(v=vs.85).aspx
App.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="url1" value="http://www.url.com/test.asmx"/>
</appSettings>
</configuration>
You can then retrieve these values using the ConfigurationManager class in any assembly that is referenced from the main application like this (add a reference to System.Configuration.dll):
string url = System.Configuration.ConfigurationManager.AppSettings["url1"].ToString();
You can change the values of the keys in the application configuration file without having to recompile the application.
The other option is to specify the URLs in a database or some other persistent storage from which you read at runtime but configuration files are generally used to store these kind of variable application settings.
Please remember to mark helpful posts as answer to close your threads and remember that any new question you may have should be asked in a new thread of its own. -
What is use of read_text in scripts
hi
what is use of read_text in scriptsHi,
It is used to fetch the Long Text details or
Header and Items texts of a application document
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
Thanks,
Reward If Helpful. -
Special characters in XML built using the DOM object
I am using the DOM object to build xml but I am having problems with special characters. I have a Element object that I create attributes in. Most special characters like the &, ", or ' are translated for me (amp; quot;, acute; put a & in front of those, if I do it here the browser will translate them into the logical character) but I am having a problem with the � character. The DOM object does not translate this. If I do it my self to(eacute; same here add a & in front) before adding the string to the attribute then the DOM object translates it to (amp;eacute; add a & in front of the amp; not in front of the eacute;). As you can see the DOM object translates the & instead of recognizing that it is a HTML character. Can anyone give me a hand?
I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?
-
How can a type defined in a PL/SQL package be used by an object?
How can a type defined in a PL/SQL package be used by an object?
In the PL/SQL Reference manual it says that object attributes can be
types defined inside a PL/SQL package: How do you make this work?
Here is a sample that demonstrates what I am trying to do:
CREATE OR REPLACE
PACKAGE Phone IS
TYPE Phone_rectype IS RECORD (
Main VARCHAR2(12),
Home VARCHAR2(12),
Business VARCHAR2(12),
Mobile VARCHAR2(12),
Fax VARCHAR2(12),
Pager VARCHAR2(12)
END Phone;
CREATE OR REPLACE
TYPE customer_type
AS OBJECT (
CustNo NUMBER,
CustName VARCHAR2(30),
PhoneNumber Phone.Phone_rectype
This is the error that i get:
Warning: Type created with compilation errors.
Errors for TYPE CUSTOMER_TYPE:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
5/15 PLS-00201: identifier 'PHONE.PHONE_RECTYPE' must be declared
nullThat's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?
-
Full mask permission in SharePoint using Client Side Object Model
Full mask permission in SharePoint using Client Side Object Model does not include all the base permission while it does have all base permission in server side . Is this a bug ?
Or do we have any workaround for this.
BasePermissions.Set(PermissionKind.FullMask); is not updating all the permissions.
It seems that there is some limitation with Microsoft.SharePoint.Client.dll as mentioend at below link . Do we have any workaround here.
http://break962.rssing.com/browser.php?indx=7116806&last=1&item=9
Ashish Baranwal || To know what you know and what you do not know, that is true knowledgeYou can write your own loop to upload multiple files via an individual call.
http://sharepoint.stackexchange.com/questions/108525/multiple-file-upload-with-metadata-using-rest/108532#108532
More reference: http://sharepointfieldnotes.blogspot.com/2014/04/uploading-documents-and-setting.html
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Notification: Free Reference Object (BADI)
Hi All,
When we define Screen areas in Notification Header for any notification type, in Screen Type Object drop down there option O550 Object: Free Reference Object (BADI).
Can anyone tell:
1. What is the meaning of it
2. Does this changes the options in Screen Structure in Extended View (while defining the screen areas)
3. 'Free reference means, can we define our own fields in this
Your answer will be really helpful.I suppose you can use this screen type object to define your own subscreen for the notification header (the three lines above the tabstrip). I played around with it a little, but I didn't do the complete implementation. There is a BADI "QM00_SUBSCR_5000". When you implement that BADI you can specify a custom program and dynpro for the screen header. Also, you will have to implement the methods to transport the notification data between your custom subscreen and the calling program.
This is the documentation of the BADI "QM00_SUBSCR_5000":
You can use this BAdI to implement the user-defined reference object screen according to your requirements. This implementation is dependent on the notification type.
To perform this implementation, you must first have selected the value 0550 (object: user-defined reference object) in the "Object" screen type in Customizing for the notification type. You do this when maintaining the screen areas for the notification header.
This Business Add-In allows you to display and maintain data related to notifications (VIQMEL).
The following notification data is available in the subscreen that is called in the Business Add-In implementation:
VIQMEL Notification header
TQ80 Notification type
MODUS Processing mode ( H = Add, V = Change, A = Display)
You can return the complete VIQMEL (with changes) to the calling program.
An active implementation of the Business Add-In already exists in the PLM Addon for the notification types QS (stability study with material reference and QR (stability study without material reference), which are delivered with the standard Customizing.
Use this active implementation as a template for your customer-specific implementations.
If you do not use the PLM Addon package, and want to implement this Business Add-In, use the delivered sample coding for the implementation of the methods as a template. -
Do not allow change of Reference Object after Order release
Dear All,
The requirement is that we should lock(not able to change) the Reference Object after the Maintenance Order is released. Can we acheive this in standard way or do we need to go for development.
If going for development what should be the basic logic.
Regards,
MLN PrasadPrasad,
You are accomplishing the same utilizing the built in enhancement framework([Implicit enhancements|http://help.sap.com/saphelp_nw70/helpdata/en/70/63da4023a28631e10000000a1550b0/frameset.htm]), WITHOUT making a MODIFICATION to the system. This technology / functionality is available from ECC 6.0 . You would need to be very careful in using the implicit enhancement functionality so that you don't break the flow. Your requirement seems to be a simple one which could be accomplished by tweaking the screen attributes of the field under certain conditions, for this specific screen in the program. You may also have to make the Priority field a display only, so that it doesn't trigger a change through it via the user exit or through standard.
Regards
Narasimhan
Maybe you are looking for
-
Composite video cable doesn't work...
I have a video composite cable (one of those cables which have three heads, red, white and and yellow, on one end, and a single head, like a headphone cable, with three "rings" on the other) for my video camera, and I tried it with my iPod and my TV.
-
I HAVE A PROBLEM WHEN SYNC CONTACTS IN MY COMPUTER TO IPHONE 4S after update to iOS6. The message are " waiting for change to be applied". PLAESE advise how to solve this problem.
-
Can't get html file while embed in html..
on (release){ getURL("client.htm", "_self"); my button script. it work well when test the flash but it doesn't work after embed in html or test in html. need add some script into html to active the flash? please help!!thanks
-
Curious... Syncing Issues Between iPhone and iTunes?
Just curious... the past several months I have noted various concerns around "syncing" between iPhone and iTunes... yet don't recall any mention of whether it occurs between MAC OS or WIN hardware (desktops and or laptops). Furthermore, I am interest
-
What is a .trans file????
I have certain html pages I edit in Dreamweaver CS5. (They are MIVA templates) They all have a .html extension. Everytime I open one, edit, and save it - Dreamweaver creates a second file with the exact same name but with the extension .html.trans