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

Similar Messages

  • TEM: Relationship between External Person and Business Event

    Hi,
    The requirment is to have External Person to be related to Business Events.
    Please let me know whether it will be ideal to relate External Person to Business Events or External Person to Business Event Type?
    NOTE:As per the standard the relationship exist only between External Person(H) and Business Event Type (D).
    Will appreciate a quick reply.
    Thanks and Regards,
    Dev

    Hi Dev,
    U can create this relation through PP01. Select  Business event in the object type and go to relationship infotype and create the same...
    Regards,
    Sushil Soni

  • Integrating Workflow Process and Business Events

    Hi,
    Im trying to use events in oracle workflow process..im trying to run the demo
    process named 'Workflow Agent Ping / Acknowledge'. I have scheduled the listeners for local inbound agent WF_IN and propagations for local outbound agents WF_OUT. The master ping process begins executing and calls the detail ping process. The detail ping process begins execution but the process gets stuck on the receive event node.The process is not receiving the acknowledge event in return to the ping event. It does not move further,not allowing the detail ping process to complete, which as a result doesnot allow the master ping process to complete its execution.
    How do i make it move?
    Thankyou
    Saadia

    After launching the master process, check for the state of the message in WF_OUT queue. It could be that the message stays in READY state in WF_OUT and has not propagated to WF_IN queue.
    Check if DB init parameters aq_tm_processes is set to 1 and it is running. If the message is not found in WF_OUT even after launching the proces, check if the queue is enabled for enqueue. Also check if the Business Event System is ENABLED.
    SELECT text
    FROM wf_resources
    WHERE name = 'WF_SYSTEM_STATUS';

  • Update Business Event Description in PSV1

    Hi,
    I need to copy the Business Event Type description ( Program Objectives and Business Event Contents -Subtypes 2 and 3 ) into the description of each of the Business Events created under it. Can you suggest any BADI or User exit for the same? Is there any other alternative way?
    Regards,
    Himanshu

    Hi himanshu,
    Use the function module RH_OBJECT_DESCRIPTION_WRITE. Using this function module you can update the descriptions for each of the subtypes you have mentioned for each event.

  • Diffrenence between BAdi and BTE ?

    Hi All.
    Please tell me the Diffrenence between Badi and Business transaction events .why BTE need for SAP? what is this use?
    Reward all helpfull answers.
    Regards.
    Jay

    Hi,
    (1)BTE are comparabl to the old enhancements .
    (2)BTEs are used mostly within FI .
    (3)BTEs can be used both by SAP, third part vensdors and customers. Each use their own function modules where the logic is placed, so they don't interfere with each other .
    There are 2 types of BTE:
    (1)Publish & Subscribe interfaces. Can not update data. Posiible to have multiple implementations .
    (2)Process interfaces. Can update date. Only one active implementation .
    Differences are:
    The concept of the BADI is similar to Business Transaction Events (Open FI). BTEu2019s was developed specific to Financial Accounting module. But were as BADIu2019s was developed in generalised to all modules.
    BTEu2019s can only be used to make the program enhancements. You cannot enhance user interface with Open FI, but you can with Business Add-ins.
    Open FI assumes that enhancement can only take place on three levels i.e. SAP- partners u2013 customers, but in case of BAdiu2019s you can create and implement enhancements in as many software layers as you like.
    Function modules are used for program enhancements in Open FI. With BAdiu2019s, ABAP Objects is used to enhance programs.
    Check yhis link-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    http://www.*******************/2008/07/calling-badi-and-uses.html
    Regards,
    Sujit

  • Business event (HR) -- follow up

    Hi,
    how can I know the business event group and business event type of a business event?
    Thanks.

    Hi Joseph,
    If you have a BusinessEvent .. you can find out the Type and Group with a Relationship it holds in table HRP1001.
    Business Event Group is of Object Type "L"
    Business Event Type is of Object Type "D"
    and Business Event is of Object Type  "E"
    Business Event "E" is Linked BEType "D" with a Relationship <b>A020</b>
    BEType "D" is linked with BEGroup "L" with a Relationship <b>A003</b>
    Hope this helps you.

  • Training & Event Management - Business event appraisal

    Dear all,
    Wish you all a very Happy new year.
    I hve two questions.
    1. For e.g. there is one trainer who has conducted many training program in an org and business event appraisal has been performed where there is criteria to capture instructor information. Then how I can get a report for that trainer only. There is one selection criteria in the report of business event appraisal where I can select the instructor(appraisee) id. But it is not working.
    2. When there are more than one instructor in one business event, then how attendee appraisal and business event appraisal are done?
    3. In training & event mgt is it possible to perform periodic appraisal?
    Thanks,
    Have a happy weekend.
    Daniel

    Hi Daniel,
    There is no SAP standard report on Trainer wise attendance history for this purpose you have to define the Adhoc query.
    When there are more than one instructor in one business event it is a tough scenario to have attendee appraisal .
    In TEM it is possible to have periodic Appraisals.
    Warm Regards,
    Kapil Kaushal

  • 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

  • Business Event Appraisal - Not showing in PA30

    Hi All,
    We are implementing TEM on SAP 5.0 and replaced the old appraisal system with new appraisal system.
    I have prepared the Appraisal for Business Event, by selecting Attendee as appraiser and Business Event as Apraisee, the problem I am encountering here is after the preparation the document is not shown in any of the following areas in PA30 for infotype 25.
    1) Appraisal where Apraiser
    2) Objective setting & Appraisal(Open)
    But the Appraisal templates which are created under Personnel Appraisal(in PHAP_CATALOG), is shown but not the Appraisal templates which are created under SAP Learning Solution(in PHAP_CATALOG).
    Is there any configuration inorder to get this done?
    Any help in this regard is highly appreciated.
    Thanks
    Ramakrishna Ramadurgam

    Lincoln,
    Can you be precise, I mean which Integration settings your asking me to look into?
    One thing I noticed while debugging the code, it is getting Add On Application as 'PA', and passing this parameter to get the Personel Appraisal templates, in case if I modify as 'PD' in the debugging mode, it is fetching the Business Event Appraisal along with Personel Appraisal. Is there any setting for this to have PD passed in to the Add on Application variable.
    Thanks
    Ramakrishna
    Thanks
    Ramakrishna Ramadurgam

  • 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.

  • Short Dumps in standard HR Business Event Group/Event creation transactions

    Dear All,
    I m getting short dumps whlile executing standard HR transactions for Creation of Business Event Groups and Business Event Types. Attaching the Short Dump text herewith. Can anyone plz. help...
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
       not caught in
      procedure "RH_BASE_READ_INFTY_NNNN" "(FUNCTION)", nor was it propagated by a
       RAISING clause.
      Since the caller of the procedure could not have anticipated that the
      exception would occur, the current program is terminated.
      The reason for the exception is:
      Eine Open SQL-Klausel wurde dynamisch angegeben. Der darin auftretende
      Feldname "SUBTY" kommt in keiner der Datenbanktabellen aus der
      FROM-Klausel vor.
    Thanks and Regards,
    Sudipto.

    Hi,
    Check whether the OSS note 207515 is suitable for the below situation.
    Summary
    Symptom
    A dump occurs in program SAPLRHDB: DBIF_NTAB_TABLE_NOT_FOUND
    Additional key words
    RH_BASE_READ_INFTY_NNNN, LRHDBU16
    Cause and prerequisites
    The system wants to access table HRPnnnn  particularly by means of an entry in the infotype check table T777D. This access can be processed in various places, including in the profile generator. Here, a termination occurs if the 'ent' table/structure in the dictionary is no longer available. This generally affcts customer-specific infotypes. These have been created and possibly deleted again. However, the entry in table T777D is not available. You can also import the entry into another system with a transport of the table. If the HRP table/structure is then missing, a termination may also occur in this case.
    Solution
    You must check on an individual basis which infotype the termination refers to. If it is a customer-specific infotype, the customer is responsible for removing the cause of the termination. If the table entry is a 'remnant', the entry can simply be deleted.
    If the termination refers to an SAP structure, you should consult SAP before carrying out any further activities.
    Source code corrections
    Header Data
    Release Status: Released for Customer
    Released on: 23.03.2000  23:00:00
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: PA-BC Basis
    Releases
    Release Independant
    Satya

  • Portal Runtime Error Executing Edit Skills/Business Event Type Catalogue

    Hi All,
    I have recently migrated MSS business content from an EP6 portal to an EP7 solution, however, I am having problems getting the Edit Skills and Business Event Type functions to work.
    When I attempt to access the iViews, the following error messages are displayed:
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Application URL ':///sap(ZT1taG52cERaUjJHcG9BMXRBNHhTWTNnLS1JUjJ1MypTWW1SKjJXZXE3M2xtSEFRLS0=)/bc/gui/sap/its/zaw_pz31_ewt' is not valid!
    Please check the protocol and host entries for system 'SAP_R3_HumanResources'.
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : com.sap.portal.appintegrator.sap.IAC
    Component class : com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent
    Content pass of Application Integrator failed.
    Component Name: com.sap.portal.appintegrator.sap.IAC,
    Context Name (iView): com.sap.portal.appintegrator.sap.IAC,
    Top Layer: IAC/ITSDetectionLayer,
    Producer ID (FPN): null,
    System Alias: SAP_R3_HumanResources,
    Can anyone decipher this?
    Help is much needed so please feel free to respond
    Thanks,
    Bim.

    Bim, apparently there is a connection error in your ITS service.
    - check that zaw_pz31_ewt service is active, and it is located in "/bc/gui/sap/its/"
    - test the service in the SAP Client that is mapping against Portal
    - check that SAP_R3_HumanResources system is correctly assigned to the new configuration
    If error continues, go to Portal side: create a simple iview based on transaction iview template that calls to PZ31. That is for ensure the transaction is working fine.
    If it's OK, then create another iview but based on ITS iview template that refers to your service and test (maybe a property of your old iview is causing the problem)
    Regards

  • Retrieve general description/ contents in business event dates

    Hi all,
    May I know what function can I use to get general description, business event contents, notes, web link and etc in business event and business event dates? I would like to show this in my report.
    Thanks & regards,
    LOI

    Hi LOI,
    To read text fields, please use function module RH_OBJECT_DESCRIPTION_READ.
    Here give OTYPE as D if you want to retrieve data for business event type and as E for business event (with date).
    OBJID is the ID number.
    Specify the date and language at this you want the description at.
    SUBTY : 0001 - General description, 0002 - Business event contents, 0003 - Notes.
    To read web link see function module RH_READ_INFTY_1061.
    If this function does not satisfy the needs fully, please check out all other functions belonging to function group HRTEM00IWB.
    Regards,
    Dilek

  • Business Event during R12 upgrade (11.5.10.2 - 12.1.3)

    Best practices for R12 upgrade says to disable custom tiggers and business events.
    Disabling custom Triggers is fine , understood it.
    However the phrase "and business events." is a bit confusing for my customer.
    Though IMO ,it means disabling custom business events and not all ,however he is keen to know whether this means
    disabling standard business events as well.
    Also since we are bringing down all the services including WF services ,how can Business events be processed ?
    Moreover as far as I know ,enabling maintenance mode shuts down the Workflow Business Events System which means no business event will be processed.
    Thus why it is written in most of the Best Practices documents to disable business events ?
    thanks for your help.
    -SK

    I have never needed to disable business events in all the upgrades I did from 11.5.10.2 to 12.1.3 and I believe it is not mentioned in these docs (I understand it is mentioned in the best practices, but I believe it is not required).
    Oracle E-Business Suite Upgrade Guide Release 11i to 12.1.1 [ID 1082375.1]
    Oracle E-Business Suite Upgrade Guide, Release 11i to 12.1.3
    http://docs.oracle.com/cd/B53825_08/current/acrobat/121upgrade.pdf
    Thanks,
    Hussein

  • Deleting an instructor from a business event

    Good afternoon
    I have an internal instructor, with a relationship A023 "is reserved for", a specific business event. Unfortunately this business event belonged to a business event type which has been deleted incorrectly ie: the relationships were not deleted beforehand.
    I need to delete the A023 relationship between the instructor and business event, however when I go into PP01 to delete it I get the message "Relationship E A 023 P cannot be maintained using basic transaction."
    Please can you advise as to how I delete this.
    Many thanks
    Dawn

    Hi Dawn,
    Use SE16N - with &SAP_EDIT functionality for this kind of abnormal data.
    Or else use RHRHDC00 report with otype E objid id of the course infotype 1001 subtype A023.
    Regards,
    Dilek

Maybe you are looking for

  • Wireless not working at a hopeless tech person's house

    Wireless doing fine then I tried to connect the new direct tv connect kit. First step was to press my wan button on router till it blinked then press something on the direct tv connect thing. Never got it to talk to each other. But then none of my wi

  • PO without Receipts

    Help u2013 The workflow item keeps returning to my Client workflow. It is a purchase order that does not require a goods receipt. The PO quantity is 150 pieces and the Purchase Order History tab indicate that IR quantity is for 92 Pieces. This is the

  • I need to make a dividing line go down the length of each page

    I have the line in my master page. It separates my main content from the sidebar. I just got to a page where the main content runs deeper than my sidebar, so the short dividing line looks odd. I first tried to get around this by pinning it, but that

  • Why can't I enable hard drive on my iPod touch 5th generation?

    I'm using iTunes 11.04 and under Summary, it doesn't show "enable hard drive", can someone help me?

  • How to implement a subquery in CR2011 using native formulae?

    Hi All, If you look at the following SQL query, we want to have EquipRate based on Current Date for a EquipCode. How can I achieve the same result in Crystal reports designer using native formulas and functions. Thanks for your help. It will help us