How to avoid data repeated in report?
Hi experts,
I'm working on a report that needed
plant,
new material code,
old material code,
material type,
special stock and
(material status ne '01')
select p~werks m~matnr m~bismt m~mtart s~sobkz
into corresponding fields of table it_mat
from ( ( MARC as p inner join MARA as m on p~matnr = m~matnr )
inner join MSEG as s on s~matnr = p~matnr )
where m~matnr in p_mcode
and m~bismt in p_ocode
and m~mtart in p_mtype
and p~werks in p_plant
and m~matkl in p_mgroup
and p~mmsta ne '01'
and s~sobkz in p_spec
order by m~matnr.
APPEND it_mat.
This is my select stament ,
and it's output layout the material code are all repeating twice or 3-5 times for the same data.
Is there anyway to take out the repeated data?
Please advice.
Thank you in advanced.
Hi,
Use ,
select pwerks mmatnr mbismt mmtart s~sobkz
into corresponding fields of table it_mat
from ( ( MARC as p inner join MARA as m on pmatnr = mmatnr )
inner join MSEG as s on smatnr = pmatnr )
where m~matnr in p_mcode
and m~bismt in p_ocode
and m~mtart in p_mtype
and p~werks in p_plant
and m~matkl in p_mgroup
and p~mmsta ne '01'
and s~sobkz in p_spec
order by m~matnr ASCENDING.
DELETE ADJACENT DUPLICATES FROM it_mat.
APPEND it_mat.
it will delete all duplicates & repeated data.
Regards
Hema
Similar Messages
-
How to exctract data from a report to use it in a process
Hi! I would like to know how to exctract data from a report to use it in a process. Let's say that I have a report which have following fields: id_person, name_person. And then, I want to make a process which introduce the id_person (from report) into an associative tabel. How can I reffer to the fields from my report?
I was thinking about something like that( this should be the code from my process)
insert into associative_table(id_person)
values(id_person) or
insert into associative_table(id_person)
values(Report_name.id_person) but it doesn't work....
Thank you very much.Another option, use collections.
Create an on load process that loads all the rows you would have in your report into a collection:
begin
HTMLDB_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(
p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS' );
for x in (SELECT CONTACT_ID, CONTACT_FNAME, CONTACT_LNAME
FROM CONTACT
WHERE InStr( pkg_CalendarMgr.f_FetchContactIDsForDay( TO_DATE( :P3_CALENDAR_DT, 'YYYYMMDD' ), 'OF' ), CONTACT_ID ) > 0 )
loop
htmldb_collection.add_member(p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS',
p_c001 => x.CONTACT_ID,
p_c002 => x.CONTACT_FNAME,
p_c003 => x.CONTACT_LNAME);
end loop;
end;
Then, instead of your report selecting from the table, have it select from the collection, this way your display will match what's in the collection:
SELECT c001, c002 || Chr(32) || c003 CONTACT_NAME, 'Remove' remove
FROM htmldb_collections
WHERE collection_name = 'ASSIGNED_CALENDAR_CONTACTS'
ORDER BY c003, c002
Then you can have a button on the form that steps through the collection, one element at a time and does whatever you want it to. -
How to avoid data repetation when using select statements with innerjoin
how to avoid data repetation when using select statements with innerjoin.
thanks in advance,
satheeshyou can use a query like this...
SELECT DISTINCT
frg~prc_group1 "Product Group 1
frg~prc_group2 "Product Group 2
frg~prc_group3 "Product Group 3
frg~prc_group4 "Product Group 4
frg~prc_group5 "Product Group 5
prc~product_id "Product ID
txt~short_text "Product Description
UP TO 10 ROWS
INTO TABLE l_i_data
FROM
Joining CRMM_PR_SALESG and
COMM_PR_FRG_ROD
crmm_pr_salesg AS frg
INNER JOIN comm_pr_frg_rod AS prd
ON frgfrg_guid = prdfragment_guid
Joining COMM_PRODUCT and
COMM_PR_FRG_ROD
INNER JOIN comm_product AS prc
ON prdproduct_guid = prcproduct_guid
Joining COMM_PRSHTEXT and
COMM_PR_FRG_ROD
INNER JOIN comm_prshtext AS txt
ON prdproduct_guid = txtproduct_guid
WHERE frg~prc_group1 IN r_zprc_group1
AND frg~prc_group2 IN r_zprc_group2
AND frg~prc_group3 IN r_zprc_group3
AND frg~prc_group4 IN r_zprc_group4
AND frg~prc_group5 IN r_zprc_group5.
reward it it helps
Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM -
How to print Data Model in Report??
Do anyone know how to print Data Model??
Thanks your help.
- FrankHi Venkat,
Thanks alot.... i am checking the appendix k.
I want to know that if i want to customize the report as per the client requirement,
can you please let me know which template i will use if i required remittence advice as well as check print data on the layout.
The following is the list of field i required:
Vendor ID
Check Date
Check number
invoice date
invoice/ CR memo number
invoice description
invoice gross amount
invoice discount amount
invoice net amount
total gross amount
total discount amount
total net amount
logo
company name and info
bank name and info
check number
check amount spelled out
check date
check amount numeric
payee name
CEO signature
MICR check number
MICR routing number
MICR bank account number
mailing return address
mailing address
Venkat it would be great help if you please let me know the exact process to be follow for check printing report.
I worked on bi publisher report in 11i, but in 12i the process is bit different.
also if you have any template ready can you please send me on my mail id ... i forwarded you the test mail from my official id or on [email protected]
Looking forward to your kind response.
Regards
Ratnesh -
How to print date/time in report page footer?
Hi
I have a report which users can print as PDF.
However, I like to display current date/time in report footer.
I can see the Page Footer in section but can't figure out how to print date/time there.
Thanks for help.hi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
ALV List Output: How to avoid data statistics from printing in Background
Hi,
I am running an ALV list display in Background mode and the output is showing the data statistics first and then the actual output of the ALV...
I dont want the data statistics to be printed..
How to avoid that.. is there any to do it...Hi Neela
If you are using the good old REUSE_ALV_GRID_DISPLAY function module, you should be able to suppress the List Info if SY-BATCH is 'X' using the IS_PRINT parameter.
MOVE 'X' TO is_print-no_print_listinfos .
Presumably there is a similar parameter using classes.
Cheers
Lyal -
How to avoid data lost in Dataguard failover ?
Hi gurus,
We are implementing Dataguard with manual failover (Not with Fast Start feature)
How to avoid/minimize lost of data if the primary server goes down before the last log is sent ?
Thank you for your help,
xtantoMost important the dataguard protection mode, you have 3 choices: Maximum Performance,Maximum Availability,Maximum Protection . If you are interested in no data loss choose Maximum Protection, that's the definition:
Maximum Protection
This protection mode ensures that zero data loss occurs if a primary database fails. To
provide this level of protection, the redo data needed to recover a transaction must be
written to both the online redo log and to at least one synchronized standby database
before the transaction commits. To ensure that data loss cannot occur, the primary
database will shut down, rather than continue processing transactions, if it cannot
write its redo stream to at least one synchronized standby database.
Because this data protection mode prioritizes data protection over primary database
availability, Oracle recommends that a minimum of two standby databases be used to
protect a primary database that runs in maximum protection mode to prevent a single
standby database failure from causing the primary database to shut down.
For details see the documentation for your unknown database version.
Werner -
How to generate data model summary report
Hi,sir,
How can I generate a summary report when I create a server data model in designer 9i as some software did.
I know CA Erwin or Sybase powerdesigner have a good report builder.
It is easy to use. How about designer 9i?
Any tutorial?Hi,
It's look like you are assuming that an organizational model can be created from external data input via a report. If so, then your assumption is wrong. There is no standard way to create a org. model from external input.
As a standard practice SAP provided a report as mentioned in the previous reply. Using this report you can download ECC/R3 org. model into SAP CRM. This is the easy and best proven way of generating org. model in SAP CRM.
Please let me know, if you need any further clarification
Do not forget to reward if it helps
Regards,
Paul Kondaveeti -
How to avoid data tab in webi report.
Hi BO gurus,
I need one clarification, while seeing the webi report(edit mode) we can see data tab left side of report. how can we avoid the data tab?
I mean with out data tab .
Regards,
ArjunHi Arjun,
Please find the above requirement available below:-
BI 4.1 Web Intelligence GUI Customization - Business Intelligence (BusinessObjects) - SCN Wiki
SAP KBA 1859784 - How to disable the Design and Data buttons in Web Intelligence in BI 4.1 also available for the same.
Hope this helps.
Regards,
Manpreet -
How to avoid duplicate measures in reports due to case functions?
Hi,
If I create a report, using a dimension called insert_source_type where the next measure would be insert_source in the dimensions hirarchie, if I do not put any formula, when I become a report where i can drill down on insert_source_type and i get insert_source values.
If I use a function like (CASE "Ins Source"."Ins Source Type" WHEN 'OWS' THEN 'WEB' ELSE "Ins Source"."Ins Source Type" END) and change the label of insert_source_tpye to Channel Group instead, when
I drill down on Channel Group, it goes to insert_source_tpye and from there i can drill down to insert_source.
There is an insert_source_type too much!
How can be this avoided?
Thanks and Regards
Giulianohi mahesh,
write module processor for checking the duplicate record in file adapter
or
With a JAVA/ABAP mapping u can eliminate the duplicate records
and check this links
Re: How to Handle this "Duplicate Records"
Duplicate records
Ignoring Duplicate Records--urgent
Re: Duplicate records frequently occurred
Re: Reg ODS JUNK DATA
http://help.sap.com/saphelp_nw2004s/helpdata/en/d0/538f3b294a7f2de10000000a11402f/frameset.htm
regards
srinivas -
How to convert data from a report in PDF which are specified on multiple lines ?
It often occurs that in a report one detail entry is folded onto two subsequent lines.
e.g.
No.
Container Lt Ht Tp F/E Dam Weight Temp Bi Im First Seal No. Cell Booking ref.
In Arr id A Tml PoL PD PoD C T L R F B
1 XXXU123456-7 20 ST I F 24.000 SLX11 1 25A CVA12345
How does the conversion to Excel is going to handle this ?
I need the second line of data in my excel sheet.
YES 9/10 14:15 BEANR REFCTHello Jay,
Don't use SSIS to convert. Use SSIS to FTP the files out.
How you convert to PDF: the format is owned by Adobe so there might be royalties involved, but there are paid and free (OSS) libraries to doing so. Just search online.
Arthur
MyBlog
Twitter -
How to handle date prompt in report
Hi I have date column on database as timestamp.
Now need to apply filter in report based on date prompt.
Do i nee to cast it in Date format..or how i can do it.
thanks,Hi User,
Which versionof obiee are you in? If you are on 10.1.3.4.1 version, apply PATCH 9492821 to fix this issue.
Can you do the following checks,
In the repository physical layer, set the column to have a data type of date
In the BMM layer, where the column is mapped, edit the column mapping to contain a CAST function to cast as date
Regards,
Dpka -
How to save data in a report?Urgent...
hi all,
I'm doing a project in java to create report generator..After creating a report i have to save the report..For that i have to save the datas & the program to execute the data..My doubt is that how i would store the data?.According to my idea i created a table that contains the field names for report header,date ,fieldcount etc..how to store the field values?Because different people selecting different fields from a table..How could i store the values?is it to create each table for storing field values for each report?Could you please clarify my doubt as soon as possible?
Regards
Preethihi,
Thanks so much for your quick reply..i'll clear my doubt..I'm doing a project in java that helps to create reports for java programs(same concept as that of crystal repots)..For that I made 3 tabs in a tabpane.The first tab consists of Mainpanel(to select the database,then table, fields and report header)..The next tab is the Design tab.This tab consists of ReportHeader,PageHeader,Detail Section etc.In this tab there are facilities to adjust the font size,font type,the position of each headings and field positions.And final tab is the Preview tab.Here the reports can be viewed with the selected font and with data for each field..Here i have to give an option to save the report.To save the report i have to save the data and the code necessary to execute these datas.i think i have to store the font type,font size,the x && y position that the user selected at the time of design.My doubt is how could I save these values?by using database & table concept or by using FileOutPutStreams..The number of field sthe user selected may be diffreent for each of the file?Didi you get my doubt?Hope you got it..
Regards
Preethi Renjith -
How to compare dates in Crystal Reports 2008
Hello,
I cannot figure out how to compare the dates in the Crystal reports.
I need all dates that are in the future to be displayed with the green font.
So in the formula for the font for this texbox I've tried to use different
formulas like:
If DateDiff("d", CurrentDate, {DevelopmentTracking_SELECT.Anticipated}) > 1
Then
crGreen
or
If {DevelopmentTracking_SELECT.Anticipated} > CurrentDate Then
crGreen
(where DevelopmentTracking_SELECT is the stored procedure, and Anticipated
is a date field).
None of them worked. All dates are treated like they were in the past
comparing to the CurrentDate. If I reverse these formulas like:
If {DevelopmentTracking_SELECT.Anticipated} < CurrentDate Then
crGreen
then all dates turn to green, otherwise they always stay black.
What could be a problem here?
I would appreciate your help.
Thank you.OK, got it, thank you. It worked.
However, I also need to use another field value which is not on the report, like this:
If CurrentFieldValue < CurrentDate And {DevelopmentTracking_SELECT.Completed} = False Then
crRed
DevelopmentTracking_SELECT.Completed is not on the report.
Is it possible to use it with the cross-tab? -
How to avoid the repeated Print window, for range printing in a smartform
Hi
I developed one smartform for the single/multiple Outbond deleviry. When I execute the query with same range then print window opened and after click print button Document priented. But when I try to execute the query with range suppose 0001 to 0003 then Print window opened and click the print the 0001 doc and again click print button for 0002 and so on.
I would like to , how we take a print on single click print button.
pls help me it's urget.
Thanks in advance
TapovardhanThanks Ravi
But after adding code this error comes.
Field "PRINT_PARAMS-NO_DIALOG" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement. "DATA" statement.
For define the PRINT_PARAMS what would be the type.
Our code is given below.
REPORT ZTESTPCLDI.
tables : likp.
select-options : s_vbeln for likp-vbeln.
data : itab_likp type standard table of likp with header line.
DATA : FORM_NAME TYPE RS38L_FNAM.
data : print_params type SSFCTRLOP.
start-of-selection.
select * from likp into table itab_likp
where vbeln in s_vbeln.
end-of-selection.
loop at itab_likp.
if sy-tabix <> 1.
print_params-no_dialog = space.
else.
print_params-no_dialog = 'X'.
endif.
CALL FUNCTION '/1BCDWB/SF00000045'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
wa_likp = itab_likp
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
NEw-PAGE.
endloop.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
Maybe you are looking for
-
We can't install Office 2013 64-bit on a Win 7 PC that had a 32-bit version of Office
We have a development PC running Windows 7 64-bit. This PC has been around for a while, and way back had various 32-bit versions of Office installed, starting with Office 2003 through 2010. Those versions were uninstalled and Office 2013 Pro Plus 32-
-
¿Version de prueba Adobe CS5 Design Premium en Español?
Hola a todos Tengo una pregunta sencilla. Ya para estas fechas han salido las versiones de prueba de los programas de la CS5 en la mayoría de idiomas, pero para la versión de la Design Premium no ha salido aún. He estado revisando y sólo aparecen par
-
Append Structure Issue...
Dear SAPgurus In TWSPR table I have appended one ZField i.e ZZWERKSTDESC Char 80, now I want to see this field in SPRO.But it is is not displaying. When a user configures a basic material (TWSPR-WRKST) value, a basic material description(TWSPR-ZZWER
-
I get an error: reading or writing to disk, etc. when trying to export
Hi out there, I have been getting this error constantly: audition has encountered an error reading or writing, etc as mentioned above, recommends saving etc and restarting. It doesn't help. I recorded some local gospel singers and am just mixing in
-
Q&A with the SharePoint MVP Experts Chat On Oct 29th @1pm EST or 10am PDT
Hello everyone We are launching our SharePoint MVP Expert Chats again! Have questions about SharePoint 2010 or 2013? Or SharePoint Online? Office 365? Please join us October 29th at 1pm EST or 10am PDT where you can have your questions answered li