SSM MODULES and Mars events and local?

Is it possible to setup an AIP-SSM Module to log event alerts to Its local cache as well as the Mars Appliance. I say this because I ran some tests for alerts and never see them on the IPS module itself but i do see them on the Mars Appliance correctly! I dont know what setting would need to be changed to make sure that the event alerts are logged to the local IPS itself. Or is this even possible?
does anyone know how to make it log locally and to the MARS Appliance?
Thanks,

Make sure Bypass mode is not enabled on IPs Module. Another workaround for this issue is to reload the Advanced Inspection and Prevention Security Services Module (AIP-SSM) IPS module with the hw-module module 1 reload command, and tune any noisy signatures in order to lighten the sensor load.

Similar Messages

  • Start workflow with f. module to trigger event and how to pass data to BOR?

    Hi,
    I have a custom BOR object, with Event "Created". I have also an attribute in this BOR, just simple field Plant.
    I have prepared a custom Workflow which is triggered when event Created of that custom BOR business object is raised.
    To raise an event and to start a workflow I run f. module SAP_WAPI_CREATE_EVENT.
    I have a problem to pass a Plant value to the Workflow container. In the PFTC_CHG for my Workflow I made the container
    of BOR object, and the data binding &_EVT_OBJECT& => &MATREQ&  (symbol of my BOR).
    Below both of EVTOBJECT and MATREQ I can see my field Plant.
    Then I run f. module SAP_WAPI_CREATE_EVENT with tables parameter input_container.
    I try to fill the data in many ways, but the started workflow does not have Plant filled.
    I try to use '_EVT_OBJECT.WERKS' in field name for input_container parameters.
    Business Object is passed to the Workflow container, but I do not get the fields
    as attributes. Do I have to use the parameters for the event Created ?
    Thank you in advance
    Wojtek

    Hello,
    I've never used GUID as a key but I suppose the principles are the same - the object instance is equivalent to "something", say a widget.
    This widget has attributes, e.g. the factory where it was created, the day it was created, its weight etc.
    If you make a widget BOR object and you specify attributes then you're telling SAP how, given the key, it can deduce the value of the attributes. Widget 1234's weight can be looked up in table XXX by doing this select.
    If you pass an object instance to a workflow then all you need to pass is the type of object and the key, the rest can be done by the workflow (or any other program). It can instantiate the object, and the attribute values are immediately available.
    If you can instantiate the object in SWO1 and the attributes get values, then it should work in the workflow as well.
    If not, please provide the code of the attribute or describe how it finds the attribute value.
    regards
    Rick Bakker
    hanabi technology

  • [Embed(source="...   And dispatching events and trace commands not working

    Hi,
    I have a main swf that Embeds another swf.  In the embedded (child) swf I have trace commands and it dispatches events. 
    I embed the child swf like this:
    [Embed(source="../assets/child.swf", symbol="ChildMC")]
    public var ChildMC:Class;
    var child_mc = new ChildMC();
    child_mc.addEventListener(Event.COMPLETE, childComplete);
    addChild(child_mc);
    function childComplete(event:Event):void
    at the end of the timeline in the child swf I have: dispatchEvent(new Event(Event.COMPLETE));
    When I test the main swf, I can see the child swf, but the main swf can't catch any of the dispatched events and I don't get any trace commands from the child swf.
    How can I catch events from an embedded swf?
    thanks!

    I did a quick sample with two fla's.
    The first loads in a child swf and then calls a funtion on the main timeline:
    var url:String = "loadTestChild.swf";
    var urlRequest:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_complete);
    loader.load(urlRequest);
    addChild(loader);
    function loader_complete(evt:Event):void {
       evt.currentTarget.content.callMeFromParent();
    The child swf has this code on the main timeline:
    function callMeFromParent ():void {
              trace ("called from parent whoop");
    Running the parent, the trace is called.
    So with this you should be able to call any function you have in the child from the parent.

  • Moving and copying events and projects to an external hard drive using Imovie09-Source clip is missing

    Some background on what I am doing is importing all of my home video into an event in IMovie. Since DVD's can only hold about 2 hours of footage, I am making a new project for each 2 hours so I can burn the footage onto a DVD. I want to make space on my internal hard drive so I am trying to move the projects that are completed to an external drive. Because I also don't want to lose any footage I have imported into the event I am also copying the home video event to the external drive. (didn't want to move it yet until I know what i am doing, just in case it is lost somehow).
    I tried moving a project to the external drive (it was a slideshow for my daughters first birthday which contained photos and video clips from the event that was already copied to the external drive). The project did move to the external hard drive but on the video clips there is a yellow triangle that says source clip is missing. I am moving and copying from within Imovie and NOT the finder so I don't understand why it says the clip is missing when it is definitely a part of the event that is already on the external drive.
    What is interesting is the source clip is missing error showed on the first birthday project but it did NOT show as an error when I moved the 2 hour home video project. (All of the video in these projects are coming from the same home video event)
    I am trying to make sure that when I move the projects permanently off the internal hard drive and onto the external drive, that I am not losing any part of my projects. I want to be able to easily move them back and forth if needed without any missing files.
    Any suggestions as to why I am still receiving the yellow triangle?

    As I can't see what you are doing, I can't tell you what you might be doing wrong.
    You could try trashing the preferences.
    Many weird things happen as a result of corrupt preferences which can create a vast range of different symptoms, so whenever FCP X stops working properly in any way, trashing the preferences should be the first thing you do using this free app.
    http://www.digitalrebellion.com/prefman/
    Shut down FCP X, open PreferenceManager and in the window that appears:-
    1. Ensure that only  FCP X  is selected.
    2. Click Trash
    The job is done instantly and you can re-open FCP X.
    There is absolutely no danger in trashing preferences and you can do it as often as you like.
    The preferences are kept separately from FCP X and if there aren't any when FCP X opens it automatically creates new ones  .  .  .  instantly.

  • Is it possible to duplicate (new and existing) events and paste them into a new calendar automatically?

    I have four google calendars connected to my mac via CalDav, and i need to have all the events in all those four calendars into a new one also in google calendar. So, i want to know if it is possible to configure an automator action or an applescript that duplicate events (the old ones and the new events i'll create) of some calendars into a new one. It would be like grouping some calendars to create a new one, without deleting those calendars, do you understand? Is it possible? I want to made this as transparent for me as possible, automatic.
    Thanks for helping! and sorry about my english

    If you are importing from a CD, you can tell iTunes not to automatically import the CD (Edit->Preferences: When you insert a CD: Ask to Import CD). That's what I do. I then edit the track names and album artists to be what I want before I import the CD. After the import is done, I go back to the CD (by album name in the search bar) and correct the album art.
    The other way (which is what you need to do if you are downloading digital files, such as Amazon MP3) is to remember the "Recently Added" playlist. That's a subset of albums added in the last few weeks, so it presumably should be easier to find the new albums. Again, you can go there and edit the information.
    If "Recently Added" is still got too much, you can edit the smart playlist to shorten the time period and create a "Really Recently Added" Playlist.
    I'm familiar with managing music in large libraries: I've been recording from LP into my iPod this week (plus adding some CDs I had forgotten about), and currently have 26878 tracks.

  • Best practice required to configure CW and MARS SM and ACS

    Dear All,
    i had alot of managment program in my corporate org.
    CW LMS
    CW HUM
    CW QPM
    CW IPM
    ACS
    MARS
    Cisco IPS IDS 4260
    WLC
    tandberg system
    could you gude what is the best service from cisco that i could buy it to have a profetional  service to configure over all system in one integrated unite ,
    so i have one report shows all the issue with customize GUI, for managers , directors , and CTO, CEO,,
    thank you in advance,
    Ali Alkhafaji

    I have the code working without use of config files. I am just disappointed that it is not working using the configuration files. That was one of the primary intents of my code re-factoring. 
     Katherine
    Xiong , If you are proposing this as an answer then does this imply that Microsoft's stance is not to use configuration files with SSIS?? Please answer.
    SM

  • If i move my iphoto & iMovie source library / Events and Projects to an external hard disk, due to size, will my existing slideshows work ?

    I need to move my photo library and Movies (Events and Projects) to an external hard disk as my 700gb drive on my iMac is now full (*see note below)
    I have brought 2 Samsung External drives (3TB each) which I plan to partition each for Photos and Movies i.e 2 partitions on each drive, and will use one for use with iPhoto and iMovie, and the other drive for a dedicated backup. I will backup the remainder of my iMac hardisk to a seperate disk.
    What has just occured to me is that after I have moved the libraries I cannot see how existing iMovie projects and iPhoto Slideshows will work, as each Application will be looking for the source files on the original iMac hardisc (I assume).
    I am running Snow Leopard v10.6.8 ( I did not want to upgrade to Mountain Lion as I was told the iPhoto and iMovie changes were a 'backward' step. However I now want to upgrade to Mountain Lion, for security updates reasons mainly, and so need to free up my hard drive.
    Can anyone advise on the best way to proceed ?
    * - the iMac hard disk become full very suddenly, possibly due to duplicates, as I have noticed duplicate events and clips in my iMovies event library. I have noticed that some events are also now not showing, with message 'No video clips match the current selection' (I have not search criteria set).
    Thanks

    I was planning on manually backing up my external to the time capsule - but is there a way to set it up to back up automatically instead?
    Time Machine will backup up automatically - you can not have your iPhoto library on the same volume as the TM backup (it will not work and it would not be a backup)
    Dragging the iPhoto library to any external drive will backup it us also
    I was also thinking about having the library copied to another external (I mean we're talking about irreplaceable photos here) - would i just drag a copy of the library to that drive as well?
    Yes - that is a good idea - I run TM giving me hourly backups and a daily clone of my entire system giving me a bootable backup - plus do an occasional TM backup at our second home so I have one off site
    is it possible to deal with my imovie library in the same way? so all my movies and photos are on my external?
    Probably - but I use iMovie very little - better question for the iMovie forum
    LN

  • Mouse move to the edge of the tabitem and this will trigger mosueenter and mouseleave event again and again

    I have registered the tabitem mouseenter and mouseleave event, and when user move the mouse in tabitem a block will follow, if mouse leave the block will return to the original position. Now I meet a weird thing, when I MOVE THE MOUSE TO THE EDGE OF TABITEM
    CAREFULLY, the block will follow and return again and again. Have you ever meet this problem?
    void fe_MouseLeave(object sender, MouseEventArgs e)
    TabItem item = this.SelectedItem as TabItem;
    if (item != null && item.IsVisible)
    //block return to origin position
    BeginAnimation(item);
    void fe_MouseEnter(object sender, MouseEventArgs e)
    TabItem item = sender as TabItem;
    if (item != null && item.IsVisible)
    //block go to the mouse position
    BeginAnimation(item);

    The MouseLeave and MouseEnter are routed events and this means that your event handlers will get invoked whenever a child element of the TabItem raises any of these events, for example when the mouse enters and leaves an element that is part of the control
    template of the TabItem.
    You also need to understand that the entire TabItem is not a single UI element. It is for example made up of a header and a content panel and this means that there will be at least one MouseLeave and one MouseEnter event raised when you move the mouse pointer
    from the content panel area (which is made up of some elements) into the header area (which is made up of some other elements) and the other way around.
    You need to reconsider your approach here because the MouseLeave and MouseEnter routed events will be fired even when the mouse pointer remains inside the area that you consider to belong to the single TabItem.
    Please remember to mark all helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Where best to put Events and Projects with multiple drives...

    I just got a new iMac, and I need to know how to maximize its speed with FCPX in terms of hard drives. 
    My old iMac had two internal drives:  a 256 GB flash drive and a 2 TB standard drive.  On that iMac, I had the OS and FCPX on the main internal SSD, and my events and projects on the secondary internal drive (the magnetic internal drive).
    My new iMac is the latest 27" iMac with an i7 3.5 GHz, 32 GB RAM, and an NVIDIA GeForce GTX 780M 4GB GDDR5 video card.  It also has USB 3.0 and Thunderbolt, and only one internal drive: a 512 GB SSD drive.  I am connecting a 6 TB OWC external magnetic drive (with 128 MB cache) to my new iMac via a LaCie Thunderbolt to eSATA adapter (the drive and adapter are a combination that OWC sells, has tested, and recommends).  I plan to use Disk Utility to make this 6 TB external drive (which is 3 TB + 3 TB hard drives in one enclosure) raid 0 for fastest speeds.
    With this new setup, my initial thought is to put both my FCPX events and projects on this 6 TB external drive.  But is that the best option?  Would it be better to get another high speed external Thunderbolt drive and put the events on one drive and the projects on another?  I have a feeling that putting them on one drive is the way to go, and that there would not be much, if anything, to gain by putting the events and projects on separate drives.  But I'd really appreciate any advice.
    Thanks!

    Hi Russ--
    Only in the past year I have implemented a backup strategy.  I've never had an internal hard drive fail.  Until recently, I had never had any drive failure.  Then I bought some desktop external drives from Seagate and paid quite a bit more for Seagate's FW800 adapters for them (my last iMac only had FW800 and USB 2.0).  The drives kept getting corrupted, so I was copying terabytes of data back and forth to restore the affected data.  Turns out it was the FW800 adapters all along.  Seagate was aware of the problem, and had a firmware upgrade, but has done absolutely nothing to publicize the fact.  I'll never buy their stuff again.
    But I'm still using Carbon Copy Cloner (great software, great support), and now that I switched back to the original USB 3.0 interfaces, the Seagate drives are reliable.  So I will continue to use CCC and those drives as my back-up strategy.  I was playing with fire for decades by not doing any backups.  It's ironic that I only started having problems when I started to back things up!
    The speed of the 512 GB internal drive on this new iMac is insane (the external drive arrives tomorrow, so I don't know about it yet).  The internal SSD drive clocks in at 697 write and 723 read (compared to 179 and 207 on my old iMac's internal SSD drive).  I am anxious to see what the external drive clocks in at tomorrow.

  • Life and Work events in ESS

    Hi All
    We are uing NW04S SPS10 with ECC 6.0.
    We need to enable Life and work events in Portal.
    I have deployed the business package for ess ( erp 1.0)
    I went to Guide Procedure --> Admin --> Transport --> Mange Imported Objects ---> released the objects
    Now under Guide Procedure --> Design Time --> I see all the folders with Life and work events in it.
    I get an option to click and "OPEN' and see all screens.
    Q1) Now how to assign these screens to the users ?
    If i click the Life and work events and select anyone like MY Benefits I am getting
    <b>Fill Parameters   2  
    Edit Roles   3  
    Edit Basic Data
    2 roles out of 2 roles have no user assigned</b>
    what is this screen.I want directly the main screen where user enters his data.
    Or any  configuration is needed from my side to activate for the user.
    How to configure the screen for final output to complete the configuration of Life and Work Events.
    Pls let me know how to do it.
    Q2) What needs to be done if some additional fields have to be added to some screens or the screen flow needs to be changed.
    Greatly appreciate your inputs.
    Thanks.
    Devi

    pl check note 929447.. you need to assing applications to user...

  • Benifites and time event

    hi,(URGENT)
       v.v.thanks to anji reddy for giving valuable coding and reward also.
       please give me coding on 'benefits and time event' and some functional matrial also.
    regard : mahesh
    thanks in advance

    Woody,
    Check Schema TC00,
    The daily work schedule is imported as follows to table TZP:
    Time ID     Time        Duration
    01          00.00                   Time outside working time
    02          08.00                   Fill time
    03          09.75                   Core time
    04          12.00       0.75        Core time break
    05          09.00       0.25        Fill time break
    The time ID is used to control the assignment of time types to time
    pairs (function TIMTP) using the Time Type Determination Table (T555Z).
    The time pairs generated by function P2000 in table TIP are assigned
    pair type "1", if the day type according to the personal work schedule
    is blank or "0", and pair type "2" if the day type is "1".
    All clock times are decimalized beforehand. If there is a substitution
    with cost distribution on the day being evaluated, the appropriate split
    indicator is set.
    Hopefully this helps,
    Regi

  • Setting certain fiels to display only in Life and work events

    Hello gurus,
        we are implementing life and work events and are requesting you to give some suggestions, if possible. We have a globl version of the life and work events and in the similar lines, there are life and work events for other countries like singapore, India, Now, the requirement is that certain fields in these countries should be disabled for input. For example, I do not want the date of birth to be editable. Where and how do I go about making changes like these on the life and work events for certain fields to become "display only"?
    Could anybody please suggest?
    thank you,
    Maria Kutty

    Maria I tried what you asked for...but It came as a surprise to me that UI personalization for applications under "L&W Events" with "Ctrl+Right Click" Technique is not possible !!
    Thus according to my understanding... In order to make few fields readonly under "L&W Events" you have to go for NWDI level changes....
    Now as per your specific question "That you want same application to appear differently based on whether it is accessed from L&W Events OR it is accessed from ESS Overview section"... you can follow any of below approach :
    Approach 1:
    1. Modify your application (make fields read only) in NWDI...as per your L&W Events requirement.
    2. Now you can use this modified application as base...to make further changes with "Ctrl+Right click" technique...as then they will be applicable when user access this application from ESS Overview section...
    Approach 2:
    Create 2 separate applications useing NWDI....one for L&W Events...and another one for ESS Overview section....
    For application to be used in L&W Events you make changes using NWDI...
    And for application to be used in ESS Overview section...you can make changes using "Ctrl+Right Click" approach....
    Maria, i have not tried on what I am suggesting you....So please try it at your end and let us know.....if this works.....
    I would be glad if some Expert can comment on this approach further........
    Moreover a very strange part which I found is.....changes made to an application using "Ctrl+Right Click" approach are not visible/applicable when application is accessed from "L&W Events"....
    Which means if you have to make any UI changes under "L&W Events" applications you have to go for NWDI level changes.......

  • How notifications work in Life and work events

    Hi All,
    We are implementing Life and work events and we are trying to understand how the notifications work.
    for example we are executing birth/adoption  and in that we are executing address.when we change the address will the standard functionality send any notifications to the users who are specified as administrator,overseer during the starting of the process or it will directly update the IT 0006?
    If standard functionality doesnot send any notifications to users for approval process ,when we click on save in address screen ,we want to send notification to users and once they approved then we need to update IT 0006 and then create IT 0021.
    send me any links which talks about notifications in Life and work events
    Thanks
    Bala Duvvuri

    Hi,
    have a look in following
    https://wiki.sdn.sap.com/wiki/display/profile/InitialsettingstobedoneforLifeandWork+events

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • 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

Maybe you are looking for