How to go with the below mentioned logic for developing a schedular script.
Hi all,
I wanna develope a schedular script which will run as a task after specific period(say monthly or daily)
The records for the script will be picked from
SELECT ap.account_num,ap.account_payment_txt
FROM physicalpayment pp, accountpayment ap, account a, paymethoudhasfailecode pmhfc
WHERE pp.customer_ref = a.customer_ref
AND a.account_num = ap.account_num
AND pp.physical_payment_seq = ap.physical_payment_seq
AND pp.payment_method_id IN (1,2)
AND pp.physical_payment_status = 3
AND pmhfc.external_failure_code IN ('02','03','04','06','09','11')
AND pp.failure_code_id = pmhfc.failure_code_id
AND pp.payment_method_id = pmhfc.payment_method_id
I don't want the value of external_failure_code which is hardcoded here in the script ie('02','03','04','06','09','11') cause requirement as on today is only for these many failure codes, but later it may change and few more failure code might be added or deleted.
I want to build a logic that the script should take the failure code from another table which holds the value of failure code as a string value ''02,'03,'04,06,09,11'.
ie
name string_value
PAYMENT_FAILURE_CODES 02,03,04,06,09,11
In future if any modification in the failure code, changing the string value from the table will serve the purpose.
Thanking you in advance
Ash
anyways you want snw[j] not snw[x]
a better way to do this is to load the dictionary into a hashmap,
then some psuedocode
if you find a word with a as the second letter, chop off the first two letters and then do myhashmap.get(choppedWord), which will tell you if you have a hit or not
I dont see the point in making a second array.
Similar Messages
-
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How do I get the promotional $200 credit for my iphone 4s? I ordered a ipnone6 online, but there was no mention of the trade-in credit. Do I need to cancel my order and start over with my local Verizon store to get a credit?
No, you can do it online. Go here:
Verizon
Choose where it says you are purchasing a new device. Go through the appraisal process and answer the questions, it will show you the appraisal value and add the promotional value. I just did it this morning on two phones, as wife and I both had 4's and both got new 6's yesterday. Mine appraised at the 200.00, my wife's at 76.00 - but the back top of her case is cracked. I submitted both online and will receive the shipping materials in app 5 business days, then I have I believe it said 30 days at the latest for them to receive the trade ins. Then we should get our gift cards in 4-5 weeks. I believe you can also take them in to a Verizon store and do the same there as well, if that is your preference. -
How to finish with the sites that open aleatory on safari
how to finish with the sites that open aleatory on safari?
There is no need to download anything to solve this problem. You may have installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
Back up all data before proceeding.
Step 1
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
Reset the home page and default search engine in all the browsers, if it was changed.
Step 2
Triple-click anywhere in the line below on this page to select it:
/Library/LaunchAgents/com.vsearch.agent.plist
Right-click or control-click the line and select
Services ▹ Reveal in Finder (or just Reveal)
from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
Repeat with each of these lines:
/Library/LaunchDaemons/com.vsearch.daemon.plist
/Library/LaunchDaemons/com.vsearch.helper.plist
/Library/LaunchDaemons/Jack.plist
Restart the computer and empty the Trash. Then delete the following items in the same way:
/Library/Application Support/VSearch
/Library/PrivilegedHelperTools/Jack
/System/Library/Frameworks/VSearch.framework
~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return. -
I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts? Is there a way to transer from my main account their new accounts? And can I share music from my account with them?
You can't currently transfer content from one account to another account. As long as the tracks are on the computer's iTunes that they use/sync to, and your account is authorised on that iTunes, then they should be able to continue to use them.
-
How do I creat a journal to share using my mac air? I can see how to do it with my iPad or iPhone 4s with the new iphoto app for them. I guess "journals" replace Galleries in the Cloud. I do not see the same functionality of the upgraded iPhoto app on my Mac air, iMac ormac mini.
ThanksAfraid no one outside of Apple knows what plans - if any - they have.
Regards
TD -
For iPhone 4S with iOS7 version 7.0.2, how can I see the time of day for a voice memo, as opposed to its length (of time)?
For iPhone 4S with iOS7 version 7.0.2, how can I see the time of day for a voice memo, as opposed to its length (of time)?
-
How do I manually transfer music with the new itunes update for Windows? I don't want to sync my library and lose all of my music for what I have in my current library.
The same way it was done in every previous version.
Connect the device to the computer.
Right click on the device in iTunes and select Transfer Purchases.
Why would you lose any content by syncing with iTunes?
Is this not the computer that the device is normally synced with? -
How to deal with the growing table?
Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
I am developing an application system now. Should I add a lot of delete commands in the code for each table?junez wrote:
Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
I am developing an application system now. Should I add a lot of delete commands in the code for each table?Uh, well, yes if you continually add rows to a table the table will grow ... sooner or later you will want to delete rows that are no longer needed. What did you expect? You have to decide what the business rules are to determine when a row can be deleted, and make sure your design allows for such rows to be identified. This is called ..... analysis and design. -
How to deal with the rejected stock if it is rjected by QC
Dear All,
please let me know how to deal with the rejected stock from Quality point of view.i.e., for incoming materails and Finished if returned from customer
Regards,
P.Vijayahi
if material is rejected for incoming material then you can create Notification for incoming material due to you can return back material with print for that you have to record defects in result recording. in T-code QM02 if result is recorded with defects. or you can create with Qm01.against vendor
if material is returned from costumer you can create inspection lot for that for that you have to maintained inspection type 06 in material master. you can result record for that you can create notification for that. or rework for this material as per quality check or can scrap
if have any problem please come back
regards
Pravin -
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
-
Hi,
After migrating to Spring webflow 2.4.0 , I am getting the below mentioned error in the weblogic console.
<Jun 26, 2014 12:14:45 PM IST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Unable to determine expected return type for java.util.List()>.
It doesn't affect the application but not able to find the cause for it.
Regards,
SnehaAfter many hard working days.i finally found the error cause,i needed to make weblogic datasource also ADF doesnt work on internet explorer browser,it works on safary.hope it helps somebody
-
How to deal with the change in address of plant,
how to deal with the change in address of plant,companycode,sales org etc.?
Hi,
Do you want to change the address of Company code, Plant and Sales org?
Follow the menu path in SPRO.
SPRO >> Enterprise structure >> Definition >> Financial accounting >> Define Company code >> Edit company code >> Click on address and change.
.. Definition >> Sales and Distribution >> Define ...sales org >> select the sales org and click on address and change.
... Definition >> Logistics - general >> Plant >>>> Click on address and change.
Regards,
K Bharathi -
How to find where the below sql is used in database
Hi all,
I am tring to find the below SQL in our data base where it is used?
I had done the checking in all reports manually, But have no luck.
But i am sure that the below sql is in our data base and having some issue on it.
Can any one please let me know how to find where the below query is used in our database? I mean in packages/ triggers/ procedures or any where in our database
Please find the query
select count(sh.shipment_gid) from SHIPMENT sh, SHIPMENT_TYPE stp, LOCATION ld where (sh.shipment_gid in (select sstop.shipment_gid from SHIPMENT_STOP sstop where (sstop.appointment_delivery > trunc(TO_DATE(:1, :2), :3)) and (sstop.appointment_delivery is not null))) and (sh.is_to_be_held=:"SYS_B_0") and (sh.domain_name=:4) and (sh.insurance_policy_number like :"SYS_B_1") and (sh.perspective=:"SYS_B_2") and (sh.shipment_type_gid=stp.shipment_type_gid) and (sh.dest_location_gid=ld.location_gid(+)) and (stp.shipment_type_xid!=:5) order by ld.location_name, sh.start_time
Regards,
DpkThere is video demonstration how to import from data dictionary.
After import you can select from the main menu: View->DDL File Editor menu item to open the DDL dialog and then click on "Generate" button on the dialog. When the DDL is generated you can search in it using "Find" button.
Ivan -
HT204266 is wave burner included with the download of Logic Studio from the app store?
is wave burner included with the download of Logic Studio from the app store?
Hi HandletheTruth.
I will be able to assist you.
The MF Toolbox 4.9 software supports scanning in the document using OCR processing; however, you will need a separate OCR software that will allow you to edit the software.
I hope this information is helpful to you. Should you need further assistance, please contact us at 1-800-OK-CANON (1-800-652-2666).
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.
Maybe you are looking for
-
PDF report printing BI Publisher in APEX fails
Hi, I have created page, in which, a BIP report will be generated on click of a text link. It was working fine earlier. APEX version is 4.1 which has BIP integrated. But today I am facing an issue when I click the link, to get the report. The report
-
What do I do about this message? I've restored it 3 times, but this message still comes up, and i cannot put music on it now. iTunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTune
-
G62 can't find drivers for USB mouse
For some reason I can't get my wired mouse OP-35D to work with Windows 7. When I plug it in ti the USBslot the PC can identify that its a USB mouse but can't find any drivers. I've downloded drivers from the manufacturers homepage but it's still not
-
Problem: File overwrite issue
After upgrade to OS X Mavericks, I have noticed a problem. When I tried saved an attachment from Apple Mail to a folder that already have a file with the same name, it won't overwrite it. Is it a bug or a known issue? When can it be fixed? Below is w
-
How to install my unreviewed app in Browser
I've submitted my application to Marketplace and it's not reviewed yet. I want to install it on my Android device through Browser and when I am logged in, I can see my application page. When I hit `install` button, spinner spins and then stops. Nothi