Header vs Detail accumlation
I've created a custom folder which combines the header table with the detail table. From the Custom Folder, I've created a worksheet which shows this information. Now, how can I rollup the detail information without it adding the header numerics. Example: An Order header consisting of total Freight amount, with item details each having extended unit cost. The object is to rollup all the detail into one row showing Order Number, Order Date, Freight Amount, and Total Extended Unit cost. When I do it (no matter what I try) it multiplies the Freight amount times the number of item details of the order, which is NOT what I want, of course. Any suggestions would help tremendously. You can email me direct at [email protected] ... Thanks. Kerry Brannen.
Oops..forgot the last part of the problem. Each Order header indicates the region to which it belongs. Now I know that you can always take Freight and move it over as "Detail" and keep Freight from accumulating when you rollup the Order's item detail (and get Region, Order-#, Freight Amt, Extended Unit Cost), but how can accumulate the freight per order when rolling up the Orders into a Region? (I.E. Region, Freight Amt, Extended Unit Cost).
Similar Messages
-
Keeping heading and detail on the same page
Hi, I have a report with a group header section and a detail section. How can I keep the heading section and all the detail section on the same page without starting each group on a new page?
The detail section will have either 2 or 3 records with some of the objects set to grow if the data doesn't fit on one line. This results in several changes of group appearing on the same page which is what I want. However, what I don't want is the header section on one page with the detail section on the next, or the header and some of the detail records on one page with the rest of the detail records on the next. What I would like is the report to start a new page if the header and all the detail records don't fit on the same page but without starting a new page for every group change. How can I achieve this?you can put the group header and details into a sub report on the old group header section.
then hide the details section -
File content conversion - sender adapter for Header and detail records
Hi Experts,
I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
Thanks
DeepakHi
Refer the below fourm link,
Flat file whitout id
Regards
Ramg. -
How to fetch the data based on header in detail.
Hi,
Below is my requirement:
I need to create a two non-database control blocks(header and detail) with multirecord.
When i press the one button i need to fetch the data header block.
If i select the any record i need to get the detail record values in detail block.
Please suggest in which trigger i need to write the code. Please explain clearly.
Regards,
M. Satishhello
I agree with Mr. Andreas Weiden . use the standard function for the blocks.
First if you have any PK or FK relationship with the two tables then you can use the table wizard then just follow the procedure and be sure you click the checkbox which is default, automatically create relationship.
If you dont have PK/FK then just follow again the table block wizard ... just unclick the check box for autocreate relationship then press button to create base on the SQL join.
on the create join editor :
deptno = empdepno
the press okey. forms wizards will create all the rest... you can now notice a new object RELATIONSHIP below the DEPARMENT BLOCK and some forms genareted triggers.
And CHANGE THE BLOCK PROPERTIES TO UPDATE ABLE,INSERT ABLE, DELETE to NO.. IF YOU WANT ONLY ON DISPLAY
OR BETTER CREATE A 2 VIEWS CORRESPONDENT TO YOUR QUERY ON YOUR CURSOR.... and follow the procedure i gave above.
In your button:
go_block(your.block);execute_query(no_validate); -
XMLSequence EXTRACT HEAD and DETAIL in ORACLE 9.2
Hi, sorry about my english i am from argentine.
I have this XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<arrayOfServicio >
<Servicio>
<Nombre>Autenticacion</Nombre>
<Descripcion>ws</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>RequestTicket</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>Consultas</Nombre>
<Descripcion>wsConsultas</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>GetVigencia</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
<Metodo>
<Nombre>GetSiniestralidad</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
<Metodo>
<Nombre>GetAgrupados</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
<Metodo>
<Nombre>GetSiniestralidadPorCuil</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>Referencias</Nombre>
<Descripcion>wsReferencias</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>TablaReferencia</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
<Metodo>
<Nombre>ListadoReferencia</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>General</Nombre>
<Descripcion>WsGeneral</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>GetServicios</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>eServicios</Nombre>
<Descripcion>wseServicios</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>SetComunicacion</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>VentanillaART</Nombre>
<Descripcion>wsVentanillaART</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>ObtenerNovedades</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
<Servicio>
<Nombre>Establecimientos</Nombre>
<Descripcion>wsEstablecimiento</Descripcion>
<Activo>true</Activo>
<Version>1.0</Version>
<MetodosEntity>
<Metodo>
<Nombre>GetConsultaPorCuit</Nombre>
<Activo>true</Activo>
<Version>1.0</Version>
</Metodo>
</MetodosEntity>
</Servicio>
</arrayOfServicio>
I am working in ORACLE 9.2 and i wrote this query but the result is not correct, i need to join HEAD and DETAIL in some way but cannot do that...
select extractvalue(value(head),'//Servicio/Nombre/text()') ,
extractvalue(value(head),'//Servicio/Descripcion/text()'),
extractvalue(value(head),'//Servicio/Activo/text()'),
extractvalue(value(head),'//Servicio/Version/text()')
,extractvalue(value(detail),'//Metodo/Nombre/text()')
,extractvalue(value(detail),'//Metodo/Activo/text()')
,extractvalue(value(detail),'//Metodo/Version/text()')
from arwt_ws_return x
, table(xmlsequence(extract (x.x_xmldoc, '/arrayOfServicio/Servicio'))) head
, table(xmlsequence(extract (x.x_xmldoc, '/arrayOfServicio/Servicio/MetodosEntity/Metodo'))) detail;
Ii really appreciate your help.
Thanks!Hi,
You can do that by passing the head element to the second XMLSequence. That way you maintain the correlation between the parent and its children :
select extractvalue(value(head), '/Servicio/Nombre') as srv_nombre
, extractvalue(value(head), '/Servicio/Descripcion') as srv_desc
, extractvalue(value(head), '/Servicio/Activo') as srv_activo
, extractvalue(value(head), '/Servicio/Version') as srv_version
, extractvalue(value(detail), '/Metodo/Nombre') as met_nombre
, extractvalue(value(detail), '/Metodo/Activo') as met_activo
, extractvalue(value(detail), '/Metodo/Version') as met_version
from arwt_ws_return x
, table(xmlsequence(extract(x.x_xmldoc, '/arrayOfServicio/Servicio'))) head
, table(xmlsequence(extract(value(head), '/Servicio/MetodosEntity/Metodo'))) detail
Please also note that :
- you don't need a descendant axis (//) if you know the exact path
- you don't need to go down to the text() node if you're using extractvalue
Hope that helps. -
Hi,
I have an internal table with the value below. I need to populate to header data line (1 record only) and detail is an internal table
When there is a change of customer, i need to copy 123 to header and 2 records of material (abc & xed), sales (100 & 200) and qty (10 & 12) to detail internal table.
for customer 567, i need to copy to header and material aqs, sales 150 and qty 5 to detail internal table.
May I know how can I achieve this?
customer material sales qty
123 abc 100 10
123 xed 200 12
567 aqs 150 5
877 abc 140 8
Thanks
RgdsHello,
As per my understanding, your requirement is that you have an internal table which has a combined data and you want to split it into headr and detail internal tables, based on the change of the customer number which is the first field in the combined internal table. If so then assume that it_com is the combined internal table and it_head and it_det as the header and detail interbnal tables respectively.
First sor the combined internal table on customer number
sort it_com by kunnr.
Now loop across this table and on the event at new customer populate the header table and in the remaining loop populate the detail table.
loop at it_com into wa_com.
at new kunnr.
wa_head-kunnr = wa_com-kunnr.
append wa_head-kunnr to it_head-kunnr.
clear wa_head-kunnr.
endat.
append the records from the combined table into the item table, whatever fields required
endloop.
Regards,
Sachin -
DMEE issue in header and detail record
Hi Gurs,
I am working in DMME payment medium .
I have declared DMEE header structure(00000001000001 ) as level 1 and detail (050000010020192 XX110000001) as also level 1.
This is the output format i am getting.
00000001000001
05000001002000 XX110000001
00000001000001
05000001002012 XX110000002
00000001000001
05000001002012 XX110000003 00000001000001
05000001002011 XX110000004
But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
Both header and detail are at level 1.If i declared the detail as level 2 the output is not generated.
This is what i need.
00000001000001
05000002002000 XXX110000001
05000003002012 XXX110000002
05000004002012 XXX110000003
05000005002011 XXX110000004
Pls suggest me any solutions
Thanks .NOT answered
-
DMEE Issues header and detail record
Hi Gurs,
I am working in DMME(PAYM) payment medium .
I have declared DMEE header structure(00000001000001 ) as level 1 and detail (050000010020192 XX110000001) as also level 1.
This is the output format i am getting.
00000001000001
05000001002000 XX110000001
00000001000001
05000001002012 XX110000002
00000001000001
05000001002012 XX110000003 00000001000001
05000001002011 XX110000004
But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
Both header and detail are at level 1.If i declared the detail as level 2 the output is not generated.
This is what i need.
00000001000001
05000002002000 XXX110000001
05000003002012 XXX110000002
05000004002012 XXX110000003
05000005002011 XXX110000004
Pls suggest me any solutions
Thanks .
Edited by: bala chandran on Oct 9, 2009 10:57 AMNOT answered
-
I need to display data from both header and detail, details has to come from other table also
--CREATE TABLE
CREATE TABLE [dbo].[Table_Dept](
[DeptId] [int] NULL,
[DeptCode] [char](2) NULL,
[DeptName] [nvarchar](100) NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[Table_Detail](
[Header_ID] [int] NOT NULL,
[Name] [nvarchar](50) NOT NULL,
[DescValue] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
CREATE TABLE [dbo].[Table_Header](
[Header_Id] [int] NULL,
[UserName] [nvarchar](50) NULL
) ON [PRIMARY]
--INSERT DATA
INSERT INTO Table_Dept (DeptId, DeptCode, DeptName)
VALUES (1, 'HO', N'Head Office'),
(2, 'BO', N'Branch Office'),
(3, 'RO', N'Reginal Office'),
(4, 'SO', N'Sub Division Office')
INSERT INTO Table_Header
(Header_Id, UserName)
VALUES (1, N'Ravi'), (2, N'Gopal'), (3, N'Deepa')
INSERT INTO Table_Detail
(Header_ID, Name, DescValue)
VALUES (1, N'ListNumber', N'1005'),
(1, N'PhaseCode', N'AA'),
(1, N'DeptCode', 'BO,RO'),
(1, N'City', 'Bangalore'),
(2, N'ListNumber', N'1006'),
(2, N'PhaseCode', N'AB'),
(2, N'DeptCode', 'SO,RO'),
(2, N'City', 'Delhi'),
(3, N'ListNumber', N'1007'),
(3, N'PhaseCode', N'AA'),
(3, N'DeptCode', 'HO'),
(3, N'City', 'Mumbai')
--EXPECTED RESULT
HeaderId
ListNumber
PhaseCode
DeptName
City
User
1
1005
AA
Branch Office, Reginal Office
Bangalore
Ravi
2
1006
AB
Sub Division Office,Reginal Office
Delhi
Gopal
3
1007
AA
HO
Mumbai
Deepa
ShanmugaRajsee below code
SELECT *,
STUFF((SELECT ',' + DeptName
FROM Table_Dept
WHERE ',' + t.DeptCode + ',' LIKE '%,' + DeptCode + ',%'
FOR XML PATH('')),1,1,'') AS DeptName
FROM
SELECT h.Header_ID,
td.ListNumber,
td.PhaseCode,
td.DeptCode,
td.City
FROM Table_header h
INNER JOIN (SELECT Header_ID,
MAX(CASE WHEN Name = 'ListNumber' THEN DescValue END) AS ListNumber,
MAX(CASE WHEN Name = 'PhaseCode' THEN DescValue END) AS PhaseCode,
MAX(CASE WHEN Name = 'DeptCode' THEN DescValue END) AS DeptCode,
MAX(CASE WHEN Name = 'City' THEN DescValue END) AS City
FROM Table_Detail
GROUP BY Header_ID)td
ON td.Header_ID = h.Header_ID
)t
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
In case of not having department table...consider the dept code, where the values are now comming from table and
need result if the data is not displayed from table and they are static..
use case when 'Bo' then 'Branch Office'
when 'Ro' then 'Reginal Office'
when 'So' then 'Sub Division Office'
when 'Ho' then 'Head Office'
kindly suggest how to replace my above query
ShanmugaRaj -
Table or report for TLB Shipments with header & item details
Hi,
Anyone can tell whats the table to view TLB Shipments with header & item details OR any other reports available to view?
regards
ArasuHi
I think following information might be helpful to you.
http://help.sap.com/saphelp_sm40/helpdata/en/42/cb4e7efb0a136ae10000000a1553f7/content.htm
Amol -
Dynamically assigning Header to Details Section in Map
Hi,
I need to map the details from header to details section based on the condition.
When a Batchcode matches in the header section, I need to assign the address details from header to details section in a map.
Input:
<?xml version="1.0" encoding="utf-8"?>
<Company>
<Header>
<CompanyName>ABC</CompanyName>
<IndustryType>Hardware</IndustryType>
<BranchDetails>
<Branch>
<BranchCode>ABC123</BranchCode>
<AddressLine1>street No 1</AddressLine1>
<AddressLine2>Near mmm</AddressLine2>
<city>rtere</city>
<Pincode>345678</Pincode>
<country>China</country>
</Branch>
<Branch>
<BranchCode>DEF123</BranchCode>
<AddressLine1>street no 2</AddressLine1>
<AddressLine2>Near nnnn</AddressLine2>
<city>oieroji</city>
<Pincode>8987654</Pincode>
<country>India</country>
</Branch>
</BranchDetails>
</Header>
<WarehouseDetails>
<Warehouse>
<Name>AAAAAA</Name>
<WarehouseID>987</WarehouseID>
<BranchCode>ABC123</BranchCode>
</Warehouse>
<Warehouse>
<Name>BBBBB</Name>
<WarehouseID>765</WarehouseID>
<BranchCode>ABC123</BranchCode>
</Warehouse>
<Warehouse>
<Name>BBBBB</Name>
<WarehouseID>765</WarehouseID>
<BranchCode>DEF123</BranchCode>
</Warehouse>
</WarehouseDetails>
</Company>
Expected Output
<?xml version="1.0" encoding="utf-8"?>
<Company>
<Header>
<CompanyName>ABC</CompanyName>
<IndustryType>Hardware</IndustryType>
</Header>
<WarehouseDetails>
<Warehouse>
<Name>AAAAAA</Name>
<WarehouseID>987</WarehouseID>
<BranchCode>ABC123</BranchCode>
<AddressLine1>street No 1</AddressLine1>
<AddressLine2>Near mmm</AddressLine2>
<city>rtere</city>
<Pincode>345678</Pincode>
<country>China</country>
</Warehouse>
<Warehouse>
<Name>BBBBB</Name>
<WarehouseID>765</WarehouseID>
<BranchCode>ABC123</BranchCode>
<AddressLine1>street No 1</AddressLine1>
<AddressLine2>Near mmm</AddressLine2>
<city>rtere</city>
<Pincode>345678</Pincode>
<country>China</country>
</Warehouse>
<Warehouse>
<Name>BBBBB</Name>
<WarehouseID>765</WarehouseID>
<BranchCode>DEF123</BranchCode>
<AddressLine1>street no 2</AddressLine1>
<AddressLine2>Near nnnn</AddressLine2>
<city>oieroji</city>
<Pincode>8987654</Pincode>
<country>India</country>
</Warehouse>
</WarehouseDetails>
</Company>
Please suggest a solution
Regards, Vignesh SYou can do this by using Custom XSLT:
<?xml version="1.0" encoding="utf-16"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="Company">
<Company>
<Header>
<CompanyName>
<xsl:value-of select="Header/CompanyName" />
</CompanyName>
<IndustryType>
<xsl:value-of select="Header/IndustryType" />
</IndustryType>
</Header>
<WarehouseDetails>
<xsl:for-each select="WarehouseDetails/Warehouse">
<Warehouse>
<Name>
<xsl:value-of select="Name" />
</Name>
<WarehouseID>
<xsl:value-of select="WarehouseID" />
</WarehouseID>
<xsl:variable name="BranchCode" select="BranchCode" />
<BranchCode>
<xsl:value-of select="$BranchCode" />
</BranchCode>
<AddressLine1>
<xsl:value-of select="//BranchDetails/Branch[BranchCode = $BranchCode]/AddressLine1" />
</AddressLine1>
<AddressLine2>
<xsl:value-of select="//BranchDetails/Branch[BranchCode = $BranchCode]/AddressLine2" />
</AddressLine2>
<city>
<xsl:value-of select="//BranchDetails/Branch[BranchCode = $BranchCode]/city" />
</city>
<Pincode>
<xsl:value-of select="//BranchDetails/Branch[BranchCode = $BranchCode]/Pincode" />
</Pincode>
<country>
<xsl:value-of select="//BranchDetails/Branch[BranchCode = $BranchCode]/country" />
</country>
</Warehouse>
</xsl:for-each>
</WarehouseDetails>
</Company>
</xsl:template>
</xsl:stylesheet>
Morten la Cour -
How to give column heading for detailed list
hi,
we can get column-heading of basic list by text-element provided.
but what are ways of giving column heading in detailed list ?HI,
Based on the SY-LSIND value, you can have a different heading.
top-of-page at line-selection.
case sy-lsind.
when 1.
write:/ 'Heading for first list'.
when 2.
write:/ 'Heading for second list'.
when 3.
write:/ 'Heading for third list'.
endcase.
please see the link below it might help you
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba2eb35c111d1829f0000e829fbfe/content.htm
*******please reward points if the information is helpful to you************* -
The Mail program is not functioning properly. It only is displaying the header information for a selected email. The details (the body of the email) is not displaying. This just started happening a few days ago intermittently. Today again. I have been closing and reopening Mail. This does correct the issue but after a while, it starts happening again.
Also, I see others having this issue and some are referring to the preview pane. For me, the mail preview is working fine and I think folks are using the term "preview pane" incorrectly. The issue is with the full email display that you see when you select an email. That's the pane that is a pain.
Any Help would be great!!Thomas A Reed Northeast Ohio
Re: Where has Apple gone? Sep 1, 2012 3:08 PM (in response to Michael Marks)
Hold down the option key while choosing Library from the Go menu in the Finder. In the window that appears, find the Mail folder and move it to the desktop. Then look in the Preferences folder and move the com.apple.mail.plist file to the desktop. Now try opening Mail and set up all your accounts again from scratch. If that works, you can import any messages that you are missing from the mailboxes found in the old Mail folder on your desktop.
If that doesn't fix it, hold down command-R to enter recovery mode. Repair the hard drive with Disk Utility, then reinstall the system.
Message was edited by: hpr3 -
Header and Detail total mismatch
Hi All,
I have file to proxy scenario, and i am using XSLT mapping for source to Traget mapping,
Here, I add all amounts in details and compare it to Header amount, issue is that although the totals are matching i am still getting total mismatch error.
The number have 2 decimal places.
This is the code that i am using:
<xsl:if test="format-number(number($vInvoice),'#.00') != format-number(sum(a:MT_PaymentData/RecordSet/RecordLineItem/LineItemAmount),'#.00')">
<xsl:value-of select="string('AmtMisMatch ')"/>
</xsl:if>
Pls advice,
XIerHi,
Did you try to use it in your mapping? I mean import the zip in your Interface Mapping and try to execute it there.And see if you are getting the wrong output still. Even i was getting the wrong output in the XMLSPY for my code. But when i implemented the same code in mapping it worked fine.
Regards,
Sanjeev. -
Need to skip page break between header and Detail sections
Hello,
I am combining two reports in one report (one in header section and another report in the body section). when this report is run, there's a page break between these two sections. Is it possible to eliminate it? Ideally I would like the detail section to start as soon as the header section of the report is completed in the same page instead of starting (detail section report) in a new page.
Any help is highly appreciated. Thanks,
SundarI'd put them into one section to control the breaks.
Maybe you are looking for
-
Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.
-
To modify field value in a transparent table
how would i modify the value of a field in a transparent table? my data is from internal table. while im looping in the internal table the data goes to the first record of the table not on the right record. what wrong with my code? loop at i_tble.
-
Is anybody having the same problem? I can't advance to the next page in iTunes from the Terms and Conditionspolicy changed screen. It will not take my I have read checked and the Agree button being clicked.
-
My ipod is not turning on?
dear sir, last night i was listining to my iPod, and gone to sleep.. next day i woke up and try to turn it on but its not tuurning on... i've connect the USB to my laptop to charge but its totally blank. nothing is showing to my pc or to my iPod.. i'
-
When I type I cannot add text when I select the text area and double click. Why?
When I type I cannot add text when I select the text area and double click. Why?