Read 0mat_plant with different 0plant key
Hi Guys,
we have the following szenario:
In the logistic controlling we have transaction data which contains two plants:
A) Production plant (0plant)
B) Receiver plant (Z_REC_PLANT)
In 0mat_plant we have the attribte Production Scheduler (0PRODSCHED). 0mat_plant is compounded to 0plant
Now I need the PRODSCHED of the receiver plant.
How can I select this prodsched using 0mat_plant and Z_REC_PLANT and NOT 0plant?
Thanks in advance
Stephan
while loading 0MAT_PLANT data... read Production Scheduler (0PRODSCHED) of Z_REC_PLANT.. write a routine to fetch the 0PRODSCHED value of Z_REC_PLANT
Regards,
Sharayu
Similar Messages
-
It's possible reads in a same e-reader, books with different Adobe ID
it's possible reads in a same e-reader, books with different Adobe ID
i think is possible but ONLY in the same jar.
If i try to use different jar i get only the instance of class that the classloader load.....
any suggestion? -
How to read data with different XML schemas within the single connection?
I have Oracle 11g database
I access it through jdbc:oracle:thin, version 11.2.0.3, same as xdb.
I have several tables, each has one XMLType column, all schema-based.
There are three different XML schemata registered in the DB
I may need to read the XML data from several tables.
If all the XMLTypes have the same XML schema ,there is no problem,
If the schemata are different, the second read throws BindXMLException.
If I reset the connection between the reads of the XMLType column with different schemata, it works.
The question is: how can I configure the driver, or the connection to be able to read the data with different XML schemata without resetting the connection (which is expensive).
The code to get the XMLType data is textbook implementation:
1 ResultSet resultSet = statement.executeQuery( sql ) ;
2 String result = null ;
3 while(resultSet.next()) {
4 SQLXML sqlxml = resultSet.getSQLXML(1) ;
5 result = sqlxml.getString() ;
6 sqlxml.free();
7 }
8 resultSet.close();
9 return result ;It turns out, that I needed to serialize the XML on the server and read it as Blob. Like this:
1 final Statement statement = connection.createStatement() ;
2 final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;
3 ResultSet resultSet = statement.executeQuery( sql ) ;
4 String result = null ;
5 while(resultSet.next()) {
6 Blob blob = resultSet.getBlob( 1 );
7 InputStream inputStream = blob.getBinaryStream();
8 result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();
9 inputStream.close();
10 blob.free();
11 }
12 resultSet.close();
13 statement.close();
14
15 System.out.println( result );
16 return result ;
17
Then it works. Still, can't get it work with XMLType in resultset.On the client unwrapping XML blows up when trying to switch to different XML schema. JDBC/XDB problem? -
Csv input adapter - read rows with different # of columns
I have a csv file which includes rows with different number of columns. I want to read all the rows( of different # of cols) into ONE stream only and then split into separate streams afterwards.
I saw that CSV File Input Adapter does not add missing columns with nulls by default. Is it possible somehow? How can I generate a workaround?
Thanks.Hello,
The CSV Input Adapter expects to find a fixed number of fields. If you attach the input adapter to a stream/window with 3 fields, it will always try to read three fields. You can have missing data and this will be read into a column as a NULL value but the delimiters must still be there. For example:
1,1,1
2,2,2
3,3,3
4,,4
5,5,5
CREATE INPUT WINDOW inWindow SCHEMA (c1 integer, c2 integer, c3 integer) PRIMARY KEY (c1);
ATTACH INPUT ADAPTER File_Hadoop_CSV_Input2 TYPE toolkit_file_csv_input TO inWindow PROPERTIES csvExpectStreamNameOpcode = FALSE ,
dir = 'c:/temp' ,
file = 'test.csv' ,
csvDelimiter = ',' ;
A workaround you might consider is reading an entire line from your file into a stream with a single string column. The trick is that you have to choose a character for the column delimiter that you are certain will never show up in your data. Than once you have read that line into a stream, you can use the string functions to parse out the columns as needed:
CREATE INPUT STREAM csv_instream SCHEMA (
log_line_message string
// Choose a character that is certain to never show up in the data in order to read the entire line
// from the CSV file into a single column
ATTACH INPUT ADAPTER File_Hadoop_CSV_Input1 TYPE toolkit_file_csv_input TO csv_instream PROPERTIES
csvExpectStreamNameOpcode = FALSE ,
dir = 'C:/temp' ,
file = 'error_log' ,
csvDelimiter = '@' ;
// Parse out the individual columns
CREATE OUTPUT STREAM csv_outstream SCHEMA (
log_datetime timestamp ,
debug_level string ,
host string ,
message string ) AS SELECT
to_timestamp(substr(CI.log_line_message, 1, 24), 'DY MON DD HH24:MI:SS YYYY') as log_datetime,
substr(CI.log_line_message, patindex(CI.log_line_message, '[', 2)+1, (patindex(CI.log_line_message, ']', 2) - patindex(CI.log_line_message, '[', 2))-1) AS debug_level,
replace(substr(CI.log_line_message, patindex(CI.log_line_message, '[', 3)+1, (patindex(CI.log_line_message, ']', 3) - patindex(CI.log_line_message, '[', 3))-1), 'client ', '') AS host,
substr(CI.log_line_message, patindex(CI.log_line_message, ']', 3)+1, 500) AS message
FROM csv_instream CI
WHERE CI.log_line_message IS NOT NULL;
Thanks,
Neal -
SCOM Network Discovery - Duplicate nodes with different Device Keys (MAC address)
Hi There,
We have deplyed SCOM 2012 SP1 for server and network monitoring. In the "Network Devices" view, there are few duplicate node entries for the same device. When i look at the details of each entry, the device keys (MAC address) are
different. for example, if there are 3 entires for the same device, only one will have the correct MAC address and remaining 2 are incorrect.
Have anyone came across such issue? Any solution to avoid the duplicates?
Thanks.
Venu.
Best regards, Venu.Last Thursday (9/25/14), Microsoft provided me with an updated version of a file that is used as part of the discovery process. At first, it appeared to only resolve the issue for some devices which was disappointing. On Saturday, I decided
to remove all managed devices and rediscover everything from scratch. We have 237 devices to monitor. Since Saturday, I had one ICMP only device duplicate itself, but after I removed the duplicate, I have not had any other duplicates created and
there have been many rediscoveries ru nsince then. So far so good. I've asked Microsoft to keep the case open until next Monday. This weekend, I have a full discovery scheduled to run on a schedule. I'll feel good after that if there
are still no duplicates.
The file replaced is "ic-iftable.asl" which is located on each management server in the path ""\[ SCOM install directory]\Server\NetworkMonitoring\rules\discovery". I'm not sure if I'm allowed to share the updated version of
the file. I have not received an explanation from the support technician yet as to the root cause. They took at least 5 sets of trace logs during the discovery and subsequent rediscovery process before giving me this updated file. I'll let
you know. -
Issue with read statement with one more key missing in mapping
Hi All ,
I have such data in two internals table :
IT_bdc
vbeln posnr
90000593 10
90000576 10
90000672 10
90000672 20
90000672 30
it_konv
kbetr vbeln
6250 90000576
12160000 90000593
500000 90000672
600000 90000672
700000 90000672
My current program statement is :
LOOP AT it_bdc.
READ TABLE it_konv WITH KEY
vbeln = it_bdocs-vbeln.
currency = it_konv-waers.
endloop.
as you can see the posnr is missing in it_konv how can i modify this read statement so
that vbeln posnr from it_bdc should get correct kbetr from it_konv.
Kindly help in this mapping.Hi
sort it_konv by vbeln
then
loop at it_bdc.
read table it_konv with key vbeln = it_bdc-vbeln binary search.
if sy-subrc = 0.
perform your logic/task.
endif.
endloop.
also it depends what you want to do after reading it_konv.
in my logic if there is a vbeln in it_konv which s present in it_bdc then sy-subrc will be 0
and you can perform your logic.
and if there will be no matching vbeln in it_konv then sy-subrc will not be 0.
check the values in debugging.
Thanks
Lalit -
Read XML with different schema definitions
Hello,
I have an XML stored in a table as XMLTYPE and I have no problem to read the first part (ELMAHeader)
WITH t AS(
SELECT XMLTYPE(
q'[<?xml version = '1.0' encoding = 'UTF-8'?>
<ELMAKM xsi:noNamespaceSchemaLocation="./KM/01.00/ELMAKM_000001.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:km="http://www.zivit.de/KiStA/KiStAM/V1.0/KiStA-KiStAM-Anfrage">
<ELMAKOM>
<ELMAHeader ELMAKMVersion="1">
<AuthSteuernummer>BG</AuthSteuernummer>
<AccountID>11</AccountID>
<KundeneigeneID>1</KundeneigeneID>
<Verarbeitungslauf>PROD</Verarbeitungslauf>
<ErstellungsDatum>2014-09-16</ErstellungsDatum>
<ErstellungsZeit>11:00:27.7</ErstellungsZeit>
</ELMAHeader>
<ELMAVerfahren>
<KISTA_KM_ANTW UUID="0345" OrdBegriff="SLD"
xsi:schemaLocation="http://www.zivit.de/KiStA/KM/01.00-r000001 ./KM/01.00/ELMAKM_KISTA_000001.xsd"
xmlns="http://www.zivit.de/KiStA/KM/01.00-r000001"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:k="http://www.zivit.de/KiStA/Std/01.00-r000001">
<KiStAV_DL Zulassungsnummer="2"/>
<KiStAV Zulassungsnummer="2" Name="SLD"/>
<Antwort xsi:type="AntwortArt3" UUID="0f" KdOrdBegriff="4">
<ReturnCode>1</ReturnCode>
<Anlass Datum="2014-08-11" Grund="1"/>
<PersAngabe>
<Person>
<k:NName>B</k:NName>
<k:VName>Y</k:VName>
<k:GebDt>1944-10-11</k:GebDt>
</Person>
<Adresse xsi:type="k:InlandsAdresse">
<k:Str>A-Str.</k:Str>
<k:HausNr>5</k:HausNr>
<k:Ort>M</k:Ort>
<k:Plz>8</k:Plz>
</Adresse>
</PersAngabe>
</Antwort>
</KISTA_KM_ANTW>
</ELMAVerfahren>
</ELMAKOM>
</ELMAKM>]') x FROM dual
SELECT x
,elma.ELMAKMVersion
,elma.AuthSteuernummer
,elma.AccountID
,elma.KundeneigeneID
FROM t
,XMLTABLE(
'/ELMAKM/ELMAKOM/ELMAHeader'
PASSING t.x
COLUMNS ELMAKMVersion VARCHAR2(8) PATH '@ELMAKMVersion'
,AuthSteuernummer VARCHAR2(10) PATH 'AuthSteuernummer'
,AccountID VARCHAR2(10) PATH 'AccountID'
,KundeneigeneID VARCHAR2(10) PATH 'KundeneigeneID'
) elma
But how can I read the second part(ELMAVerfahren)? I tried many selects but I get no results, e.g.
WITH ...
SELECT x
,elma.UUID
FROM t
,XMLTABLE(
XMLNAMESPACES(
DEFAULT './KM/01.00/ELMAKM_KISTA_000001.xsd'
,'http://www.zivit.de/KiStA/KiStAM/V1.0/KiStA-KiStAM-Anfrage' AS "km"
,'http://www.zivit.de/KiStA/Std/01.00-r000001' AS "k"
'/ELMAKM/ELMAKOM/ELMAVerfahren/KISTA_KM_ANTW'
PASSING t.x
COLUMNS UUID VARCHAR2(8) PATH '@UUID'
) elma
DB version
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Regards
MarcusHi Marcus,
If you declare a default namespace using the XMLNamespaces clause, it'll apply to all unqualified elements referenced by the XQuery expression.
In your attempt, ELMAKM, ELMAKOM and ELMAVerfahren are treated as being part of the default namespace, which is wrong since those nodes are in no namespace.
To handle this kind of situations, where there are default namespace redefinitions down the tree, you have to declare a prefix :
SELECT x
,elma.UUID
FROM t
,XMLTABLE(
XMLNamespaces('http://www.zivit.de/KiStA/KM/01.00-r000001' as "ns0")
, '/ELMAKM/ELMAKOM/ELMAVerfahren/ns0:KISTA_KM_ANTW'
PASSING t.x
COLUMNS UUID VARCHAR2(8) PATH '@UUID'
) elma -
Read statement with duplicate key fields
Hello,
I have an internal table(EKBE) with 8 fields
ebeln ebelp vgabe gjahr belnr budat wrbtr refkey
populating the first 7 fields from EKBE table with VGABE = 2 and PO#, concatenating the WRBTR and GJAHR to get the Refkey and passing this to the 8th field.
Using this refkey, getting the document numbers from BKPF.
I am looping another internal table into a work area and reading the above internal table by passing the ebeln field and I am doing some calculations ,etc.
A custom table is getting updated from the above work area.
The issue is-
The internal table EKBE can have the same PO numbers with the same line item numbers but with different ref key's.
So, when I am reading the int. tab, it is reading only one record, since I have no other key's to read except EBELN. So for one PO# it is reading only 1 ref key, I cannot use the line item# as a key, as the line item#'s never match, even if they match they could be same PO# with same line item# and different ref key.
Any inputs highly appreciated.
Regards,
KiranLoop on EKBE Internal table as well to fetch all entries of PO. Use Parallel cursor to optmize performance.
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPCodeforParallelCursor-Loop+Processing -
Transfer assets from one asset class to another having different depreciation keys.
Hi Gurus,
I am a noob in FICO, and I am facing a problem while transferring assets from one asset class to another.
Below is the scenario.
I created two assets 100000000000-0 under asset class 4690a and 200000000000-0 under asset class 4690b. And I am trying to transfer the
asset from class 4690b to 4690a by selecting the option ‘New Asset’ in the transaction ABUMN. While doing this, I am receiving an error message as below.
'Posting with trans. type 300 not possible (No acquisition posted).'
Message No. AA324.
Diagnosis:
Transaction type 300 belongs to a transaction type group, which can only be used to post to assets to which posting has already been performed. However, no postings have been made to this asset.
Procedure:
Use a transaction type from a transactio type group, which can be used for the first acquisition to an asset.
The error is related to the transaction type which I hadn’t explicitly created anywhere. But, when checked in transaction AO76, the transaction type 300 belongs to the transaction type group 30. In this group I am not able to find any solution related to the error.
Moreover, in some of the threads in SCN, I read that modifying the transaction type group might lead to something fatal.
Kindly help me in the below.
1. What exactly the error message is related with?
2. Is there any other method to transfer the asset to another class?
Please let me know if any further details are required regarding the scenario.Hi ,
I understand that you want to transfer the old asset to new asset with different asset class with different depreciation keys and the old asset is not yet capitalized and does not have any Asset Values.
Assuming that since the First Asset is not yet capitalized, that seems to be that its just that ASset Master is created and no Asset Values appear in the Asset.(in other words no acquisition, capitalization, no dep. start etc.)..
Alternatively this asset can be advised to be blocked and flagged for deletion and create a new Asset in the new Asset Class and then capitalize the new asset by doing the acquisition according to the business process i.e. either via PO based process(GR) or Non PO based process.
The transfer of asset is required incase the old asset still have the values and you are transferring the old asset to new one with the left over values.
Also would request you to kindly share some screenshots of the AW01n of the old asset and screenshots of the AS03 to have more idea on it and provide a better solution to the same..
Warm Regards,
Vineet -
Several Vendor VAT registration numebr with some Country KEY
Dear SAP guru,
is it possible to insert several VAT REgistration Numebr for the ssame vendor with same Country KEY?
For ex for vendor 1000
1 - IT04673400729
2 - IT06534340721
When I tried to input the second vat registration numebr in the field "OTHER", there is an error message:"Maintain VAT registration no.for country IT on the previous screen"
franckly I am not able to understand where is the problem,
thanks for the help
marcoDear Ravi
thanks for the reply.
about you question:
1 - View Control of vendro master data: the first vat reg no is in the field STCEG (table STCEG). I enter the second vat registration number by clinking on OTHER icon and the I input: contry key IT and VAT registration number
2 - the format of vat registration numebr is correct, for ITALY is 13 lenght wihotu gaps
3 - the error message is "Maintain VAT registration no.for country IT on the previous screen
Message no. F2143 " very few information
I think the proble is due that I am entering the same a new vat registration number for the same country key. Indeed if I fill a vat registration with different country key and works!
regards
marco -
Issue in Data from DSO to DSO Target with different Key
Hello All,
I am having Issue in Data from DSO to DSO Target with different Key
Source DSO has Employee + Wage + Post numner as key and Target has Employee + Wage Type as key.
DSO semantic grouping works like Group By clause in sql, is my understanding right ?
Also if someone can explain this with a small example, it would be great.
Many Thanks
KrishnaDear, as explained earlier your issue has nothing to do with semantic grouping .
Semantic grouping is only usefull when you have written a routine in the transformation for calculations and in error handling .
Please go through this blog which explains very clearly the use of semantic grouping .
http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2013/06/16/semantic-groups-in-dtp
Now coming to your above question
DSO 1
Employee WageTyp Amount
100 aa 200
200 aa 200
100 bb 400
100 cc 300
If we have semantic group as Employee . If we have Employee as key of the target DSO and update type as summation .
then target DSO will have
Emp Amount
100 700
200 200
In this case Wage type will be the last record arriving from the data package . If the record 100 cc 300 is arrivng last then wage type will be cc .
2) Case 2
DSO 1
Employee WageTyp Amount
100 aa 200
200 aa 200
100 bb 400
100 aa 300
if we do Semantic grouping with Emp and Wage Type If we have Employee and wage type as key of the target DSO and update type as summation .
then target DSO will have
Emp Wage Amount
100 aa 500
200 aa 200
100 bb 400
Hope this helps . -
One Key FIgure in more than one column with different restrictions
Hi,
I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??Hi Pravender Chauhan,
If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
Assign points if Useful.
Regards,
Rajdeep. -
my iphone 3gs ran out of power, now wehn plugged in it will not restart, tried plugging in with different chargers, holding home key and other one but nothing works, screen is either battery icon or Apple iconn
Hi, beth.lau.gr.
Thank you for visiting Apple Support Communities.
I understand you have been experiencing issues with your iPhone restarting and showing you a blue screen. I wont be able to give you an exact answer as to why this is happening. However, this is the most relevant troubleshooting article for this issue. This article also provides options to reach out to us via phone for additional assistance.
If your iOS device restarts, displays the Apple logo, or powers off while you're using it
http://support.apple.com/en-us/HT203899
Cheers,
Jason H. -
How can I read pdf files from LabVIEW with different versions of Acrobat reader?
How can I read pdf files from LabVIEW with different versions of Acrobat reader?
I have made a LabVIEW program where I have possibility to read a PDF document. When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
Jan Inge Gustavsen
Attachments:
Show PDF-file - Adobe Reader 7-0-5 - LV61.vi 43 KB
Read PDF file.jpg 201 KB
Show PDF-file - Adobe Reader 5-0-5 - LV61.vi 42 KBhi there
try the vi
..vi.lib\platform\browser.llb\Open Acrobat Document.vi
it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!" -
How do I resolve this error message? The iPhoto library is on a locked volume. Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.
Hi j,
I don't know if this will work, but I'd try logging in to an admin account, going to your main library (not user library), opening it, opening Application Support, selecting iPhoto, hold down the command key and press i, click on the lock in the lower left, entering the password and making sure you have Read & Write privileges for System and Admin.
Maybe you are looking for
-
How do I create this text effect in motion?
Hi, I am a bit of a motion newbie - and am stuck as to how to replicate this sratchy/jumpy/glow text effect found in the video preview here . . . . http://www.worshiphousemedia.com/index.cfm?hndl=details&tab=MM&id=4609 (click the video in top left) I
-
Full file Path when using FormFile in struts
hi, i am uploading an excel file. All is doing fine but whatever file is selected by user by clicking the browse button, its does not retreive full path it retreives only the file name selected...... JSP page <html:form action="uploadFile.do" method=
-
Blank / Empty emails in mail.app
Hi, sometimes I get an email that looks empty/blank. No header, no budy, nothing. If I drag that mail to my desktop and open it with textedit I'm able to see the content. Using a web interface of my email hoster brings the message up without any prob
-
FM Transmitter thinks I have a USB cable plugged i...
I have owned my N900 for just about 24hrs now and love it.... minus this new problem. I went to use the FM Transmitter on the way home today and it said " can not use FM Transmitter while USB cable is plugged in" I do not have a cable plugged in.
-
/var/run/name_service_door - zones stuck in single user mode
Hello, I have two Sol10 boxes - e4500 & x86. Both have multiple zones configured which have been working for quite a while. I was enabling audit logging on these machines (perzone) which required a reboot. After a reboot, the zones won't come out of