How to dispaly items of Particular Sorder of IT into single row in alv dis?
Hi,
Experts,
I have an Sales order internal table along with its corresponding items
i want to display those items in side by side in alv display.
Ex:
Vbeln posnr netwr waerk
56800 10 21.00 Col
56800 20
56800 30
56800 40
I want to display:
Vbeln posnr posnr2 posnr3 posnr4 netwr waerk
56800 10 20 30 40 21.00 Col
I have added columns how can pull data into particular columns .How can i achieve this if any idea or input or suggestions please far word to me.
Thank You,
Shabeer ahmed.
Hi,
Using basic report you can do like this:
DATA: BEGIN OF itab occurs 0,
sku(10) TYPE c,
month(2) TYPE n,
qty(2) TYPE n,
END OF itab.
itab-sku = 'AA'.
itab-month = '01'.
itab-qty = 10.
APPEND ITAB.
itab-sku = 'AA'. itab-month = 02. itab-qty = 20. APPEND ITAB.
itab-sku = 'AA'. itab-month = 03. itab-qty = 20. APPEND ITAB.
itab-sku = 'BB'. itab-month = 01. itab-qty = 20. APPEND ITAB.
itab-sku = 'BB'. itab-month = 02. itab-qty = 40. APPEND ITAB.
itab-sku = 'CC'. itab-month = 02. itab-qty = 50. APPEND ITAB.
itab-sku = 'CC'. itab-month = 03. itab-qty = 10. APPEND ITAB.
itab-sku = 'CC'. itab-month = 04. itab-qty = 20. APPEND ITAB.
PERFORM LIST.
FORM LIST.
data: cl like itab-sku.
SKIP TO LINE 3.
LOOP AT ITAB.
if cl <> itab-sku.
write : / itab-sku.
else.
write : ''.
endif.
write : itab-qty.
cl = itab-sku.
ENDLOOP.
ENDFORM.
Regards,
Bhaskar
Similar Messages
-
How to aggregate a column based date column (for weekly single row)?
How to aggregate a column based date column (for weekly single row)?
Hi,
Consider the below statement for daily bases which is ok
SELECT ID, DATE, SUM(AMOUNT) FROM TABLE_NAME GROUP BY ID, DATE ORDER BY ID, DATE
The same like the above statement, I want output on weekly, fortnightly, and monthly bases, How to do this? Need your help... -
How can i import the data from multiple sources into single rpd in obiee11g
how can i import the data from multiple sources into single rpd in obiee11g
Hi,
to import from multiple data sources, first configure ODBC connections for respective data sources. then you can import data from multiple data sources. When you import the data, a connection pool will create automatically.
tnx -
-How to restrict Description into single row in the report
Hello Colleagues
I have a report which shows Material number versus Revenue. In the row, material is displayed with Technical name and description.
Here, the view of the report shows the description in single line. While, in the report, description of the report runs 3 to 4 lines though description contains 5 to 6 words (which can fit easily into single line).
Let me know how to restrict each row descrption into single line.
Regards,
NingarajuHello Colleagues
Please find the format it is currently appearing in the web reports.
Material Num Material Description Revenues (In Eur)
1000001 "SAP
ERP
Professsional
User" 111
Wanted to change above format into as below in which it has to show material description in single row.
Material Num Material Description Revenues (In Eur)
1000001 "SAP ERP Professsional User" 111
Regards,
Ningaraju -
HOW TO COMBINE MULTIPLE ROWS INTO SINGLE ROWS
Hi,
I have a table with the following data:
CASE-1
TABLE -X
RNO FROM_SQN TO_SQN DATE
==========================================
991 9 11 2010-01-01
991 11 22 2010-01-01
991 22 33 2010-01-01
992 33 44 2010-01-01
I want to see the result data as follows:
RNO FROM_SQN TO_SQN DATE
==========================================
991 9 44 2010-01-01
CASE-2
TABLE -X
RNO FROM_SQN TO_SQN DATE
==========================================
991 9 11 2010-01-01
991 15 22 2010-01-01
991 22 34 2010-01-01
992 33 44 2010-01-01
I want to see the result data as follows:
RNO FROM_SQN TO_SQN DATE
==========================================
991 9 11 2010-01-01
991 15 44 2010-01-01
Please help me how to achieve this using SQL.
Edited by: 986725 on Feb 7, 2013 2:36 AMwith x as
select 991 rno, 9 from_sqn ,11 to_sqn ,to_date('2010-01-01','yyyy-mm-dd') dt
from dual union all
select 991, 15 ,22 ,to_date('2010-01-01','yyyy-mm-dd') from dual union all
select 991, 22 ,33 ,to_date('2010-01-01','yyyy-mm-dd') from dual union all
select 991, 33 ,44 ,to_date('2010-01-01','yyyy-mm-dd') from dual
x_with_group as
select rno,from_sqn,to_sqn,dt,
sum(sm) over(partition by rno,dt order by from_sqn) sm
from
select rno,from_sqn,to_sqn,dt,
from_sqn-
nvl(lag(to_sqn) over(partition by rno,dt order by from_sqn),0) sm
from x
select rno,min(from_sqn) from_sqn,max(to_sqn) to_sqn,dt
from x_with_group
group by rno,dt,sm
order by rno,dt,from_sqn;
RNO FROM_SQN TO_SQN DT
991 9 11 01-jan-2010
991 15 44 01-jan-2010 Edited by: jeneesh on Feb 7, 2013 4:59 PM
Assumed the date values are actually DATE types.
Partition on DT and RNO can be amended as per your requirement..
And assumed your sample data has a typo..
If your data is correct..
with x as
select 991 rno, 9 from_sqn ,11 to_sqn ,to_date('2010-01-01','yyyy-mm-dd') dt
from dual union all
select 991, 15 ,22 ,to_date('2010-01-01','yyyy-mm-dd') from dual union all
select 991, 22 ,33 ,to_date('2010-01-01','yyyy-mm-dd') from dual union all
select 992, 33 ,44 ,to_date('2010-01-01','yyyy-mm-dd') from dual
x_with_group as
select rno,from_sqn,to_sqn,dt,
sum(sm) over(order by from_sqn) sm
from
select rno,from_sqn,to_sqn,dt,
from_sqn-
nvl(lag(to_sqn) over(order by from_sqn),0) sm
from x
select min(rno) rno,min(from_sqn) from_sqn,max(to_sqn) to_sqn,min(dt) dt
from x_with_group
group by sm
order by rno,dt,from_sqn;
RNO FROM_SQN TO_SQN DT
991 9 11 01-jan-2010
991 15 44 01-jan-2010 Edited by: jeneesh on Feb 7, 2013 5:14 PM -
How do I divide a list in one cell into multiple rows?
I have copied lists of data from a website - some lists pasted as I want them (in individual rows), but others pasted the list in one row. Is there an easy way to split a list in a single cell into multiple cells so ultimately I can sort all the rows? I've tried "split the selected cells into rows" in the inspector, but it's not working... seems like it's creating another column instead (?). Any help would be amazing.
K,
I find that Pages has the friendliest Find and Replace dialog, so when I need to swap around the delimiters I go straight to Pages and do the fixes there. Replace whatever is there between columns in the original content with Tab characters and replace whatever is there now for delimiting the rows with the Return character. Since it's sometimes difficult to tell what has been used, just copy it from the content and Paste into the Find field. Choose the Tab or Return character from the Replace drop down menu.
When you have it all fixed up, then paste into Numbers.
Jerry -
How to display multiple lines of texts in a single rows in ALV
Hi,
I have a unique requirement in which i have to display multiple lines if texts for a single rows in ALV Grid. Right now in my output it is coming in single line which is not visible fully because that text is more than 255 character. So i want to display the test by splitting into multiple lines and show it on output. Please suggest some solution for this if this is possible in ALV.
Thanks,
RaghavHi Raghavendra,
Its not possible to display multiple line in one row of an alv, but i think you can acheive it by splitting the whole text into multiple sub-text.
For example, if your requirement is as below:
Field #1 Field #2
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(200 characters)
2 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy(220 character)
then you can break Field#2 value into say 50 character and then populate the internal table with repetative entries of Field#1 and the finally sort it by Field#1 value... as a result of which you output will be somewhat as below:
Field#1 Field#2
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyy
Hope it will help you in meeting your requirement.
Regards,
Shradha -
How to convert single column into single row
I need to convert single column into single row having n no.of.values in a column. without using case or decode. I need a query to display as below.
emp_id
100
101
102
102
103
200
I need output like 100,101,102,103,104.........200.I assume you want to convert 200 rows with one column into one row with 200 columns. If so, this is called pivot. If you know number of rows (max possible number of rows) and you are on 11G you can use PIVOT operator (on lower versions GROUP BY + CASE). Otherwise, if row number isn't known, you can use dynamic SQL or assemble select on clent side. Below is example emp_id = 1,2,..5 (to give you idea) and you are on 11G:
with emp as (
select level emp_id
from dual
connect by level <= 5
select *
from emp
pivot(
max(emp_id) for emp_id in (1 emp_id1,2 emp_id2,3 emp_id3,4 emp_id4,5 emp_id5)
EMP_ID1 EMP_ID2 EMP_ID3 EMP_ID4 EMP_ID5
1 2 3 4 5
SQL>
SY. -
How to display data from 2 different groups in a single table
Hi,
Following is the requirement:
The XML Content is below
ListOf_ssAssetMgmtAsset>
-<ssAssetMgmtAsset>
<ssAccountName>1-1D09-83031</ssAccountName>
<ssAccountPrimaryCountry>USA</ssAccountPrimaryCountry>
<ssAssetNumber>13111027</ssAssetNumber>
<ssNaiAssetNumber>123</ssNaiAssetNumber>
<ssNaiGrantNumber>ABC</ssNaiGrantNumber>
<ssNaiProductType>System Security Software</ssNaiProductType>
<ssNaiSuperceded>123</ssNaiSuperceded>
<ssProductDescription>Upgrade extract local DB</ssProductDescription>
<ssProductName>1-1M5H-296</ssProductName>
<ssStatus>ABC</ssStatus>
<ssId>1X-ZY</ssId>
<ssCreated>01/01/1980</ssCreated>
<ssUpdated>01/01/1980</ssUpdated>
<ssCreatedBy>1X-ZY</ssCreatedBy>
<ssUpdatedBy>1X-ZY</ssUpdatedBy>
-<ListOf_ssAgreementEntitlement>
-<ssAgreementEntitlement>
<ssEntitlementEndDate>16/12/2009</ssEntitlementEndDate>
<ssEntitlementStartDate>16/11/2009</ssEntitlementStartDate>
<ssEntitlementType>Services</ssEntitlementType>
<ssNaiQuantity>2</ssNaiQuantity>
</ssAgreementEntitlement>
</ListOf_ssAgreementEntitlement>
-<ListOf_ssAgreementEntitlement>
-<ssAgreementEntitlement>
<ssEntitlementEndDate>10/12/2009</ssEntitlementEndDate>
<ssEntitlementStartDate>10/11/2009</ssEntitlementStartDate>
<ssEntitlementType>ServicePortal</ssEntitlementType>
<ssNaiQuantity>1</ssNaiQuantity>
</ssAgreementEntitlement>
</ListOf_ssAgreementEntitlement>
</ssAssetMgmtAsset>
</ListOf_ssAssetMgmtAsset>
The data needs to be displayed in the below manner where first grouping is by Account Country, then by Account Name. Then the table with 9 columns where in the first 5 columns are from first group and the next 4 are from second group.
Account Country
Account Name
ProductType Grant # Asset # Product SKU Product Name Entitlement Type Quantity /Nodes EntitlementStart Date Entitlement EndDate
I have the coding as
first for loop: <?for-each-group:ssAssetMgmtAsset;./ssAccountPrimaryCountry?>
second for loop: <?for-each-group:current-group();./ssAccountName?>
third which is for the table : <?for-each:current-group()?>
I close the above grp after product description.
One table with the first 5 columns and below second table is placed adjacent to the first to display the 4 columns with the grp <?for-each:ssAgreementEntitlement?>
how do I get all the 9 columns in a single row in a single table.
Any help is appreciated.
thanksWhat is the lnk between the two
ssAssetMgmtAsset and ssAgreementEntitlement ?
you want to display all the ssAgreementEntitlement for every ssAssetMgmtAsset group ?
there shud be a link between them, you have link them and display. -
How to split a parallell-page PDF into single-page PDF
My situation: I have a few hundred pages of files I made quite a few years ago, optimized for "self-publishing" via the printer. I no longer have any source files (my own bad). These files have 2 pages next to each other in an A4 landscape PDF. I would like to change and combine these files into a US Letter portrait PDF.
I have browsed earlier, similar threads, most notably the most referred to thread:
http://forums.adobe.com/message/3331516
which recommends using Adobe PDF printer. However, as this thread points out, and as I for one have found on my own system (10.8.3), Adobe PDF printer is no longer an option on Mac OS X (version 10.6 and on):
http://forums.adobe.com/thread/556366
So the question then is: How do we now split double-page landscape PDFs into single-page portrait PDFs?Since at least OSX.5 adobe has removed PDF Printer which was begining to fail it was written in Adobe's altered version of javascript and it was a wonder it was working to begin with They replaced it with an Automator action that's called up through the print Driver.
Here are the steps for applications other than Acrobat.
create you doucument. laying it out the way you want it.
Go to Print menu.
click and hold the pdf button - a context menu pops up.
now scan the list of choices and choose Adobe PDF or Adobe Quality PDF (depends on version of OS)
wait for direction fields to come up and make the desired choices (the first screen is basically job options).
when asked ask for name either ecept name give or choose name of your choice.
Browse to desired location for file
then click save.
How the PDF is layed out in acrobat is determinedby acrobat. Adobe add an additional Layer on top of the Print Driver. You can by pass it and use the Print Driver but if there is an orientation switch in your docment the page is turned so everything comes out with same edge of Paper
Oh, look out for a Grand idea Adobe did that even Forest Gump would have left alone.
If you want to do duplex printing to a PDF with more than one page you won't be able to do so whether you have your printer setup for duplex printing. You can go back and forth from printer setting s to Printer setting toggling off and on til you turn blue in the face. You have to go into the document properties and loo for a command called SIMPLEX printing its on by default and needs to be turned off. Even my cat Boots would be smart enough not to put that in.
This settinging does not permanently turn off and you have to do with each document you create or resave. -
How do I stop (permanently) automatic downloads of specific items - in particular, movies that I have downloaded on another pc and copied these to the computer I am now using?
Hi michael emerald,
Welcome to the Apple Support Communities!
It sounds like you would like to download your purchased content directly to your iPad and not have to go through iTunes to sync it. You can download individual purchases directly from the iPad using the Purchased section. Please use the attached article as a reference.
Download past purchases - Apple Support
Have a great day,
Joe -
How to delete a particular row in ALV table
Hi,
How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
Thanks
Bala DuvvuriHello Bala,
Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
data : lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_config TYPE REF TO cl_salv_wd_config_table.
lr_table_settings ?= lr_config.
** Setting the ALV selection to multiple selection with no lead selection
lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
Next delete the selected rows in the action triggered by the button:
METHOD onactiondelete_rows .
DATA: wd_node TYPE REF TO if_wd_context_node,
lt_node1 TYPE ig_componentcontroller=>elements_node,
wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set,
row_number TYPE i VALUE 0.
wd_node = wd_context->get_child_node( name = 'NODE' ).
CALL METHOD wd_node->get_selected_elements
RECEIVING
set = lt_temp.
LOOP AT lt_temp INTO wa_temp.
wd_node->remove_element( EXPORTING element = wa_temp ).
ENDLOOP.
CALL METHOD wd_node->get_static_attributes_table
EXPORTING
from = 1
to = 2147483647
IMPORTING
table = lt_node1.
wd_node->bind_table( new_items = lt_node1 ).
ENDMETHOD.
If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
Regards,
Uday -
How to get items from a list that has more items than the List View Threshold?
I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
always seems to be thrown and I get no items back.
I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
Thanks.
My Query:
<OrderBy>
<FieldRef Name='ID' Ascending='TRUE' />
</OrderBy>
<Where>
<Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
</Where>
My ViewXml:
<View>
<Query>
<OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
<Where>
<Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
</Where>
</Query>
<RowLimit>2000</RowLimit>
</View>
Thanks again.I was using code below to work with 700000+ items in the list.
SPWeb oWebsite = SPContext.Current.Web;
SPList oList = oWebsite.Lists["MyList"];
SPQuery oQuery = new SPQuery();
oQuery.RowLimit = 2000;
int intIndex = 1;
do
SPListItemCollection collListItems = oList.GetItems(oQuery);
foreach (SPListItem oListItem in collListItems)
//do something oListItem["Title"].ToString()
oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
intIndex++;
} while (oQuery.ListItemCollectionPosition != null);
Oleg
Hi Oleg, thanks for replying.
The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
as well on that list of 700000+ items.
Thanks anyway though -
How do I set a particular view in STUDIO record browser for a particular user?
How do I set a particular view in the Studio record browser for a particular user?
Thank you for your reply. However, I could not get Templates to work correctly for me. Following your instructions, I opened my document, opened Page Setup, set the printer, paper size, orientation, and printed a copy to make sure it was right. Then I re-opened Page Setup to verify that the settings were still correct. Then I saved the document as a Template. Then I found my template in Pages, opened the template, and tried to print. The first thing I noticed was that the template did not remember my printer. Then I set the printer, and printed, but I found that the template also did not remember the page size or the document orientation. So, did I miss a step here? Lion 10.7.5 and Mac Mini.
-
How to Inactive Item Status at Org Level
How to Inactive Item Status at Org Level and what are the implications of doing so.
What are the prerequisits before inactivating an item status.
The Procedure I am following is
Changing the Item Attribute control to Org Level for Item Status
Log on to Organization Items and Selecting the Item Status as Inactive.
Can any one please let me know what are the pre requisits before Inactivating an Items and The procedure I am following is correct.
Thanks
Srinivasa GarikipatiHi;
Please check serial attribute and org attribute problems with item master and see its helpful
Also you can check:
http://oz1-n.blogspot.com/2009/06/interview-questions-for-oracle-11i-apps.html part
1. Once an item is assigned to an organization, is it possible to remove this association at a later time?
2. How do I inactivate an item?
Regard
Helios
Maybe you are looking for
-
Trying to have pages open in same window
Hello! Total newbie here just getting my feet wet in iWeb. Every time I publish, my pages after the home page open in new windows or tabs! How can I have each subsequent page open in the same window? Even "home" on other pages opens a new window! Obv
-
HP deskjet 1220c prints perfectly on WIN 98... BUT need drivers for WIN XP
HP deskjet 1220c prints perfectly on WIN 98... YES I have a new computer with WIN XP... BUT... can not find any printer drivers for the HP1220c... NEED HELP... THANKS... ALSO... is there a way to just print TEST PAGE when the printer come on... witho
-
Deleting applications from Hard Drive
I need to delete the OS 9 version of RealPlayer from my Hard Drive before installing the OS X version. The problem is, I can't purge the OS 9 version from my Hard Drive. I can drag it to TRASH, but that only creates a duplicate there. How do I elimin
-
Issue with AFAB (Depreciation Posting)
We have recently gone live with AA. When I try to run depreciation AFAB, SAP gives me the error " You can only post in new year after closing the previous year. Message no. AA687 Diagnosis You want to post in a new fiscal year. However, a posting mus
-
Help clogged due to the hard drive itunes
hammered disk after the backup was only 6 gigabytes of free, until it was up to 20 gigabytes of coppers. How do I delete a backup on your computer?