Need a proper logic
The below logic is like : -
for operation number 0090 the Subassembly_SRT shall be 000001 ,
for all other operation it's like
if vornr (0031) than Subassembly_SRT no shall be 000002
if vornr (0032) than Subassembly_SRT no shall be 000003 ...
if vornr (0032) in not there then vornr (0033) will have the Subassembly_SRT no 000003 .........
if vornr (0032) and (0033) in not there then vornr (0033) will have the Subassembly_SRT no 000003 ......... like this only it will increase ....Can u please help me to write proper logic for this ....in an ascending order.
Can i use at new and at end ....
regards
Sabyasachi Pattanayak.
Hi
you may use at new and at end but I think it won't help.
I'd recommend
loop at itab assigning <itab>.
case <itab>-vornr.
when '0031'.
<itab>-Subassembly_SRT = '000003 '.
when '0031'.
<itab>-Subassembly_SRT = '000003 '.
endcase.
endloop.
I do not understand <b>if vornr (0032) in not there</b>
Regards,
Clemens
Similar Messages
-
I need to install Logic X pro in my laptop. My IOS is 10.7.5 and I have 16Mb memory. Shoud I update my IOS to the latest version?
you can't install logic pro x on a iOS device....you said laptop so i guess you mean OS X not iOS ....you can't have 16mb ram/memory but probably 16gb....but to your question...
NO DO NOT UPDATE, logic pro x is working better on mavericks then on yosemite! -
Just bought a new imac, need to take logic off my macbook pro and install onto my imac
Just bought the new imac, and I need to get logic pro 9 off my macbook pro and onto my imac. Both my install licenses are used, so will I have to buy a new license as well. If any and all help would rock. Thanks, JASON
How did you receive Logic? Reinstall from the distribution media. You may be able to move the Logic application, but unless you know what and where the support files are it may prove difficult for it to work correctly.
I would assume you can obtain another license by calling AppleCare Customer Service unless you are moving Logic to a new computer and removing it from the other computer. In this case you do not need to purchase another license. -
I need to change logic behind Calculate Duration button in Leave of Absence
Hello,
I need to change logic behind Calculate Duration button in Leave of Absence creation page.
How I can do that?
Please suggest.
Regards,
mofizurThis will be a OAF customization, you have extend this oracle.apps.per.selfservice.absence.webui.AbsenceCO Controller.
in processFormRequest you have catch event to Calculate Duration Button.
You need to write custom your requrirement Logic for event to Calculate Duration.
Thanks, Avaneesh -
I recently fixed my computer and need to reinstall logic pro 9 but I can't find the booklet with my serial number, is there any other way I can get the serial number for logic pro 9 (box)?
If you still have the receipt or other proof of purchase, you can ask Apple to send you the serial. Otherwise, bad luck mate.. Good news is, you can now buy Logic Pro 9 from App Store for just 199 USD
-
I need to reinstall logic 8 but lost serial number
I have had to wipe my hard drive and now need to reinstall logic 8 before i install Logic 9 upgrade, but I have lost the serial number for 8. What should I do?
Hi
If you intend to upgrade to Logic 9, you should not need to actually install Logic 8 (unless you want to).
You will need the 8 Serial number in either case if you are using an upgrade installation disk set for Logic Studio (2).
Apple may be able to help regarding lost serials:
http://support.apple.com/kb/HT1861
CCT -
Help Needed in Relational logic
Hi
Working in 2008 R2 version.
Below is the sample data to play with.
declare @users table (IDUser int primary key identity(100,1),name varchar(20),CompanyId int, ClientID int);
declare @Cards table (IdCard int primary key identity(1000,1),cardName varchar(50),cardURL varchar(50));
declare @usercards table (IdUserCard int primary key identity(1,1), IDUser int,IdCard int,userCardNumber bigint);
Declare @company table (CompanyID int primary key identity(1,1),name varchar(50),ClientID int);
Declare @client table (ClientID int primary key identity(1,1),name varchar(50));
Declare @company_cards table (IdcompanyCard int primary key identity(1,1),CompanyId int,IdCard int)
Declare @Client_cards table (IdclientCard int primary key identity(1,1),ClientID int,IdCard int)
insert into @users(name,CompanyId,ClientID)
select 'john',1,1 union all
select 'sam',1,1 union all
select 'peter',2,1 union all
select 'james',3,2
Insert into @usercards (IdUser,IdCard,userCardNumber)
select 100,1000,11234556 union all
select 100,1000,11234557 union all
select 100,1001,123222112 union all
select 200,1000,2222222 union all
select 200,1001,2222221 union all
select 200,1001,2222223 union all
select 200,1002,23454323 union all
select 300,1000,23454345 union all
select 300,1003,34543456;
insert into @Cards(cardName,cardURL)
select 'BOA','BOA.com' union all
select 'DCU','DCU.com' union all
select 'Citizen','Citizen.com' union all
select 'Citi','Citi.com' union all
select 'Americal Express','AME.com';
insert into @Client(name)
select 'AMC1' union all
select 'AMC2'
insert into @company(name,ClientId)
select 'Microsoft',1 union all
select 'Facebook',1 union all
select 'Google',2;
insert into @company_cards(CompanyId,IdCard)
select 1,1000 union all
select 1,1001 union all
select 1,1002 union all
select 1,1003 union all
select 2,1000 union all
select 2,1001 union all
select 2,1002;
Requirement :
1. Get the distict Users card details. the reason for using distinct is, user can have same card multiple with different UserCardNumber.
Ex : user can have more than BOA card in the @usercards table with different UserCardNumber. But though he has two BOA card, my query should take one row.
2. After the 1st step, i need to check if any details on @company_cards based on Users companyId.If yes then selct the details from @company_cards. if not select it from @client_cards
In this case we need to make sure that we shouln't have repeated data on @FinalData table.
My Logic:
Declare @FinalData table (IDCard int,CardName varchar(50),CardURL varchar(50))
declare @IdUser int = 100, @ClientID int,@companyID int;
select @ClientID = ClientID,@companyID = CompanyId from @users where IDUser = @IdUser;
insert into @FinalData (IDCard,CardName,CardURL)
Select distinct c.IdCard,c.cardName,c.cardURL from @usercards UC join @Cards C on(uc.IdCard = c.IdCard)
where IDUser=@IdUser;
if exists(select 1 from @company_cards where @companyID = @companyID)
BEGIN
insert into @FinalData(IDCard,CardName,CardURL)
select c.IdCard,c.cardName,c.cardURL from @company_cards cc join @Cards c on(cc.IdCard = c.IdCard) where CompanyId = @companyID
and cc.IdCard not in(select IDCard from @FinalData);
END
ELSE
BEGIN
insert into @FinalData(IDCard,CardName,CardURL)
select c.IdCard,c.cardName,c.cardURL from @client_cards cc join @Cards c on(cc.IdCard = c.IdCard) where ClientID = @ClientID
and cc.IdCard not in(select IDCard from @FinalData);
END
select * from @FinalData;
the logic produces the valid result. Is there any alternative way to achieve this logic. I feel there might be some proper way to query this kind of logic. any suggestion please.
[the sample schema and data i provided just to test. i didn't include the index and etc.]
loving dotnetYou can simply merge the statements like below
Declare @FinalData table (IDCard int,CardName varchar(50),CardURL varchar(50))
declare @IdUser int = 100
;With CTE
AS
Select IdCard, cardName, cardURL,
ROW_NUMBER() OVER (PARTITION BY IdCard ORDER BY Ord) AS Seq
FROM
Select c.IdCard,c.cardName,c.cardURL,1 AS Ord
from @usercards UC join @Cards C on(uc.IdCard = c.IdCard)
where IDUser=@IdUser
union all
select c.IdCard,c.cardName,c.cardURL,2
from @company_cards cc join @Cards c on(cc.IdCard = c.IdCard)
join @users u on u.CompanyId = cc.CompanyId
where u.IDUser = @IdUser
union all
select c.IdCard,c.cardName,c.cardURL,3
from @client_cards cc join @Cards c on(cc.IdCard = c.IdCard)
join @users u on u.ClientID= cc.ClientID
where u.IDUser = @IdUser
)t
insert into @FinalData (IDCard,CardName,CardURL)
SELECT IdCard, cardName, cardURL
FROM CTE
WHERE Seq = 1
select * from @FinalData;
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
I bought a refurbished iMac last year, unfortunately I'm in need of a new/used Logic board, but when I search and contact Company with Mac parts, no one seems to recognize FD093LL/A witch makes it tough to identify parts, but I do see most Part Numbers starting with MD. Any reason why?
Thank youRefurbished models have a different order number. Replace the F with an M and see if the specifications listed match your computer’s.
(115253) -
Keys 5-9 no longer work after water damage. Do I need a new logic board?
I had the smallest amount of water on my fingers when I typed something on my keyboard and now keys 5-9 no longer work. Will I need a whole new logic board for this? I've been into two Apple stores and both say I need to book an appointment online. I've been online and tried to book in at three different Apole stores within my area and I just get 'there are no slots available' how am I supposed to get this fixed if I can't book a session to see some!?! Sort it out Apply, it's why your products cost so bl**dy much isn't it!?
thanks, but I really don't think its the logic board since I can still plug in head phones and i can hear movies, etc.
also when i don't have my magicJack plugged in to make calls they now give you a magictalk dial pad to make calls and when i plug in the headphones again i can talk through the speakers and be heard and I can hear them too. Is there something I can used to maybe pull out the connection. I think it thinks the headphones are plugged in all the time. -
Noob needs help with Logic and Motu live setup.
Hello everyone,
I'm a noob / semi noob who could use some help with a live setup using 2 MOTU 896HD's and Logic on a Mac.
Here's the scenario:
I teach an outdoor marching percussion section (a drumline and a front ensemble of marimbas and vibes). We have an amazing setup of live sound to amplify and enhance the mallet percussion. There is a yamaha PA system with 2 subs and 2 mains which are routed through a rack unit that processes the overall PA balance. I'm pretty sure that the unit is supposed to avoid feedback and do an overall cross-over EQ of the sound. Other then that unit, we have 2 motu896hd units which are routed via fire-wire. I also have a coax cable routing the output of the secondary box to the input of the primary box (digital i/o which converts to ADAT in (i think?)..?
Here's the confusion:
There are more then 8 inputs being used from the ensemble itself, so I need the 16 available inputs to be available in Logic. I was lead to believe that the 2nd motu unit would have to be sent digitally to the 1st motu unit via coax digital i/o. Once in Logic, however, I cannot find the signal or any input at all past the 8th input (of the 1st unit).
Here's the goal:
All of my performers and inputs routed via firewire into a Mac Mini running OSX and Logic pro.
I want to be able to use MainStage and run different patches of effects / virt. instruments for a midi controller keyboard / etc.
I want to be able to EQ and balance the ensemble via Logic.
Here's another question:
How much latency will I be dealing with? Would a mac mini with 4gb of ram be able to handle this load? With percussion, I obviously want the sound as latency free as possible. I also, however, want the flexibility of sound enhancement / modification that comes with Logic and the motu896hd units.
Any help would be REALLY appreciated. I need the routing assistance along with some direction as to whether or not this will work for this type of application. I'm pretty certain it does, as I have spoken with some other teachers in similar venues and they have been doing similar things using mac mini's / logic / mainstage / etc.
Thanks in advance,
ChrisYou'll definitely want to read the manual to make sure the 896HDs are connected together properly. ADAT is a little tricky, it's not just a matter of cabling them together. Go to motunation.com if you need more guidance on connecting multiple devices. Beyond that initial hookup, here are a couple of quick suggestions:
1. Open CueMix and see if both devices are reported there. If not, your connections aren't correct. Be sure to select 44.1kHz as your sample rate, otherwise you are reducing the number of additional channels. For instance at 88.2kHz you would get half the additional channels via ADAT.
2. You may need to create an aggregate device for the MacBook to recognize more than the first 896HD. Lots of help on this forum for how to do that. Again, first make sure you have the 896HDs connected together properly.
3. As for latency with Mainstage on the Mini, no way to know until you try it. Generally MOTU is fantastic for low latency work but Mainstage is a question mark for a lot of users right now. If the Mini can't cut the mustard, you have a great excuse to upgrade to a MacBook Pro. -
Help needed on the logic used to display ERP Sales order in CRM WEB UI
Hi,
I have a requirement where i need to trigger an activity/workflow in CRM for orders that are created through ERP Salesorder functionality. In the workflow list, we need to give the order description and provide an hyperlink to the order number. on selection of order number, it should display the ERP sales order. To achive this in workflow, i am trying to understand the as-is standard functionality which is available in Agent Inbox search on ERP sales order.This search is getting the ERP orders and on selecting the order it is opening the ERO sales order page. I tried debugging the method GET_MAINCATAEGORY available in the component iccmp_inbox and in the view Inboxsearch.But couldnt really able to crack the logic how it is retrieving the ERP sales order from inbox search. Any pointers on how this is achieved will be of great help.
Thanks,
UdayaHi Denis,
very good idea. I thougt myself about that workaround, but it is not really that for what I searched.
I mean the "SAP Query" is a really good standard tool, that are used by many customers. That is why think there must be a standard way to display the SAP Query in the Web UI without using Transaction Launcher.
But it seems that there is no way, except of the transaction launcher or by using an additional analyse system like SAP BI.
By the way do you know a Web UI compoment which enable the user to start reports like SE38?
Regards
Fabian -
Hi I am working in sqlserver 2008 R2 and below is my sample research query
i am trying to get previous 6 months data.
WITH CutomMonths
AS (
SELECT UPPER(convert(VARCHAR(3), datename(month, DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N, 0)))) Month
,DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N, 0) startdate
,DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N + 1, 0) enddate
FROM (
VALUES (1)
,(2)
,(3)
,(4)
,(5)
,(6)
) x(N)
WHERE N <= 6
SELECT month
,SUM(isnull(perks.amount,0)) AS PerkAmount
FROM CutomMonths
LEFT JOIN (
select 10.00 as amount,'2014-04-03' as StartDate,'2015-04-03' as EndDate union all
select 10.00 as amount,'2014-04-03' as StartDate,'2015-04-03' as EndDate
) perks ON
CutomMonths.startdate >= perks.StartDate
AND CutomMonths.startdate < perks.EndDate
GROUP BY CutomMonths.Month
,CutomMonths.startdate
ORDER BY CutomMonths.startdate ASC
current output what i am getting:
Expected Output:
I found why the April month i din't get the $20 because the startdate of my perks CTE '2014-04-03'. If it is '2014-04-01' then i will get the expected output.
But i should not change the the date on perks. How to neglect this date issue and consider the month instead to get the expected output. please help me on this as i am struggling on my logic
loving dotnetI'm just going to focus on the JOIN criteria in this reply since my answer above and your 2nd response are essentially the same except for the JOIN.
What your are describing and what you are doing in code is conflicting.
You are saying this:
"I just need to check whether the perks start date falls in between month start date and month end date"
..., which translated directly to code would be this:
ON perks.StartDate >= CustomMonths.StartDate
AND perks.StartDate <= CustomMonths.EndDate
What I believe you are getting after is this:
"I just need to check whether the dates within the perks start and end date range fall in between month start date and month end date"
..., which translated directly to code would be this, which is also my answer proposed above:
ON CustomMonths.StartDate >= DATEADD(DAY, -(DAY(perks.StartDate) - 1), perks.StartDate)
AND CustomMonths.StartDate <= perks.EndDate
However, if you really want to use the code solution you proposed, then you would actually be saying this:
"I just need to check whether the dates within the perks start and end date range fall in between month start date and month end date, but if perk end date happens to be the first day of the month, then ignore it and use the previous day."
..., in which case then your code, as follows, would be the solution:
ON CutomMonths.startdate >= DATEADD(mm, DATEDIFF(mm, 0, perks.StartDate), 0)AND CutomMonths.startdate < DATE
ADD(mm, DATEDIFF(mm, 0, perks.EndDate), 0)
NOTE: The alternate JOIN I had commented out in my proposed answer above will do the exact same thing as your latest proposed solution
ON CustomMonths.StartDate >= DATEADD(DAY, -(DAY(perks.StartDate) - 1), perks.StartDate)
AND CustomMonths.StartDate < perks.EndDate
BTW, I see how you are getting to the first day of the month by subtracting all the months from the given date to 01/01/1901, and then turning around and adding them all back to 01/01/1901. While that is one way to get to the first day of the month, it
seems excessive from a calculation stand point, although I haven't performed any performance tests to know for certain.
SELECT DATEADD(mm, DATEDIFF(mm, 0, '2014-04-03'), 0)
I prefer simply subtracting one less than the current day number from the given date to get to the same first day of the month value.
SELECT DATEADD(DAY, -(DAY('2014-04-03') - 1), '2014-04-03') -
Why would they just replace the fans when it needs a new logic board?
Went to see a "genius" at the Apple store with my Week 12 MBP. Complained about excessive heat and it whining when unplugged, ever since I got it. He sent it off, three days later I got it back in the mail. But when I looked at the repair doc all it says is they replaced the "FAN ASSY, LT, M1" and also the "RT" one. So now I have two new fans (which worked fine before), and that's it. It still get hot enough over the F keys to burn my skin, and it still whines like a baby when unplugged.
All they have to do is look at the serial number (8612) to know it needs a new MLB, right? What do I do now, call them back and go through this all over again?
MacBook Pro 2GHz Mac OS X (10.4.8)Went through the exact same thing with my week 17 MBP. The first repair came back with new power inverter and fan assemblies even though my noise was clearly coming from below the keyboard. The noise continued and if anything was actually worse so I was starting to regret ever sending the computer back in the first place. So I called again and sent it back in. This time, the laptop came back untouched and declared "within spec". Now I was really fired up. I told them I would use it for a week and if the problem continued it will come back. So back it went a third time and this time the logic board was replaced. I have to say, the difference is very noticeable and completely worth it in hindsight. I was almost ready to live with it and am so glad I did not. Be persistent and let them know you are prepared to send it in as many times as it takes.
-
I am having a string, for example : (1) 6V_EGD, i need 6 out of this
(2) 107V_EGDH, i need 107 out of this.
Plz send me the logic for this.hi,
try this one......
data : st_1 type string value '6sahg'.
data : ch_1 type c.
ch_1 = st_1.
write : ch_1.
o/p : 6
data : st_1 type string value '623sahg'.
data : ch_1(3) type c.
ch_1 = st_1.
write : ch_1.
o/p : 623
Mark the post answered once ur problem is solved .... -
Dear Experts,
I am trying to get me the totals from CATSCO by Pernr and WORKDATE. I have created a pseudo code and i would appreciate if someone can validate it. The thing is that i need the logic to exit without it going in an endless loop. WORKDATE is basically my selection criteria where the user selects a from and to and i need this piece of validation in my code.
I am not a programmer so this might look very programmatically correct :).
I would appreciate any help.
Thanks,
R
Data: Total_Direct Type i VALUE 0,
Total_Indirect Type i VALUE 0,
Total_Percentage Type i VALUE 0,
Counter Type i VALUE 0.
Counter = 1.
While Counter <> 0.
IF CATSCO-RPROJ EQ '' AND CATSCO-RAUFNR NE ''.
Total_Direct = CATSCO-CATSHOURS.
ENDIF.
IF CATSCO-RAUFNR EQ '' AND CATSCO-RPROJ NE ''.
Total_Indirect = CATSCO-CATSHOURS.
ENDIF.
Counter = counter + 1.Hi,
Try this..
<b>* Declarations.</b>
TYPES: BEGIN OF TYPE_CATSCO,
PERNR TYPE CATSCO-PERNR,
WORKDATE TYPE CATSCO-WORKDATE,
CATSHOURS TYPE CATSCO-CATSHOURS,
END OF TYPE_CATSCO.
DATA: LT_CATSCO TYPE STANDARD TABLE OF TYPE_CATSCO.
DATA: LT_CATSCO_SUM TYPE STANDARD TABLE OF TYPE_CATSCO.
DATA: WA_CATSCO TYPE TYPE_CATSCO.
<b>* Get the records from the table CATSCO.</b>
SELECT PERNR WORKDATE CATSHOURS
INTO TABLE LT_CATSCO
WHERE WORKDATE IN SO_DATE. <b>" Selection screen variable.</b>
<b>
Process the records and sum up based on the PERNR and WORKDATE.</b>
LOOP AT LT_CATSCO INTO WA_CATSCO.
<b>* Sum</b>
COLLECT WA_CATSCO INTO LT_CATSCO_SUM.
ENDLOOP.
<b>* Display the records.</b>
LOOP AT LT_CATSCO_SUM INTO WA_CATSCO.
WRITE: / 'Personnel number - ', WA_CATSCO-PERNR.
WRITE: / 'Work date - ', WA_CATSCO-WORKDATE.
WRITE: / 'Hours - ', WA_CATSCO-CATSHOURS.
ENDLOOP.
Thanks,
Naren
Maybe you are looking for
-
BI Publisher Report Query Error: "character string buffer too small"
Using apex.oracle.com, I am trying to make a Report Query (Shared Components > Report Queries) based on many columns (around 60). When I enter my SQL in the "Source Query" Text Area and then click Test Report I get the following error: ORA-06502: PL/
-
How to change Page Text in Book Module?
I am in the process of creating a 158 page photo book to be printed by Blub. I have created many other Blurb books using their BookSmart software. This is my first attempt using the Lightroom Book Module. My problem is I would like the change the d
-
WHY WON'T MY COMPUTER RECOGNISE MY IPHONE?
My laptop used to recognise the connection when i plugged in my iphone via USB cable, but not anymore. I have updated itunes, any ideas as to why my computer and itunes is not picking up the connection?
-
IF I download and install Firefox will I loose any Explorer related things on my pc?
IF I download and install Firefox will I loose any Explorer related things on my pc? == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR
-
F.27 get message no data selected
When running F.27 , there is "no data selected". though we have configured sap13 correspondence. and maintained peridic statement in customer master data. also maintained variant for porgram RFKORD11. Is thera anythign i am missing? Do I need to main