Business Events related to AME Rules in iRecruitment

Hello all,
We have a Seeded AME rule and want to know which business event is firing that rule. Is it possible to find this out? The reason i want to know is we have a seeded rule called "Apply For Job - Manager Rule" which is related to iRecruitment. I want to know when this rule is fired. I tried so many ways to find out but couldn't.
Thanks
KK

That means you want to know the condition on when this rule will be fired.
So, search for the rule see if the Update icon is enabled. If enabled click on it there you can see the conditions.
If update icon is not enabled, then on top you can see Conditions tab. Click on that.
Conditions are based on the AME Attributes. There is one more attribute tab to see the definition of the tab.
Regards,
Peddi.

Similar Messages

  • Oracle Business Events related help needed

    Hello All,
    Good Morning , wanted some help regards Oracle Business events be used for sending notifications.
    We are having a situation wherein we need to send notifications to the sales team whenever there are changes to the order line status..lets say the order line moves from Booked status to Awaiting Shipping status and further to Picked or Shipped status, we need to notify the sales team about this.
    If we are going to use Business Events concept for this we wanted to check on the below points -
    1.At the order line level what all seeded business events have been defined ( means if we could get the complete listing ) and whether any of these gets triggered when the order line status changes...we are on Oracle Release 12.0.6 version
    2.Also is there a way to know what all parameters are being passed for a given seeded event, so that we know which parameters we could retrieve within the subscription using wf_event_t.getvalueforparameter function.
    3.Regards setting up Subscriptions for this order line seeded business event : means we could see an option which says : "Send a Notification" when we are defining a Cstom Sbscription ( Now here it asks to give the Message Type ( This would be workflow item type where the message is defined in workflow ) and Message Name ) ..
    Now if in this NOTIFICATION MESSAGE we need to show details like order number , sales rep , order line status etc ( then where do we set these details in the Event and also how do we pass these details from subscription  so that it shows in the notification )
    Means where do we setup and define values for the notification message attributes and how do we pass these values from event to the subscription and finally to the notification..How do we achieve this because some of the message attributes for the notification are Document Type while some are text/number types.. These would be required to show in the notif message...
    4. Also once we send the notification lets say succesfully to person or a role using a subscription , how do we capture the response ...
    Could someone please help us with this as we are stuck with this at the moment.
    many thanks

    Hi,
    please reply the above questions.it  would be a great help for me.
    Thanks
    Sap Guru

  • How to create new or check current business event in Oracle INV/PO?

    Hi Gurus,
    How can i define/create new business event related to items or suppliers?
    I know we need to login to WF admin responsibility. But i just wanted to where we can able to create event from frontend and that too from inventory or purchasing responsibilities.
    I have collected five from oracle.apps.inv.item realted to items and four related to suppliers.
    Could you please help me in how to create Business events from frontend and that to from oracle inventory.. and even i would like to here some thing on trading partners setups also.
    I'm new to this Business events, hence required your help on high priority.else send me an document with existed business events.
    Awaiting on your response.
    Regards,
    Ajay

    No, in this case, I'm using standard JSP with ADF and struts validator.
    If I don't use struts validator and there are errors (such as putting a string into a number which produces a jbo-25009), the list value will be retained.
    When using the validator, it appears that it is NOT retained.
    I've written some code to attempt to set the list element back, which "looks like" it's working right now.
    There's still a problem with the second scenario:
    1. user clicks checkbox and hits [submit]
    2. get's error - you have to enter 5 address items
    3. User wants to backout, so he unchecks the box and resubmits
    4. The box redisplays as "checked"
    SO, at that point, I thought... can't I use YOUR EXAMPLE on how to handle a checkbox.
    I place some code in the reset method of the form to perform this:
    map.put("AddressChangeFlag", (String) "" );
    (that is, I've detected via the request that this flag is null), so I'm trying to make sure it retains it!
    I do that and it runs into a problem during the processUpdateModel aT:
    BindingContainerValidationForm updateForm= (BindingContainerValidationForm) actionContext.getActionForm();
    //Get the binding for our particular column JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get("AddressChangeFlag");
    call, with an error:
    JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=java.lang.String
    java.lang.String
    The value for updateForm.get("AddressChangeFlag") is "", which I'm assuming means the form field is no longer in the request object??
    I'm lost at this point, and have been working on it for more than 1 day.
    Thanks for responding though, and I await feedback ;)

  • How to setup PCG Flow Rule Process flow with Business Event subscription

    Hi,
    How to setup PCG Flow Rule Process flow with Business Event subscription type?
    When should Business Events be used?
    The latest user guide does not provide ay information on this functionality of Flow rules.
    Thanks

    You should find it's usage noted in the new PCG user guide on page 3-26 under the heading "Configuring Workflow/Event Rules". This way you can have a Flow Rule call a business event component or a workflow. This would be kicked off within a process flow as one of the steps.
    I hope that helps.

  • Event-related scrambling rule type - Code example?

    Hi experts,
    I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
    Any help will be much appreciated.
    Thank you.
    Kindest regards,
    Bruno Esperança
    Edited by: Rob Burbank on Feb 3, 2012 9:37 AM

    Hi Rupam!
    Yes, I am using TDMS 3.0.
    Thank you very much for your e-mail.
    I did not find standard package TDSAD. However, I did find include CNV_MBT_TDSAD_ADDR_SCRAM1 which has the code example for an event-related rule.
    Nonetheless, I do have a small concern. This rule was designed to be used by more than one table. Thus, there is a piece of code in the beginning which determines the object (table) that is currently being converted.
      IF g_wa_name IS INITIAL.
    * get receiver structure name of the current conv. obj.:
    *    CONCATENATE g_dmc_cobj_guid ' = ''' g_dmc_cobj_guid_val
    *      '''' INTO g_where_clause_dmc_cobj.
        CONCATENATE g_dmc_cobj_guid ' = ''' _GUID_COBJ
          '''' INTO g_where_clause_dmc_cobj.
        SELECT SINGLE (g_dmc_cobj_rcontainer) FROM (g_dmc_cobj_tabname)
            INTO g_dmc_cobj_rcontainer_into WHERE (g_where_clause_dmc_cobj).
        CONCATENATE g_dmc_stree_container ' = '''
          g_dmc_cobj_rcontainer_into''''
          ' AND' g_dmc_stree_seqnum ' = ''' g_dmc_stree_seqnum_val''''
          ' AND' g_dmc_stree_struclevel ' = ''' g_dmc_stree_struclevel_val
          '''' INTO g_where_clause_dmc_stree.
        SELECT SINGLE (g_dmc_stree_guid) FROM (g_dmc_stree_tabname)
            INTO g_dmc_stree_guid_into WHERE (g_where_clause_dmc_stree).
        CONCATENATE g_dmc_struct_stree ' = ''' g_dmc_stree_guid_into
             '''' INTO g_where_clause.
        SELECT SINGLE (g_dmc_struct_ident) FROM (g_dmc_struct_tabname)
            INTO g_structname WHERE (g_where_clause).
    *  select single ident from dmc_struct into g_structname
    *    where stree = ( select GUID FROM dmc_stree WHERE container =
    *  ( select RCONTAINER FROM dmc_cobj WHERE guid = _guid_cobj )
    *      AND seqnum = '0001' AND struclevel = '01' ).
        CONCATENATE '_WA_' g_structname INTO g_wa_name.
        ASSIGN (g_wa_name) TO <g_wa_name>.
      ENDIF.
    As you can see this has some selects in it, and I'm affraid these selects might be executed for each record of each table. So, in a performance point of view, this might not be so good...
    Is there a reason why I shouldn't use one rule per table, and therefore disregard this piece of code?
    Thank you very much!
    Bruno
    EDIT:
    From what I understood from the code, this is a code example if I assume I'm scrambling table ADRC:
    ASSIGN ('_WA_R_ADRC') TO <g_wa_name>.
    ASSIGN COMPONENT 'NAME1' OF STRUCTURE <g_wa_name> TO <g_name1>.
    Does this make sense to you?
    Thanks.

  • SAP TDMS - Event related scrambling rule - Code example?

    Hi experts,
    I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
    Any help will be much appreciated.
    Thank you.
    Kindest regards,
    Bruno Esperanç

    This question was answered here:
    http://forums.sdn.sap.com/thread.jspa?threadID=2130292&tstart=0

  • IRecruitment Business Events

    Folks,
    I want to send a notification to a user who registers on our iRecruitment website. There is a business event which I can use but I am not sure about the steps to subscribe to the business event.
    I know that I need to :
    1. find the appropriate business event - this step is completed.
    2. Subscribe to the event - half done since I don't know whether I need to put a workflow there or a pl/sql package.. Need some advice from this point onwards.
    If someone is willing to share a workflow/business event document, that would be really helpful. I am working with business events the first time.
    Thanks all.
    Message was edited by:
    NewB

    Thanks Ram. Need a bit more help here, can I make a simple process in Workflow with an start and end node and have a notification in that process or would I still need to write some code for this?

  • Sample for Reference and Conformance business event in Quality Manager

    Hi All
    Can any one please tell me the business event that is to be enabled and the related transaction type to be configured/set for getting a notification when a sample has been taken using SFC / SFR Activity window in Quality Manager responsibility.
    Navigation:
    Go to Quality Manager
    Go to SFC/SFR Activity
    Thanks in Advance
    Prem.

    Hi David
    Thanks for your reply.
    Click on SFC/SFR Activity Form. It is a Create Immediate Form,in Quality Manager responsibility with name SFC/SFR Activity window. I have enabled and subscribed the event you mentioned before and created approval group in AME.
    My requirement is when quality department uses this form they should get a notification as SFC/SFR Sample required.
    As of now I am getting notifications as 'Sample Required For (CREI) Inventory Transaction: Item XXX', when other department eg., Stores Dept uses CREI form .
    Now I want to Change the Description of the Notifcation to 'Sample Required for SFC/SFR' and to generate a sample notification only when QC has used this form (CREI).
    Thanks in advance
    Prem.

  • Business Event not triggering the PLSQL procedure.. What to do?

    We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
    We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
    I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
    Business Event Subscription settings:
    System: ORDEBS.SYSTEM.COM
    Triggering Event
    Source Type:Local
    Event Filter: oracle.apps.gl.Journals.journal.approve
    Execution Condition
    Phase: 100
    Status: Enabled
    Rule Data: Message
    Action Type:Custom
    On Error: Stop and Rollback
    Action
    PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
    Priority: Normal
    Documentation (Not sure what value to be given for these. I went with the below values.)
    Owner: Company Name
    Owner Tag: Custom Schema
    Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
    select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
    Procedure:
    CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
    AS
    PROCEDURE Get_Attributes
    IS
    BEGIN
    INSERT INTO xx.xx_test_table VALUES ('From BE');
    COMMIT;
    END Get_Attributes;
    END XX_GL_APPROVE_BE_PKG;

    Thanks Alejandro. Now this is working.
    Changes i made:
    1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
    2. Changed the function signature to have standard parameters like:
    CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
    AS
    function subscription(p_subscription_guid in raw,
    p_event in out nocopy wf_event_t) return varchar2 is
    l_result varchar2(20);
    begin
    insert into xxvtv.xxvtv_test_table values ('From BE');
    commit;
    exception
    when others then
    wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
    wf_event.setErrorInfo(p_event, 'ERROR');
    return 'ERROR';
    end subscription;
    END XX_GL_APPROVE_BE_PKG;
    3. Changed the owner name and owner tag both to the custom schema name (XX)

  • Business Event Price

    Hi,
    I am working on Training and Event Management, when we generate the report of SAHR61016221 - Business Event Prices it is not displaying any prices mentioned .
    it is showing all the empty fields how to do that.
    Thanks
    Best Regars
    Sujana

    can i know which data u want to display
    if the data is related to some other sub modules check the integration switches
    V_T77SO
    not sure jsut a guess

  • Training & Event Management: Restrict Change to Business Event

    Hi,
    Does anyone know if there is a way to restrict change to Business Event (eg. changes to the Event Schedule) based on certain business criteria? My criteria cannot restrict by authorization.
    For eg. let say if something happens (based on business scenario), then my program will restrict the users to change details in Business Event, but they can still book Personnels to the event- so that means I can't use the LOCK/UNLOCK function.
    Thank you for your help.
    Regards,

    Dear,
    Oh! Sorry I did not noticed your initial post date, any how at least we can share knowledge.
    Regarding your concern about the FM, we have created function module ZHR_TRAINING_AUTH and table ZHR_TRAINING_AUTH to restrict authorization related to respective department secretaries and business event group.
    Then in Customization to create and configure the profile: go to Human Resources > Personal Management > Personal Development > Settings > Current Settings > Define Authorization Profile
    Then later on you can “Assign” this newly created profile to the users, then you are able to restrict.
    I hope this small information will help,
    Good luck

  • LSO: Business Event Appraisal

    Hi,
    We have already implemented LSO.Now we are planning to configure Appraisal for a Business Event.
    Please do share any docs related to the configuration
    Thanks in advance.
    Regards,
    Deb

    Hi Deb,
    As you have completed implementing LSO, can you share some documentation & the process for the same?
    Really apprciate your time.
    rlshravan at gmail dot com
    SKR

  • Badi and Business event( Urgent)

    Hi experts,
          I am new to badi and business event 1120P. Please post how this business event exactly comes in to picture in this badi. also how to find this business event?
    And also Post the logic or code. The requirement is given below . Pls Post the solution. Its very urgent.
    Enhancement Summary
    Two user exits are needed to determine the correct G/L Account and Cost Center on Shipment Cost documents and post the Material Group on the Accounting document. BADI_SCD_ACCTG and Business Event 1120P can be used to accommodate the new functionality.
    Business Process
    Specific G/L Accounts and Cost Centers have to be determined to post on the Shipment Cost document. This is needed to provide accurate management reporting capabilities on shipments for Sales Order or Stock Transfer Order. A new custom table must be created which contains the following information: Distribution, Mode of Transport, Account, Cost Center Material group. Distribution is an identifier here if this shipment originated from an SO or STO.
    There are no screens involved in this enhancement.
    Components
    Table: ZTABLE1
    Field     Data Element     Type     Length     Description
    MANDT     MANDT     CLNT (key)     3     Client
    DISTRIBUTION     Z_DISTRIBUTION     CHAR (key)     1     Distribution
    MOT     ZZDEF_MOT     CHAR (key)     2     Mode of Transportation
    MATKL     MATKL     CHAR (key)     9     Material group
    SAKNR     SAKNR     CHAR     10     G/L Account Number
    KOSTL     KOSTL     CHAR     10     Cost Center
    This table gets updated manually by the FI team.
    Values for Distribution are:
    ‘1’  =  Primary Distribution to Refinery
    ‘2’ = Primary and Secondary– Excluding refinery
    All entries must be checked against SAP config and master tables
    User exit BADI BADI_SCD_ACCTG will be used to determine the correct G/L Account, Cost Center and Product Group based on Distribution and Mode of Transport. This BADI gets called only when a new Shipment Cost document get created.
    Once the BADI determined the new values it populates field c_vfkn-sakto with the G/L account, field c_vfkn-kostl with the Cost Center and exports the Product group to memory.
    There is no field on the Shipment Cost Document to store the Product group. Therefore another mechanism must be used to get the Product Group on the accounting document.
    Business Event 1120P can be used to import the Product group out of memory and put it on BSEG-MATNR. Structure BSEG_SUBST must be enhanced with field MATNR for this purpose.
    Function, Rules, Exits      Description of Functionality, Rules, Exits
    BADI_SCD_ACCTG     Business Add-In for Shipment Cost Account Assignment
    Business Framework     Business Event 1120P can be used to import the Product Group from memory and to populate field BSEG_SUBST-MATNR.
    This event gets called from different places. It needs to be ensured that it only populates the value when it was called from BADI_SCD_ACCTG.
    Custom Table     A look-up Table needs to be maintained for Distribution, Mode of Transport, G/L Account, Cost Center and Material Group
    Transaction code     To maintain the new table
    Append Structure     To enhance structure BSEG_SUBST with MATNR
          Business Add-In BADI_SCD_ACCTG can be used to determine the account assignments for a shipment cost item to set the G/L Account and Cost Center. All data needed to determine the new information gets provided in this BADI.
    Logic:
    •     Determine if STO or SO based on Document Category from internal table I_REFOBJ-VTRLP field VGTYP If is C then Distribution type is Sales Order (Primary and Secondary – Excluding Refinery – ‘2’ ) else we need to check the receiving plant. If the receiving plant (I_REFOBJ-VTRLK field WERKS) is a refinery the Distribution type is Primary (1) else it’s a (Primary and Secondary – Excluding Refinery – ‘2’ ). Refineries can be identified via Function Module ZPLANTCLASSIFICATION. The plant must be passed into Import Parameter IP_SAPPLANT and field INT_PLANTCHAR-ATNAM must be looked up with value SAPTYPE. If it exists and field ATWRT contains ‘RFY’, the plant is a refinery.
    •     Product Group can be determined from the Material master through Material group field MARA-MATKL.
    •     Mode of Transport will be passed in the BADI in VTRLK-OIC_MOT.
    •     Select single entry from table ZTABLE1based on Distribution, Mode of Transport and Material Group. If nothing gets selected, error message ‘No entry exists in table ZTABLE1for Distribution (distribution), MOT (MOT) & Mat. Group (material group)’ should be triggered.
    •     Move ZTABLE1-SAKNR  to c_vfkn-sakto and ZTABLE1-KOSTL to c_vfkn-kostl
    •     The Material group must be exported to memory in BADI_SCD_ACCTG
    •     The Material group must be imported from memory in Business Event BP1120P
    •     Free Memory in Business Event BP1120P
    This is VI01 – Creation of Freight Cost Item screen
    and also code for function module ZPLANTCLASSIFICATION below
    FUNCTION zplantclassification .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(IP_SAPPLANT) LIKE  AUSP-OBJEK OPTIONAL
    *"     REFERENCE(IP_CPSPLANT) LIKE  AUSP-ATWRT OPTIONAL
    *"     REFERENCE(IP_SISLOC) LIKE  AUSP-ATWRT OPTIONAL
    *"  EXPORTING
    *"     VALUE(EP_SAPPLANT) LIKE  AUSP-OBJEK
    *"     VALUE(EP_CPSPLANT) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SISLOC) LIKE  AUSP-ATWRT
    *"     VALUE(EP_OWNERSHIP) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SMISTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SPOTREF) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SUBTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SUPPLYREGION) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_DISTAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_GEOGAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_HMF) LIKE  AUSP-ATWRT
    *"     VALUE(EP_IATACODE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_IRSTCN) LIKE  AUSP-ATWRT
    *"     VALUE(EP_OPSAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_PLANTSTAT) LIKE  AUSP-ATWRT
    *"     VALUE(EP_PORTCODE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_REFAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SAPTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_MFGWARRANTY) LIKE  AUSP-ATWRT
    *"     VALUE(EP_USERTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TRMCENTER) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TRANSCENTER) LIKE  AUSP-ATWRT
    *"     VALUE(EP_FEIN) LIKE  AUSP-ATWRT
    *"  TABLES
    *"      INT_PLANTCHAR STRUCTURE  ZPLANTCLASSIFICATION OPTIONAL
    *"  EXCEPTIONS
    *"      NO_OBJEK_FOUND
    *"      NO_CPSPLANT_FOUND
    *"      NO_SISLOC_FOUND
    *"      NO_INPUT_FOUND
    *"      VALID_PLANT_NO_CHARACTERISTIC
    *"      ONE_TO_MANY_ISSUE
    *"      PLANT_NOT_FOUND_ZDEF_DELPLANT
    *"      UNKNOWN_ERRORS
    FM Name: ZPLANTCLASSIFICATION     
    Created By  :  SYUB                                                  *
    Description : Function Module to retrieve plant characteristics      *
    The function module has two capabilities:
    1. Retrieve only the necessary characteristics
    2. Retrieve the whole characteristics into an internal table.
    Parameter Description                                                *
    In the future, if there is a new characteristic added to the
    plant classification tables, the characteristic has to be added
    to the list of the export parameters and the loop statement.
      TABLES: ausp, cabn, ksml, zdef_delplant.
      DATA: ws_objek LIKE ausp-objek,
            ws_countchar TYPE i,
            ws_countplant TYPE i.
    *Internal table for SAP plant
      DATA: BEGIN OF int_plant OCCURS 0,
            plant LIKE ausp-objek,
            END OF int_plant.
    *sap plant code is the input parameter.Move objek, atnam, and atwrt to
    *internal table PLANTCHAR using inner join of AUSP, CABN, and KSML to
    *synch up the internal characteristic numbers throughout the 3 tables.
      IF NOT ip_sapplant IS INITIAL.
        SELECT auspobjek cabnatnam ausp~atwrt
          INTO CORRESPONDING FIELDS OF TABLE int_plantchar
          FROM ksml AS ksml
          INNER JOIN cabn AS cabn
            ON cabnatinn = ksmlimerk
          INNER JOIN ausp AS ausp
            ON ausp~objek = ip_sapplant
            AND auspatinn = cabnatinn
            AND ausp~mafid = 'O'
            AND ausp~klart = 'Z01'.
    *Checking the existence of ip_sapplant in the table, if it doesn't
    *exist, raise the exception else if it exists, check if it has
    *characteristic values.
        IF sy-subrc NE 0.
          RAISE no_objek_found.
        ELSE.
          DESCRIBE TABLE int_plantchar LINES ws_countchar.
          IF ws_countchar LT 2.
            RAISE valid_plant_no_characteristic.
          ENDIF.
        ENDIF.
    *cps plant code is the input parameter. Move objek from table AUSP to
    *ws_objek using inner join of CABN and AUSP to match up the internal
    *characteristic numbers from the 2 tables.
      ELSEIF NOT ip_cpsplant IS INITIAL.
        SELECT ausp~objek
          INTO TABLE int_plant
          FROM ausp AS ausp
          INNER JOIN cabn AS cabn
            ON cabn~atnam = 'OLDCODE'
              WHERE auspatinn = cabnatinn
                AND ausp~mafid = 'O'
                AND ausp~klart = 'Z01'
                AND ausp~atwrt = ip_cpsplant.
    *Checking the existence of ip_cpsplant in the table
        IF sy-subrc EQ 0.
    *Counting the number of SAP plants in the internal table int_plant
          DESCRIBE TABLE int_plant LINES ws_countplant.
    *Moving the values of objek, atnam, and atwrt to PLANTCHAR using objek
    *from ws_objek.
          IF ws_countplant EQ 1.
            LOOP AT int_plant.
              SELECT auspobjek cabnatnam ausp~atwrt
                INTO CORRESPONDING FIELDS OF TABLE int_plantchar
                FROM ksml AS ksml
                INNER JOIN cabn AS cabn
                  ON cabnatinn = ksmlimerk
                INNER JOIN ausp AS ausp
                  ON ausp~objek = int_plant-plant
                  AND auspatinn = cabnatinn
                  AND ausp~mafid = 'O'
                  AND ausp~klart = 'Z01'.
            ENDLOOP.
    *If there more than one SAP Plants, then raise an exception.
          ELSEIF ws_countplant GT 1.
            RAISE one_to_many_issue.
          ENDIF.
        ELSE.
          SELECT SINGLE werks FROM zdef_delplant
            INTO ws_objek
            WHERE cpsloc = ip_cpsplant.
          SELECT auspobjek cabnatnam ausp~atwrt
           INTO CORRESPONDING FIELDS OF TABLE int_plantchar
           FROM ksml AS ksml
           INNER JOIN cabn AS cabn
             ON cabnatinn = ksmlimerk
           INNER JOIN ausp AS ausp
             ON ausp~objek = ws_objek
             AND auspatinn = cabnatinn
             AND ausp~mafid = 'O'
             AND ausp~klart = 'Z01'.
          if sy-subrc ne 0.
            raise plant_not_found_zdef_delplant.
          endif.
        ENDIF.
    *cps plant code is the input parameter. Move objek from table AUSP to
    *ws_objek using inner join of CABN and AUSP to match up the internal
    *characteristic numbers from the 2 tables.
      ELSEIF NOT ip_sisloc IS INITIAL.
        SELECT ausp~objek
          INTO TABLE int_plant
          FROM ausp AS ausp
          INNER JOIN cabn AS cabn
            ON cabn~atnam = 'SISLOC'
              WHERE auspatinn = cabnatinn
                AND ausp~mafid = 'O'
                AND ausp~klart = 'Z01'
                AND ausp~atwrt = ip_sisloc.
    *Checking the existence of ip_sapplant in the table
        IF sy-subrc EQ 0.
          DESCRIBE TABLE int_plant LINES ws_countplant.
    *Moving the values of objek, atnam, and atwrt to PLANTCHAR using objek
    *from ws_objek.
          IF ws_countplant EQ 1.
            LOOP AT int_plant.
              SELECT auspobjek cabnatnam ausp~atwrt
                INTO CORRESPONDING FIELDS OF TABLE int_plantchar
                FROM ksml AS ksml
                INNER JOIN cabn AS cabn
                  ON cabnatinn = ksmlimerk
                INNER JOIN ausp AS ausp
                  ON ausp~objek = int_plant-plant
                  AND auspatinn = cabnatinn
                  AND ausp~mafid = 'O'
                  AND ausp~klart = 'Z01'.
            ENDLOOP.
    *If there more than one SAP Plants, then raise an exception.
          ELSEIF ws_countplant GT 1.
            RAISE one_to_many_issue.
          ENDIF.
        ELSE.
          SELECT SINGLE werks FROM zdef_delplant
            INTO ws_objek
            WHERE sisloc = ip_sisloc.
          SELECT auspobjek cabnatnam ausp~atwrt
           INTO CORRESPONDING FIELDS OF TABLE int_plantchar
           FROM ksml AS ksml
           INNER JOIN cabn AS cabn
             ON cabnatinn = ksmlimerk
           INNER JOIN ausp AS ausp
             ON ausp~objek = ws_objek
             AND auspatinn = cabnatinn
             AND ausp~mafid = 'O'
             AND ausp~klart = 'Z01'.
          if sy-subrc ne 0.
            raise plant_not_found_zdef_delplant.
          endif.
        ENDIF.
      ELSE.
    *Checking if there is an input parameter entered.
        RAISE no_input_found.
      ENDIF.
    Modified 7/30 by RFOR to validate SAP plant is in plant master
      data: wa_t001w like t001w.
      read table int_plantchar.
      SELECT SINGLE * from t001w into wa_t001w where
      werks = int_plantchar-objek.
      if sy-subrc ne 0.
        raise NO_OBJEK_FOUND.
      endif.
    *Moving all the characteristic values to the export parameters
      LOOP AT int_plantchar.
        MOVE int_plantchar-objek TO ep_sapplant.
        CASE int_plantchar-atnam.
          WHEN 'OLDCODE'.
            MOVE int_plantchar-atwrt TO ep_cpsplant.
          WHEN 'SISLOC'.
            MOVE int_plantchar-atwrt TO ep_sisloc.
          WHEN 'OWNERSHIP'.
            MOVE int_plantchar-atwrt TO ep_ownership.
          WHEN 'SMISTYPE'.
            MOVE int_plantchar-atwrt TO ep_smistype.
          WHEN 'SPOTREF'.
            MOVE int_plantchar-atwrt TO ep_spotref.
          WHEN 'SUBTYPE'.
            MOVE int_plantchar-atwrt TO ep_subtype.
          WHEN 'SUPPLYREGION'.
            MOVE int_plantchar-atwrt TO ep_supplyregion.
          WHEN 'TYPE'.
            MOVE int_plantchar-atwrt TO ep_type.
          WHEN 'DISTAREA'.
            MOVE int_plantchar-atwrt TO ep_distarea.
          WHEN 'GEOGAREA'.
            MOVE int_plantchar-atwrt TO ep_geogarea.
          WHEN 'HMF'.
            MOVE int_plantchar-atwrt TO ep_hmf.
          WHEN 'IATACODE'.
            MOVE int_plantchar-atwrt TO ep_iatacode.
          WHEN 'IRSTCN'.
            MOVE int_plantchar-atwrt TO ep_irstcn.
          WHEN 'OPSAREA'.
            MOVE int_plantchar-atwrt TO ep_opsarea.
          WHEN 'PLANTSTAT'.
            MOVE int_plantchar-atwrt TO ep_plantstat.
          WHEN 'PORTCODE'.
            MOVE int_plantchar-atwrt TO ep_portcode.
          WHEN 'REFAREA'.
            MOVE int_plantchar-atwrt TO ep_refarea.
          WHEN 'SAPTYPE'.
            MOVE int_plantchar-atwrt TO ep_saptype.
          WHEN 'MFG_WARRANTY'.
            MOVE int_plantchar-atwrt TO ep_mfgwarranty.
          WHEN 'USER_TYPE'.
            MOVE int_plantchar-atwrt TO ep_usertype.
          WHEN 'TERMINALCENTER'.
            MOVE int_plantchar-atwrt TO ep_trmcenter.
          WHEN 'TRANSPORTATIONCENTER'.
            MOVE int_plantchar-atwrt TO ep_transcenter.
          when 'FEIN'.
            move int_plantchar-atwrt to ep_fein.
        ENDCASE.
      ENDLOOP.
    ENDFUNCTION.
    Pls help me out from this problem its very urgent.
    Thanks

    hi SK ,
    process like this .
    in BADI
    method.
    1.Here u have to put ur logic based on the Requirement.
    2.then u have to call BTE like this
    <b>call function 'OPEN_FI_PERFORM_00001020_E'
          tables
            t_bseg = xbseg
            t_bkpf = xbkpf.</b>
    3.Update Ztables.
    endmethod.
    this is sample logic only.First get logic of TS then u will come to know how to do?
    regards
    prabhu

  • Business event issue

    Hi,
    I am invoking an oracle seeded business event oracle.apps.po.rcv.rcvtxn through Receiving Transaction.
    This event should call a PL/SQL function. But I receive a notification in saying:
    Event Error Name: WFE_DISPATCH_RULE_ERR
    Event Error Message: 3825: Error '-4061 - ORA-04061: existing state of has been invalidated
    ORA-04061: existing state of package "APPS.XX_PO_RCV_TXN_LABEL" has been invalidated
    ORA-04065: not executed, altered or dropped package "APPS.XX_PO_RCV_TXN_LABEL"
    ORA-06508: PL/SQL: could not find program unit being called: "APPS.XX_PO_RCV_TXN_LABEL"' encountered during execution of Rule function 'xx_po_rcv_txn_label.receive_business_event' for event 'oracle.apps.po.rcv.rcvtxn' with key '196017-13587'.
    Event Error Stack:
    Wf_Event.dispatch_internal()
    I am sure that this message is incorrect as I changed the package name to XXRCVTXN and business event is still calling old package XX_PO_RCV_TXN_LABEL.
    Secondly, when I resubmit this event through notification worklist in sysadmin responsibility, it completes successfully and does the intended processing.
    Can someone please point out why this discrepency is there?
    Thanks in advance

    The message is correct: the original package XX_PO_RCV_TXN_LABEL has indeed been invalidated when you have recompiled it. The business event turns to an old version pf the package, ... but it has been flagged as invalid in the share pool. Even if you recompile, or even drop the package, the workflow system will still turn to the old package version.
    What to do: restarting the application services will definitely solve the issue (providing, of course, that the new package version is in valid state). For a production system this will cause downtime, so you could try to restart the Workflow Deferred Notification Agent Listener and perhaps the Workflow Notification Mailer.

  • APPS Adapter (ESB) error while reading standard business event

    Hi,
    I tested the sample services on TEST (myhost:7780) to consume the standard business event (oracle.apps.ar.hz.PartySite.create). Following exceptions are logged in j2ee log files (Section-1). The business event message is also rejected (see section-2).
    Does anyone in this forum ever faced this issue OR any idea to address this issue more correctly.
    If you want I can provide the sample service deatail in email.
    J2ee Logs (Section-1)
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-09-28T19:15:08.676-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="WARNING"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>myhost</HOST_ID>
    <HOST_NWADDR>212.112.194.34</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>80</THREAD_ID>
    <USER_ID>oracle</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>212.112.194.34:69270:1191017705321:68</UNIQUE_ID><SEQ>7043</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Caught PCRetriableResourceException, reject/retry the message</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[ORABPEL-12600
    Generic error.
    java.lang.NullPointerException
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:368)
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:295)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:293)
    at oracle.tip.adapter.apps.AppsMessageEndpointImpl.onMessage(AppsMessageEndpointImpl.java:89)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.doRaise(AQActivationSpecDequeuer.java:375)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raiseInboundInteraction(AQActivationSpecDequeuer.java:314)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raise(AQActivationSpecDequeuer.java:246)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:225)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
    at java.lang.Thread.run(Thread.java:595)
    Please create a Service Request with Oracle Support.
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:388)
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:295)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:293)
    at oracle.tip.adapter.apps.AppsMessageEndpointImpl.onMessage(AppsMessageEndpointImpl.java:89)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.doRaise(AQActivationSpecDequeuer.java:375)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raiseInboundInteraction(AQActivationSpecDequeuer.java:314)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raise(AQActivationSpecDequeuer.java:246)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:225)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:368)
    ... 12 more
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-09-28T19:15:08.677-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>myhost</HOST_ID>
    <HOST_NWADDR>212.112.194.34</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>80</THREAD_ID>
    <USER_ID>oracle</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>212.112.194.34:69270:1191017705321:68</UNIQUE_ID><SEQ>7043</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Exception in onMessage. Rejecting the message now</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.NullPointerException
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.recordException(ESBListenerImpl.java:324)
    at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:299)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:293)
    at oracle.tip.adapter.apps.AppsMessageEndpointImpl.onMessage(AppsMessageEndpointImpl.java:89)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.doRaise(AQActivationSpecDequeuer.java:375)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raiseInboundInteraction(AQActivationSpecDequeuer.java:314)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.raise(AQActivationSpecDequeuer.java:246)
    at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:225)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
    at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    Reject Message Section-2
    <WF_EVENT_T xmlns="http://xmlns.oracle.com/xdb/APPS">
    <PRIORITY xmlns="">50</PRIORITY>
    <SEND_DATE xmlns="">2007-09-28T19:13:22.000-04:00</SEND_DATE>
    <RECEIVE_DATE xmlns="">2007-09-28T19:15:08.000-04:00</RECEIVE_DATE>
    <CORRELATION_ID xmlns=""></CORRELATION_ID>
    <PARAMETER_LIST xmlns="">
    <PARAMETER_LIST_ITEM>
    <NAME>USER_ID</NAME>
    <VALUE>1395</VALUE>
    </PARAMETER_LIST_ITEM>
    <PARAMETER_LIST_ITEM>
    <NAME>RESP_ID</NAME>
    <VALUE>50360</VALUE>
    </PARAMETER_LIST_ITEM>
    <PARAMETER_LIST_ITEM>
    <NAME>RESP_APPL_ID</NAME>
    <VALUE>660</VALUE>
    </PARAMETER_LIST_ITEM>
    <PARAMETER_LIST_ITEM>
    <NAME>SECURITY_GROUP_ID</NAME>
    <VALUE>0</VALUE>
    </PARAMETER_LIST_ITEM>
    <PARAMETER_LIST_ITEM>
    <NAME>ORG_ID</NAME>
    <VALUE>103</VALUE>
    </PARAMETER_LIST_ITEM>
    <PARAMETER_LIST_ITEM>
    <NAME>PARTY_SITE_ID</NAME>
    <VALUE>217048</VALUE>
    </PARAMETER_LIST_ITEM>
    </PARAMETER_LIST>
    <EVENT_NAME xmlns="">oracle.apps.ar.hz.PartySite.create</EVENT_NAME>
    <EVENT_KEY xmlns="">oracle.apps.ar.hz.PartySite.create112538</EVENT_KEY>
    <EVENT_DATA xmlns=""></EVENT_DATA>
    <FROM_AGENT xmlns="">
    <NAME>WF_BPEL_QAGENT</NAME>
    <SYSTEM>ECSTST2.ARROW.COM</SYSTEM>
    </FROM_AGENT>
    <TO_AGENT xmlns=""/>
    <ERROR_SUBSCRIPTION xmlns="">okUY5xyheOjgMCOCKYkzaQ==</ERROR_SUBSCRIPTION>
    <ERROR_MESSAGE xmlns=""></ERROR_MESSAGE>
    <ERROR_STACK xmlns=""></ERROR_STACK>
    </WF_EVENT_T>
    Thanks in Advance.
    --KB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi
    I've recently had issues with the Apps Adapter for event listening when i upgraded to 10.1.3.3
    There have been problems with the way the namespace is derived. I applied patch 6267726 and now it works great!
    When I create a new listener for an event, a new xsd is created, specific to the name of the adapter process in EBS and henceforth the payload has that specific namespace attached. For example:
    http://xmlns.oracle.com/xdb/APPS/ListenForOrganizationCreate
    Events then get raised that reflect that namespace. XSL transformations then need to reflect that namespace in your routing rules.
    It may be that the XSLT mappings are expecting a different namespace than you are receiving..
    Give the patch a try if you are on 10.1.3.3 and then try and rebuild a process from scratch to see if it works.
    Chris

Maybe you are looking for

  • Motion assistant 2.1 code generation...

    HI all! I have a problem generating labview code with motion assistant 2.1 ; My labview version is 8.2.1 and I've tried all manner of installs / uninstalls combinations trying to get it to generate labview code. It consistantly gives me the error: La

  • Global ALV Layouts for Costing report

    For   T code  S_P99_41000111 ie Analyse / compare material cost estimate  , I  want to create a global ALV layout  . When I am trying to create the layout option  for user specific layout comes with tick greyed out .System does not allow to remove th

  • Add a font to report builder?

    Is it possible to add a new font to report builder 3.0? I'm new to this and trying to create a report that uses the font Whitney Book (or one similar to it) but I can't figure out how to add it to the report builder. Thanks in advanced!

  • RoboHelp 8 & Chrome - webhelp displays more than once

    Robohelp 8 (up-to-date on patches) Webhelp - context sensitive Problem when using Chrome When a user clicks on a help link, the webhelp page displays. If the user opens another dialog in the application, the webhelp page displays again. While not cri

  • Is there an older version I can install for Premiere Pro in the CC?

    Apparently the Pr App does not appear in my CC Download because of my computer specs. Windows 7 Intel Core Duo The reason we join in to CC is because of Premiere and the app can not even be installed in my computer, so is there a friendly version I c