Multiple parents with many children in same table -get all generations
Hi
I have parent and child columns in my table. The child can have multiple parent keys and the parent can have multiple child keys.
So every child can be a parent of further more children. So every generation can be considered to be a level. I need to display them in hierarchical order. First greatest parent, next level all its childres, next level, their children and so on. Its like a recursve pattern. How may I achieve this? I do not know anything about how many levels there are - could be any number.
Any help?
Hi
This link was of great help and I am getting the hierarchy.
My next question related to the same thing is -
I have the following query:
select distinct level,
sys_connect_by_path(child_id,'/') Path
from table1
connect by prior child_id= parent_id
What I need is getting the name beloging to the id and display that instead of the id itself. But then would that mean I am changing the connect_by_path itself?
Example:
id
2 /25/016
2 /25/06
2 /20/014
In place of these numbers 25, 016 etc, I want their corresponding names that are stored ina nother table table2. How may I achieve that?
Thx!
Similar Messages
-
Update multiple rows with datas from the same table
i have a table like
name version value1 value2
2 A 4,31 3,5
3 A 3,45 10
2 B 6,97 12
4 B 12 16
so name + version is unique
i have to update the datas value1 and value2 ( version A) with the datas from version B where the name ( VersionA) = name version B
i.e the result should be
name version value1 value2
2 A 6,97 12
3 A 3,45 10
2 B 6,97 12
4 B 12 16
is it possible to do this in sql? ( sql. 8.1)... if your table does not contain exactly what you expect you could get:
'single row sub-query returns more than one row'
To prevent that, put a unique index on (name, version). If this combination is not always unique, you will need to cater for the possibility in the update statement. -
JPanel with many children doesn't display them all in a narrow window
I'm writing an application that has a JPanel at the top containing many
JToolBars. However, the height of the JPanel stays constant when I narrow
the application window so that many of the JToolBars are not displayed.
I would like to have the JPanel increase in height as the window narrows
so that all the JToolBars remain visible. How can you do this? Thanks.
Try widening/narrowing the window in this example:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Sample extends JFrame {
public Sample(String name) {
super(name);
JPanel tp = new JPanel(new FlowLayout());
for (int i = 0; i < 10; i++) {
JToolBar tb = new JToolBar("toolbar" + i);
for (int j = 0; j < 10; j++) {
tb.add(new AbstractAction(("Action" + i) + j) {
public void actionPerformed(ActionEvent event) {
tp.add(tb);
JPanel cp = new JPanel();
cp.setSize(400, 400);
cp.setBackground(Color.red);
add(tp, BorderLayout.PAGE_START);
add(cp, BorderLayout.CENTER);
public static void main(String[] args) {
Sample s = new Sample("Sample");
s.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
s.setSize(500, 500);
s.setVisible(true);
}There are some neat tricks in this thread.
http://forum.java.sun.com/thread.jspa?threadID=716580&messageID=4190052 -
Can we create multiple application with single MSI(or Same MSI) in biztalk admin console ?
My client requirement is process 100 files from biztalk with in 5 min ,actually it is taking 20 min .
So I decided to created same instance of the application with multiple time in BTS admin console ,as I understand biztalk admin console never allow to install same
schema’s with multiple time .
Any help can be appreciate ..BizTalk will automatically process multiple messages on separate threads so you may need to tune your system. The following link should get you started:
http://social.technet.microsoft.com/wiki/contents/articles/7801.biztalk-server-performance-tuning-optimization.aspx
Another possibility is to set the Batch Size property on your receive location if the adapter uses batch size to determine how messages are picked up. As an example, it you want the MSMQ adapter to immediately pick up messages and start
to process them, set the batch size to 1.
You may also need to distribute the processing across multiple BizTalk servers by installing BizTalk on additional servers and joining the existing BizTalk group.
David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful. -
With the new iCloud I now get all of my wife's contacts on my iPhone. Is there a way to restore just my old contacts to my phone?
Only if a backup of the iPhone with all that data on it exists. If one does, restore the iPhone using that backup.
-
This is very urgent..Please HELP!!!
Iam in a project which is planning to store the entire XML file in the database in a XML datatype column. The XML has multiple parents AND multiple children for each of those parents. My problem is how to read/store the data for each of the parent and associate the parent to the child elements. The child elements does not have a parentID in its column. Here is an example- Parent table - SHIPMENT. Child Table - SHIPMENTUNITS. ShipmentNBr is the business key in both these tables. This column comes in the SHIPMENT node but does not come in the SHIPMENTUNITS node. When I try the OPENXML, all the data just gets stored..how do I link the child to the parent?
<SHIPMENT xmlns="">
<SHIPMENTNBR>US1011<SHIPMENTNBR />
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>
<SHIPMENT xmlns="">
<SHIPMENTNBR>IN2052<SHIPMENTNBR />
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>I don't quite understand what you want to achieve.
If you store the data in an XML data type then you get the XML as is and all the children are associated with their parents.
If you want to decompose them into relational tables using OpenXML, then you either use the id values provided in the data and use the parent axis, or if no such id values are present look at the so called meta properties @mp:id and @mp:parentid. In your case you have the shipment number and unit number that you could use. The first approach you can do with the nodes() method too (but the meta properties are OpenXML only).
In the following example I show you both. In your case you don't need the @mp: parts. Also, since OpenXML needs a complete document I added a single root node.
declare @i int;
exec sp_xml_preparedocument @i output,
N'<doc><SHIPMENT xmlns="">
<SHIPMENTNBR>US1011</SHIPMENTNBR>
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT>
<SHIPMENT xmlns="">
<SHIPMENTNBR>IN2052</SHIPMENTNBR>
<SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
<LINESCAC>ACLH</LINESCAC>
<TERMINAL_CD>USJAX</TERMINAL_CD>
<ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
<VESSEL_CD>VES</VESSEL_CD>
<VOYAGE_CD>VOYA</VOYAGE_CD>
<POL />
<POD>POD_0</POD>
<SHIPMENTUNITS>
<UNITNBR>1234</UNITNBR>
<UNITTYPE_CD>CAR</UNITTYPE_CD>
<MAKE>HON</MAKE>
<MODEL>ACCO</MODEL>
<COLOR>RED</COLOR>
<FULLEMPTY_CD>F</FULLEMPTY_CD>
<LENGTH>0011</LENGTH>
<WIDTH>0022</WIDTH>
<HEIGHT>0033</HEIGHT>
<DIMENSIONUOM>C</DIMENSIONUOM>
<WEIGHT>000010</WEIGHT>
<WGTUOM>K</WGTUOM>
</SHIPMENTUNITS>
</SHIPMENT></doc>'
select *
from OpenXML(@i, '/doc/SHIPMENT')
with (
id int '@mp:id'
, nbr varchar(40) 'SHIPMENTNBR'
select *
from OpenXML(@i, '/doc/SHIPMENT/SHIPMENTUNITS')
with (
id int '@mp:id'
, ship_id int '@mp:parentid'
, ship_nbr varchar(40) '../SHIPMENTNBR'
, nbr varchar(40) 'UNITNBR'
exec sp_xml_removedocument @i
Best regards
Michael -
Join parent with child on nested object table
We made a nested table in Oracle 8i with two object types and collection type.
We manipulating with it - no problem.
However trying to join parent with the child cause the problem in PL/SQL
This sintax is OK for Oracle SQL and returns right result:
select
matl.barcode_id,
matl.LAST_MOD_TSP,
dtl.matl_nbr,
bmm.matl_dsc,
dtl.asn_qty,
dtl.mfg_dt
from
asn_barcode_matl_ot matl,
table(matl.asn_barcode_matl_dtl) dtl,
wms_brwy_matl_mstr bmm
where
matl.rcpt_seq_id = 1
and matl.brwy_cd = bmm.brwy_cd
and dtl.matl_nbr = bmm.matl_nbr;
But stored procedure with this statement doesn't compile and giving the error:
PLS-00201: identifier 'MATL.ASN_BARCODE_MATL_DTL' must be declared
Looks like a bug? What is wrong?It is not possible. You can do this with trigger code, or preferably by adjusting your delete procedure api. A delete of the master record will often fail because other children records exists, so you have to catch that exception and do something that is useful to you in this situation.
Regards,
Rob. -
How to copy existing row value into new row with a trigger. Same table
Oracle guru,
I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
-Oracle 10g express
-I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
-Table is composed of column like id,timestamps,A,B and more.
Thanks in advance
Pierre957911 wrote:
Oracle guru,
I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
-Oracle 10g express
-I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
-Table is composed of column like id,timestamps,A,B and more.
Thanks in advance
PierreI will call it a very Wrong design.
It is a wrong Table Design. You are duplicating the data in table and not complying with the Database Normalization rules.
How about Verifying if Column A & B are NULL before inserting and inserting another row and avoiding it in Triggers?
If you are bent to achieve this, below code might be helpful. However, I would never go with this approach. If you would care about explaining the reason for going ahead with such a data model, people could suggest better alternative that might conform with Normalization rules.
create or replace trigger trg_test_table
after insert on test_table
for each row
declare
pragma autonomous_transaction;
begin
if :new.col_a is null and :new.col_b is null then
insert into test_table
select 2, systimestamp, col_a, col_b
from test_table
where pk_col = (select max(pk_col) from test_table b where b.pk_col < :new.pk_col);
end if;
commit;
end trg_test_table;Read SQL and PL/SQL FAQ and post the mentioned details.
Do not forget to mention output from
select * from v$version; -
Measure using UseRelationship not working well when sliced with attributes from the same table
Hi,
I have Measure created using the 'UseRelationship' Function, which uses a different datekey to link to the DateDim than the one the table is directly related by. The measure works as expected except in one scenario.
If I browse the measure using an attribute from the same fact table then the attribute is filtered using active relationship whereas the measure is filtered using the inactive relationship as shown below:
FACT(2 rows)(Active Relationship to Date using DateKey1)
SNo DateKey1 DateKey2 Geo Amt
1 20100101 20120101 India 100
2 20100101 20120101 US 200
AmtMeasure:=CALCULATE(SUM([Amt]),USERELATIONSHIP(FACT[DateKey2],'Date'[DateKey]))
If I browse the above measure in excel, with Year selected as 2012, I get 100+200=300. Now if I drag the Geo attribute against the measure I get 2 rows with 100 and 200.
If I do the same in a power view report I don't get any results after dragging the Geo attribute, whereas I get the correct value of 300 without the geo attribute. I checked the DAX query which the power view generates and figured this is being caused because
there are no rows in the table with DateKey1 having year 2012. I understand why this is happening this way in a DAX query and not in MDX, but shouldn't both behave in the same way and what is a work around.
Thanks,
Sachin ThomasSac, is this still an issue?
Thank you!
Ed Price, Azure & Power BI Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
I have a new PC - great. But my iTunes library has now gone with the old PC. With a new iTunes library how do I get all my data from my iPhone to a new copy of iTunes on the new PC?
It has always been very basic to always maintain a backup copy of your computer.
Have you failed to do this? -
MVC Event Handling with different rows of same table view
Hello friends,
I have a tableview with some rows.I have some columns in the tableview.First column contains the drop down list box and other columns are output fields.
I am allready able to populate the columns according to the selection of a value in the drop down listbox of the same row.
In the layout of view for the selectionmode attribute of tableview i have given 'lineedit'.
In the do_handle_event i am also able to get the current selected row of the tableview.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
selection = tv_data->selectedrowindex.
Scenario:I have selected the first row then i am selecting a value in the dropdown and able to populate their corresponding value in the corresponding output field of same row.
So the first row has the selected value in drop down listbox also the corresponding outputfield of same row also has the value.This i am doing by inserting it to the final internal table for the tableview according to currrent selected row .
Now i am going to select the second row.then i am selecting someother value in the dropdown listbox of the second row and filling the other columns correspondigly.I am able to do this for the secondrow.What i now need to do is i also want to see the first row with slected values correspondingly when the final view comes.ie i need both rows with corresponding values.
Similarly when selecting third row and other rows so on.
how to do this?
Thanks & Regards,
Renju.Hi Renju,
Try using MULTILINEDIT - this is used when you want to edit multiple rows all at once.
Cheers -
Print multiple pages with dynamic data from same movieclip
Hi @ all,
like much of us i have a problem with printjob.
I have a printjob routine, that starts a new job, then
handles the following in a loop for printing multiple pages:
1. update content for every page in a sprite. every loop it's
the same sprite. the sprite is visible on stage
2. addPage to Printjob
after that sends the printjob to the printer
Now the Problem:
On Windows it runs perfectly. On Mac only the last page was
printed. the other pages before are empty (white).
Has anyone a idea?
Thanks for answeres.
Her's my code. As you can see i try to print a table on
multiple pages. In every loop i only show the rows for the actually
printing page:the printview function only updates the content in the sprite
that will be printet on every page.
it generates the rows of a table that will be printed on the
actual page and return if all rows are printed (true or false)
this is a very slim function. there is no time overflow or
sth. like this. -
Single ERS Invoice for multiple POs with different GS and same IP
Dear All,
I have a Requirement as per the below scenario:
We need to have single invoice created using ERS (MRRL) functionality in the below scenario:
Two POs created with different Partner function GS (goods supplier) and same IP (Invoice party partner function).
Ex:
GS IP PO GR ERS
vendor1 10001 4500001 500001 Yes ( GR-IV-Yes, GR done- Yes, same payment terms - 001)
vendor2 10001 4500002 500002 Yes ( GR-IV-Yes, GR done- Yes, same payment terms - 001)
When I run ERS for last 1 week (GR) and select the option (Doc selection – per IP or other criteria like GRs posted in last one week) , system should create 1 invoice document. Standard SAP posts 2 documents for each GS.
I have tried using 2 user exits for MRRL, but none of them work for this functionality.
Thanks,Hi,
Go for MIRO without MRRL.
Instead ERS, you can post single Invoice(MIRO) for multiple POs for one vendor.
OR
Check with Technical consultant and go for development to have single ERS output for multiple ERS invoice documents for single vendor.
Regards,
Biju K -
How to generate PAYEXT (PEXR2002) IDOC with many invoices for same vendor
Hello,
We are implementing the IDOC payment processing through transaction F110. The first test we ran using multiple items for the same vendor created an IDOC with multiple E1IDPU1 segments for each invoice. We then configured a second bank and ran the test again. This time the multiple invoices for the same vendor generated a seperate IDOC.
Does anyone know where I should start looking to figure out what I did wrong? We are hoping to generate 1 IDOC for all invoices for the same vendor.
Thanks,
BrianHello,
May I know how or what are the steps you did to create multiple invoices and generate multiple idocs for the same vendor? I have a requirement to generate multiple payext idoc for a single vendor.
Please advise. Thank you very much! -
Generate 2 line items with posting keys in same table while using FM .
Dear Expert ,
For T-code f-65 ,I have to park a FI Document .i tried with PRELIMINARY_POSTING_FB01 for parked Document . But i am not successfully park the document .
with the help of F-65 the data Segregate between Tables VBSEGS and VBSEGD with respecting Posting key . but with this Fm entire entry is displaying in table VBSEGS .For example it generated two line items with posting keys '15' and '40' and these both are displayed in VBSEGS whereas posting key '15' has to be displayed in VBSEGD.
when i check this Document in FBV0 Error reflect " G/L Account 0012000 1001 Does not Exist ".
Here my code -
DATA: XT_BKPF LIKE BKPF OCCURS 0 WITH HEADER LINE ,
XT_BSEG LIKE BSEG OCCURS 0 WITH HEADER LINE ,
XT_BSEG1 LIKE BSEG OCCURS 0 WITH HEADER LINE ,
XT_BSEC LIKE BSEC OCCURS 0 WITH HEADER LINE ,
XT_BSET LIKE BSET OCCURS 0 WITH HEADER LINE ,
XT_BSEZ LIKE BSEZ OCCURS 0 WITH HEADER LINE ,
XT_BKORM LIKE BKORM OCCURS 0 WITH HEADER LINE ,
XT_THEAD LIKE THEAD OCCURS 0 WITH HEADER LINE ,
XT_SPLTTAB LIKE ACSPLT OCCURS 0 WITH HEADER LINE ,
XT_SPLTWT LIKE WITH_ITEMX OCCURS 0 WITH HEADER LINE .
DATA : XTEXT_UPDATE LIKE BOOLE-BOOLE VALUE SPACE,
XTEXT_ITEM_UPDATE LIKE BOOLE-BOOLE VALUE SPACE,
XI_UF05A LIKE UF05A,
XI_XCMPL TYPE XFELD VALUE 'X',
XFS006_FB01 LIKE FS006 ,
XI_TCODE LIKE T020-TCODE VALUE 'F-65',
XI_PARGB LIKE RF05A-PARGB ,
XI_TCODE_INT TYPE TCODE .
DATA P_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
XT_BKPF-BUKRS = 'CP01'.
XT_BKPF-GJAHR = 2011.
XT_BKPF-BLART = 'DZ'.
XT_BKPF-BLDAT = SY-DATUM.
XT_BKPF-BUDAT = SY-DATUM.
XT_BKPF-MONAT = '06'.
XT_BKPF-CPUDT = SY-DATUM.
XT_BKPF-WWERT = SY-DATUM.
XT_BKPF-USNAM = 'ABAPER'.
XT_BKPF-TCODE = 'F-65'.
APPEND XT_BKPF.
XT_BSEG-BUKRS = 'CP01'.
XT_BSEG-GJAHR = '2011'.
XT_BSEG-BUZEI = '001'.
XT_BSEG-BSCHL = '40'.
XT_BSEG-KOART = 'S'.
XT_BSEG-SHKZG = 'S' .
XT_BSEG-GSBER = 'CPLN'.
XT_BSEG-BUPLA = 'CP01'.
XT_BSEG-WRBTR = 10000.
XT_BSEG-PSWSL = 'INR'.
XT_BSEG-ZUONR = 'CH. 123456'.
XT_BSEG-HKONT = '241000'.
APPEND XT_BSEG .
CLEAR XT_BSEG.
Vendor line item - required even for header only - BSEG table
XT_BSEG-BUKRS = 'CP01'.
XT_BSEG-GJAHR = '2011'.
XT_BSEG-BUZEI = '002'.
XT_BSEG-BSCHL = '15'.
XT_BSEG-KOART = 'S'.
XT_BSEG-SHKZG = 'H' .
XT_BSEG-GSBER = 'CPLN'.
XT_BSEG-BUPLA = 'CP01'.
XT_BSEG-WRBTR = 10000.
XT_BSEG-PSWSL = 'INR'.
XT_BSEG-ZUONR = 'CH. 123456'.
XT_BSEG-HKONT = 'PC04000001'.
APPEND XT_BSEG .
CLEAR XT_BSEG.
CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
EXPORTING
TEXT_UPDATE = XTEXT_UPDATE
TEXT_ITEM_UPDATE = XTEXT_ITEM_UPDATE
I_UF05A =
I_XCMPL = XI_XCMPL
FS006_FB01 =
I_TCODE = XI_TCODE
I_PARGB =
I_TCODE_INT =
IMPORTING
XEPBBP = CHECK_A
TABLES
T_BKPF = XT_BKPF
T_BSEG = XT_BSEG
T_BSEC = XT_BSEC
T_BSET = XT_BSET
T_BSEZ = XT_BSEZ
T_BKORM =
T_THEAD =
T_SPLTTAB =
T_SPLTWT =
EXCEPTIONS
ERROR_MESSAGE = 1.
P_RETURN-ID = SY-MSGID.
P_RETURN-TYPE = SY-MSGTY.
P_RETURN-NUMBER = SY-MSGNO.
APPEND P_RETURN.
p_return-MESSAGE_V1 = XSYMSGV.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
ENDIF.
WRITE :/ sy-subrc , sy-MSGV1 .
Thanks ,
Ashish GuptaHi Raghuram,
I found a very important SAP Note 103051, details are below.
An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
Other terms
INVOIC, SAPLIEDI, M8047, M8, 321
Reason and Prerequisites
This is because of the program design.
Solution
There is no solution for IDOC_INPUT_INVOIC_MM.
Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
Hope this helps.
Reward if helpful.
Thanks
Maybe you are looking for
-
Need some help please, itunes 7.1 and Windows Vista
Hello, I've got a bit of a problem here with itunes and my ipod nano. Basically I'm using Windows Vista Ultimate 32bit and when I connect my ipod to my PC the found new hardware wizard pops up but can never find the ipod nano. In disk management the
-
Want to download itunes 11.1?
help me download itunes 11.1 version please
-
My does my Macbook HD keep filling up?
I have an issue with my Macbook 2 GHz, running OS X 10.6.8 & 3 gb memory. The stock 120 gb harddrive should have about 8 gigs of empty storage, however it will randomly fill up, often within several hours. I primarily use Mail, Safari and Chrome on t
-
Adobe reader X bug in sticky note tool
Hi, Just wanted to put it out there (unsure if this has been discussed, I don't have time to scour the forum), while useing the spelling auto correct (right click, drop down list of suggested words, left click on desired word) in the sticky note tool
-
Deleting the Photo in Outgoing Mail Headers
There is a photo in the header area of every outgoing Mail message I send. How can I delete or change that photo?? WayneMarsh