Linked Opportunity Relationships (Parent / Child Opportunity)
I need to know if a Sub-Opportunity has the Parent Opportunity ID stamped on it. For reporting purposed, I need to be able to determine the Parent Opportunity that a Sub-Opportunity is linked to by looking at the information on the Sub-Opportunity Transaction.
Thanks,
Jeff
Hi,
Not sure where exactly and at what point you need to be able to determine it. If an Opportunity is created as a follow up to another Opportunity then there is a document flow established. You can always see the preceding document from the current document using function module CRM_ORDER_READ and using parameter ET_DOC_FLOW.
Before coding this, you can run the program CRM_ORDER_READ in SE38 and check out the output.
Regards
Similar Messages
-
Does table STPOX contain parent-child relationship between components
Hello
I need to get a list of components of SO BOM.
FM CS_BOM_EXPL_KND_V1 exports an output table STPOX.
Does this table contain parent-child relationship between components? If yes , can somebody tell me which fields contain parent child id.
thanksHi,
STPOX is not a table, it is a structure & hence there is no storing of data in a structure. The table which stores this info is STPO.
To get the link you can refer to STPO-STLNR & pass this value to MAST-STLNR, this way you can link the child with its parent.
Regards,
Vivek -
Question about File Content Conversion and parent-child relationships...
Hello!
I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one. I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario. The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content.
The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
Here is the flat (non-XML) file layout that is coming into the file adapter:
FileHeader
DocumentHeader
DocumentItem
DocumentHeader
DocumentItem
and so on (until the number of documents is complete
I would really like the content to be converted so that the line items stay under their parent document headers like this:
<FileHeader></FileHeader>
<DocumentHeader>
<ItemHeader>
</ItemHeader>
</DocumentHeader>
<DocumentHeader>
<ItemHeader>
</ItemHeader>
</DocumentHeader>
But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
<FileHeader></FileHeader>
<DocumentHeader></DocumentHeader>
<DocumentHeader></DocumentHeader>
<DocumentHeader></DocumentHeader>
<ItemHeader></ItemHeader>
Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
Thanks,
JohnHi,
Check some links on FCC.
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Phani
Reward points if Helpful -
Master Detail - Detail parent child relationship
Hello All,
I have a setup where I have 3 tables. Call them A, B, and C. Table A is the parent table to the child table B. Also table B is the parent table to the Child table C. Is there a way to represent this in Apex? So far I have created two Master Detail forms: Master Detail form one has the relationship A+B and Master Detail form two has the relationship B+C. Can Apex support a Master Detail Detail form.
Also, is there a way to have my detail page editable without linking to another page to save and update?
Please let me know what everyone thinks.
Thanks
RyanHi,
You can google it - so much information is available online. Any how
Parent Child relationship
PK FKBasic example - Parent and Child in real life -similarly the Table_A is having relation with some other Table_B.
Example
Table_A
columns :-
Student_No, Student Name, Student_address
Now the Table_B store the assignment details
Student_No, Subject_1,subject_2, subject_3
Now relation of join is Table_A.Student_No = Table_B.Student_No
With out the TAble_A details -can be identified the Sudent details etc., No - It's Master data - which is not dependent on any other table and Column Student_No- Acts Primary Key which is Unique -through which we can identify a specific details of particular student. Now comes to Table_B - with out the student_No - we can't say whose details of assignments belongs to whom - now the student_No in Table_B is dependent on some other table - now this table acts a child and Primary Key of Table_A acts Foreign Key - that column helps to identify the record.
Master Detail
Reference tablesconcept of understanding is same when - when comes c,c++, java and c sharp - acts the same but inheritance, interfaces, polymorphisms and overloading code of language differs. If you go further j2ee differs
HTH
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
Service Manager Incidents - Automatically Linked Parent Child
Hi Team
i'm looking for a solution using Orchestrator or using Powershell to be able to validate Incident Title, Search for any existing duplicates and then link them together in a Parent, Child relationship.
once it's Parent/Child engineers can solve parent issue which will auto-close all child incidents.Hi WS12R2,
Are you looking for such workflow to detect the same incident Title?
Ex:
IR1: can't open Internet
IR2: can't open internet
Regards
Antoine AL Ibry -
Circular Parent-Child relationship among widgets.
I am trying to draw a Bar Graph on a panel which in turn sits on the main
window. The height policy of the panel widget is set to SP_TO_PARENT so that
when the window is resized the panel is also resized according to the parent
window. I have a situation that every time the panel is resized I need to
scale the Bar Graph in accordance with the new panel size and draw it. But
before drawing the newly scaled Bar Graph I am clearing out all the children
of the panel ( I am doing this just to refresh the panel) and then drawing
the newly scaled Bar Graph. But this does not work!!! I still find some
left over from the previous Bar Graph!!! Any help in this matter is greatly
appreciated.
Also I don't understand this circular parent-child relationship. If I assign
a NIL to Parent attribute of all the children of the panel, what will happen
to the Children attribute of the panel? Won't there be any memory leak by
adopting the above procedure of disconnecting a child from its parent? If
so, how do we take care of it?
Thanks in advance!
Alaiah Chandrashekar
The following is the segment of the code which could be useful for clarity:
// Draws the Bar Graph for the first time.
self.ShowChart(TestData);
self.Open();
event loop
when task.Shutdown do
exit;
// When the window is resized
// I am scaling the Bar Graph for the new
// panel size.
when self.window.AfterReSize do
self.ClearChartPanel();
// self.window.UpdateDisplay();
self.ShowChart(TestData);
end event;
self.Close();
Method ClearChartPanel is as follows:
for child in self.<ChartPanel>.Children do
child.Parent = NIL;
end for;Hello Evandro,
I am listing the steps to create a relationship manually.
1. Create 2 records in the relationship table in console, one for "Married to" and the other one for "Owner". In order to do that the repository needs to be unloaded.
2. Once you create these 2 records in the table through console, load the repository.
3. Log on to the Data Manager.
4. Now as per your example, there are 3 records in the main table, namely
JOHN
MARY
ACME
5. Select only one record in the record list area e.g. JOHN (where you see the list of records)
6. Then, in the record edit area, double click on the relationship tab,
7. New Window opens up.
8. HERE ALL THE OPTIONS ARE GRAYED OUT. But Select the relationship which you want to create, in our case married to.
9. Now select the record MARY in the record list area. (NOT in the pop window, but main window).
10. Then on the top bar menu, select Relationships --> Adds to Group.
11. Now close the Pop window and observe that the relationship has been created between JOHN and MARY.
Let me know if it worked for you. if not, post some more information about your problem such as where you tried to configure and what options were grayed out.
Please update.
Thanks
Shai
I need to do a relationship among the BP where each record in Main Table correspond a BP (Person or Organization).
The relationship should link the BPs as shown below:
Records
1; John
2; Mary
3; ACME
In record 1, I need to say that John is married with Mary, where Married is a type of the relationship and that Mary is Owner of the ACME, where u201COwneru201D is other relationship type.
I have tried to configure a Relationship (where the parent and child tables were the Main Table) in MDM, but I couldnu2019t to do it because the screen for this feature was locked. I need to be certified that the child link exist in the repository.
Thank you.
Evandro. -
Material with Parent Child Relationship
Hi,
Need some advise.
We have this scenario, use purchased materials (.e.g Computer bundle with mouse, monitor and keyboard). We need to track these components separetely at different cost and update inventory with serial no.
Upon creating Sales Order for the above materials, how to we ensure that the full set of materials is picked and delivered. As each components has it own material code.
Is there possible to link up these materials with some sort of parent child relationship? And how to handle it in SAP MM and SD moduld.
Thank you.Peck,
Unless I am missing something, this is not a Materials Management issue, it is a Sales/Distribution issue.
I think the easiest way is to check the 'complete dlv.' (Complete Delivery) checkbox on the Sales order (VA02>Sales Tab).
When this flag is set, none of the items in the sales order can be confirmed unless all of them are confirmed. All confirmations must be for the same day. No delivery can be created unless all items are deliverable.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/560602545a11d1a7020000e829fd11/frameset.htm
Rgds,
DB49 -
Reverse Engineering fails to "identify" parent - child relationship
Using Reverse Engineering I obtained two classes - visual compapesence clearly shows that one is inherited from another.
I wish I could copy and paste individual "class Diagrams' for each of those two to demonstrate my point ...
How I could merge those two class diagrams together and "force"
to recognize "parent" <-> child relationship /On possible solution is to create a diagram in each pacakge that was reverse engineered.
I agree with peter, that a single diagram would not be useful when revese engineering a large project. When diagram get that large, it is hard to see more than a couple of model elements at one time. While we do have the Navigate Link tool, it is still painful to navigate around the diagram. If you printed a diagram that big, it would take up an entire wall.
It is hard to determine what diagrams are needed to explain a software project. For this reason, we have tried to make it easy to build diagrams. Peter, mentioned the first mechanism. Create Diagram From Selected (CDFS) was designed to allow the user to select the model elements that need to populate a diagram. When performing CDFS the diagram will be populated, Relationship Discovery will be executed, and the diagram will be layed out.
Another approach is to create a dependency diagram. You can select a model element, and create a dependency diagram. The contents of a dependency diagram will be the model elements that the selected model element uses. For example, if the model element generalizes from another model element, the super class will be present on the diagram. If another model elements extends the selected model element, the subclass will not be represented on the dependency diagram.
Another diagram creation tool that might be needed is a inheritance diagram creator. An inheritance diagram creator, would make it very easy to see model element super classes, implemented interfaces, and the subclasses.
I hope this helps. -
Import Manager - Import Parent Child Relationships
I have a parent child relationship set up in console.
Kits / Parts.
Has Required = No
Has Quantity = No
I am trying to import the data for the relationship links using Import Manager.
The source is a Excel file.
Item Number <Kits> Item Number<Parts>
ACC-123 ACC-1234
ACC-123 ACC-555
I mapped the Item Number Kits and Item Number Parts.
When I import, I am getting the following error
<b>Import failed. Failed to find the aggregation record from its field values.
Source record no: 1</b>
I am able to import the same record using Data Manager if the file format is Text.
Any help is appreciated.
Helpful answers will be duly rewardedThe key field that you use to load the relationship must be defined as:
Unique................Yes
Display...............Yes
Multilingual..........No
My problem was that I had defined Model Number as multiligual. When I changed this setting and loaded with Update Indices the load worked.
I have not found anywhere in the literature that talks about this restriction. You can create the relationship in the Console. You can load this type of relationship in Data Manager. You can not however load them in Import Manager. -
Update column with parent child relationships
Hi,
i need to update a column with parent child relationship.
Please provide the possible queries..
Gobi..Hi,
Depending of the objective and the size of the tables, personally, for maintenance purposes, I preferred duplicate the parent with the new column value and duplicate the child records with this same new value. Other alternative is disable the foreign key temporarily.
You can take a look on this link below too:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5773459616034
Cheers -
Import of parent/child relationships
Hi,
While importing the parent/child relationship using Import Manager,i selected the Relationship in the Destination table.After mapping the corresponding fields,alll the fields under Match Records tab are greyed out.How do i import the parent/child relationships?
Thanks and Regards,
PreethiHi Preethi,
Check the configuration options related to Relationships. In addition check the below link
http://help.sap.com/saphelp_mdm550/helpdata/en/43/12036df94c3e92e10000000a1553f6/frameset.htm
Importing Parent/Child Relationship Links
Regards,
Jitesh Talreja
Edited by: Jitesh Talreja on May 5, 2009 4:17 PM -
Help needed in retrieving parent child relationship values
Hi,
I have a requirement to get parent child relationship values as below.
Ex: Address table
cont cont_code state state_code
C1 10 S1 1
C1 10 S2 2
C1 10 S3 3
C2 20 S4 4
C2 20 S5 5
C3 30 S6 6
C3 30 S7 7
C3 30 S8 8
I want a result of country/state and corresponding code like below.
corresponding states should be displayed under each country with some space appended to it.
Geography code
C1 10
S1 1
S2 2
S3 3
C2 20
S4 4
S5 5
C3 30
S6 6
S7 7
S8 8
I am using oracle 10g version.
Thanks in advance.Hi,
When you post formatted text (like your output) on this site, type these 6 characters:
\(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
I think you're saying that you want this output:GEOGRAPHY CODE
C1 10
S1 1
S2 2
S3 3
C2 20
S4 4
S5 5
C3 30
S6 6
S7 7
S8 8
If so, UNION, as Hoek suggested, is a good way.
GROUP BY ROLLUP is more efficient, but harder to understand:SELECT CASE
WHEN GROUPING (state) = 1
THEN cont
ELSE ' ' || state
END AS geography
, CASE
WHEN GROUPING (state) = 1
THEN MAX (cont_code)
ELSE MAX (state_code)
END AS code
FROM t
GROUP BY cont
, ROLLUP (state)
ORDER BY cont
, state NULLS FIRST
By the way, this looks like a bad table design.
In a relational database, the fact that the name 'C1' belongs to cont_code 10 should only be stored in one place. You have the same information on 3 separate rows.
Also, if 'C1' and 'S1' are both names, they should probably be in the same column, so that (to give just one example) you can find the information about 'x1' without knowing if it is a cont or a state.
A better design would be.NAME CODE PARENT DSCR
==== ==== ====== ====
C1 10 CONT
S1 1 10 STATE
S2 2 10 STATE
S3 3 10 STATE
C2 20 CONT
S4 4 20 STATE
S5 5 20 STATE
C3 30 CONT
S6 6 30 STATE
S7 7 30 STATE
S8 8 30 STATE
If the data is this simple, then the dscr column isn't needed. Whether parent is NULL or not tells whether the rows represents a cont or a state.
To get the results you want from a table like this, you could use CONNECT BY. Using either UNION or ROLLUP, you have to know, at the time you write the query, how many levels there will be in the parent-child tree, and the length of the code is proportional to that depth, and the table has to be changed if you ever need to add another level. CONNECT BY can handle any number of levels, and the length and complexity of the code is the same whether you have just 2 levels (countries and strates), or 7 levels (continents, regions, countiries, states, districts, cities and neighborhoods) or 72 levels. The table doesn't need any more columns, no matter how deep the tree gets.
Edited by: Frank Kulash on Sep 16, 2010 11:54 AM -
Simulate 1-N relationship as N-N by using Parent-Child structure
Hi,
i have a 1-N relationship between SKILL and USER tables meaning 1 skill can be applied to several users. A skill can have a parent skill meaning that a ParentSkill inherits all privileges of it's child.
I would like to simulate a N-N relationship between users and skills by building a view which goes through the parent-child relationship... Can this be accomplished by building a view?
Current structure:
|USERID | USERNAME | SKILLID |
+-------+----------+----------+
| 1 | Jack | 1 |
| 2 | Simon | 1 |
| 3 | Fred | 3 |
+-------+----------+----------+
|SKILLID | DESCRIPTION | PARENTSKILL |
+--------+---------------+--------------+
| 1 | Mechanic | 2 |
| 2 | Inspector | 3 |
| 3 | Supervisor | null |
+--------+---------------+--------------+Preferred output (ordering of skillid is not important):
|USERID | USERNAME | SKILLID |
+-------+----------+----------+
| 1 | Jack | 1 |
| 2 | Simon | 1 |
| 3 | Fred | 3 |
| 3 | Fred | 2 |
| 3 | Fred | 1 |
+-------+----------+----------+Hopefully this meets your needs:
WITH
users as
SELECT 1 as USERID, 'Jack' as USERNAME, 1 as SKILLID FROM DUAL UNION ALL
SELECT 2 as USERID, 'Simon' as USERNAME, 1 as SKILLID FROM DUAL UNION ALL
SELECT 3 as USERID, 'Fred' as USERNAME, 3 as SKILLID FROM DUAL
skills as
SELECT SKILLID,CONNECT_BY_ROOT SKILLID AS ANCESTORS
FROM
SELECT 1 as SKILLID, 'Mechanic' as DESCRIPTION, 2 as PARENTSKILL FROM DUAL UNION ALL
SELECT 2, 'Inspector', 3 FROM DUAL UNION ALL
SELECT 3, 'Supervisor', NULL FROM DUAL
CONNECT BY PRIOR PARENTSKILL = SKILLID
SELECT USERID,USERNAME,ANCESTORS
FROM skills, users
WHERE users.skillid = skills.skillid
USERID USERN ANCESTORS
1 Jack 1
2 Simon 1
3 Fred 3
3 Fred 2
3 Fred 1Hope this helps! -
SHOW THE PARENT CHILD TABLE RELATIONSHIP TABLE
hi experts,
I want show the parent child relation ship tables
for exmple iam passing the emp table then display related child tables like dept,grade after that again child table(dept,grade) related to child relationship tables like recursive
Regards,
VENKATProbably something like below. This may not be exactly what you are looking for, but one way to get what you are asking for.
Only if you can give specifics, of your Input being passed and the Output, it might be possible to provide more help. But you also need to help us with your best effort on this.
select *
from (
select prior table_name Child, table_name Parent
from user_constraints
start with constraint_name = some_constraint_name_of_Parent_Table
connect by constraint_name = prior r_constraint_name
) a
where a.child is not null; -
Parent child relationship is not displaying for IDOC_OUTPUT_ORDERS (PO)
Hi,
Can somebody help me the reason why parent child relationship not displaying properly for ORDER05 basic type?
If we go in details about the problem, a purchase order is creating in R/3 through EBP. To modify my requirement I am using userexit EXIT_SAPLEINM_002. Here I am appending the records in the segment for E1EDKT1 and E1EDKT2. IDOC is creating with an error of status record 26.
When I check in the transaction WE19 for the respective IDOC the data is showing correctly for all the segments including e1edkt1 and e1edkt2 segments and also I check in the table EDID4 segment number is showing correctly and the for the segment E1EDKT2 PGNUM also showing correctly, but when I see the IDOC in the transactions WE02 unable to see parent child relationship between E1EDKT1 and E1EDKT2 segment. Simply the data is displaying one below other like other segment.
I don't know the reason why it is displaying like that?
If anybody is having the solution is highly appreciable.
Regards,
Noorulhi hassan,
When you are appendng the REcods which belong to the purticular segment..
all the segment needs to be appended in in the proper order as in the WE30..
I<b> think you are appending the segment E1EDKT2 at the end of the EDIDD.. or IDOC_DATA in the user exit..</b> .. eventho no eerror will be displayed but idoc will generted with sataus 26 .. if check the <b>STATUIs Recored u ewill find the SYNTaX ERROR.</b>
<b>Sollution for ur probelm is</b>... don append the E1EDKT2 at the lastr instead <b>you ahve to insert the segment E1EDKT2. only afer E1EDKT1..</b>..
Tehn you r problem will be solved.. I had faced the Same proble when i worked on material maser idoc..
<b>Close this thread if when u r problem ise solved</b>
Reward if helpful
Regards
Naresh Reddy K
Maybe you are looking for
-
Performance report in ops center.
It is possible to create performance reports in ops center like PRM module in SunMC is doing for CPU Usage, Disk, Memory, Network.. etc.. ? Thanks Antonio
-
Urgent clearing data in container for free text
I HAVE A CONTAINER FOR FREE TEXT. I HAVE A CREATE BUTTON IN MY SCREEN EWHEN I PRESS CREATE IT ASKD FOR ID AND FREE TEXT THEN I SAVE AND IT GETS SAVED IN A ZTALE TABLE. WHEN AFTER SAVING IT I GO TO INITIAL SCREEN AND PRESS CREATE AGAIN THEN IT ASKS F
-
Hi Techis I AM FACING A PROBLEM IN MY REPORT I WANT TO GIVE CONDITION ON IT_FINAL-DMBTR. The condition is if document postiong date(it_final-budat) is > 30 days then it should store in it_final-thirty if postiong date is > 60 days it shpold b store
-
How to Create a Session variable in JSP?
How to create a session variable and add attributes to it? For example i want to create a session variable called "name" and add value "user" to it? if i try to do it with setAttribute(), it is giving error as both is of type string? how to do it? ki
-
Issues with Importing and Flattening Complex AI files (Flash CS3)
Is there an easy way to break apart vector graphics imported from Adobe Illustrator? My group creates most of the graphics in Adobe Illustrator and then we import them into Flash to animate them. Unfortunately, with layers and layers on complex drawi