How a custom component is called when we install a custom component in UCM.

How a custom component is called when we install a custom component in UCM.
On what event the component services will be activated and called.
Suppose i create a Custom service name MULTIPLECHECKIN then this service will be called on what event and where it will be defined to call.

Saurabh,
the code is packed in the component (see component\Security Filter\java\Security Filter\ModifyAttributesFilter.java - the first Security Filter is the component name, the other Security Filter is the Java package name).
What is important:
- your class must implement the FilterImplementor interface (you will need UCM standard classes - server.zip in your classpath) and its doFilter method
How the filter is executed?
- actually, in this case you don't need any new service - you can use the standard 'hook', which is provided by standard checkin services
- in Component Wizard create a new component, add your compiled class to it (make sure you follow the rules not to end up in classpath issues)
- in Component Wizard click the 'Java Code' tab. Here you can add a Custom filter called validateCheckinData, which is executed by standard checkin services. If you parametrize the filter to call your class created above, you are done.
'Working with Content Components' manual (e.g. here: http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/using_components_10en.pdf) can give you a basic picture. A better resource is Bex Huff's book - I would recommend you to get it, because it has a step-by-step HelloWorld example which can guide you through Component Wizard. I could also send you my own component (send me an email at [email protected]) which implements a filter for user quotas, so you just need to "replace classes".
As for the other half of your task, searching for the file in the database server will work only if you use database as your storage (ie. install and configure File Store Provider component accordingly). Of course, you could do a search for file in this case - just consider that you will be comparing two BLOBs rather than two relatively short check-sums (most likely strings or arrays of bytes). Besides, it will not work if you use filesystem as your storage.
Jiri

Similar Messages

  • How do i bar incomming calls when roaming but still receive messages

    How do i bar incomming calls when roaming but still receive messages

    I had this facility on my nokia phone. So iphone cant. Thanks for info

  • How long does face detection take when first install Aperture3?

    How long does face detection take when first install Aperture 3? 
    I just upgraded from Aperture 2 to Aperture 3 and installed latest updates to Aperture 3.2.2 and I have a message at the bottom of the browser: "Face detection..." with a spinning wheel. This has been going for over an hour.  But it took six hours for Aperture 3 to upgrade my Aperture 2 library (approximately 60,000 photos).  Am I looking at the same sort of time frame for "face detection"?

    Thanks for the info... but I just answered my own question: I went to Aperture Preferences (thanks to someone's suggestion that this is where to turn off Faces) and an activity screen popped up showing Face detection progress. (Cool!) It's going thru all my images... and right now the status is 4,080 of 55,182.  Very nice.  So looks like I have a few more hours to go!

  • How do I escalate a call when tech support lose intere

    -----Original Message-----
    From:
    Sent: 24 March 2005 7:6
    To: 'CLE Customer Support'
    Subject: FW: How long do you expect me to wait for a reply?
    Do I have to go to trading standards to get you to honour this warranty? This is a disgrace - sort it out. This is extremely poor customer service and a breach of your warranty.
    -----Original Message-----
    From:
    Sent: 22 March 2005 08:5
    To: 'CLE Customer Support'
    Subject: RE: CLE - Technical Support Request (KMM563096I2452L0KM)
    How do I escalate this call? I have a card that is not working under warranty and you seem unwilling to answer my mails any more. I hate to be the bearer of bad news but you have to. This card must be fixed or replaced, and it would be nice if that happened sooner rather than later. Why am I doing all the chasing by the way, you're a big enough supplier to get this sort of thing right, aren't you?
    Rob.
    -----Original Message-----
    From:
    Sent: 7 March 2005 08:40
    To: 'CLE Customer Support'
    Subject: RE: CLE - Technical Support Request (KMM563096I2452L0KM)
    Hello, it's me again, not heard from you for 5 days. Are you planning to reply? You have obligations of warranty which you are summarily failing to carry out here. Please sort this out!
    Rob.
    -----Original Message-----
    From:
    Sent: 3 March 2005 7:28
    To: 'CLE Customer Support'
    Subject: RE: CLE - Technical Support Request (KMM563096I2452L0KM)
    Situation changed. Having restored settings to previous state after doing all the below, about a day later I now have no sound at all for no reason whatsoever. I have rebooted, re-checked all connections etc etc, sound has just disappeared in the middle of the day without changing anything. It was fine this morning and now it's completely silent and PC's been on all day. This card is definitely dead, what else would do that?!?!
    Cheers,
    Rob.
    -----Original Message-----
    From:
    Sent: 2 March 2005 6:03
    To: 'CLE Customer Support'
    Subject: RE: CLE - Technical Support Request (KMM563096I2452L0KM)
    Hi,
    OK, I can't test on another PC as I don't have access to one, and I really dohope this is the last set of tests incidentally. It worked, then it stopped one day. A complete reformat and clean driver install didn't fix it. Re-seating the card didn't fix it. Seems pretty straight forward to me the card has failed, and I do need it replacing.
    I have however done everything else below as requested. If I select CMSS, I get no output for rear-left/rear-right using channel test. If I select CMSS2, I get output from the front speakers for rear-left/rear-right channels, but nothing from the rear.
    If I configure to 5. and enable CMSS I get output from jacks and 3 (orange & green)of the soundcard in the left headphone earpiece.
    Hear from you soon,
    Rob.
    -----Original Message-----
    From: CLE Customer Support [mailto:[email protected]]
    Sent: 2 March 2005 03:7
    Subject: RE: CLE - Technical Support Request (KMM563096I2452L0KM)
    Dear Rob
    Thanks for your reply
    Please test the soundcard on another PC(With different motherboard) Ensure onboard soundcard is disabled.
    Run creative diagnostic test, any problems?
    Go to device manager, is there any problem with soundcard?
    Configure the speaker setting as 5..
    Please enable CMSS and play MP3.
    Use a earphone and connect to line-out of soundcard.
    Any sound?
    Now please try on line-out3, any sound?
    Please verify the correct jacks you are connecting..
    CMSS is an option that allows you to play your audio to all 5. speakers even if you are not playing a true 5. encoded audio file. For example, if the sound is a stereo sound, it will duplicate the front channels, and send them to the rear channels. Then it will mix the left and right signals to create a center channel. Turning CMSS on basically simulates
    5. audio.
    TO TURN ON CMSS IN Mediasource
    . Open MediaSource (Start, All Programs, Creative, Creative MediaSource, Creative MediaSource Organizer).
    2. There should be an EAX button underneath the Record button at the bottom of the screen, towards the left. Beside this button, there should be a small ellipsis button (. . .) that you can press. Click on this.
    3. Go to the CMSS 3D tab and check the box next to "Enable CMSS 3D"
    4. Place a dot next to either CMSS or CMSS2. Whichever sounds better to you.
    It is important to remember that if you do wish to play a 5. encoded file, you will need to turn CMSS off. Otherwise you might not receive each discreet channel.
    Please retain all the previous correspondence when replying to this email.
    Best Regards
    Creative Customer Support Services
    Creative Labs Europe
    To provide feedback on your "Creative Experience" and our service please click on the following link:
    http://www.**bleep**.com/support/con...asp?r=CLE&d=TS
    Please do not use this link to submit technical queries
    Original Message Follows:
    Hi,
    Tried all that and still no joy unfortunately. Everything ok except output from rear-left and rear-right.
    Always disable onboard sound nad have just reformatted XP and reinatalled with drivers from creative website, so I know installation is not corrupt and up-to-date. I also had this problem before re-installation of XP, so suspect hardware rather than software failure.
    Have removed all traces of card/drivers and tried again and moved PCI slots with same results.
    Cheers,
    Rob.
    -----Original Message-----
    From: CLE Customer Support [mailto:[email protected]]
    Sent: 0 March 2005 03:37
    Subject: RE: CLE - Technical Support Request (KMM5590925I2452L0KM)
    Dear Rob
    Thanks for your reply
    Rear center is fine in speaker test...
    Anyway if you have test the speaker with another device and no issue for rear channels, there is no problem with speaker system now...
    Please insert the soundcard on another PCI slot, and make sure it is firmly inserted. Please disable any onboard sound card if available through BIOS.
    Go to Control Panel, Add Remove Programs and un-install all listings related to your audio card. Do not restart your computer when prompted so.
    Go to Control Panel, and switch to Classic View. Click System, Hardware tab, Device Manager button and delete all sound cards entries in Sound, Video and Game Controllers as well as any previous sound card entries from the Device Manager.
    Reboot the computer and cancel out of any driver installation if you are prompted. Insert the Creative Sound Blaster installation CD into your CD-ROM dri've. Exit from the installation wizard if it autoruns.
    Click Start, Run and then Browse. Browse to Z:\Audio\Drivers\CTZAPXX.EXE, where Z represents the CD Rom Dri've.
    Choose YES if you receive a prompt "Overwrite existing shared creative audio driver files?"
    Select Driver un-installation for WDM drivers and click OK.
    When prompted to restart, say No.
    Click Start, Run, type MSCONFIG and press Enter.
    Check the box next to Selecti've Startup and deselect Load Startup Items.
    Select the SERVICES tab and select Hide All Microsoft Services.
    Uncheck all results and click OK.
    Browse to the C:\Temp folder and C:\Windows\TEMP (if it exists) - all files and folders in the temp folder need to be either deleted or moved to a new folder.
    Browse to Program Files, Creative and delete the Sound Blaster Folder - if you get a file that won't delete, right click on the file, click Properties and clear all the attributes. The file should then be able to be deleted.
    Empty the Recycle Bin, and reboot the computer.
    If you wish to reinstall your software & drivers, do this now. For more information on how to install your product, please visit the Product Guide page for installation instructions. Otherwise, go to the next step.
    Click on Start, Run. Type MSCONFIG and press Enter.
    Select Normal Startup, and press the OK button.
    Reboot the computer
    Run creative diagnostic test, any problems?
    Configure the speaker setting as 5.
    TEST CARD WITH HEADPHONES
    . Run speaker test
    2. Plug headphones into the front out jack 3. Click on the speaker test button 4. In the headphones you should hear a voice for front left, and front right.
    5. Plug headphones into the rear out jack 6. Click on the speaker test button 7. In the headphones you should hear a voice for rear left and rear right.
    8. Do you hear sound from each channel?
    Any sound from rear channels?
    Please retain all the previous correspondence when replying to this email.
    Best Regards
    Creative Customer Support Services
    Creative Labs Europe
    To provide feedback on your "Creative Experience" and our service please click on the following link:
    http://www.**bleep**.com/support/con...asp?r=CLE&d=TS
    Please do not use this link to submit technical queries
    Original Message Follows:
    Hi,
    I have done the below, and get output via a walkman connected directly to the sub on both front and rear speakers no problems at all.
    I have reconnected the cables from the sound card, run channel test again in speaker settings, and still get no output from rear-left and rear-right.
    I should have mentioned before that rear-centre is fine.
    Any further help will be greatly appreciated.
    Cheers,
    Rob.
    -----Original Message-----
    From: CLE Customer Support [mailto:[email protected]]
    Sent: 09 March 2005 08:40
    Subject: Re: CLE - Technical Support Request (KMM557969I2452L0KM)
    Dear Rob
    Thanks for contacting Creative Technical Support.
    Please use an external cd player and connect to the front input on the subwoofer.
    Play the CD, any sound?
    Now try on the rear input.
    Play the CD, any sound from the speakers?
    Now please connect back the speakers to the PC.
    Ensure you have connected properly.
    Ensure you have configure 6. speaker setting, run a speaker test.
    Any sound from rear channel?
    Ensure the balance control is configure properly as well
    Please retain all the previous correspondence when replying to this email.
    Best Regards
    Creative Customer Support Services
    Creative Labs Europe
    To provide feedback on your "Creative Experience" and our service please click on the following link:
    http://www.**bleep**.com/support/con...asp?r=CLE&d=TS
    Please do not use this link to submit technical queries
    Original Message Follows:
    =======================
    Subject: CLE - Technical Support Request
    Name:
    E-mail Address:
    Self Description:
    ID(3) Advanced PC User
    Country: United Kingdom
    Support Inquiry: ID(3) My Creative hardware stopped functioning correctly
    Product: Sound Blaster? Audigy? 2
    Purchase Date: 4/3/2004
    Serial Number:
    Operating System: Windows XP
    Creative Model Number: SB0240
    Computer Brand/Model: self built
    Processor/CPU: Athlon 3200+
    Memory: 2xgb DDR400 Dimms
    BIOS Type/Revision: Phoenix - rev 008
    System Board/Chipset: ASUS A7N8X Deluxe rev2.0
    Detailed Problem Description:
    Typical, following months of trying to get a replacement remote control cable for my inspire 6. 6700 the 2 rear speakers on the set don't play sounds any more. I have done a clean XP install to ensure no driver corruption, but no difference. It's not the subwoofer as I have a spare, unused sub and that gives the same results.
    I have also checked all cabling, mixer/volume settings and nothing unusual is showing.
    Of course, my audigy 2 card is my guess as the culprit, I can't be positi've though. All other speakers operate perfectly, can even hear background hiss through the rear-left and rear-right speakers which won't play sounds/music/games or anything at all. But when I select "Creative Speaker Settings" to test the channels individually, they don't play a test sound here either.
    Any help greatly appreciated.
    Cheers,
    Rob.
    PS: Please remove the technical support advisor name when posting quote from the email.Message Edited by Jason-CL on 03-30-2005 06:7 AM

    Hi qwerty,
    Dun tink that creative customer support sucks cos I had been dealing with them in the past and I can say that their service are quite gd and fast. If you wanted a refund, I tink you need to contact the store that sells you the product. Dun tink creative will refund you though.

  • How to avoid redialing failed calls when unlocking an iphone

    when using my iphone 4 with ios7 in my car via bluetooth, i have the issue that when a call drops for one or other reason; the iphone wants to recall that failed call when unlocking my iphone at arrival.
    This is new since i upgraded my phone to ios7. with earlier versions i never had this issue.
    it looks to me to a mistake in the software statemachine where missed calls are kept in a buffer, even when i redialed the person using my car kit just some minutes later.

    And the worst and most stupid thing happens when that person already called you back. And while talking with them again you take your phone and try to unlock it to go to home screen (for ex to reply to a message you just received), and it starts calling a person you speak right now)). And they are asking: we are talking already, how did you just call me????

  • Contract Account Custom view not called when replicating thru CRM

    Hi All,
    We have modified the Contract account screen through BDT.
    Functionality -
    We have a custom table, that needs to be updated during contract account creation when reference contract account is used for creation.
    The update is successful when creating contract account via ISU, but when creating thru CRM, the custom view is not getting triggerred.
    I have checked in debugging as well, the process flow triggered via CRM is different than that from ISU. When Business Agreement is created via CRM, neither of PAI / PBO event is triggerred defined for the custom view created in BDT.
    When we have the custom field passed from CRM, it is getting updated correctly, but if the field is not passed from CRM view and we are updating using code logic in BDT modules, it is not successful.
    Could you please help in case I have missed on some config or is there any alternate way to get the custom requirement achieved.
    The requirement is to have custom table updated in both Create and Change mode.
    Thanks in Advance!!
    Regards,
    Rajesh Popat

    Hi Siva,
    Contract Account was replicating correctly for the ISU system. The issue was, we want to update some custom fields that are not passed as a part of CRM data, but using BDT and some validations, we were trying to populate that field and also update the custom table and link the same to sub screen attached for the contract account screen.
    The issues is now resolved. The custom view is getting triggered through CRM. There was some config missing for the BDT.
    When using BDT, only the PAI module gets called for all the views defined for the BDT.
    Thanks!!
    Regards,
    Rajesh Popat

  • How to control volume during call when hard buttons don't work?

    I was wondering if there is another way to increase the volume during a call when the hard + volume button does not work. Only the - volume button works. Is there possibly an on screen volume button or another screen I can go to for in call volume control. While on a call using the speaker, the volume is so low I can barely hear the person I'm talking to but I can't increase the volume anywhere. Please help! It's so frustrating  when you're using  the speaker phone and you can't hear anything. What's the point??  I also decreased the volume on a regular call while testing the buttons and now that's so low I can't hear that way either. Help!

    Double-click the Home button, swipe the icons at the bottom of the screen to the right twice and it should show a volume slider.  Adjust the volume then press the Home button.

  • How to get past Error 2203 when re-installing PSE 10? [was: To whom it may concern]

    I have recently purchased a new computer and am trying to reload my copy of Photoshop Elements 10.
    Having started installation, I reached a certain point and received an error message: 2203 telling me I could not proceed as another process was locked the file options? I have no idea what this means but I could progress no further.
    Subsequently I have tried to reload both iTunes and Google Earth and am blocked as it tells me that another programme is trying to install. I assume the Photoshop.
    I have tried to uninstall but am told that it is not installed and have tried, again to install but am told that I must first uninstall the previous programme. The perfect circle.
    I now want this removed.
    I understand that you can download something to remove the blockage to start the installation again, from the start.
    Can you send me the details of how I can organise for you to carry this out? I can find no telphone number to call and am finding the situation extremely vexing.
    With thanks,
    Yours faithfully,
    Chris Druitt

    Hi, david,
    Thank you for your comment, I thought OS X server should do this by default, but it seems it doesn't for some reasons.
    Our firm likes to use two domains, let's say aaa.com and bbb.net and we have been using e-mail services on aaa.com through an ISP and like to set our OS X server as a mail server for bbb.net.
    So far, we found when aaa.com account send an e-mail to wrong [email protected], then aaa.com user receives an error message as we expected, that means OS X server works good enough for this part.
    On the other hand, when bbb.net account send an e-mail to wrong user@wrong domain, then the user can receive error message as expected.
    A problem is that when bbb.net user send an e-mail to wrong user@real domain (we tried sending to wrong [email protected]) , only once the user received the error message as expected, but not every time... this client was Eudora 6.0 on OS 9 and other clients both Eudora and Mail, both POP and IMAP account on OS X have never received any error messages...
    It seems a problem of getting mails from mailbox, so I tried to find any hints on the logs, but I cannot... Do you have any hints for me?

  • How do I include the SerialNumber when silently installing Framemaker 8?

    I am trying to deploy Framemaker 8 within my company, and need to find out how to deploy the application silently with the Serial number packaged with the install.
    I know that the ABCPY.INI file has in it the fields needed for including the serial number, but I am unable to locate ANY documentation anywhere to with directions on how to use this external installer.
    I try to run setup.exe /v ABCPY.ini and various other Command Line guesses, to no avail.
    Please help! Thank you!

    Thank you for your response Arnis. The documentation does not work for release 8. I just retested it once more this morning with no luck.
    This is my command line (private data cleared):
    MSIEXEC /I "Adobe FrameMaker 8.msi" SERIALNUMBER=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx COMPANYNAME="My Company" USERNAME="My Name" /qn TRANSFORMS=1033.mst
    The product does install silently, as it is an MSI still. However when I launch the program it requests the serial number. That is the part I am trying to work around. I can't have my end users getting prompted to insert the serial number :)

  • How to uninstall a No-Ip2 when i installed it via source?

    So i installed No-Ip2 via source, now i want to uninstall it because it is not saving anything and is just being a pain. The source is here if needed: http://www.noip.com/downloads.php?page=linux
    I attempted to run the below command:
    sudo make uninstall
    But it failed and gave me the below error. I was in the same directory as the makefile.
    make: *** No rule to make target `uninstall'. Stop.
    The README file says nothing about uninstalling. I have no idea how to uninstall it at this point.
    Any tips or ideas?
      ~The Dyzaster
    Last edited by Dyzaster (2013-03-26 03:26:17)

    build() {
    cd $srcdir/$pkgname-$pkgver-1
    # Their Makefile is fucking horrid, do it by hand instead
    sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c
    sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c
    cc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2
      WonderWoofy, that is the second funniest thing I have seen all day.
    It looks like the official package has the two files identified by WonderWoofy, plus a service file.
    package() {
    cd $srcdir/$pkgname-$pkgver-1
    install -Dm755 noip2 $pkgdir/usr/bin/noip2
    install -Dm755 ../noip-rc.d $pkgdir/etc/rc.d/noip
    install -Dm644 ../noip2.service $pkgdir/usr/lib/systemd/system/noip2.service
    Although, the files from the official package do not go to /local/bin, so be sure you go to /local and remove the files WonderWoofy identified and remove them.  DO NOT just install the package from community.

  • How to synchronize File Manager Server when I install Agile on distributed?

    The Environment I install is : two Agile Server , two File manager Server ,one Web Proxy Server, one DB Server .
    The Agile version I install is Agile 9.3.1 for Linux ,the Middleware is weblogic 10.3.2 .
    Now I finish install two Agile Server ,and successful make two server compose a cluster.
    Now I will install two File manager Server ,I want to ask what's the method let me synchronize two file manager Server ?
    Does the File manager has this mechanism to let the file keep synchronize on two file manager server?
    I find a PDF name "Agile PLM Capacity Planning Guid" V 9.3.1 ,it says there are two software can synchronize file manager server , is XXCOPY and RoboCopy, but the two softwares only support Windows . Is there a software support synchronize file manager server on Linux ?
    帖子经 954937编辑过

    Hi I believe you have the wrong forum.
    This forum is for the Agile PLM for Process product suite, not for the Agile A9 suite. For Agile A9 or Primavera questions, you can use Oracle Support, Support Communities, Yahoo Groups for Agile API or WRAU.
    This forum is for Agile PLM for Process, which is part of the same Agile family but a different product.
    Thanks.

  • How do I keep my iLife08 when I install Leopard???

    I bought my Macbook a month ago and it came with Tiger 10.4.10, Leopard CD and iLife08 that was pre-installed in the system. Im thinking of changing my OS to Leopard through Erase and Install option but I want to keep iLife08. Is that possible?
    Thanks

    You can do a clean install of Leopard and after that insert your Tiger DVD which came with your Mac. Click on Optional Installs and you can select which iLife apps (and other bundled apps that came with this Mac) you'd like to install.
    Björn

  • How to set Custom screen in ME21N when Payment Terms as particular value ?

    Dear ABAP Experts,
                                         I created one Custom Tab under Header level in me21n using screen exit MM06E005.
                     It's working fine. but  My requirement is, whenever  user will select Payment term as '0001' in Delivery / Invoice Tab then my Custom tab will open in ME21N t-code . My Custom tab will have different input fields which are entered manually, those values will store in Custom table(Z-table) when the user  press save button.
    So, How to do this?

    Hi,
    The ME2xN transactions reads the user settings from table ESDUS using function module ES_READ_USER_SETTINGS, and save them at the end of the transaction using function module ES_APPEND_USER_SETTINGS.
    You need to overwrite the displayed header tab number using  ES_APPEND_USER_SETTINGS just at the beginning of the transaction. I think that a godd point to do this is in the subroutine INIT_TRANSACTION of report RM_MEPO_GUI. You can do this using the enhacement framework. I have tested it and it works for me. This is the code you should insert:
    FORM init_transaction CHANGING ch_document        TYPE mepo_document
                                   ch_exit            TYPE mmpur_bool
                                   ch_requisitions    TYPE mereq_t_eban_mem
                                   ch_requisition_acc TYPE mereq_t_ebkn.
    """""""""""""""""""""""""""""$"$\SE:(1 ) Forma INIT_TRANSACTION, Inicio                                                                                D
    *$*$-Start: (1 )-----------------------------$*$*
    ENHANCEMENT 1  ZTEST.    "active version
    *Expand header------
        CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
          EXPORTING
            iaction  = 'PurchaseOrder'
            ielement = 'DYN_4000-BUTTON     TOGGLE_STATE'
            iactive  = '2'.
    *Move to 2nd tab ----
        CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
          EXPORTING
            iaction  = 'PurchaseOrder'
            ielement = 'HEADER-TABSTRIP     SUBVIEW_INDEX'
            iactive  = '2'.
    ENDENHANCEMENT.
    *$*$-End:   (1 )-----------------------------$*$*
      DATA: l_ebeln  TYPE ekko-ebeln,
            l_ebelp  TYPE ekpo-ebelp,

  • How to make set up with first call of method of a custom class?

    Hello
    I have build a custom class with a few custom methods.
    Method1 is called per every record of internal table. I need to set up certain parameters tha are the sme for all the calls  (populate the range , to fill the internal table , etc). This should be done only once.
    call method ZBW_CUSTOM_FUNCTIONS=>METHOD1
            exporting
              I = parameter1
            importing
              O = parameter2.
    Loop at ....
       <itab>-record1 = parameter2
    endloop.
    Methods2, 3 , 4 dont need any set up.
    Can somebody tell me how to do it within class?
    Thanks

    Instance methods (as opposed to static methods) are called on an object, which is an instance of a class. Broadly, think of the class as a template for the creation of objects. The objects created from the class take the same form as the class, but have their own state -- their own attribute values. In pseudo-ABAP (this won't even close to compile), let's say you have the following class:
    CLASS cl_class.
         STATICS static_attr TYPE string.
         DATA attr1 TYPE string.
         DATA attr2 TYPE i.
         CLASS-METHOD set_static_attr
              IMPORTING static_attr TYPE string.
              cl_class=>static_attr = static_attr.
         ENDMETHOD.
         METHOD constructor
              IMPORTING attr1 TYPE string
                                 attr2 TYPE i.
              me->attr1 = attr1.
              me->attr2 = attr2.
         ENDMETHOD.
         METHOD get_attr1
              RETURNING attr1 TYPE string.
              attr1 = me->attr1.
         ENDMETHOD.
    ENDCLASS.
    When you create an instance of the class (with CREATE OBJECT oref), the constructor is implicitly called. You can pass parameters to the constructor using: CREATE OBJECT oref EXPORTING attr1 = 'MyString' attr2 = 4.
    You then call methods on the instance you have created. So, oref-&gt;get_attr1( ) would return 'MyString'.
    The constructor is called when the object is created (so, when you call CREATE OBJECT). At this time, the setup is done, and any subsequent methods you call on the object will be able to use the attributes you set up in the constructor. Every object has its own state. If you had another object, oref2, changing its instance attribute values would not affect the values of oref.
    Static methods and attributes are different. A static attribute exists only once for all instances of the class -- they share a single value (within an internal session, I think. I'm not sure of the scope off-hand.) You also call static methods on the class itself, not on instances of it, using a different selector (=&gt; instead of -&gt;). So, if you called cl_class=&gt;set_static_attr( static_attr = 'Static string' ), 'Static string' would be the value of static_attr, which belongs to the class cl_class, and not instances of it. (You can also set up a class constructor, which is called when the class is loaded, but that's another subject.)
    To answer your question more succinctly: no, the constructor is not called before each method. It is only called when you create the object. Any subsequent methods called on the object can then access its attributes.
    Please have a look at [http://help.sap.com/saphelp_nw70ehp2/helpdata/en/48/ad3779b33a11d194f00000e8353423/frameset.htm] for a more thorough treatment of basic object concepts. (The rest of that documentation is very thin, but it'll get you started. Also, it doesn't appear to deal with statics. You'll have to look elsewhere for that.)

  • How do I use my iPhone 4 to make calls when it is in the Dock?

    Hi,
    This might sound silly but how does one use the phone to make calls when it is in the dock?  Is there such a thing as an on-screen dialler or some such device to help dial the number.  I just have the headphone and mic jack - that is fine.  Just need a dialler. Thanks.
    Rams

    If you're using a G3, you can't.
    If you're using a G4 or G5, check sites such as Amazon or eBay for a Mac OS X 10.5 DVD.
    If you're using an Intel Mac, skip 10.5 and buy 10.6 from the online Apple Store.
    (73452)

Maybe you are looking for