Document rule based classification

from the example in oracle text developers guide i tried to build a rule based document classification, using the code given below:
create or replace package classifier as
procedure this;
end;
show errors
create or replace package body classifier as
procedure this
is
v_document     blob;
v_item          number;
v_doc           number;
begin
for doc in (select document_id, content from documents)
     loop
          v_document :=doc.content;
          v_item:=0;
          v_doc:=doc.document_id;
          for c in (select category_id, category_name from docs_cats_rule_based_class
               where matches(query,v_document)>0)
          loop
               v_item:=v_item +1;
               insert into doc_cat_rule_based_class values (doc.document_id, category_id);
          end loop;
     end loop;
end this;
end;
show errors
exec classifier.this
this gives the following errors:
package classifier Compiled.
line 5: SQLPLUS Command Skipped: show errors
package body Compiled.
line 32: SQLPLUS Command Skipped: show errors
Error starting at line 33 in command:
exec classifier.this
Error report:
ORA-04063: package body "STARDOC.CLASSIFIER" has errors
ORA-06508: PL/SQL: could not find program unit being called: "STARDOC.CLASSIFIER"
ORA-06512: at line 1
i think i am missing some grant to package. please help!

What version of Oracle are you using? Did you create the required tables and index in the earlier steps? What did you run it from? It appears that you did not run it from SQL*Plus. Please see the following demonstration that shows that it works fine on Oracle 10g when run from SQL*Plus with minimal privileges. I did not use any data.
SCOTT@10gXE> CREATE USER stardoc IDENTIFIED BY stardoc
  2  /
User created.
SCOTT@10gXE> GRANT CONNECT, RESOURCE TO stardoc
  2  /
Grant succeeded.
SCOTT@10gXE> CONNECT stardoc/stardoc
Connected.
STARDOC@10gXE>
STARDOC@10gXE> create table news_table
  2    (tk    number primary key not null,
  3       title varchar2(1000),
  4       text  clob)
  5  /
Table created.
STARDOC@10gXE> create table news_categories
  2    (queryid  number primary key not null,
  3       category varchar2(100),
  4       query      varchar2(2000))
  5  /
Table created.
STARDOC@10gXE> create table news_id_cat
  2    (tk         number,
  3       category_id number)
  4  /
Table created.
STARDOC@10gXE> create index news_cat_idx on news_categories (query)
  2  indextype is ctxsys.ctxrule
  3  /
Index created.
STARDOC@10gXE> create or replace package classifier
  2  as
  3    procedure this;
  4  end classifier;
  5  /
Package created.
STARDOC@10gXE> show errors
No errors.
STARDOC@10gXE> create or replace package body classifier
  2  as
  3    procedure this
  4    is
  5        v_document    clob;
  6        v_item        number;
  7        v_doc            number;
  8    begin
  9        for doc in (select tk, text from news_table)
10        loop
11          v_document := doc.text;
12          v_item := 0;
13          v_doc  := doc.tk;
14          for c in
15            (select queryid, category from news_categories
16             where matches (query, v_document) > 0)
17          loop
18             v_item := v_item + 1;
19             insert into news_id_cat values (doc.tk,c.queryid);
20          end loop;
21        end loop;
22    end this;
23  end classifier;
24  /
Package body created.
STARDOC@10gXE> show errors
No errors.
STARDOC@10gXE> exec classifier.this
PL/SQL procedure successfully completed.
STARDOC@10gXE>

Similar Messages

  • Rule based classification  errors in creating CLASSIFIER.THIS

    package body "STARDOC".classifier as
    procedure this
    is
    v_document     blob;
    v_item          number;
    v_doc           number;
    begin
    for doc in (select document_id, content from documents)
         loop
              v_document :=doc.content;
              v_item:=0;
              v_doc:=doc.document_id;
         for c in (select category_id, category_name from doc_cats_rule_based_class
                   where MATCHES (doc_cats_rule_based_class.QUERY, v_document)>0)
              loop
                   v_item:=v_item +1;
                   insert into doc_cat_rule_based_class values (c.document_id, c.category_id);
              end loop;
         end loop;
    end this;
    end;
    Errors:
    Error     1     PLS-00306: wrong number or types of arguments in call to 'MATCHES'     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     17     10     
    Error     2     PL/SQL: ORA-00904: "MATCHES": invalid identifier     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     17     10     
    Error     3     PL/SQL: SQL Statement ignored     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     16     11     
    Error     4     PLS-00364: loop index variable 'C' use is invalid     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     20     64     
    Error     5     PL/SQL: ORA-00984: column not allowed here     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     20     66     
    Error     6     PL/SQL: SQL Statement ignored     ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER*     20     4     
    i store the documents in Documents(document_id,content) table, rules in
    doc_cats_rule_based_class(CATEGORY_ID,CATEGORY_NAME,QUERY)
    and store the assigned document-category in doc_cat_rule_based_class(DOCUMENT_ID,CATEGORY_ID).
    Please Help

    I believe the problem is with trying to pass a value of blob datatype as a parameter to matches. Try using utl_cast_to_varchar2 as demonstrated below.
    SCOTT@10gXE> CREATE TABLE Documents
      2    (document_id    NUMBER,
      3       content        BLOB)
      4  /
    Table created.
    SCOTT@10gXE> INSERT INTO documents VALUES (1, UTL_RAW.CAST_TO_RAW ('contents of document'))
      2  /
    1 row created.
    SCOTT@10gXE> CREATE TABLE doc_cats_rule_based_class
      2    (CATEGORY_ID    NUMBER,
      3       CATEGORY_NAME  VARCHAR2 (15),
      4       QUERY            VARCHAR2 (30))
      5  /
    Table created.
    SCOTT@10gXE> INSERT INTO doc_cats_rule_based_class VALUES (1, 'test_cat', 'contents OR document')
      2  /
    1 row created.
    SCOTT@10gXE> CREATE INDEX your_index ON doc_cats_rule_based_class (query)
      2  INDEXTYPE IS CTXSYS.CTXRULE
      3  /
    Index created.
    SCOTT@10gXE> CREATE TABLE doc_cat_rule_based_class
      2    (DOCUMENT_ID    NUMBER,
      3       CATEGORY_ID    NUMBER)
      4  /
    Table created.
    SCOTT@10gXE> CREATE OR REPLACE package classifier as
      2    procedure this;
      3  end classifier;
      4  /
    Package created.
    SCOTT@10gXE> SHOW ERRORS
    No errors.
    SCOTT@10gXE> CREATE OR REPLACE package body classifier as
      2    procedure this
      3    is
      4    v_document blob;
      5    v_item number;
      6    v_doc number;
      7    begin
      8        for doc in (select document_id, content from documents)
      9        loop
    10          v_document :=doc.content;
    11          v_item:=0;
    12          v_doc:=doc.document_id;
    13          for c in (select category_id, category_name from doc_cats_rule_based_class
    14                 where MATCHES (doc_cats_rule_based_class.QUERY, UTL_RAW.CAST_TO_VARCHAR2 (v_document))>0)
    15          loop
    16            v_item:=v_item +1;
    17            insert into doc_cat_rule_based_class values (doc.document_id, c.category_id);
    18          end loop;
    19        end loop;
    20    end this;
    21  end classifier;
    22  /
    Package body created.
    SCOTT@10gXE> SHOW ERRORS
    No errors.
    SCOTT@10gXE> EXECUTE classifier.this
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> SELECT * FROM doc_cat_rule_based_class
      2  /
    DOCUMENT_ID CATEGORY_ID
              1           1
    SCOTT@10gXE>

  • Rule based classification errors in creating CLASSIFIER.THIS help required

    package body "STARDOC".classifier as
    procedure this
    is
    v_document blob;
    v_item number;
    v_doc number;
    begin
    for doc in (select document_id, content from documents)
    loop
    v_document :=doc.content;
    v_item:=0;
    v_doc:=doc.document_id;
    for c in (select category_id, category_name from doc_cats_rule_based_class
    where MATCHES (doc_cats_rule_based_class.QUERY, v_document)>0)
    loop
    v_item:=v_item +1;
    insert into doc_cat_rule_based_class values (c.document_id, c.category_id);
    end loop;
    end loop;
    end this;
    end;
    Errors:
    Error 1 PLS-00306: wrong number or types of arguments in call to 'MATCHES' ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 17 10
    Error 2 PL/SQL: ORA-00904: "MATCHES": invalid identifier ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 17 10
    Error 3 PL/SQL: SQL Statement ignored ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 16 11
    Error 4 PLS-00364: loop index variable 'C' use is invalid ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 20 64
    Error 5 PL/SQL: ORA-00984: column not allowed here ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 20 66
    Error 6 PL/SQL: SQL Statement ignored ORACLE://stardoc.(Local Database)/Package Body/STARDOC/CLASSIFIER* 20 4
    i store the documents in Documents(document_id,content) table, rules in
    doc_cats_rule_based_class(CATEGORY_ID,CATEGORY_NAME,QUERY)
    and store the assigned document-category in doc_cat_rule_based_class(DOCUMENT_ID,CATEGORY_ID).
    Please Help why errors are occurring.

    Have you created an index on your query column?
    create index doc_cats_rule_based_class_idx on doc_cats_rule_based_class(query)
    indextype is ctxsys.ctxrule;

  • Tip on Using "Folder" for performing Query Based Classification

    In setting up a TREX taxonomy for one of our intranet sites we concluded that the folder structure used by the web developers really helped classify the documents at a higher than an 80% level.  It seems that in many cases, the intranet, outlook public folders, or LAN folders will be organized such that the title of the folder is very valuable in classifying what is in it.
    After many searches and false starts, I found something that is so simple and elegant, I had to share it here.
    In the Taxonomy Query Builder there is a property "Folder".  Unlike the property "Content" which has a "contains" operator, this one is a "Is" or "Is Not" so it seemed like it might be hard to use.
    What I found is that it automatically put an * at the end of whatever we entered and if we put an * in the beginning, it seemed to find the folder consistently.
    So for a three level taxonomy such as:
    -- Business
      Customer Support
       Product information
    where you have folders /Business/CustSupport/ProdInfo you use a three level taxonomy.
    For the business I put in a Query:
      -- Folder is_not PassTheIsNotTestSoEverythingIsClassified
    That meant everything was included at the root level no matter what.  (i.e. I didn't want 'documents to be classified' to contain anything.)
    The query for the Customer Support level of the taxonomy was:
       -- Folder is *CustSupport
      which pulls in any document that is in the folder that contains CustSupport
    The query for the next level was:
       -- Folder is *ProdInfo
      which pulls in any document that is in the folder that contains ProdInfo
    As the classification engine works, items that pass all three test are put in the most detailed folder.  You can have as many taxonomy nodes at any level as you need and if they don't pass any, they are kept at the root of last level they did pass.
    You end up with an amazingly simple classification scheme that can handle a big taxonomy.  To the extent your folders are not organized like your taxonomy or are not related logically, they you need to add in other queries using the document contents, or other fields available for indexing.   This is where the 80-20 rule kicks in, you still need to work hard to get that last 20%.
    Let me know if this approach helps anyone.

    HI
    r u trying to define properties at the document level then it doesnot works because metadata of KM and metadata of document are different.
    u can define pre-defined properties at the folder level in KM.
    why dont you use example based classification as u train ur taxonomies with example and it inturn index furher document automatically based on your example document.
    But it still deponds upon individual requirements.
    Regards,
    Vijay.

  • APO Rule based ATP for RA Repair

    Hey,
    Could you please help me to turn on rule based ATP for document type RA outbound?
    The senario is as follows:
    Customer returns to my company the product.
    My company has multiple locations (plants) for replacement products. I would like to determine the replacement product location with rule-based ATP. We use rule-based ATP for the sales site w/o issues.
    I set up in configuration:
    ZRA (copy of RA) with business transaction RMA(to trigger the rule based ATP)
    Assigned ZRA / Item usage = R104/ PSTYV= ZXNN (item category allows rule based ATP).
    ZRA     ZNO1     R104     IRRA     ZXNN
    I also did the below rules based ATP item catgegory determination:
    AUART        MTPOS         VWPOS        UEPST         PSTYV
    ZRA     ZNO1     APO0     ZTP1     ZXNN
    ZRA     ZNO1     APO1          ZTP1
    ZRA     ZNO1     APO1     ZXNN     ZTP1
    ZRA     ZNO1     APO2     ZTP1     ZXNN
    When I create with VA01 a ZRA order and add a replacement plant then I get this message:
    The ATP rules are not called up for item 000030 - Message no. /SAPAPO/ATP147
    But when I go from the "APO Availability Check" view to the Rule then I see my rules determined.
    The detail message also says that the system "things" the line was already delivered, which is not the case.
    Could you please tell me if it is possible to combine rule-based ATP with the RA replacement process and if yes how to do it?
    Thanks,
    Sabine

    Check OSS Note 571044 - RBA: Use of calculation profiles and rules
    Regards,

  • Example based classification not working

    Hi,
    I am trying to set up example based classification.
    I have done the below steps
    1) Created an index
    2) Assigned data sources
    3) Created Taxonomy and categories
    4) Trained "test.txt" with word "test" inside to a specific taxonomy category as defined above.
    When i upload another file which is a copy of "test.txt" using Content Admin --> KM Content, it is not classifying automatically. I have done a re-index after the same also.
    I am not sure which part i am missing out?
    I have also set up QBT which works fine.
    Appreciate your inputs.
    Regards
    PN

    After a lot of training on sample documents the classification worked

  • Rule Based GATP

    Dear All,
    I'm using Rule Based ATP check for Sales Order.
    When I conduct ATP simulation in APO (SCM 4.0), the results are perfect. the check triggers the rule and displays schedule lines as per rule. (Location substitution).
    But when I conduct availability check in Sales order (R/3 4.7), the results are completely different. For Sales Order at Warehouse, it confirms all the requirement irespective of transportation lane lead time from plant to warehouse. Moreover, when I save the sales order, the PReqs created at Warehouse are in future instead of PReqrel in past. (compared to requirement date). Ideally, the Preqs should have same date as that of requirement date and Preqrel should be created after deducting Transporation lead time and GR/GI time.
    I would like to know, what parameters in Sales Order document are used to trigger the rule and how is it different from ATP simulation.
    Thank you in advance.
    Regards,
    Bipin K Umarale

    Hi
    Take a look at the following SAP Note, it gives all the FAQ's on ATP configuration in R/3, hopefully it will help you with your problem:
    [Note 547512 - FAQ: Customizing of the ATP in R/3|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=547512&nlang=EN&smpsrv=https%3a%2f%2fwebsmp208%2esap-ag%2ede]
    Regards
    Ian

  • Delivery & Invoice for Rules based ATP check materials

    Hi All,
    We have an query regarding rules based ATP , delivery & Invoicing . When we create a SO ( say we have only one line item 10 , with quantity 100 created at Plant P1 , item category TAN ) , ATP confirmation happens   ,based on the stock & receipts ( say we have confirmation of 60 units at Plant P1  ) . Since we are using RBATP , the remaining 40 quantity is being confirmed at Plant P2.  Now the order will have multiple line items 10 the original line item but with different item category TAPA and also two more line items  for quantity of 60 & 40  for plants P1 & Plants P2 respectively with item category TAN. This is the standard functionality.
    My question is , Will there be any issues with respect to delivery & Invoicing  as there are multiple plants and different item categories.
    Thanks & Regards
    Surendra

    Hi,
    With respect  to delivery you will have differnt delivey document because your shipping point is going to be different.
    Regarding Billing you can combine the differnet delivey document if the delivery document created using the sales order contains the same payer,payment terms, billing date,material group and Incoterms.
    Apart from the above you will not face anyproblem by having 2 diiferent item category for the above said scenario..
    Regards,
    V.Devaselvam.

  • Documentation about Rule-Based Account Assignment Distribution

    Hello dear PSM Experts,
    In our project (using ECC6), we want to split in a PO the FM account assignment between several lines, according to the fund type of the initial account assignment (based from an referenced earmarked document).
    After looking in the customizing and in ECC6 PSM Public Sector Management
    Release Notes, we are investigating Documentation about Rule-Based Account Assignment Distribution.
    Can anybody provides me a link to a documentation, if any?
    Otherwise, I would greatly appreciate any help to use this functionality.
    Regards,
    François

    Hello,
    I am configuring this functionality currently in an ECC 6.0 environment for a public sector organization and have had an issue with the FMSPLITMAINT transaction.  When attempting to create a rule the 'create' 'copy' 'change' options are not available.
    Configuration has already been completed for Field Profiles, Action Profiles, & Rule Groups.
    The olny documentation I have been able to find was an appendix to the SAP Grants Management - Grantee course.
    Please respond if you there is any additional documentation which may be of assistance.  I have already tried notes: 991661 and 991962.
    Thank you

  • Query Based Classification Issue

    Hi all,
    I have got a scenario where I have to classify some project related documents based on the Project Name, Document Type, Module etc. I believe the best way to do this is using Query Based Taxonomies.
    But, If I dont have a naming template for the documents and cant assign predefined propertied to documents, what is the best alternative to get the classification done?
    Thanks and Regards,
    Ajay.

    HI
    r u trying to define properties at the document level then it doesnot works because metadata of KM and metadata of document are different.
    u can define pre-defined properties at the folder level in KM.
    why dont you use example based classification as u train ur taxonomies with example and it inturn index furher document automatically based on your example document.
    But it still deponds upon individual requirements.
    Regards,
    Vijay.

  • Rule based ATP is not working for Components

    Hi All,
    Our requirement is to do availability check through APO for Sales order created in ECC,so we are using gATP.
    Requirement: We are creating salesorder for BOM header (Sales BOM) and avaialbility check should happen for components i.e. Product avalaibility & Rule based substitution.
    Issue: Product availiabilty is working for components but rules based substituion is working,  mean Rules are not getting determind for components.
    Settings:
    - Header doesnot exist in APO and compnents do exist in APO
    - Availability check is not enabled for header item category and enabled for Item category for components
    - Rules have been created for Components in APO
    - Rule base ATP is activated in Check instructions
    We have also tried MATP for this i.e. PPM created in APO but still didn't get the desired result.
    If we create salesorder for the component material directly then Rule based ATP is happening, so for components Rule based ATP is not working.
    How do we enable enable Rulesbased ATP for components, i mean is there any different way to do the same.
    Thanks for help.
    Regards,
    Jagadeesh

    Hi Jagdeesh,
    If you are creating BOM in ECC and CIFing PPM of FG/Header material to APO, I think you need to CIF Header material, too, with material integration model.
    Please include header material in you integration models for material, SO and ATP check as well.
    For component availability check, you can use MATP; but for MATP, FG should be in APO. You need not to CIF any receipts of FG (stock, planned orders, POs etc), so that MATP will be triggered directly. Then maintaining Rules for RMs will enable to select available RMs according to the rule created.
    Regards,
    Bipin

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

  • How to retrieve material document no. based on production confirmation no.

    Hi Friends,
    I am retreiving the production confirmation number(PRTNR) thru bapi BAPI_REPMANCONF_CREATE_MTS. Based on that confirmation number I need to retrieve material document number (MBLNR)
    Because multiple users can post finished goods from different locations at same time, I have to complusory retrieve the material document number based on confirmation number only. Tables MKPF and MSEG doesn't have confirmation number fields in them.
    I would appreciate if anyone could suggest me good ideas.
    Thanks in Advance.

    Hi Melih,
    Thank you for your valuable response.
    My BLPP table gets updated with material document as well as confirmation number.
    When I test my FM directly, I get a confirmation number in my export. I don't get a material document number in my export parameter. But, BLPP gets updated with material document number as well as confirmation number.
    But, if I debugg the FM with the same data I get the material document number as well as conf. no. populated in my export parameters.
    This is what I have done:
    Export parameters
    MAT_DOC type BELNR_D
    CONF type PRTNR
    DATA: GS_BLPP               LIKE BLPP,
                          GV_MAT_DOC      TYPE BELNR_D.
    CLEAR: GV_MAT_DOC, GS_BLPP.
        SELECT SINGLE *  INTO GS_BLPP
                         FROM BLPP
                        WHERE PRTNR = CONF
                          AND PRTPS = '0001'.
        GV_MAT_DOC = L_BLPP-BELNR.
        MAT_DOC              = GV_MAT_DOC.
    Please let me know if I have done something wrong.
    Thanks.

  • HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER

    Hi,
           I want to know how to find the last document details based on material number.
    Is there any Functional modulle or BAPI programe?
    i,e, I want know last goods receipt details (MIGO)  based on material number.
    Can u please anybody tell me.
    Thanks,
    S.Muthu.
    Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AM

    Hello.
    Check the BAPI_GOODSMVT_GETITEMS
    -example--
    Get GRs after a specific date for a specific plant/ storage location and movement types
      wa_budats-sign = 'I'.
      wa_budats-option = 'GE'.
      wa_budats-low = '20071201'.
      APPEND wa_budats TO budats.
      wa_plants-sign = 'I'.
      wa_plants-option = 'EQ'.
      wa_plants-low = '1000'.
      APPEND wa_plants TO plants.
      wa_stlocs-sign = 'I'.
      wa_stlocs-option = 'EQ'.
      wa_stlocs-low = '0001'.
      APPEND wa_stlocs TO stlocs.
      wa_mvts-sign = 'I'.
      wa_mvts-option = 'EQ'.
      wa_mvts-low = '101'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '901'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '123'.
      APPEND wa_mvts TO mvts.
      CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
        TABLES
          plant_ra        = plants
          stge_loc_ra     = stlocs
          move_type_ra    = mvts
          pstng_date_ra   = budats
          goodsmvt_header = header
          goodsmvt_items  = item
          return          = return.
    Reward if helpful.
    Cheers,
    George

  • Questions on Rules-Based ATP and Purchase Requisitions for STOs

    Hello experts,
    We are working on rules-based ATP configuration and have several questions about the functionality.  Iu2019m hoping that some of you are using this functionality and can help give us direction.
    In our environment we have multiple distribution centers and multiple manufacturing plants.  We want to confirm sales orders against stock and production orders in any of those plants, depending on the locations that have stock or planned production.  For example, we will place a sales order against plant A.  If there is not enough stock in plant A then rules-based ATP will use location determination to check in plant B, then C.  The scope of check on the ATP check will include stock and released production orders.  We will configure plant A as the u201Cconsolidation locationu201D so if stock is found in plants B or C then stock transport orders will automatically be created to move the stock to plant A before shipping to the customer.
    We have configured rules-based ATP and this functionality is working well in our Development system.  The ATP check is executed and uses the rules-based ATP to find eligible stock in other plants.  The system is also creating purchase requisitions to move the stock to the consolidation plant. 
    Our first concern is that there doesnu2019t appear to be any firm linkage between the sales order and the resulting purchase requisition.  For example, if we create sales order 123 for plant A and the rules-based ATP finds stock in plant B it automatically creates a purchase requisition 987 to move the stock from plant B to plant A.  However, there doesnu2019t appear to be a linkage between sales order 123 and purchase requisition 987.  For instance, if we delete sales order 123 the purchase requisition doesnu2019t get deleted. 
    Our second concern is that the quantity on the purchase requisition can still be confirmed against later sales orders.  For example, say the above scenario resulted in a purchase requisition 987 that consumed all the stock available in plant B.  We then create a second sales order 456 for the same product.  Plant A is out of stock so the rules-based ATP looks in plant B.  We would expect that plant B would also not have any stock because itu2019s all been consumed by the purchase requisition.  Instead, the system creates a second purchase requisition to move quantity from plant B to plant A.  Itu2019s as if the system doesnu2019t realize that the purchase requisition 987 is already planning to move stock out of plant B.
    Does anyone have any thoughts or suggestions on these two scenarios?  Is there a way to configure the system so there is a hard linkage between the sales order and the purchase requisition so that if the sales order is deleted then the purchase requisition is also deleted?  Should ATP realize that purchase orders are consuming inventory and not allow later sales orders to confirm against that same inventory?  Any advice or experience would be greatly appreciated.
    Thanks,
    David Eady
    Application Delivery Team Lead
    Propex, Inc.

    Hi,
    The scheduling is done in SCM, and from there, whenever the RBA is triggered, the calculation is done always with the old route in SCM. Until you get back to R/3 this is when your route is determined. But the ATP check is always with the original route. So the idea would be that you change the values of the route while still in APO, this is possible via the user exit. Should be done in scheduling in APO.  
    Hope this information is helpful.
    Regards,
    Tibor

Maybe you are looking for

  • Can you import a DVD of your own into iTunes?

    I know you can choose from a very limited selection of films from the iTunes music store, but can you import one of your own films in the same way you import a CD and keep it on iTunes? And, of course, how would one go about doing this? When I insert

  • JSP include from jar file

    I have a service that is packaged in a jar file that contains a jsp file that I want to use inside a <jsp:include> in my webapplication. Is this possible? <jsp: include .. jspFileInJarInWEB-INFLIB.jsp/>

  • Need help about RRD4J, get data from rrdb

    i need more help about roundrobin database, especially using RRD4J library. i want to know, if i have one file database data1.rrd and i specific want to get data from startTime to endTime. how i can get that data from that database, and move them to

  • Userdefined Sorting the objects using comparator

    Hi All, I want to display the objects in a userdefined order. I have placed the code snippet below. Kindly help me on this to resolve this issue. public class ApplicabilityObject1 implements Comparable{      private String str;      public Applicabil

  • Function key to execute key-f5 trigger

    Dear all, I have migrated a forms 6i to 10gR1 and I would like to call existing KEY-F5 trigger by pressing a function key (F5) on the keyboard. How to do that? I have tried several things with the file fmrweb.res but without any success yet. Anyone t