Increment the Counter for every IDOC created
Hello Friends,
I have a scenario where in I will be getting an XML file which will create multiple Idoc's,
say for example :
Source -> Debmas06 Idoc and the same file also creates Link and ADRMAS idocs.
here i have a field called Sequence number in all the IDoc structures. and now my requirement is when ever a file creates 2 Idocs say the 1st one Debmas and 2nd the Link Idoc. then the sequence number in Debmas idoc should be "1" and the sequence number in Link idoc should be "2".
How can i do this? Please help!!!!!
Regards,
Kumar
Hi ,
Source -> Debmas06 Idoc and the same file also creates Link and ADRMAS idocs.
Which method are you following to create Link & Adrmas IDocs ? I mean using BPM .. Multi Mapping.. ??
Regards,
Sumit
Similar Messages
-
How to get the count for every 30 mins
Hi,
Following is the table format:
Time ******************** logged in users
9/5/2006 8:38:22 PM**** 2
9/5/2006 8:38:44 PM**** 4
9/5/2006 8:40:22 PM**** 1
9/5/2006 8:41:22 PM**** 3
9/5/2006 8:52:22 PM**** 6
9/5/2006 9:02:22 PM**** 5
9/5/2006 9:04:24 PM**** 3
9/5/2006 9:08:26 PM**** 4
9/5/2006 9:10:28 PM**** 6
What I need is number of users logged in for every 30 min
like 9/5/2006 9:00:00(8:30 to 9:00) is 16
9/5/2006 9:30:00(9:00 to 9:30) is 18
Can any one help me in this regard?
-RajThe trick is to group your times to every 30 min.
Unfortunatly there is no way to TRUNC(30 min).
But you can build this function yourself using some mathematical logic and trunc to build the groups.
Look at this code piece:
select trunc(sysdate) + trunc((sysdate - trunc(sysdate))*24*2)/24/2
from dualInstead of sysdate use your date column and group by the expression.
Added example using Dave's test data
WITH t AS
SELECT TO_DATE ('9/5/2006 8:38:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
2 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:38:44 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
4 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:40:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
1 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:41:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
3 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:52:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
6 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:02:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
5 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:04:24 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
3 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:08:26 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
4 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:10:28 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
6 num
FROM DUAL)
SELECT SUM (num), trunc(tm) + trunc((tm - trunc(tm))*24*2)/24/2 halfhours
FROM t
GROUP BY trunc(tm) + trunc((tm - trunc(tm))*24*2)/24/2;
Row# SUM(NUM) HALFHOURS
1 16 09.05.2006 20:30:00
2 18 09.05.2006 21:00:00Message was edited by:
Sven Weller -
Hi,
How can I get the count for every partition. I want:
partition_name count(*)
The table is daily partitioned by a date column.
Ex:
ALTER TABLE 'tableName' ADD PARTITION 'tableName||today' VALUES LESS THAN (TO_DATE('tommorow','DD-MM-YYYY'))'
Regards,
GicuHallo,
if you analyze your table regularily and you want to know
only approximate count of rows you can use :
select partition_name, num_rows from dba_tab_partitions
where table_name = 'TBL_TEST'Else , dynamic SQL:
declare
v_partition VARCHAR2(30);
v_count NUMBEr;
begin
FOR x IN (select table_owner, partition_name from dba_tab_partitions
WHERE table_name = 'TBL_TEST')
LOOP
execute immediate 'SELECT '''||x.partition_name||''', count(*) from '||x.table_owner||'.TBL_TEST PARTITION ("'||x.partition_name||'")'
INTO v_partition, v_count ;
dbms_output.put_line('Partition '||v_partition||' count '||v_count);
END LOOP;
end; Regards
Dmytro Dekhtyaryuk -
How to write the logic for extending Idocs...
Hi,
Can anybody pls explain how to write the logic for extending IDOCs with an example...
Good suggestions can be appreciated..
Regards,
RamHi Ram,
Generally the IDoc user exit is called at the following places:
1) When the control record is read.
2) After each and every segment in the data record
3) At the end of the data segment processing.
The IDoc user exit interface generally imports IDOC_DATA (data record internal table) table. Now the data records in the internal table should appear in the same order as maintained while defining IDoc structure (WE30 transaction). For SAP standard segment SAP code will take care of this. For extended segment you will have to take care of this aspect by appending the Z-segment in the IDOC_DATA table.
You can do this by:
looping at IDOC_DATA table:
- Do a case-endcase fo IDOC_DATA-SEGNAM (This stores the segment
structure as per the hierarchy).
- Within the case for "Z-segment" you can write the logic for appending
the Z-segment to IDOC_DATA-SDATA.
Hope this gives some clue.
Regards,
Gajendra. -
Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again.
This happens each and every time, on different Wifi networks, in different locations. On the other hand, I don't ever encounter this problem when I tether my laptop to my mobile phone's 3g/2g network using Personal Hotspot. How do I fix this?Try this DNS server ...
Open System Preferences > Network > Advanced > DNS
Click + and type:
208.67.222.222
Click + again and do the same.
208.67.220.220
Click OK.
Quit and relaunch both your browsers to test.
If that doesn't help, try here > iOS: Troubleshooting Wi-Fi networks and connections
And here > Wi-Fi: How to troubleshoot Wi-Fi connectivity -
I'm trying to get the count for each row to total count for each month
Something like this
Hardware | Jan
Monitors | 5
Processors | 137
Printers | 57
etc........
How can I write a query for this. I can get the Hardware column but don't know how to get the next column.If you can provide more data like sample input DML statements it would have been wonderful..
Assuming is , you need a pivot. Here is an article on basic Pivot..
http://sqlsaga.com/sql-server/how-to-use-pivot-to-transform-rows-into-columns-in-sql-server/
something like this may be..
DECLARE @Input TABLE
Hardware VARCHAR(20),
[Date] VARCHAR(20)
INSERT INTO @Input VALUES('Monitor', '01/01/2014'), ('CPU', '01/01/2014'), ('Monitor', '01/03/2014')
, ('ABC', '01/01/2014'),('Monitor', '02/01/2014')
;WITH CTE AS
SELECT Hardware, LEFT(DATENAME(M, [Date]),3) AS [MonthName] FROM @Input
SELECT *
FROM
SELECT Hardware, [MonthName], COUNT(Hardware) AS Count FROM CTE GROUP BY Hardware, [MonthName]) a
PIVOT (MAX([Count]) FOR [MonthName] IN ([Jan], [Feb])) pvt
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
I need to collect the data for every rising edge a trigger perfoms. So far I could collect the data but it seems that it only collect the data in the start of triggering, but not continuously. I also want to put the data in an excel spreadsheet and automatically add new set of data when the next rising edge occur. Please help.
thanks a lot.LabWindows/CVI actually ships with a comprehensive set of examples for just about every area of programming you can use it in, including triggered analog data acquisition and ActiveX control of Microsoft Excel for data logging. Go to the following two directories on your computer to find respective examples for the two areas you are inquiring about:
1) C:\MeasurementStudio\CVI\samples\DAQ\Ai\DAQsingleBufExtTrig.PRJ
2) C:\MeasurementStudio\CVI\samples\activex\excel\excel2000dem.prj
Just make sure to study the examples carefully so that you fully understand the processes followed for triggered analog acquisition and the process of launching an ActiveX automation server for control, and then you should be able to merge the concepts shown in both of the example
s to make the application you desire.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask -
I don't know if this can be done with VI Logger or need to use Labview V7.1.
After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
Best of luck.
Jared A -
Where are the bullets for adobe. im creating a document and they are not in the toolbar
where are the bullets for adobe. im creating a document and they are not in the toolbar
ADOBE PRO I JUST GOT IT A FEW MONTHS AGO
-
Sync increments play count for songs that haven't played since last sync
Sometime in the last two months, my iPhone 3G and iTunes started showing a bizarre behavior. I have a smart playlist that only plays songs that have not been played in the last 4 weeks and that have not been played more than a certain number of times (I add 1 to that number after each time it goes through my entire library). I sync the phone every night (because I don't want to lose the recently played data if the iPhone resets for some reason - another irritating bug). Anyway, sometimes when I sync the phone, it increments the play count for songs that were played before the previous sync as well as the songs played since the last sync. This means that those songs are being double counted, even though they were only played once.
Here's another way to describe the story:
Day 1: Play 50 songs with play count value X (call this set A). Sync at end of day, now all 50 songs in set A have play count value X+1.
Day 2: Play 50 more songs with play count X (call this set B). Sync at end of day, now songs in set B have play count X+1, but songs in set A now have play count X+2 (even though they were not played again).
Day 3: 50 more songs (set C). After sync, songs in set C have play count X+1, those in B have play count X+2, and those in set A have play count X+3.
It never seems to go more than 3 days back. This is not reliable - in fact, I thought it was fixed after the last iTunes update, but it just happened again.
One other thing that I notice: whenever this happens, the count shown for the playlist on the iPhone is incorrect. For example, today before the sync, it said I was on song 156 of 271 in my playlist. However, I only played about 50 songs today, and I synced last night, so it restarted the playlist from 1. I don't know when it jumped so much - when I restarted the playlist this morning, it was on 6 of 271 (which was correct).
The only other thing I think may play into this is when I have my playlist carry overnight (i.e. I start playing it at night after the sync, then come in in the morning and have it pick up where it left off). I am usually pretty good about syncing at the end of every day, but I think that I'm only seeing this behavior when I have this overnight thing going on.
Anyway, has anyone else seen this behavior? Does anyone have any suggestions? I would not use the play count in my smart playlist, but it's the only way to ensure that random play actually gets through my entire playlist when I'm forced to sync every night (because of the other bug).wow, this is messed up! i'm sorry, but i don't have a solution for you, more of a 'work around'. what i have started doing is using the 'genre' field to keep track of the songs i have listened to, and those that i have not.
i set the genre for all of my songs to be '0'. after syncing, in my iPhone, i go into the 'genre' listing, go into '0', hit 'view all songs' and start playing the first song i have. next, when i sync, i change the 'genre' in all of the songs i've listened to to '1', and after i resync, i can go into my iPhone (using the same method above) and start playing the songs i haven't listened to.
i know it's a pain, but it's the only workaround i have for this problem. i'm very disappointed in apple and the iPhone because of their lack of awesome playlist support. i had a creative mp3 player that was supremely awesome with playlists. i would add all of my songs to a 'playlist', and be able to listen to a few songs, then go watch a video, and when i went back into the music player, it would remember the last song i was listening to. it wouldn't remember where i was in the song, but the fact that it remembered the song i was listening to made it one of the best devices i've had. i wish that apple would spend some time and make this functionality possible. -
Not able to enter the count for physical inventory document in WM
Hi All,
I have created a Physical Inventory document using LX16 t-code (WM managed). Since the material and bin stock is zero and When I try to enter the count by ticking zero stock indicator using LI11 t-code, I am not able to save the document and system throws error "Finding empty Quants provided for" and message number is L4058.
Please let me know how to resolve this.
Regards
KrishnamurthyYes your understanding is correct but only thing I have not entered qty in the count field rather I set only zero stock indicator.
My requirement is " In Inventory (MMBE) stock of a material shows around "3000" qty. But In WM stock is "zero" and physically also "zero". so in IM also stock should be reduced to "Zero". So I tried of creating PI document in WM and then when I try to enter the count, I faced the menioned problem.
Regards
Krishnamurthy -
Hi, Apple Mail provides a function to create sub-folders within my mailbox so that I can group emails of similar subjects or from the same sender. My service provider only provides POP email protocol and the New Folder button does not appear in my Apple Mail account for that service provider. Icloud provides the opportunity for the iPad user to select between POP and IMAP. I can select IMAP and the New Folder button appears allowing me to create sub-folders within the icloud email account. Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
This appears to be a problem for quite a few Apple Mail users, but service providers appear reticent to provide a response other than 'use Microsoft Exchange / Hotmail, Google GMail, or some other third party email service provider'. This is why I have chosen icloud as my email service provider. It is Apple and therefore Apple supports it. I have been a Telstra customer for over 15 years and they informed me today, strongly, that they support their own products and services, not Apple products, even though Telstra sell them. When I asked the Telstra Customer Support Manager whether they support Telstra customers, I was informed 'no, because the Telstra customer is not a Telstra product or service'. I have since cancelled my Telstra email account and am in the process of cancelling all of my Telstra services.Apple Sceptic wrote:
Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
Yes. That is what it means. You need an IMAP account in order to create sub folders on the iPad. -
What is the password for 'oracle' user created during XE installation?
Hi,
What is the password for 'oracle' user automatically created when XE is installed?
I installed XE on Linux and it's created under 'oracle' user, but I don't know 'oracle' password. So, I cannot stop TNS listener.
During configuration, it prompted me to enter SYS and SYSADMIN password but it didn't ask me to enter 'oracle' user password.
Please let me know or point me to the document.
Thanks,
NHi Jari,
I tried your suggestion, but it didn't work unfortunately.
When I type (sudo su -oracle) as follows, it still prompts the password. When I hit Enter key w/o anything, it seems to proceed and the prompt shows up in the following line. So, I thought it was successful, but when I checked 'whoami', it's not logged in as 'oracle'.
So, I created the password for 'oracle' and logged in as 'oracle' using a new password. Then, I stopped TNS listener to uninstall XE.
It would be nice if it's documented in XE document somewhere... since it's created by XE installation, I assumed some kind of default password was used.
Thanks,
N -
How To Track the Errors For LSMW Idoc
Hello Expert
While working on Material Master Idoc getting an error message
Error 51 Application not posted
Details: IDoc included in IDoc packet containing an error: transfer it separately
How do i tackle this
ThanksHi,
I hope idoc is failing because of problem with the application data. Its not because of RFC. You told that you were getting 51, it means inbound idoc...if its problem with RFC, before creation of idoc itself it should be there...but now idoc created successfully and tried to post / create application document. there it was failing.
Can you give details some thing like, which inbound FM you are using to post the idoc & idoc type.
Regards,
DJ
reward, if its useful -
Restricting the Search for Material while creating Shopping Cart
HI SRM GURUS
We are in SRM version 5.0 and following a classic scenarios.
In search strategy while we are creating a shopping cart and we click on the start button a list of all the materails appear from where the user can select any item.
Now in R/3 if a user belongs to Mumbai plant can we restrict the search that only material existing in Mumbai plant in R/3 appears in the search criteria and not that all the materials are displayed.
Regards,
Nimish ShethHi Vadim,
The Plant related data for products/material is not stored anywhere in SRM.Then where can I apply the filters for the materials pertaining to the specific plants through the BADI BBP_F4_READ_ON_ENTRY through the Method GET_PRODUCT?
Regards,
Disha.
Maybe you are looking for
-
A few weeks ago, Firefox messed up on an update and now it refuses to actually start short of working once per system boot. I have tried reinstalling and stuff like profile manager is also stopped by this lock-up. I feel it may have to do with my pro
-
Hi, Updated a couple of weeks back an since my Mac has been almost unusable. Running a 2012 MacBook Pro 4GB Ram, Intel I5 2.5Ghz with a 750GB Harddrive. This is a home PC not a work machine, typically accessing internet over WI-FI and for 2 years has
-
Macbook Air with OS X 10.8.2 not automatically connecting to known wifi network after sleep
-
Hi everyone, I am trying to set up a thumbnail gallery to open a larger image in a window on the same page when clicked and I was wondering if anyone could help me with a few tips on where to start. I have all my "thumbnails" and "Larger images" all
-
Core competency in Talent Profile
Hi All I am working on talent management in ehp6 environment. In talent profile overview through MSS/TMS , the core competency is not getting displayed.Its showing NO data available.Although we have maintained the competency at that position as well