Conditonal Check within SQLLOADER

I am using SQL LOADER to insert records from the flat file into Oracle Table.
See below part of control file I am using:
INTO TABLE PARP_BOI_MT940
WHEN rec_id_no = ':61'
TRAILING NULLCOLS
(AMOUNT TERMINATED BY 'FMSC' "replace(decode(:TRANS_TYPE, 'D', '-'||:AMOUNT, :AMOUNT), ',', '.') ",
BANK_USE TERMINATED BY WHITESPACE)
Now as you can see I am reading amount field until I come across string 'FMSC'. Now is it possible to check for 'NMSC' using this code along with 'FMSC' how can we do the conditional check?
Thanks
KS

for the given data, the below control file should work ( Not aware of any direc method)
load data
infile *
INTO TABLE TEST truncate
TRAILING NULLCOLS
(AMOUNT TERMINATED BY 'S' "regexp_replace(:amount,'N|F|M') ",
BANK_USE TERMINATED BY WHITESPACE)
BEGINDATA
4798.89S103NONREF//MR S J BRADSHAW 301910
6399706.35FMSCNONREF//SDMT 00000409020 000022
4798.89NMSCNONREF//MR S J BRADSHAW 301231
SQL> select * from test;
    AMOUNT BANK_USE
   4798.89 103NONREF//MR
6399706.35 CNONREF//SDMT
   4798.89 CNONREF//MR
Edited by: jeneesh on Oct 8, 2008 5:16 PM
But now the "BANK_USE" column is corrupted                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Dead Link checking within courses

    Hi everyone
    I was wondering if anyone knows of a dead link checking solution that I could install on our iLearning server. We currently have around 2000 courses on it, most of which have url links on certain pages of courses and obviously these links will not last forever. Is there any known solutions that can sit on the server and regularly check through the courses for dead links?
    It would probably have to check through the uploaded course zip files and check individual html pages within them and also run daily reports.
    Any help appreciated as I haven't found any viable options so far.
    Many thanks
    Bob

    Hi Bob,
    There are a number of free web based dead link checkers for internet facing servers e.g. [http://validator.w3.org/checklink] or [http://www.powermapper.com/products/sortsite/ads/links-link-checker.htm?gclid=CNimndrD75YCFQXO1AodwjORqw}]
    This dead link Pearl script might be useful for checking locally: [http://dlc.sourceforge.net/]
    And of course there are commercially abailable ones
    It might be tricky to find one that checks within SCORM zip files so it might have to be a case developing a script to unzip to a directory, run the check and zip them back up again on the server.

  • Conditon check  - very urgent

    Hi expers,
    I hv created a ztable in which i am inserting data of date 04.02.2008 so it the data for whole year.  i.e from date 01.04.2007  to 31.03.2008 consists of same data. so i am entering only data for 1 date in b/w that period.
    so my requiement is i hv created one report in which i am taking budat as input as parameter i.e only one date no range.
    depending on that date i hv to show data from ztable.
    i.e ex. if i  taken date as 01.01.2008 it shd check the condition that this date exits in b/w date 01.04.2007 to 31.03.2008 so show that data of ztable 04.02.2008 which i hv created.
    llly if i give input date as 10.05.2008 then it should check the conditon 01.04.2008 to 31.03.2009 and it shold display the data exits in b/w that dates in report. i ll enter only data for single date but depeidng up on the date i should check that condtion and show slect the data in internal table and it should be displayed.
    i am very confusing in writing conditon for this... any body hv idea regarding this plese help me.. its very urgent.
    <b>points will be rewarded for useful answers </b>
    regards,
    sunil kairam.

    Hi,
    Try this below Code
    DATA : org_date TYPE sy-datum,
           date_low TYPE sy-datum,
           date_high TYPE sy-datum,
           l_dat(2) TYPE n,
           l_mon(2) TYPE n,
           l_year(4) TYPE n.
    CLEAR: org_date,
           date_low,
           date_high,
           l_dat,
           l_mon,
           l_year.
    org_date = '20080510'.
    l_dat = org_date+6(2).
    l_mon = org_date+4(2).
    l_year = org_date+0(4).
    IF org_date0(4) EQ sy-datum0(4).
      IF l_mon LE '4'.
        l_dat = '01'.
        l_mon = '04'.
        l_year = l_year - 1.
        CONCATENATE l_year l_mon l_dat INTO date_low.
        l_dat = '31'.
        l_mon = '03'.
        l_year = l_year + 1.
        CONCATENATE l_year l_mon l_dat INTO date_high.
      ELSE.
        l_dat = '01'.
        l_mon = '04'.
        l_year = l_year.
        CONCATENATE l_year l_mon l_dat INTO date_low.
        l_dat = '31'.
        l_mon = '03'.
        l_year = l_year + 1.
        CONCATENATE l_year l_mon l_dat INTO date_high.
      ENDIF.
    ELSE.
    ENDIF.
    WRITE:/1 'Original Date: ', org_date,
          /1 'Date From: ', date_low,
             'To: ', date_high.
    Hope this helps you.
    Regards,
    Ramkumar.K

  • Database check within javascript

    I have javascript validation code, but some of it is depended
    on database results. So, I just want to do a simple database check
    and then run javascript code based on the query results. For
    example:
    <script language="JavaScript">
    function validate_form ( )
    valid = true;
    <!-- <cfif not compareNoCase(Topdata.demil_cd,'F')>
    //-->
    if ( document.test.field1.value == "Test" )
    alert ( "Blah, blah blah." );
    valid = false;
    <!-- <cfelse> //-->
    if ( document.test.field2.value == "Test2" )
    alert ( "Blah, blah blah." );
    valid = false;
    <!-- <cfif> //-->
    return valid;
    </script>

    Run your query before your opening script tag. Use the
    toScript function to bring your database results into js.

  • Authority Check within GAF -- redirect to view? How to stop GAF?

    Hello,
    i'm using GAF with AppC and want to check if user has permission for this GAF.
    I didn't find any "standard" for this, i'm checking authority in WD Component, in method "OVERRIDE_EVENT_GAF( )"
    How can I stop the GAF and e.g. redirect to a defined WebDynpro view?
    Thanks and Regards
    Christopher

    You can use the FPM event FPM_CLOSE to exit from GAF.
    OR
    Add the WD view in dialog box and call the dialog box from method open_dialog_box of IF_FPM.

  • Content type headers and spam checks within Java MAil

    Hello there
    I have successfully created a java mail api to send any one of the following
    plain/text message, with or without attachments, with or without the body of the email to be HTML
    I have a question on how to ensure that the email is not marked spam? Sometimes the Spam score goes high if there is olly html for an email that is text/html type.;
    What are the possible values for content/type of Mime Message header for following scenarios
    An Email message that may have its bodypart as html and may have attachments
    An Email message that will have plain text messages along with attahcments and HTML concattenated with text messages ( LIke google maps along with text message]
    IF I do messaget.set ("This is my message") andthen I add attachments to the message body part, is it advisable to have two seperate content-type mime headers for these messages? wrt not having higher spam score.
    Or Is it advisable to have seperate mime type content headers for text part and sperate for message part.
    IS the attachment part also has a seperate mime header content type value?
    does the header's content type value is plain/text for messages that are text messages with attachments>?
    IS there a way to chek spam scores for messages generated by java mail? The ides is to create java mail API customsied sot hat the sent emails are not marked spams ?
    In order for the mail to be having zero spam scrore, it is helpful to have seprate mime content type headers?
    Edited by: user9328023 on May 23, 2011 1:45 PM

    If you want to create a message that has both plain text and html versions of the main
    message content, you want to create a multipart/alternative message, as described in
    this FAQ entry.
    If that message also needs to have attachments, you should embed the multipart/alternative
    part in a multipart/mixed message, along with the attachment parts.
    If the html part needs to reference images included with the message, you would replace
    the text/html part with a multipart/related part, as described in this FAQ entry.
    Combining all these techniques together can seem a bit complicated unless you understand
    recursion! :-) Remember that in addition to creating a body part with a text content type,
    you can create a body part with a multipart content type, and use that body part in the same
    places you would use a text body part.
    As for making sure your message isn't marked as spam, well, you're probably asking in the
    wrong place, but the simple answer is to make sure that it's actually not spam! Usually the
    structure of the message isn't as important as the content of the message.

  • Error in bootstrap within patching of NW PI 7.40 AEX (Java Only)

    Hi all,
    we are suffering an error witin patching a NW PI 7.40 AEX (Java Only)
    In SUM we get the following error when SUM wants to stop / start system in execution phase
    FATAL: Critical shutdown with exit code [2150] was requested due to [AS
    Java
    cannot be started; core service [tc~lm~nzdm~crrsrv] failed to
    start]
    We already checked note http://service.sap.com/sap/support/notes/1713021 for this with no luck.
    We are getting the following output in bootstrap
    Starting to initialize database connection
    Exception occurred for component [internal/unkown] of type [unkown]
    com.sap.engine.bootstrap.SynchronizationException: Storage access initialization failed due to OpenSQL error.Check if your db driver file is avail
    able on the file system or if the user has correct permissions for that file
            at com.sap.engine.bootstrap.StorageAccess.<init>(StorageAccess.java:146)
            at com.sap.engine.bootstrap.Bootstrap.initializeSynchronizer(Bootstrap.java:79)
            at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:273)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)
    ----------==[ Caused by: ]==----------
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.<init>(DBConnectionPoolImpl.java:171)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandlerImpl.<init>(PersistenceHandlerImpl.java:50)
            at com.sap.engine.core.configuration.impl.cache.ConfigurationController.<init>(ConfigurationController.java:139)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:309)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:59)
            at com.sap.engine.bootstrap.StorageAccess.<init>(StorageAccess.java:138)
            at com.sap.engine.bootstrap.Bootstrap.initializeSynchronizer(Bootstrap.java:79)
            at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:273)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)
    Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: The check record (key "$internal/check") was not found in the sto
    re although this store is encrypted..
            at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:104)
            at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:143)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:143)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:115)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.<init>(DBConnectionPoolImpl.java:164)
            ... 12 more
    Caused by: com.sap.security.core.server.secstorefs.FileInvalidException: The check record (key "$internal/check") was not found in the store altho
    ugh this store is encrypted.
            at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:2048)
            at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:793)
            at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:784)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:128)
            ... 14 more
    [Bootstrap]> Error during synchronization. More details: the previous log entries
    Do you guys have any clue on this?
    Any help would be greatly appreciated.
    Many thanks
    Jens

    I'd like to share some updates on this:
    We discovered, that the line having "$internal/check" within SecStore.properties was indeed commented out. However we did not do that manually. We removed the comment from that file manually (which might be a mistake) but in doing so we at least got some progress but having some other errors:
    We find now following Messages in the dev-jstart-logfile:
    * WARNING => SfCEventDispatcher::processQueue: rc 3 (invalid function argument) from SfCJavaProcHandler(server0)([mType=PROC_CMD, mRepl y=TRUE, pca=[cmd=GET_CALLSTACK, procId=2, arg=65], mpEvent= [mType=NODE_CMD, mReply=TRUE, nca=[cmd=GET_CALLSTACK, nodeId=2]]])
    [sfxxevt.hpp 3152] F [Thr 01] *** WARNING => SfCNodeManager(server0)::onReply: command 2010 GET_CALLSTACK returned 3 invalid function argument.
    Executing sapcontrol -GetProcessList you can see that all precesses are running but jstart is yellow (some processes are running). Checking the message Server logfile you can find:
    [Thr 01] Wed Feb 26 14:32:03 2014 [Thr 01] LOGOUT: J2EE106864420 [10.6.1.174] (ENQ) [Thr 01] *** ERROR => MsSSend: NiBufSend (rc=NIECONN_BROKEN) to C1
    (JC_rs174QSF_QSF_10) [msxxserv.c 13557] [Thr 01] *** ERROR => MsSSndInfo: cant send info request to C1
    (JC_rs174QSF_QSF_10) [msxxserv.c 13778] [Thr 01] LOGOUT: JC_rs174QSF_QSF_10 [10.6.1.174] (DIA )
    Any help would really be great.
    Thanks and kind regards
    Jens

  • Duplicate Check while creating new BP

    Dears,
    I am a CRM Consultant and working on a CRM VMS integration scenario, wherein BP(End customer) is created in VMS system and this will be replicated to SAP CRM system which has duplicate check active.  However we would like to perform the duplicate check within VMS System, so that it checks against existing BP records in BUT000 of VMS System.
    Can you share your experience in performing the same?
    Cheers
    Sweta

    Thanks Ritesh/Ganesh.
    Yes i understand that we can make certain fields which needs to be validated/checked during customer/bp creation process.
    Example:
    Customer 1 : Already exists in VMS DB.
    First Name: Steve
    Last name:  Jobs
    Mobile: 868686
    Email:[email protected]
    BP ID/Customer No : 100
    Customer 2: Being created by user in VMS DB
    First name: Steve
    Last name: jobs
    Mobile: 868686
    Email: [email protected]
    Based upon tolerance set by business, system will display a pop up with duplicate message....
    User can ignore the message and continue creating new customer/bp record or user can make use of BP/customer 100......
    This is how duplicate check works in the CRM System....
    Note: when system tries to find the potential duplicate , it is not actually checking in CRM DB, but in TREX.....
    So  can we achieve similar functionality in SAP VMS System ? if yes....can you please provide config steps or any BADI or user exit ..etc.....
    Hope i am clear...
    Thanks again for your suggestions.
    Best Regards
    Sweta

  • Duplicate item checking failed in Form level-urgent

    Hi all
    i have creation page with advanced table
    i need to restrict the duplication at form level as well as save button
    in some cases the validation is failed
    if ("CodeValidation".equals(pageContext.getParameter(EVENT_PARAM)))
    itemcode = vo.getCurrentRow().getAttribute("ItemCode").toString();//advanced table multiple records come
    am.xxItemCodeValidation(itemcode);//checking the item validation at databse level
    am.xxdupitemcode(itemcode);
    method in am
    public void xxdupitemcode(String itemcode)
    System.out.println("The item code is.........."+itemcode);
    int count = 0;
    xxcrmNewItemVOImpl vo = getxxcrmNewItemVO1();
    vo.executeQuery();
    System.out.println("the row are" + vo.getAllRowsInRange().length);
    Row r[] = vo.getAllRowsInRange();
    int n = vo.getAllRowsInRange().length;
    for (int i = 0; i < n; i++)
    System.out.println("entered into this block......for loop" + count);
    if (itemcode.equals(r.getAttribute("ItemCode")))
    System.out.println("entered into this block......" + count);
    count = count + 1;
    System.out.println("the count is........."+count);
    if (count > 1)
    throw new OAException("Duplicate Item found plz change the item",
    OAException.ERROR);
    } else
    System.out.println("Exception block....... ");
    in save button i am calling
    if ("Save".equals(pageContext.getParameter(EVENT_PARAM)))
    am.xxdupitemcode(itemcode);
    am.invokeMethod("xxsavetr");
    in which case it is failing is
    in first row user enter
    ROW-ITEMCODE
    1-A
    2-A
    3-B
    4-B
    in second row and 4 th row exception is raised but user didnt change the itemcode and proceed for next steps
    IN SAVE BUTTON EXCEPTION IS RAISED
    but user will go to 4 th row and B should be change as C and click on save
    records are saving with duplication item of A
    but i need to restrict in save button also
    how its posible
    Regards
    Sreekanth

    Sreekanth,
    The correct way to check for duplicates is to check it both in the VO/EO cache as well as the database. It is possible the user entered duplicate value in the current session. In that case you should first check within the existing VO rows if the values are duplicated or not (in case all the database rows are already queried, you might not need to run an explicit query, otherwise another validation VO needs to be executed to check for duplicates).
    Regards
    Sumit

  • FF68 - Manual Check Deposit - entering multiple invoices against one check

    We are requiring the functionality to enter multiple invoice numbers into the layout against one customer and one check payment to then allow these to be cleared as part of the batch processing.
    Currently it only appears to allow you to enter one invoice number per check payment or post on account to the customer and clear as a second manual step.
    Has anyone implemented the multiple invoice clearing from one check within FF68?

    Hi Sonia
    Was BDC session generated on processing FF68?
    Auro

  • Proxy Activity terminated because errors occurred during package checks

    Hi,
    When i am activating the client proxy class in ECC system after assigning it to the package,i am getting the below error.With local object($TMP) its working fine. I tried creating package using se80 as well as from sm30 using view V_TDEVC also and the package is created with no restrictions also .Kindly suggest what needs to be done to fix the issue.
    Activity terminated because errors occurred during package checks
    Message no. EU839
    Diagnosis
    Dictionary objects can only be activated if the package check is swithch ed on - provided they do not contain any package check errors.
    You will receive a list of the package check errors if you execute the package check within the appropriate dictionary tool. To do this, use the respective menu entry in the first menu of theen; corresponding dictionary tool.
    Procedure
    Keep note of the setting for the package check (system-wide property) in your SAP System; this setting defines in which form the package concept is to be applied.
    In particular, check whether the package in which the incorrect dictionary object is located has sufficient usage applications. Then, if necessary, create the missing usage applications.
    As soon as the package check errors have been removed, you must again activate the dictionary object.
    Thnx,
    Goutham

    Hi Bhuvan,
       Check Rashmi's response in this thread:
    Re: Error in package dictionary objects (Proxy activation)
    Regards,
    Ravi Kanth Talagana

  • How to make BOL as mandatory validation check

    Hi All,
    I have a requirement to make BOL field in ASN as mandatory and system should not allow to create 2nd ASN with same BOL number.
    Regards,
    CK

    Hi CK,
    The BOL number validation is not there in standard yet. ASN creation does not look for the BOL number. If you really want to have such a validation you could think of implementing the check within your implementation of the validation framework. You might have to introduce check in the custom validation profile and use the BADI /SCMB/BOL_VALFRMWRK to implement the validation check.
    This is only feasible  way you can meet your requirement.
    Thanks,
    Nikhil

  • Routing Consistency Check in batch ?

    Hey folks!
    A business requirement has been raised to perform a consistency check for all Routing Task Lists for a specific plant.  I'm aware of the consistency check within the Routing that can be performed online.  Anyone know of a batch/background job that can validate routings and report errors?
    The business case is as follows:  Reference Operation Sets are utilized within Routing Task Lists.  If a change is made to the Reference Operation Set (say add additional operations) and these additional operations conflict in the routing this ROS is utilized, this will cause a routing error.  Yet there is no way to identify this error until someone checks the routing or writes a production order against. 
    Any help on the above would be great.  Points are waiting to be awarded! 

    Nathan,
    I do not think there is a background program that can run to check for such inconsistency.
    However when MRP runs system will detect routing inconsistency & will display exception message against planned order.
    So nett result is MRP controller will know about this much before he converts planned order to production order.
    They can look for exception messages either under Tcode: MD04/ MD05 or collectively under MD06/MD07 group by exception message.
    Message 62 - Scheduling: Master data inconsistent is one such message & it falls under Exception group 4 in standard SAP.
    So if MRP controller checks Tcode : MD06 & limits selection criteria by exception group 4 messages he can nail down all such errors in advance.
    Thanks,
    Ram

  • Check authrozation problems in WebDynpro

    Hello,
    In SAPGUI there exists a tool for analysing authorization errors (go in a SAPGUI menu to System->Utilities->Display Authorization Checks or start transaction code SU53). The tool display which authorization check has failed and displays the current user setting for the failed authorization object. The tool is important e.g. for system adminstrators in order to quickly analyse authroization problems.
    In WebDynpro screens I didn't find that functionality. How would I analyse authorization problems for WebDynpro applications?
    Best regards,
    Matthias

    Hello, Matthias,
    I believe that when you have and AUTHORITY-CHECK within your WDA component, if this check is not successful, it will generate an entry on t-code SU53.
    If you need to display in your wda component the same information SU53 displays, I believe you'll need to develop it, because I think there's no such tool in WDA.
    Regards,
    Andre

  • Win PE x64: how to do a memory check?

    Is there an automate-able way to do a memory check within WinPE x64?  All the tools I see out there are either 32-bit (and consequently won't run in WinPE).  I'm using WinPE from the Win7 OPK, amd64 architecture.

    Is there an automate-able way to do a memory check within WinPE x64?  All the tools I see out there are either 32-bit (and consequently won't run in WinPE).  I'm using WinPE from the Win7 OPK, amd64 architecture.
    The only x64 native tool that I'm aware of would be
    Prime95 and then download the 64-bit client. While this is not per-se a memory diagnostic tool, when it's executed as a torture test you can use that mode to stress a system.
    Other than that I don't know any solution for a native x64 app for WindowsPE.
    Kind regards,
    Stephan Schwarz.
    If you one of these posts answered your question or issue, please click on "Mark as answer". If a post contained helpfull information, please be so kind to click on the "Vote as helpful" button :)

Maybe you are looking for

  • How can I display current iPhone GPS coordinates using compass app

    How can I display current iPhone GPS coordinates, when traveling overseas with no access of data or wifi using "iphone compass app"(Both the latitude and longitude) ?? if iphone compass app require any sort of data what alternative would there be? (t

  • Mid east and far east fonts in photoshop cs6

    How do I use right to left fonts in photoshop cs6, I have a client ho needs web banner ads in about 22 languages and some will require the head line to be in Hebrew, arabic, simplified Chinese, Korean and so on. What do I need to make it work?

  • Link from flash file/moving not working on a page

    I will apologize first for what maybe a very elementary questions. I was sent an swf file to add to a web page. I got the movie to run on some of the pages where I inserted it into a template and the template updated those pages. I think had to inser

  • BK134 Error-Co Account assignments have different profit centers

    I have a PO created sone 6 months back. It has multiple items where we used account assignment category K and P in various line items. Now when I am trying to do any transactions like MIGO/MIRO/Change of qty in PO the system throws an error " Co acco

  • LG Vortex - can't connect email server

    I'm having issues trying to connect to my email account with the LG Vortex. Just purchased yesterday. Keeps telling me I can't connect with server? I did verify my user name & password with IP provider. It is a pop server I'm technically challenged,