Workflow; Trigger to execute IDOC matmas update

Hi
I do not know workflow at all. Is is possible to trigger a execution of an program using workflow as soon as there is a create/change of an material on the Materials master?
Message was edited by: Giovanni Baumann

Hi James
Thanks  for your reply.
Your suggestion  is as   good as updating  the dimension manual in  Dimension excel  sheet & processing. This  processes will update the new data in mbr table . So in this approach following two steps involves
Step-1 u2013 Customer  fills temp table  or customer update dimension manually & processes it. Both the action will trigger package
Step-2 u2013 Data also need to be updated in   data source i.e flat file. This task is  performed by ETL team
Only when both of these task  are performed that  data  source & BPC will in sync.
But what I want  is only one step i.e. Step 2. This mean that when  the data changes,  the ETL team make necessary change in data source  & this change should trigger the package. To do this I need to write cmd command  to trigger the package.
I hope my situation is more clear to you know. Kindly let me know if you have any solution.
Regards,
Rahul

Similar Messages

  • Why is the second update in trigger not executing

    Hi all I'm just starting with pl/sql . My trigger works but the second update does not execute.
    why is it not executing? and how can I get it to execute?
    CREATE OR REPLACE TRIGGER bb_ordercancel_trg
    AFTER UPDATE OF idstatus ON bb_basketstatus
    FOR EACH ROW
    WHEN( new.idstage = 4)
    DECLARE
    CURSOR basketitem_cur is
    SELECT idproduct,quantity,option1
    from bb_basketitem
    where idbasket =:new.idbasket;
    lv_chg_num NUMBER(3,1);
    BEGIN
    FOR basketitem_rec in basketitem_cur LOOP
    IF basketitem_rec.option1 =1 then
    lv_chg_num := (.5*basketitem_rec.quantity);
    ELSE
    lv_chg_num := basketitem_rec.quantity;
    END IF;
    update bb_product
    set stock= stock - lv_chg_num
    where idproduct = basketitem_rec.idproduct;
    update bb_basket
    set orderplaced = NULL
    where idbasket = :new.idbasket;
    END LOOP;
    END;

    I retract that and with the modified code it works .
    thanks guys, I should have drank a little more coffee when I started this ;-)
    CREATE OR REPLACE TRIGGER bb_ordcancel_trg
    AFTER INSERT ON bb_basketstatus
    FOR EACH ROW
    WHEN( new.idstage = 4)
    DECLARE
    CURSOR basketitem_cur is
    SELECT idproduct,quantity,option1
    from bb_basketitem
    where idbasket =:new.idbasket;
    lv_chg_num NUMBER(3,1);
    BEGIN
    FOR basketitem_rec in basketitem_cur LOOP
    IF basketitem_rec.option1 =1 then
    lv_chg_num := (.5*basketitem_rec.quantity);
    ELSE
    lv_chg_num := basketitem_rec.quantity;
    END IF;
    update bb_product
    set stock= stock - lv_chg_num
    where idproduct = basketitem_rec.idproduct;
    update bb_basket
    set orderplaced = 0
    where idbasket = :new.idbasket;
    END LOOP;
    END;
    Edited by: user8690163 on Dec 8, 2009 12:57 PM

  • Workflow not returning document details after update

    Hi,
    I have implemented a custom BPEL workflow process which is triggered upon a document being created or updated in Content Services. The BPEL process uses embedded java to obtain the filename of the document which triggered the workflow (much in the same way as done in the Content Services Web Services Development Kit). This works fine in the GUI version of content services, and using Oracle Drive works when a file is created, however the filename is not retrieved when updating a file using Oracle Drive (even though the workflow is initiated). As far as I can make out the Java Content Services API Workflow Manager is not returning any items when the file is updated, does anyone know why this might be?
    Many Thanks
    Dave

    Please ignore the above as the problem is not actually what I originally thought was happening. It turns out that any file which is updated through Oracle Drive does not trigger the BPEL workflow for the Upload Document workflow operation. The workflow that was being triggered for which I could not get details for was a temp file that was being created when browsing Oracle Drive before overwriting a file, the workflow could not get the temp files document details as the file was deleted before it could do so. Does anyone know a way of getting the workflow to be triggered upon the update of a file in Oracle Drive?
    Many Thanks
    Dave

  • How do I execute IDOC for message type LOIPRO

    How is it possible to execute IDOC using message type LOIPRO which I have configured with change pointers?   Change pointers are using object ORDER.
    I am looking to only generate IDOC for production order changes / updates that meets the criteria set by the change pointers.  If something in the order changes, but that field is not being looked at by change pointers, I don't need IDOC to pick up that order.
    I don't want to have to run RCCLTRAN or RCCLORD on a scheduled job. Only need to have activity if change pointers are activated. Am I going down the wrong road using LOIPRO ?

    Hi Bob,
    Could you please guide me through the process of creating/triggering a change pointer based LOIPRO? Your help much appreciated.
    Tabraiz

  • Trigger condition for IDOC

    Hi,
    I have trigger condition for IDOC
    All materials where:
    "Finished Goods"  Technical Names MARA-MTART = "Z001", and the Plants are "Granollers" MARC-WERKS="ES11", MARC-WERKS="ES12", goods that are "ready" or "ready for manufacturing", MARC-MMSTA = "02" or "03".
    All the materials which satisfy this criteria will need to be triggered whenever a new material is created in SAP which meets the above criteria, or if any materials are modified which meet the above criteria in SAP.
    How do I trigger my IDOC based on these conditions.
    Regards,
    Subhashini

    Hi,
    Please create the Idoc type / segments , create message type and link Idoc and message.
    Steps to customize a new IDoc >>>
    1. Define IDoc Segment (WE31)
    2. Convert Segments into an IDoc type (WE30)
    3. Create a Message Type (WE81)
    4. Create valid Combination of Message & IDoc type(WE82)
    5. Define Processing Code(WE41 for OUT / WE42 for IN)
    6. Define Partner Profile(WE20)
    2. Yes, you need LS & Partner profile
    3. Yes use MASTER_IDOC_DISTRIBUTE
    4. Can use IDOC_CREATE_ON_DATABASE instead of MASTER_IDOC_DISTRIBUTE and then process the Idoc.
    Message Type :: The message type defines the semantic context of an IDoc. The message type tells the processing routines, how the message has to be interpreted. The same IDoc data can be sent with different message types.
    IDoc Type :: An IDoc type defines the syntax of the IDoc data. It tells which segments are found in an Idoc and what fields the segments are made of.
    Processing Code :: The processing code is a logical name that determines the processing routine. This points usually to a function module, but the processing routine can also be a workflow or an event.
    The use of a logical processing code makes it easy to modify the processing routine for a series of partner profiles at once.
    Partner profile :: Every sender-receiver relationship needs a profile defined. This one determines
    The processing code
    The processing times and conditions
    In the case of outbound IDoc 1. The media port used to send the IDoc and 2. Triggers used to send the IDoc
    Partner Type :: The IDoc partners are classified in logical groups. Such as : LS, KU, LI.
    LS - Logical Systems : It is meant to be a different computer and was primarily introduced for use with the ALE functionality.
    KU - Customer : The partner type customer is used in classical EDI transmission to designate a partner, that requires a service from your company or is in the role of a debtor with respect to your company, e.g. the payer, sold-to-party, ship-to-party.
    LI - Supplier : The partner type supplier is used in classical EDI transmission to designate a partner, that delivers a service to your company.
    thanks & Regards,
    ShreeMohan

  • Which field is the workflow trigger for a Contract Agreement ?

    Greeting everyone,
    I am not sure if this has been answer before or if this is the correct forum. If not, apologies in advance and do direct me to the appropriate topic/forum.
    I have an inquiries with regards to Contract Outline agreement and workflow trigger.
    Based on my company configuration, the trigger is based on the changes in value and release strategy.
    What I am unsure is that which field the workflow-trigger checks?
    Does SAP checks the field "Target Value" in contract header, or  the sum of net value in each of the contract items?
    Thank you

    Hello Sek,
    In contracts, the target value is used for the release strategy determination and not the net contract value. If you maintain a target value in the contract header, this value is set in field CEKKO-GNETW to determine the strategy. If no target value exists on header level, a cumulation of the target values of the items is carried out and used for the release strategy determination.
    Regards,
    Mauro

  • Inbound Delivery Idoc not update PIC and PGI with split batch.

    Dear Experts,
    Delivery outbound with split batch send to third party Warehouse to PIC and PGI from SAP, then receive the delivery inbound IDOC to update the PIC and PGI in SAP from third party. Basic Idoc DELIVERY03 it's works fine with out split batch, with split batch it's not updating PIC and PGI at the same time no error. Please advice on this
    E1EDL24-HIPOS = "HIGHER LEVEL ITEM NUMEBR"
    E1EDL24-HIEVW = "VALUE 1"
    E1EDL19-QALF = "BAS"
    Thanks and Regards,
    Thiru.

    Hi,
    You also have to create a segment with following data as well (for batches).
    E1EDL19-QUALF = "QUA".
    Cheers,

  • Problem DB Trigger and ADF Application for update a field.

    I again,
    I have a Data Base table as following :
    --Solicitudes*
    id number not null,
    extern_code integer,
    delivery_date timestamp( 6 ),
    ... and more fields
    And a Trigger as following :
    create or replace trigger update_delivery_date
    before update of on Solicitudes
    for each row
    begin
    if ( :new.extern_code = 9 ) then -- I need update the "delivery_date" to the current date and timestamp
    select systimestamp into :new.delivery_date from dual;
    end if;
    end;
    The trigger works fine in the DB, but when I update the 'Solicitudes' data base table through the ADF Application, the 'delivery_date' field is updated to different current systimestamp , for example suppose right now is : 19-JUN-*2012** 10.45.30.773000000 PM -04:00 , it field should be update to this date, but it is not update to that date, it is update to : 10-DEC-*1989* 10.45.30.773000000 PM -04:00.
    Why is this ?
    I put in the SQL Developer's query editor : select systimestamp from dual; and it show me the correct date and time.
    That problem occurs only when I update the table through my ADF Application.

    Marco,
    I don't see any issue with ADF in this. Just tried with a dummy table created with similar structure and tried updating it (have a similar trigger as well). It updated with proper timestamp (tried from SQL Developer, AppModule Tester and in jspx page - all same result).
    Can you check the system date on the machine where your DB is hosted. I guess you are using different database for testing the query and the app is using a different db.
    If not, try creating a simple testcase (as I mentioned in the first line) and see if you are able to reproduce the issue.
    -Arun
    P.S : I tried this in 11.2.0.1 DB & JDev 11.1.2.0.0

  • HRMD_A07 Idoc to update InfoType 0014 does not delimit existing PA0014 rec

    In ECC 6.0, we are using HRMD_A07 Idoc to update infotype 0014 using update data received from a third party application. In XI, I am creating the Idoc with Update Code "U" with E1PLOGI, E1PITYP and E1P0014 segments. E1P0014 holds the data for the latest record.
    If I directly pass the Idoc thru ALE layer, It creates records for the new date range on E1P0014 segment, but does not delimit the previous record by changing its end date. This results in two records in PA0014 with end date of 12/31/9999 - which is wrong.
    I also tried using a wrapper FM to create additional segments in the Idoc representing the existing record in PA0014, with the end date being delimited to incoming record's beg. date minus 1.
    This also results in just creating two additional records in PA0014 corresponding to the two segments in Idoc while existing record in PA0014 stays intact resulting in two records with end date 12/31/9999.
    I also experimented with setting the lock indicator (PA0014-SPRPS) but that also does not result in delimiting the existing record.
    Am I missing something? Is there a piece of config that controls this?
    Regards,
    The time constraint on 0014 is "2"

    Hi Jon and Ashish,
    I too am facing the same issue that the new IDOC is not delimiting the previous record.
    Can you explain how did u get over you issue.
    I'm maintaining the same dates in E1PITYP and in E1P0014.
    Thanks,
    Jilly

  • Execute javascript after update and submit in Skillbuilders Modal Page

    Hi,
    I'm editing, say, list of my employees in a tabular form opened in Skillbuilders Modal Page.
    I have to execute same javascript code after the changes in the tabular form have been submitted.
    I've tried using a Dynamic Action fired on Page Load, but that gets executed before the update is completed.
    Does anyone have an idea how to accomplish this?
    Thank you!

    Thank you for your answers.
    Yes, I'm trying to execute javascript code on the child page, the modal one.
    Basically, there's a button on my parent page which opens the modal page. The modal page has buttons Cancel, Delete and Save. Clicking Save button submits the changes and if there are errors, errors are shown and we stay on the modal page.
    My modal pages are all of fixed dimensions and if there are errors, I have to adjust the other regions (adjust their height, add a scrollbar, etc) in order to show everything in the modal page.
    I have written a function that does exactly that, but I have to execute the function after the page is loaded and the regions are shown. But, if I execute it using onload attribute, or setting a dynamic action which fires on page load, the function gets executed during the submit, before the regions are shown.
    I hope I have managed to clear up the problem.
    As always, thank you.

  • After Update Trigger not triggering for first update

    Hi All,
    I have written a Trigger on AP_SUPPLIERS table to update AP_SUPPLIER_SITES_ALL when payment priority gets updated on AP_SUPPLIERS table. Trigger calls a pragma autonomous procedure after update happens, and updates sites table. We are on R12 (12.1.3) with  DB 11.2.0.3.0
    Somehow this is not working for the first update, after that for every update it is working. Any idea why this might be happening?
    Trigger Code: 
    CREATE OR REPLACE TRIGGER XX_AP_SUPPLIER_SIT_UPD_SYNC
    AFTER UPDATE
    ON AP.AP_SUPPLIERS
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    l_vendor_id     NUMBER;
    l_paym_priority NUMBER;
    BEGIN
       XX_AP_SUPSITE_UPDATE(:NEW.PAYMENT_PRIORITY, :NEW.VENDOR_ID);
       EXCEPTION
         WHEN OTHERS THEN
           RAISE;
    END XX_AP_SUPPLIER_SIT_UPD_SYNC;
    Procedure Code:
    CREATE OR REPLACE PROCEDURE APPS.XX_AP_SUPSITE_UPDATE (p_payment_priority  IN  NUMBER,p_vendor_id IN NUMBER) AS
      PRAGMA AUTONOMOUS_TRANSACTION;
      ex_custom EXCEPTION;
      PRAGMA EXCEPTION_INIT( ex_custom, -20001 ); 
    BEGIN
      UPDATE AP_SUPPLIER_SITES_ALL
      SET PAYMENT_PRIORITY =p_payment_priority
      WHERE VENDOR_ID = p_vendor_id;
      COMMIT;
    EXCEPTION 
    WHEN OTHERS THEN
        raise_application_error( -20001, 'Error while updating payment priority on Site '||SQLERRM );
    END XX_AP_SUPSITE_UPDATE;

    Thanks for your replies Saubhik/VT,
    now my trigger is compiled. but is not triggering. pl help me to resolve .....
    create or replace
    TRIGGER AUDIT_DEV.trg2
    AFTER DELETE OR UPDATE OF EMP_STATUS ON AUDIT_DEV.AUDIT_PERSONS
    FOR EACH ROW
    declare
    OSUSER varchar2(30);
         MACHINE varchar2(30);
         logon_time date;
    db_user varchar2(30);
    USERNAME VARCHAR2(30);
    EMP_USER_MODIFIED AUDIT_PERSONS.EMP_USER_MODIFIED%TYPE;
         EMP_DATE_MODIFIED AUDIT_PERSONS.EMP_DATE_MODIFIED%TYPE;
         EMP_SK AUDIT_PERSONS.EMP_SK%TYPE;
         EMP_ID AUDIT_PERSONS.EMP_ID%TYPE;
         EMP_NAME AUDIT_PERSONS.EMP_NAME%TYPE;
    EMP_RESIGNATION_DATE AUDIT_PERSONS.EMP_RESIGNATION_DATE%TYPE;
    BEGIN
    select     username,osuser,machine,logon_time into db_user,osuser,machine,logon_time from v$session where sid=(select sid from v$mystat where rownum=1);
    INSERT INTO AUDIT_DEV.AUDIT_PERSONS_LOG (EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,EMP_STATUS_OLD,EMP_STATUS_NEW,osuser,db_user,machine)
    VALUES(EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,:old.EMP_status,:new.EMP_status,osuser,db_user,machine );
    COMMIT;
    END;
    09:59:06 AUDIT_DEV@dev>UPDATE AUDIT_DEV.AUDIT_PERSONS SET EMP_STATUS='TEST' WHERE EMP_ID='4234';
    EMP_STATUS
    TEST
    1 row selected.
    Elapsed: 00:00:00.01
    10:00:03 AUDIT_DEV@dev>commit;
    Commit complete.
    Elapsed: 00:00:00.01
    10:00:17 AUDIT_DEV@dev>select * from AUDIT_persons_log;
    no rows selected
    Elapsed: 00:00:00.00
    10:00:17 AUDIT_DEV@dev>
    Edited by: Abk on Nov 4, 2010 10:42 AM

  • Execute SQL Task - UPDATE or Data Flow Data Conversion

    Good Morning folks,
    I want to know which is more fast to convert data type.
    I want to convert nvarchar(255) to datetime2,
    using t-sql (execute sql task)
    UPDATE TBL
    SET  FIELD1= CAST(FIELD1AS DATETIME2)
    GO
    or data conversion(data flow)
    Thank..

    Itz Shailesh, my t-sql have only UPDATE, not many UPDATES... so it's one batch, no 2,3,4... So.. it's Only one update.. ex: update table set field1 = cast(field1 as datetime2), field2 = cast(field2 as datetime2). not : update table set field = cast(field
    as datetime2) go    update table set field2 = cast(field2 as datetime2) go.... understand?
    Yeah, I understand that you have to update just 1 field. What I am saying, if you have to update millions of rows then you must update rows in batches ( lets say batch of 50k). This way you will only touch 50k rows at a time and not all rows from table.
    I see that your rows are less however I would still prefer the option of data conversion transformation over update statement.
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • BOR Attribute empty during workflow trigger

    Hi Gurus,
    I have a problem in workflow where the IMAGE attribute of my zBUS2081 is not being read (or might be empty) during workflow trigger. This is the scenario:
    1. I delegated zbus2081 to BUS2081 and added attribute of type BOR - IMAGE.
    2. My workflow is being triggered when a LIV INvoice is parked.
    3. In my workflow, at the beginning I am transferring ZBUS2081.IMAGE to a wf container IMAGE_CONT (type BOR - IMAGE)
    4. My workflow triggers, then I check the log. It shows that IMAGE_CONT was assigned with ' ' value even it passed through the container operation step.
    5. What's weird, is when I retrigger the workflow, it is now able to assign the value of ZBUS2081.IMAGE to IMAGE_CONT.
    What could be the problem? I don't think there is a problem in my workflow. Seems that ZBUS2081.IMAGE has no value during trigger, but there is a valid data for IMAGE before the wf triggers.
    Thanks,
    Eo

    Hi Eo,
      I guess it may be because of the program logic inside business object Zbus2081 on attritube IMAGE.
      Can you open the program of attribute image and check whether you put the condition that maybe skip command swc_set_element container?
      In background, workflow will re-calculate attribute of the object. If swc_set_element container is missing, value will be blank.
    Regards,
    Chaiphon

  • Can not execute a simple update query with ms access

    Hi
    I am trying to execute a simple update query , this is the code I am running : I get no exeptions but the db is not being updated .
    When I copy my query into access it works !
    The table / columns are spelled correctly and I am able to execute select queries.
    can anyone figure out what is going on
    Thanks shahar
    public static void main(String[] args) {
    MainManager mainManager = MainManager.getInstance();
    Log log = Log.getInstance();
    try {
    log.writeDebugMessage("befor executing query");
    //stmt.executeUpdate("update trainee set Trainee_Name = 'shahar&Rafi' where Trainee_Id = 1 ");
    //stmt = null ;
    PreparedStatement stmt1 = con.prepareStatement("UPDATE Trainee SET Trainee_Name =? WHERE Trainee_Id =?");
    String name = new String("Shahar&Rafi");
    int Id = 1 ;
    stmt1.setString(1,name);
    stmt1.setInt(2,Id);
    System.out.println(stmt1.toString());
    stmt1.execute();
    log.writeDebugMessage("After executing query");
    catch (SQLException e ){
    System.err.println("SQLException: " + e.getMessage());
    }

    Hi All,
    got the problem solved at last.
    first, in the SQL string all the values must be within " ' "
    for example:
    INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (6,'333','hhhh','rafi',048231821,true,63,4,true, ('Feb 22, 2002'), ('Feb 22, 2002'))
    second and more important,
    a 'dummy' sql select query must be performed after an update query
    example for code:
    try{
    DB.MainManager.getInstance().ExecuteUpdateQuery(A);
    DB.MainManager.getInstance().getStatement().executeQuery("SELECT * FROM Trainee");
    where A is the update query.

  • Material master/Output type IDOC /MATMAS

    Hello ,
    I want to generate Idoc(MATMAS) whenever a material is created or changed. I could do the same for ME21N/ME22N for PO with PO idoc. Would like to know whether there is output types for material master or anything else so that i can generate Idoc for my senario.
    Thanks for ur time.
    Jeeva.

    Hi,
    the configurations which we do for material master is below...we don't give any output for material master,becoz its a master data not transactional data..
            For distributing master data like material master, vendor master, customer master we have standard transaction codes that are provided by sap.
    Bd10(send material master)
    Bd12(send customer master)
    Bd14(send vendor master)
    Bd30(bom’s)
    The order of Tcodes are:
               Bd54 (creating logical systems)
               Scc4 (assigning logical systems )
               Sm59 (rfc destination)
               We81 ( message type)                      
               We30 ( idoc type)
               We31 ( segment type)
               We82 (linking message type and idoc type)
               We21 (creating port)
               We20 (partner profiles)
               Bd64 (Distribution model)
               Bd10 (material master)
    Ex: material master.
         Message type: matmas.
         Idoc type: matmas05.
    Rewrad if helpful.
    Regards,
    Nagaraj

Maybe you are looking for

  • Exchange rate for fixed deposit

    Hi, I have two scenarios here: Scenario1: Exchange rate of principle and maturity amount is fixed at the time of placement of FD. Scenario2: Exchange rate of principle is fixed at the time of placement while maturity rate is decided at the time of ma

  • External Speaker big pop/buzz when connecting or disconnecting audio cable

    My external speakers make a big buzz/pop every time I connect or disconnect the stereo mini 1/8" plug into the headphone jack -- if the speakers are turned up high at the time, it's enough to blow them. This doesn't happen with headphones - just exte

  • 10.1.0.4.0 installation on linux

    Hi, I want to perform backup check on 10.1.0.4 oracle enterprise edition on Linux box (32bit). I'm not able to find download link for 10.1.0.4 from metalink. Please give me exact download link for 10.1.0.4 including all patchsets. Thanks

  • Using airport with hi speed internet

    Hi everyone. I recently got hi speed internet which works when the ethernet cable connects my G4 laptop and the modem cable. I wanted a wireless connection so I disconnected the ethernet from my laptop and hooked it up to the airport so that the airp

  • Adding Image to Medical ID

    I was setting up my Medical ID and tried to add an image. I was not able to add an image by choosing an existing image nor was I able to take a selfie to add it. The feature make sense. Medical personnel should verify it is your unresponsive body the