Regular expression not giving the required output.

Hi , I have msgs that look like this :
dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10
Im using the Regular expression to get 4 substrings of this msg
1-Bought|Sold
2-Quantity of shares (ex: 500)
3-Name of the stock (ex:Nile Cotton Ginning)
4-price (ex:14.9)
Here is my code , but the output returns the whole msg back :
select SMSID,SMSNO,CUSTOMERACCOUNTID,SENDDATE,ENTRYDATE,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
from SMSOUTMSG@bimsic s
where trunc(SENDDATE) = trunc(sysdate) -1
and exists (select 1 from PHONEDETAIL@bimsic p
            where s.CUSTOMERACCOUNTID = p.CUSTOMERACCOUNTID
            and SMSFLAG = 1);Thanks.

It does check it out
with t
as
select 'dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10' smstext from dual
select
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
from t

Similar Messages

  • HttpURLConnection is not giving the expected output.

    I am using HttpURLConnection to post a URL to a server which will return back an xml. I am using the following code and it's only returning a HTML page as output.
    Code :
    URL url = new URL(strURL);
    HttpURLConnection connection = (HttpURLConnection)url.openConnection();
    connection.setRequestProperty("Content-Type", "text/xml");
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
    out.write(sbContent.toString());
    out.flush();
    out.close();
    in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String inputLine = "";
    StringBuffer outputString=new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
         outputString.append(inputLine);
    in.close();               
    The outputString here returns a HTML, but it is suppose to return back an XML.
    Can anyone help me out in this.?
    Thanks,

    Hi,
    Yeah, I saw the logger and it's returning a HTML page which is the authorization page to enter the Server which I am posting the URL. It's not the HTML version of the XML file which I am expecting.
    Is the way which I am passing the session parameter correct? Please find below the code snippet for the method which I have.
    Thanks,
    Mala.S
    public Document parseFileLeaveDetails(String sDate, String eDate, String strUpi, String sessionParam) {
         String larsURLFromProp = ProjPortalIRIS4URLs.getIRIS4URLsFromProperty("LeaveDetails");
         BufferedReader in;
         Document doc = null;
    try {
         StringBuffer sbContent = new StringBuffer();
         sbContent.append("&start_dt=");
         sbContent.append(sDate);
         sbContent.append("&end_dt=");
         sbContent.append(eDate);
         sbContent.append(strUpi);
         sbContent.append("&SMSESSION=");
         sbContent.append(sessionParam);
         logger.debug("sbContent::"+sbContent);
         URL url = new URL(larsURLFromProp);
         logger.debug("The url is:::"+url);
         HttpURLConnection connection = (HttpURLConnection)url.openConnection();
         connection.setRequestProperty("Content-Type", "text/xml");
         connection.setDoOutput(true);
         connection.setRequestMethod("POST");
         OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
         out.write(sbContent.toString());
         out.flush();
         out.close();
         in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         String inputLine = "";
         StringBuffer outputString=new StringBuffer();
         while ((inputLine = in.readLine()) != null) {
         logger.debug("inputLine::::"+inputLine);
              outputString.append(inputLine);
         in.close();               
         doc = parseFileLeave(outputString.toString());
         } catch(MalformedURLException me) {
         logger.debug("MarformedException ::"+me.getMessage());
         } catch(IOException ioe) {
         logger.debug("IOException ::"+ioe.getMessage());
         return doc;
    }

  • Not getting the required output:

    BID BNAME BAUTHNAME
    687 the haunted house steve breckman
    692 the adventureof reny steve breckman
    672 the adventureof rosy steve breckman
    672 the adventureof niel steve breckman
    677 the dog zone steve houstin
    BID SID BTAKE BRET
    692 123 22-AUG-11 30-AUG-11
    672 124 22-SEP-11 30-SEP-11
    677 127 22-OCT-11 30-OCT-11
    677 129 22-DEC-11 30-DEC-11
    create or replace procedure book is
    cursor cur is select count(b.bid) bidd,b.bname bnn,bd.btake from books b,booksdate bd where b.bid=bd.bid group by b.bname,bd.btake;
    begin
    for rec in cur
    loop
    dbms_output.put_line(rec.bnn||'has been purchased'||rec.bidd||'times');
    end loop;
    end;
    the o/p should look like
    the bookname purchased 2 times
    the bookname purchased 1 time
    can anyone jus modify it?

    Maybe NOT TESTED! remember the [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:73891904732164]mantra
    with
    books as
    (select 687 bid,'the haunted house' bname,'steve breckman' bauthname from dual union all
    select 692,'the adventure of reny','steve breckman' from dual union all
    select 672,'the adventure of rosy','steve breckman' from dual union all
    select 672,'the adventure of niel','steve breckman' from dual union all
    select 677,'the dog zone','steve houstin' from dual
    borrowing as
    (select 692 bid,123 sid,to_date('22-AUG-11','DD-MON-YY') btake,to_date('30-AUG-11','DD-MON-YY') bret from dual union all
    select 672,124,to_date('22-SEP-11','DD-MON-YY'),to_date('30-SEP-11','DD-MON-YY') from dual union all
    select 677,127,to_date('22-OCT-11','DD-MON-YY'),to_date('30-OCT-11','DD-MON-YY') from dual union all
    select 677,129,to_date('22-DEC-11','DD-MON-YY'),to_date('30-DEC-11','DD-MON-YY') from dual
    select b.bname || ' borrowed ' || to_char(c.the_count) || decode(c.the_count,1,' time',' times')
      from books b,
           (select bid,count(*) the_count
              from borrowing
             group by bid
           ) c
    where b.bid = c.bidRegards
    Etbin

  • I m trying to make a jcombobox that has 3 colors red, yellow and green.........its a run time error.......caus i m not getting the required output

    * To change this license header, choose License Headers in Project Properties.
    * To change this template file, choose Tools | Templates
    * and open the template in the editor.
    package Exp4;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    * @author Gursimran
    public class combox extends JFrame implements ItemListener{
        public combox()
            JComboBox cb;
            setLayout(new GridLayout(10,10));
            cb= new JComboBox<>();
            cb.addItem("Red");
            cb.addItem("Green");
            cb.addItem("Blue");
            add(cb);
            cb.addItemListener(this);
            setVisible(true);
            setSize(400,400);
        public static void main(String[] args)
            combox obj=new combox();
        @Override
        public void itemStateChanged(ItemEvent e)
            if(e.getItemSelectable().equals(0))
                        this.getContentPane().setBackground(Color.red);
            else if(e.getItemSelectable().equals(1))
                        this.getContentPane().setBackground(Color.green);

    Please post the exact error message you get.

  • Match Regular Expression not returning submatches.

    I am having an issue with Match Regular Expression not returning the appropriate number of submatches.  My string is as follows:
    DATAM    995000    1.75    0.007    -67.47    24.493    99.072
    The spaces are tabs and the length is not fixed so simple string manipulation is out of the question.  The regular expression I was trying is as follows:
    (?<=\t)[0-9\.\-]*(?=(\t|$))
    It successfully returns Whole Match as the first number but no submatches are returned.  I've tried simpler expressions which work in Matlab and EditPad Pro such as [0-9.-]* but never got the same answer in Labview.
    What is going on?

    Here is an image of the VI.  The top portion is the input from our Licor 7000.  The bottom portion is the bit of code I'm having problems with.
    Attachments:
    matchregularexpression.jpg ‏336 KB

  • Unix Log Monitoring regular expression not picking up alerts

    Hi,
    We are moving our unix monitoring to SCOM 2012 SP1 rollup 4.
    What I have got working is indvidual alert logging of Unix Log alerts by exporting the MP and changing the <IndividualAlerts> value to true and removing the suppression xml section then reimporting the MP.
    What I am trying to do is use the regular expression to peform the suppression of specific event (such as event codes).
    The expression is:
    ((?i:warning)(?!(.*1222)|(.*1001)))
    ie Search the log for "warning" (not case sensitive) then check if events 1222 or 1001 exist if so return no match, if they dont exist then return true. 
    I use the built in test function in SCOM when creating the rule and the tests come back as expected but when I inject test lines into the unix log, no alerts get generted.
    I suspect it could be the syntax not being accepted on the system (its running RedHat 6 )
    I have tested this with regex tools and works.
    When I try and test it on the server i get:
    [root@bld02 ~]# grep ((?i:Warning)(?!(.*1222)|(.*1001))) /var/log/messages
    -bash: !: event not found
    [root@bld02 ~]# tail /var/log/messages
    Nov 13 15:07:26 bld02 root: SCOM Test Warning Event ID 1001 Round 18
    Nov 13 15:07:29 bld02 root: SCOM Test Warning Event ID 1000 Round 18
    Nov 13 15:07:35 bld02 root: SCOM Test Warning Event ID 1002 Round 18
    So I am expecting 2 alerts to be generated.
    SCOM tests to show expression working:
    Test 1 Matching
    Test 2 to exclude
    Need some help with this, Thankyou in advance :)

    Hello,
    Here's an example of modifying the MP to exclude particular events.  Firstly, I created a log file rule using the MP template that is fairly inclusive - matching the string Warning (with either a lower or upper case W).
    I then exported the MP, and modified the rule.  I set the IndividualAlerts = true and removed the AlertSuppression element, so that every matched line will fire a unique alert.  You don't have to remove the AlertSuppression, but you should use
    Individual alerts so that the exclusion logic doesn't exclude concurrent events that you actually want to match.
    Implementing the exclusion logic involves the addition of a System.ExpressionFilter definition in the rule. This will use a conditional evaluation of the //row element of the data item.  Here's an example of a dataitem matching an individual row:
    <DataItem type="System.Event.Data"time="2013-11-15T10:33:14.8839662-08:00"sourceHealthServiceId="667FF365-70DD-6607-5B66-F9F95253B29F">
    <EventOriginId>{86AB962D-2F44-29FD-A909-B99FF6FEB2C5}</EventOriginId>
    <PublisherId>{EC7EA4B1-0EA5-7E8E-701F-82FEF3367BC4}</PublisherId>
    <PublisherName>WSManEventProvider</PublisherName>
    <EventSourceName>WSManEventProvider</EventSourceName>
    <Channel>WSManEventProvider</Channel>
    <LoggingComputer/>
    <EventNumber>0</EventNumber>
    <EventCategory>3</EventCategory>
    <EventLevel>0</EventLevel>
    <UserName/>
    <RawDescription>Detected Entry: warning 1002</RawDescription>
    <CollectDescription Type="Boolean">true</CollectDescription>
    <EventData>
    <DataItem type="SCXLogProviderDataSourceData"time="2013-11-15T10:33:14.8839662-08:00"sourceHealthServiceId="667FF365-70DD-6607-5B66-F9F95253B29F">
    <SCXLogProviderDataSourceData>
    <row>warning 1002</row>
    </SCXLogProviderDataSourceData>
    </DataItem>
    </EventData>
    <EventDisplayNumber>0</EventDisplayNumber>
    <EventDescription>Detected Entry: warning 1002</EventDescription>
    </DataItem>
    Here is the rule in the MP XML.  The <ConditionDetection>...</ConditionDetection> content was what I added to do the exclusion filtering:
    <Rule ID="LogFileTemplate_66b86eaded094c309ffd2631b8367a32.Alert" Enabled="false" Target="Unix!Microsoft.Unix.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
    <Category>EventCollection</Category>
    <DataSources>
    <DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.VarPriv.DataSource">
    <Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
    <LogFile>/tmp/test</LogFile>
    <UserName>$RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/UserName$</UserName>
    <Password>$RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/Password$</Password>
    <RegExpFilter>warning</RegExpFilter>
    <IndividualAlerts>true</IndividualAlerts>
    </DataSource>
    </DataSources>
    <ConditionDetection TypeID="System!System.ExpressionFilter" ID="Filter">
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">//row</XPathQuery>
    </ValueExpression>
    <Operator>DoesNotContainSubstring</Operator>
    <Pattern>1001</Pattern>
    </RegExExpression>
    </Expression>
    </ConditionDetection>
    <WriteActions>
    <WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
    <Priority>1</Priority>
    <Severity>2</Severity>
    <AlertName>Log File Alert: ExclusionExample</AlertName>
    <AlertDescription>$Data/EventDescription$</AlertDescription>
    </WriteAction>
    </WriteActions>
    </Rule>
    I traced this with the Workflow Analyzer as I tested, which shows the logic being applied.  Here is the exclusion happening:
    Here's more info on the definition of an ExpressionFilter:
    http://msdn.microsoft.com/en-us/library/ee692979.aspx
    And more information on Regular Expressions in MPs:
    http://support.microsoft.com/kb/2702651/en-us
    You can also have multiple Expressions in the ExpressionFilter joined by OR or AND operators.
    Also, if you are comfortable with the MP authoring, you can just skip the step of creating the rules in the MP template and just author your own MP with the VSAE tool:
    http://social.technet.microsoft.com/wiki/contents/articles/18085.scom-2012-authoring-unixlinux-log-file-monitoring-rules.aspx
    www.operatingquadrant.com

  • Why is RoboHelp not displaying the required data content of .chm when linked as Help in my App ?

    Gorgeous Hello All,
    Has anyone encountered the below-said show- stopper. Another BIG TIME help required, will help me in tremendous fashion.
    Am using Adobe RoboHelp, Version 10 and IE version being 10.
    In my local machine :
    1.)I have completed my technical writing courtesy Design editor
    2.)Generating chm File : View -> Pods –> Single Source Layouts -> Right Click on Microsoft HTML Help -> Tagged Set as Primary Layout
    3.)Generating Primary Layout : File -> Generate -> Primary Layout (Microsoft HTML Help)…
    4.)Viewing Primary Layout : File -> View -> Primary Layout
    Everything works FANTASTICALLY till here with the required output (as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary and with the data contents)
    Show Stopper, At my Application Server :
    5.)I copy the entire robohelp project folder from my local machine to my application Server path
    6.)My Application has been developed in ASP .NET, Version 4.0.
    7.)Help link has been created in this application wherein here the file name of < >.chm has been linked in the code to be read from the  Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\
    8.)I login into my above-said application -> click on the Help page -> Displays the required structure /buttons as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary
    a.)Clicking on any of the Books or Topics appearing beneath Contents : The System prompts out with error cautionary message called “ Navigation to the webpage was cancelled. What you can try: Retype the address ”
    *** This is a huge SHOW-STOPPER. I spent plenty of hours on this, but unable to deciper with a solution at all) ***
    ( Note : Am able to directly open and read the required data contents by Clicking on any of the Books or Topics appearing beneath Contents from Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\ < >.chm )
    Why is the RoboHelp not displaying the required data contents of <>.chm when linked as Help in my Application ?
    Cheese – Vipin Nambiar

    If you looked at the error message and searched the forum, you should find the answer as this is a problem that started in 2005. You should not run CHM files from a server and cannot without editing the users registry. See the page below.
    http://www.grainge.org/pages/authoring/chm_mspatch/896358.htm
    All along your questions have been based on webhelp, why suddenly are we going go CHMs.
    See Snippets on my site for the correct form of help to use in different scenarios.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Not getting the expected output in report, run throughapps

    hi,
    when i run the report through apps, there are some records missing. But, i executed the same query in TOAD, which is used in the data model of the report, and i got the expected output. But, the same, when run through apps, not giving the result.
    Can anybody please help me in this regard?
    Thanks,
    maschender

    You should probably ask in
    PL/SQL
    Note: Make Sure you post your table structure, your sample query and expected output.

  • How to reterive the required output

    i want to extract data from two different tables and to create a single table.
    first table is gc1
    idx suburb_form
    1 ALBANY
    2 PERTH
    3 ALBANY CBD
    4 PERTH CBD
    SECOND TABLE IS CITIES
    ALBANY
    PERTH
    I WANT TO CREATE A TABLE WHICH SHOULD CONTAIN ALL RECORDS FROM THE GC1 TABLE
    I HAVE WRITTEN QUERY LIKE THIS BUT IT DOES NOT WORK.
    CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A
    WHERE      exists(select NULL from POI.SH_POI_SMALL_CITIES C where upper(trim(A.SUBURB_FORM))=C.CITY OR RTRIM(A.SUBURB_FORM,' CBD')) =C.CITY)     
    PLEASE CAN ANYBODY HELP ME IN ORDER TO GET THE REQUIRED OUTPUT.
    tHANKS

    CONTAIN ALL RECORDS FROM THE GC1 TABLEIn these case, wouldnt just selecting GC1 be sufficient?
    CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A

  • Problem of configuration the requirement output control ?

    Hi ,
    i am now in a very urgent situation that is the system does not create the message type after executing the transaction VL31N.
    In detail :
       I have used the transaction NACE to configure the "Requirements output control" and i have created 3 message type (Z1 , Z2, Z3)  ( type V6 : handling unit) and i have coded for each of them to check the requirements for creating the messsage type ( the message type will be created if the sy=subrc = 0 after the forms are executed.
    FORM KOBEV_Z1.
    Check condition from the structure  komkbv6
    if cond Ok
      sy-subrc = 0.
    endif.
    ENDFORM KOBEV_Z1.
      FORM KOBEV_Z2.
    Check condition from the structure  komkbv6
    if cond Ok
      sy-subrc = 0.
    endif.
      ENDFORM KOBEV_Z2.
      FORM KOBEV_Z3.
    Check condition from the structure  komkbv6
    if cond Ok
      sy-subrc = 0.
    endif.
      ENDFORM KOBEV_Z3.
    But in fact , even if i have put the sy-subrc = 0 for each of them or for all , the message type was not created as i need .
    Result :
      if the message type is created automatically after executing the KOBEV or KOBEV , a printing program will be called to print the SAPscript form , but till now , i can not do that , to print the form i have to created the message type by hand ..
    Is the something wrong in the system ? How can i configure them to run well ?
    Please help me .
    PS : I will reward immediately and i am waiting
    Thank you very much

    Hi,
    If you are supposed to bring across characteristic values to your target, then you will not be able to jump from the result line. The configuration expects that the values of the characteristic marked as being used in the jump are filled with unique values. When you use the result line as a source for your jump, the values in the result line will most likely be based on the sum of multiple characteristic values.
    Hth,
    -Jacob

  • The network backup disk does not support the required AFP features.

    I am trying to set up timeMachine on my new mac book pro over a regular home network on a shared network drive. I have tried everything but I keep getting "The network backup disk does not support the required AFP features." I am on lion with the lateset unpdate (10.7.4). I have even tried creating sparebundles on from tutorial that I have found online, but non of the hacks that I have tried seemed to work. Have anyone figured out a way around this? If so, can you share, it will be greatful. I could just buy the time capsule that apple sells but I already have a 2TB internal HDD in an old pc that's hosting my file server so no need for the time capsule hardware. Let me know if there is a way around this thank.

    ookakaa wrote:
    1) Apple time capsule
    Or USB drive connected to a Time Capsule
    2) NAS with the latest firmware
    Not just any NAS.  It has to support the communications protocols used by Time Machine (some involving security, some about error detection and handling).  Some NASs never supported TM; some that worked on Leopard never got updated for Snow Leopard; and some that worked on Snow Leopard still haven't been updated for Lion.
    4) Another networked mac (not a pc)
    A Mac running Leopard 10.5.6 or later.
    Are these the only options?
    Those are the only options supported by Apple.  Some other destinations may work, to some degree, in some circumstances.  Some require "hacks" or other workarounds.  Most are somewhat unreliable, and, may stop working at all on the next OSX upgrade.
    Side note. I've been seeing some online post of how some people are setting up TM on a networked PC drive by setting up a sparsebundle like this site:
    Any thoughts? I have tried some of these examples and it don't seem to work...
    Some of those may have worked at one time, in some circumstances (2 are dated before Lion was released, the other is undated). 
    Wireless backups are tricky enough to a supported destination, with all the security and error detection and handling Apple has been able to employ.   If your backups are important to you, don't trust them to a marginal scheme.
    And, in any event, don't trust your backups to a single piece of hardware or software.  See Time Machine - Frequently Asked Question #27 for an explanation and some suggestions.

  • PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12

    Hi All,
    RDBMS:10.2.0.3.0
    Oracle Apps :12.0.4
    OS:AIX 5.3
    Problem Description:
    We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
    Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
    The error message what was shown is as below:
    "Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
    Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
    could anyone please share such an experience encountered for resolution..
    Would appreciate an early response..
    Thanks for your time!
    Regards,

    I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
    Check that you can see the output from apps through the viewer (the report may not hav output anything)
    Check whether you can print anything on that printer from apps.
    May also be worth checking to see if you can print to another printer from this report.

  • Scheduling Agreement -Schedule line should not pass the requirement to MRP

    Hi Friends!
    As we all know the scheduling agreements is outline agreement with future schedule lines, with this system will  pass the requirements to MRP for the schedule line which is even after 5 years, so my requirement is  if the schedule line date is above 15 days from the current date then requirement should not pass to MRP. 
    solution which we gave is, SA initially will determine the schedule line category as  CN (which will not transfer the requirement) and  a batch job program will run daily and it will check for each schedule line if any of the schedule is with in the 15 days from the current date then it will change the schedule line category from CN to CP. 
    Now the problem is , by using Batch Job which program I have to call to change the schedule line category?????
    1. we tried BAPI_SALESORDER_CHANGE but when we are changing the CN to CP it is not performing ATP where as if we do manually it is performing.
    2. we tried BDC but here also we facing some strange problem i.e. while recording the ATP screen is not populating where it is coming while doing manual.
    Can someone let me know which one program we should call in Batch job to do this change.
    Regards
    Nath

    Hi nath,
    i also failed in changing shedule line category in userexit and in BAPI.
    in one case, i succeded in doing it with a bdc after MV45AFZZ / userexit_save just bevore the datas are reset but after the commit-work is processed.
    the other possibility is, to change the accepted amount in userexit RV03VFZZ / USEREXIT_AVAILABILITY_OUT.
    3. possibility is, to block the order with a delivery - block , same as the credit-control-block. This block can be set in MV45AFZZ or perhaps in BAPI too.
    hans

  • HT3275 Since updating OS to Mountain Lion from leopard, I get the following error message when trying to backup with time machine on external drive.  Could not complete backup to media share.  The network backup disk does not support the required AFP feat

    Since updating OS to Mountain Lion from leopard, I get the following error message when trying to backup with time machine on external drive.  "Could not complete backup to media share.  The network backup disk does not support the required AFP features."  What are AFP features and how do I get Time Machine to backup to my current external backup?

    This means that your NAS does not support the required encryption. Update your NAS to the latest firmware or ditch it and buy a Time Capsule (they are the most reliable when using TM).

  • I have just upgraded from Elements/Premiere elements 11 to version 12. I am running on a PC with Windows 7. When I try to run video from the existing catalogue or video newly imported I get a window stating "....system does not have the required compresso

    I have just upgraded from Elements/Premiere elements 11 to version 12. I am running on a PC with Windows 7. When I try to run video from the existing catalogue or video newly imported I get a window stating "....system does not have the required compressor/decompressor (codec) installed" Where has it gone? Where do I get a new one? I am getting REALLY REALLY fed up with trying to find an answer!!!!!!!!

    Try to disable hardware acceleration in Firefox.
    *Firefox > Preferences > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • BAPI or FM to get open sales orders to material like TC VA05N

    Hi, i'm searching for a bapi or fm to get a list with all open sales orders to a material like the tc va05n this do. Maybe some of you know such a bapi or fm. I tried the fm SD_SELECT_SALES_DOCUMENTS but i don't get the result i hoped. Would be happy

  • Error 106 when Installing Photoshop 7?

    Hello, I don't know much about computers and my english is not perfect, so please bear with me! I just bought a netbook with Windows 7 Starter OS, and since my new netbook doesn't have a CD drive, and I was trying to install Photoshop 7 on here throu

  • Data required of Vendor Payment Incoming / Outgoing from Bank

    Hi, We want to fatch the data of Vendor Payment, either Incoming or Outgoing from Bank according to Business Area. If any Standard Report is available for it, please let me know... otherwise, tell me the Tables in which these data will be flow... ple

  • OCR and Reducing file size

    I have a large document (a book) that I am trying to scan. I will be scanning it chapter by chapter. The book was printed in grayscale, so I don't have a pure BLACK AND WHITE document. I would like to optimize the file size, but I have a few question

  • IE8 and HTML5

    I just updated an eLearning lesson from CP5 to CP6 and output it to HTML 5. Aside from a few minor adjustments it worked perfectly. I can't tell you how impressed I was. My manager ran the lesson in her default browser which IE8 and it isn't supporti