Query on Materials with deletion date
Dear All,
We need a query (SQ01/SQ02) with following result:
- Material with deletion flag
- Date of the deletion (when deletion flag was set)
and the following selection:
- Period of deletion
- Plant
I know that I can find the material with MARA (and MARA - LVORM for deleted material). How can I find the date when a material was deleted?
Thank you in advance for your inputs.
Best regards,
Thomas
Hi,
DF for material can be set at different levels not only at client level - so, not only table MARA may contain information on deletion (e.g. you can set DF at warehouse, SLoc level, etc.).
Table CDHDR contains information on changes of material master.
Regards,
Csaba
Edited by: Csaba Szommer on Jan 20, 2009 8:36 AM
Similar Messages
-
Processing of materials with deletion flags
Hi,
I have 2 questions.
1) I want the materials with deletion flags blocked for use in PO or in any goods movement. How could I do that to restrict all processes for these materials?
2) I have a Purchasing Request and a RFQ for this. After I create a PO for this request and rfq, I could still open another PO regarding this RFQ. Is this normal? How could I prevent this?
1 RFQ will be used only for one PO unless there is an agreement for purchase?
Thanks
Iremhi,
you can use the X-plant material status to procurement at different levels...
the same indicator you can find in the material master records in the BASIC data, Puchasing and MRP tab...
To use the RFQ for One PO only, make the message which you get while making the PO as error message, then no one make another message later...
make settings here:
SPRO >> MM >> puchasing >> env. data >> define system messages >> here check for your message as per its no..and make it as "E"
Regards
Priyanka.P -
Query Not reflected with Updated Data
Dear Experts,
I am facing a Problem in query data updation. Data has been daily updating in infoprovider successfully ,But when user run query through Bex he is always shown old data. Then I go to RSRT and generate the query and data got updated.
Every Time for new data updation I need to Generate the query.
What could be reason for this. Is this related to cache data ?
Any Advise .
Thanks in Advance.Dear Michael,
This problem is coming only for one Multiprovider. Running this program would affect all other queries also . This will Delay the reporting.
Any other reason why query is reflected with old data Though infoprovide is loaded with new data. -
Deleting all the materials with deletion flag
Hi all.
How is it posiible to delete all the materials in the system that have a deletion flag using tcode MM71?
Regards, Nikolai.MM71 is an archiving transaction. You have to do customizing for archiving.
Create logical and physical file names and paths. Define the size of an archive. and define what you want execute in what sequence.
Create a variant with your selection.
But if you want delete material masters that were already in use, then be prepared that your success may be very limited. As you would have to archive all dependend data first.
Materials are the very last step in an archiving cycle.
Click the network button right of the executing button to see what objects you have to archive first, to be able to finally archive a material -
Execute query run fine with numeric data not give result on string data
Hi master
Sir I use under blow code for execute query
sir when I use numeric data then run fine but when I use character data then not give any result
with numeric run fine
DECLARE
DD VARCHAR2(15);
BEGIN
DD:=10;
set_block_property('emp', default_where, 'where DEPTNO='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
With character not give any result
DECLARE
DD VARCHAR2(15);
BEGIN
DD:='SALESMAN';
set_block_property('emp', default_where, 'where RTRIM(EMPNO)='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
Please give me any ideabro it is not working on string format coz of the missing quotes. e.g. 'smith' or smith. so the quoted string will be compared. in set_block_property u have to include extra quotes on the variable. e.g.
set_block_property('emp',default_where,'where ename='''||:emp.ename||'');
or with conditional statement
set_block_property('emp',default_where,'where ename='''||:emp.ename||''' and dname='''||dept.deptno||'');
there i included two extra qoutes before joining ename and in the an extra quote to complete to string. if u would like to debug at runtime to show if the qouted string condition is proper then assign the where clause to a variable and message it up.
like
myvariable:='where ename='''||:emp.ename||'';
message(myvariable);
message(myvariable);
set_block_property('emp',default_where,myvariable);
after the string is quoted properly the execute query will work fine, also use the function upper or lower to compare strings.
zaibi. -
XML Query Help row with no data
declare @address table
AddressID int,
AddressType varchar(12),
Address1 varchar(20),
Address2 varchar(20),
City varchar(25),
AgentID int
insert into @address
select 1, 'Home', 'abc', 'xyz road', 'RJ', 1 union all
select 2, 'Office', 'temp', 'ppp road', 'RJ', 1 union all
select 3, 'Home', 'xxx', 'aaa road', 'NY', 2 union all
select 4, 'Office', 'ccc', 'oli Com', 'CL', 2 union all
select 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 union all
select 6, 'Home', 'ttt', 'loik road', 'NY', 3
SELECT a.* from @address a
where a.AddressID = 1
FOR XML path('Addresses')
SELECT a.* from @address a
where a.AddressID = 9
FOR XML path('Addresses')
Issue:
As you can see for second query where AddressID = 9 is not exists so xml is not generated but
my expected result is for second query is
<Addresses>
<AddressID />
<AddressType />
<Address1 />
<Address2 />
<City />
<AgentID />
</Addresses>
Thanks in advance for all your help.First of all: Your expectation is wrong. Sorry to say that. But your SQL statement for A.AddressID = 9 does not return a row. So no row is converted. I hope you C it: void.
From the XML viewpoint:
<Addresses>
<AddressID />
<AddressType />
<Address1 />
<Address2 />
<City />
<AgentID />
</Addresses>
is equivalent to
<Addresses />
which is equivalent to
void
You C. Sorry got infeCted some how ;)
The only meaningful result in XML would be:
<Addresses ID="1">
<AddressType>Home</AddressType>
<Address1>abc</Address1>
<Address2>xyz road</Address2>
<City>RJ</City>
<AgentID>1</AgentID>
</Addresses>
<Addresses ID="9"/>
Cause now Addresses (Really? A plural form for a single entity?) transports the meaning, well there is no data (no row) for it. We tried to find it, but we failed. In opposite to
<Addresses>
<AddressID>9</AddressID>
<AddressType />
<Address1 />
<Address2 />
<City />
<AgentID />
</Addresses>
<Addresses ID="9">
<AddressType />
<Address1 />
<Address2 />
<City />
<AgentID />
</Addresses>
Which says: well, we have a row with the ID 9, but the rest of the columns is empty.
The problem is mere semantics. But it's an important difference.
Now for your problem: Why do you expect this? Where do can you work with such a kind of informationless result?
btw, as you're using already a table variable (+1), you should also use
table value constructors like
INSERT INTO @address
VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
I would use a tally table, when you really need this:
DECLARE @address TABLE
AddressID INT ,
AddressType VARCHAR(12) ,
Address1 VARCHAR(20) ,
Address2 VARCHAR(20) ,
City VARCHAR(25) ,
AgentID INT
INSERT INTO @address
VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
WITH n1
AS ( SELECT *
FROM ( VALUES ( 1), ( 1), ( 1), ( 1) ) Q ( n )
n2
AS ( SELECT a.n
FROM n1 a ,
n1 b ,
n1 c ,
n1 d
NumberTally
AS ( SELECT ROW_NUMBER() OVER ( ORDER BY n ) AS n
FROM n2
SELECT NT.n AS [@ID] ,
a.AddressType ,
a.Address1 ,
a.Address2 ,
a.City ,
a.AgentID
FROM NumberTally NT
LEFT JOIN @address a ON a.AddressID = NT.n
WHERE NT.n IN ( 1, 9 )
FOR XML PATH('Address');
or the void version:
DECLARE @address TABLE
AddressID INT ,
AddressType VARCHAR(12) ,
Address1 VARCHAR(20) ,
Address2 VARCHAR(20) ,
City VARCHAR(25) ,
AgentID INT
INSERT INTO @address
VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
WITH n1
AS ( SELECT *
FROM ( VALUES ( 1), ( 1), ( 1), ( 1) ) Q ( n )
n2
AS ( SELECT a.n
FROM n1 a ,
n1 b ,
n1 c ,
n1 d
NumberTally
AS ( SELECT ROW_NUMBER() OVER ( ORDER BY n ) AS n
FROM n2
SELECT a.AddressID AS [@ID] ,
a.AddressType ,
a.Address1 ,
a.Address2 ,
a.City ,
a.AgentID
FROM NumberTally NT
LEFT JOIN @address a ON a.AddressID = NT.n
WHERE NT.n IN ( 1, 9 )
FOR XML PATH('Address'); -
How to delete data-records with BI-planning in BEx?
Hi folks, masters and gurus,
we just upgraded some of our functions from BPS to BI-Planning.
Only one thing I could not resolve up to now:
In BPS (web based) it was easily possible to delete data-records by choosing a radio-button beside the data-entry-field and click the "delete"-button (a red "-") on the top.
When I tried to find a delete-function in RSPLAN now I only found one that deletes the data, but not the record itself.
Does anyone know how to build a function that I can use to delete data-records?
Thx in advance for your help,
ThomasOh yes ... it´s not necessary as it is easily possible to supress lines with only 0 in it with
query-properties / rows/coloumns / supressing Zero / activ ...
Edited by: Thomas Kejik on Jan 19, 2009 9:46 AM -
Deleting Data Package with Abap - error in Abap statement
Hi,
I am trying to delete data with abap but my logic is not working and it failed with error message Error in an abap/4 statement when processing
requirement
- Delete data package when plant = INDIA
- Delete data package when Area = 01 OR Group = J001 in customer master data table.
Logic
Data: T_Data TYPE DATA_PACKAGE_STRUCTURE Occurs 0 WITH HEADER LINE.
data: lt_BI0_PCUSTOMER LIKE /BI0/PCUSTOMER OCCURS 0 WITH HEADER LINE.
LOOP AT DATA_PACKAGE.
MOVE-CORRESPONDING DATA_PACKAGE TO T_DATA.
Refresh lt_BI0_PCUSTOMER.
select * from /BI0/PCUSTOMER into TABLE lt_BI0_PCUSTOMER
WHERE CUSTOMER = T_DATA-SOLD_TO.
Read table lt_BI0_PCUSTOMER WITH KEY CUSTOMER = T_DATA-SOLD_TO.
IF sy-subrc EQ 0.
LOOP AT lt_BI0_PCUSTOMER.
IF lt_BI0_PCUSTOMER-AREA= '01' or
lt_BI0_PCUSTOMER-GROUP = 'J001'.
DELETE T_DATA.
APPEND T_DATA.
endif.
ENDLOOP.
ENDIF.
ENDLOOP.
DATA_PACKAGE[] = T_DATA[].
* Delete data package when Plant EQ INDIA
DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
thanks
Edited by: Bhat Vaidya on Oct 19, 2010 8:41 AM
Edited by: Thomas Zloch on Oct 19, 2010 9:55 AMHi,
DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
Above syntax for delete data from internal table
For deleting the database table write statement as follows
DELETE From DATA_PACKAGE WHERE PLANT = 'INDIA'
Your are missing the from keyword from statement.
What could i have understand, if it is your solution of Query.
Exactly you want to delete data from database table or internal table ? -
Master Data Deletion - Data used in query
Hi all,
I work with BI 7. I noticed a strange thing. I wanted to delete data from a master data object, but the operation is not allowed. If I see the logs for "where used list", I see a query. I deleted data from DSO objects and infocubes, and I thought it was enough.
Any idea?
Thanks a lot.Hello Gianluca,
To be able to delete master data, no transaction data must exist for this master data, the master data must no longer be used as attribute value, hierarchies to this master data must not exist, and it must not be used in a query.
If you look at a record in the SID table, you can check the usage flag DATAFL. If the value is X, it is used or has been used by another BW oject.
But to answer your question, do delete the master data, it must no longer be used in a query.
Best Regards,
Vincent -
Filtering records with deletion flag in Query report
Dear Friends,
We are using ECC6.00 (EHP4) for one of our QM requirement, i have created a query in SQ01 with the tables QMEL,AUFK,AFKO,QMFE etc., to get the details of production order and notification.
The report will list out the production scheduler wise, order wise, defect wise quantity with the notification number also in the display.
For notifications which are created wrongly, the users set deletion flag. The same i.e., notifications with deletion flag should not appear in the report and hence i have called the field and filtered the value in the output (i.e., field value not equal to X where X is for deletion flag set records).
Everything works fine upto this, but when users (to carry out analysis) send the data to the spread sheet, the filter values are removed and all records are populated in the excel sheet (even records with deletion flag).
To select and display only records without deletion flag, i want to introduce coding in the query. Kindly tell me whether this is possible, if so where and what code should be written to meet my requirement.
The records with the deletion flag (notifications) should be eliminated from the selection and display.
Experts help required.
Regards,
M.MDear Raymond Giuseppi,
Thank you for your reply. The code syntax had been corrected based on your information. Unfortunately the code doesn't filter the records. On further investigation , it was observed that the field KZLOESCH doesn't get updated and hence a field had been created in the infoset wherein the following coding is written
clear : w_dlfl.
data : w_inact type char1.
select single inact into w_inact from jest
where objnr = qmel-objnr
and stat = 'I0076'
and inact ne 'X'.
if sy-subrc = 0 .
w_dlfl = 'X'.
else.
w_dlfl = ''.
endif.
The field name is W_dlfl.
In the above condition how and where should i include the code given by you. Since the field KZLOESCH is not updated how should we get the data from the field w_dlfl be exempted from selection?
Kindly provide solution.
Regards,
M.M -
Delete data dynamically with JSP and servlet (Very Urgent)
Hi,
I am new with servlets and JSP. On my jsp page I am populating customer names in a drop box from database and I have 3 buttons ADD, DELETE and EDIT.
Now when I press DELETE buttong I am calling delete function which is writen in Javascript on my jsp file only,now I want to pass these selcted values ehich I have stored in an array to be pass to servlet,so I can write Delete query for it and delete.
Could anyone help with sample code>
Here what I am trying to say:
<HTML>
<HEAD>
<script language="JavaScript" type="text/javascript">
<!--
function remove()
var u = confirm("Are you sure you want to Delete Selected names?")
if (u==true)
var selectedArray = new Array();
var selObj = document.getElementById('CUSTOMER_NAME');
var i;
var count = 0;
for (i=0; i<selObj.options.length; i++) {
if (selObj.options.selected) {
selectedArray[count] = selObj.options[i].value;
count++;
alert("names to be deleted are:"+selectedArray);
// selectedArray has the selected items stored
alert("Items Deleted!")
else
alert("No data were deleted!!You pressed Cancel!")
//-->
</script>
</HEAD>
<BODY>
//calling servlet on action tag of form
<FORM METHOD= 'POST' ACTION='Remove_Customer'>
<form ><INPUT TYPE='submit' NAME='DELETE' VALUE='DELETE' onclick="remove()"></TD></form>
<form><INPUT TYPE='submit' NAME='MODIFY' VALUE='MODIFY' onclick="modification()" ></TD></form>
</BODY>
</HTML>
PLEASE HELPME,it's very urgent.
Since the selected Array is in javascrip language , I don't know how can I pass that to servlet.
request.getParameter is not working,since it's an array
Many thanks in Advance.Hey,
I am having problem deleting multiple values.
If I just select one value,it deletes it
But for multiple values the code is not working right.
If there 2 values selcted then the last value gets deleted,if there are more than 2 values selected none values delete.
Could plese check the code,and let meknow what mistake am I doing?
Please help
String delName="";
int pos = tStr.indexOf(",");
System.out.println(pos);
if (pos != -1)
delName = tStr.substring(0, tStr.indexOf(","));
tStr = tStr.substring(tStr.indexOf(",") + 1 );
System.out.println("DElName:"+delName);
System.out.println("tStr::"+tStr);
delName = tStr;
delete_Customer(delName);
Thanks
ASH -
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
-
Formula Created in BI Query appears in Universe as Measure with No Data
Hi,
I have created the universe on top of SAP BI Query(Which is built on Infoset).
There are some formulas created in BI Query as mentioned below:
Eg: Status1=
If Completion Code = null then Status1 = 0
If Completion Code = =10,11,18 then Status1 = 1
Status2=
If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
In the Universe I get Status1 and Status2 as Measures.
When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
Is there any issue with the formulas to be used in SAP BI Query?
Are Formulas supported in Business Objects from SAP BI Query?
regards,
NishaHi Ingo,
I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
But I wonder why there is no data in WebI for those formulas(Key Figures)?
In Standard test MDX the MDX Query is as Follows:
SELECT
[Measures].MEMBERS ON COLUMNS,
NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
[!V000001] INCLUDING [Z_WM_IS01___F15].[3]
Based on above Query I created the WebI report which includes the objects as described below:
one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS from above query.
Selected All the measures objects available in query which refers to [Measures].MEMBERS
And one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report??? -
Delete data from DSO only with a part of the key
Hi experts,
I have a DSO with 9 key fields and i want to delete some entrys. Our source system only provides 2 fields of the key. My problem is, that the BI is not able to delete from DSO unless I have the full key.
Now I want to get the rest of the key fields from the active table of the DSO. Can sombody help me please with the ABAP Code? Or is there another possibility?
I already found this thred in SDN but this is for BW 3.5:
Delete data from ODS with only part of the key
Thanks
RalfRalf,
the thread pointed out by you is for passing deletion entries to the DSO / target using the deletion entries .. namely recordmode = D.
Are you looking at deleting data from the DSO as a one time activity or you want to handle the same using a start / end routine ...? and pass deletion entries to other data targets which get the data from this DSO ?
Arun -
I have an i phone 4s, It comes with 5 mb of free i cloud back up. It has not been able to back up, due to not enough storage, it saying I need to delete data, what data? I have dumped everything so I am confused.. I buckled an bought 10 more mb and it is backing up right now for like another 23 hours...what exactly is it backing up since I dumped all pics,and texts messages? How can I prevent this in the future? oh I only have like 2 mb of music onn there as well..and it was saying I still had 5 mb avaliable to use on the cloud last night..I'm so confused...
Is it saying that there is not enough free space to backup to your computer? If so, make sure you have enough available hard drive space to back up your iPhone. If you do, a backup file on your computer is corrupted. The best way to resolve this problem is:
NOTE: This method will erase any and all backups iTunes has made of your iPhone from your computer. It should not erase the data on your iPhone, just the backup files that iTunes creates on your computer.
Launch iTunes, Go to iTunes>Preferences, then click on the Devices tab, select all of the backups made of your iPhone. Then click "Delete Backup...".
Maybe you are looking for
-
Any other FM in replacement of 'WS_FILENAME_GET'
hi all, The FM (WS_FILENAME_GET) is obsolete, is there any othere Fm to get the file name. thanks and regards vara
-
I've tried everything that I have read, but to no avail. the song keeps comming up, it is a purchased song, maybe this has someting to do with why I can not delete it?
-
How can we call a external webservice from sandboxed webpart?
Hi, I need to call an external webservice from sandboxed visual webpart in 2013. And that webpart would be used in office-365 site. Please let me whether it is possible or not. Thanks, Arindam
-
Can I make sub-events in iPhoto? Can I delete originals of imported photos?
1) Is there any way I can make sub-events? I have pictures of family members, grouped by one event per member. Is it possible to have a Family event, and then sub events for each member? Is this better addressed through albums? 2) When I download an
-
Dear SAP Gurus, I am working on serial numbers.The issue is when I am doing PGI for those parts which have been issued the serial number status changes to ECUS. Now when I am creating another for another serial number of the same material. If I use t