New to ABAP Objects. Need help using events

Hi all,
I got a program from one of the text books which has the output as
         pursur helps pilot
         stewardess helps passenger on seat 11
         stewardess helps passenger on seat 17
I am trying to modify this program to get an output:
purser helps pilot
stewardess helps passenger on seat 11 to have 2 foodservice.
stewardess helps passenger on seat 11 to have 2 drinkservice.
stewardess helps passenger on seat 17
stewardess helps passenger on seat 17 to have 1 foodservice.
stewardess helps passenger on seat 17 to have 1 drinkservice.
stewardess helps passenger on seat 21
stewardess helps passenger on seat 21 to have 3 foodservice.
stewardess helps passenger on seat 21 to have 3 drinkservice.
stewardess helps passenger on seat 25
stewardess helps passenger on seat 25 to have 1 foodservice.
stewardess helps passenger on seat 25 to have 1 drinkservice.
stewardess helps passenger on seat 31
stewardess helps passenger on seat 31 to have 2 foodservice.
stewardess helps passenger on seat 31 to have 2 drinkservice.
I have modified the program and am getting some errors. The program is:
REPORT  Z_KMADHUR_PROGRAM5.
class declarations.
class pilot definition.
public section.
methods: call_flight_attendant.
EVENTS: call_button_presses.
endclass.
class passenger definition.
public section.
methods: constructor importing value(i_seatnumber) type i,
         service_number importing value(i_servicenumber) type i,
         service_type importing value(i_servicetype) type i,
         call_for_help.
EVENTS: call_button_pressed exporting value(e_seatnumber) type i,
        call_service_number exporting value(e_servicenumber) type i,
        call_service_type exporting value(e_servicetype) type i.
PROTECTED SECTION.
data seatnumber type i.
data servicenumber type i.
data servicetype type i.
endclass.
class flight_attendant DEFINITION.
PUBLIC SECTION.
METHODS: constructor
         importing i_id type string,
         help_the_pilot for EVENT
         call_button_presses OF pilot,
         help_a_passenger FOR EVENT
         call_button_pressed OF passenger
         IMPORTING e_seatnumber, e_wervicenumber, e_servicetype.
         PROTECTED SECTION.
DATA id TYPE string.
ENDCLASS.
class Implementations
class pilot implementation.
method call_flight_attendant.
RAISE EVENT call_button_presses.
ENDMETHOD.
ENDCLASS.
         class passenger implementation.
         method: constructor.
         seatnumber = i_seatnumber.
         servicenumber = servicenumber.
         servicetype = servicetype.
         endmethod.
         method: call_for_help.
                  RAISE EVENT: call_button_pressed
                  EXPORTING e_seatnumber = seatnumber,
                  RAISE EVENT call_service_number
                  exporting e_servicenumber = servicenumber,
                  RAISE EVENT call_service_type
                  exporting e_servicetype = servicetype.
                  endmethod.
                  endclass.
class flight_attendant implementation.
method constructor.
id = i_id.
endmethod.
method help_the_pilot.
write: / id, 'helps pilot'.
endmethod.
method: help_a_passenger.
write: / id, 'helps passenger on seat',
e_seatnumber.
write:  'to have', e_servicenumber.
write: e_servicetype.
endmethod.
endclass.
global data
DATA: o_pilot type ref to pilot,
      o_passenger_1 type ref to passenger,
      o_passenger_2 type ref to passenger,
      o_passenger_3 type ref to passenger,
      o_passenger_4 type ref to passenger,
      o_passenger_5 type ref to passenger.
DATA: o_purser type ref to flight_attendant,
      o_stewardess type REF to flight_attendant,
      0_foodservice type REF to flight_attendant.
      0_drinkservice type REF to flight_attendant.
classical processing blocks
      start-of-selection.
      create object: o_pilot,
      o_passenger_1 exporting i_seatnumber = 11,
      o_passenger_2 exporting i_seatnumber = 17,
      o_passenger_2 exporting i_seatnumber = 21,
      o_passenger_2 exporting i_seatnumber = 25,
      o_passenger_2 exporting i_seatnumber = 31.
create object: o_purser
               exporting i_id = 'purser',
               o_stewardess
               exporting i_id = 'stewardess',
               o_foodservice
               exporting i_id = 'foodservice',
               o_drinkservice
               exporting i_id = 'drinkservice'.
set handler: o_purser->help_the_pilot for o_pilot,
             o_stewardess->help_a_passenger for all instances.
call method: o_pilot->call_flight_attendant,
o_passenger_1->call_for_help,
o_passenger_2->call_for_help.
I am getting an error "object type passenger doesnot have an event RAISE".
Any help is appreciated.
Thanks in advance
Thanks..

Hi Madhuri,
the error that you are getting 'statement is not accessible' is just because u didnt end the data statements with '.'...it is ','...check that
one more thing when you are creating the object passenger you have to export the 'service number' and the 'service type' also along with 'seatnumber' as you have declared that way in the constructor.
i made the changes...please check the code..there are no errors but please pass suitable values according to your requirement. right now all the events are getting triggered.
check this changed code..code in bold
*& Report  ZTEST_EVENTS
REPORT  ZTEST_EVENTS.
class declarations.
CLASS PILOT DEFINITION.
  PUBLIC SECTION.
    METHODS: CALL_FLIGHT_ATTENDANT.
    EVENTS: CALL_BUTTON_PRESSES.
ENDCLASS.                    "pilot DEFINITION
      CLASS passenger DEFINITION
CLASS PASSENGER DEFINITION.
  PUBLIC SECTION.
    METHODS: CONSTRUCTOR IMPORTING VALUE(I_SEATNUMBER) TYPE I
                                  VALUE(I_SERVICENUMBER) TYPE I
                                     VALUE(I_SERVICETYPE) TYPE I,
    CALL_FOR_HELP.
    EVENTS: CALL_BUTTON_PRESSED EXPORTING VALUE(E_SEATNUMBER) TYPE I,
    CALL_SERVICE_NUMBER EXPORTING VALUE(E_SERVICENUMBER) TYPE I,
    CALL_SERVICE_TYPE EXPORTING VALUE(E_SERVICETYPE) TYPE I.
  PROTECTED SECTION.
    DATA SEATNUMBER TYPE I.
    DATA SERVICENUMBER TYPE I.
    DATA SERVICETYPE TYPE I.
ENDCLASS.                    "passenger DEFINITION
      CLASS flight_attendant DEFINITION
CLASS FLIGHT_ATTENDANT DEFINITION.
  PUBLIC SECTION.
    METHODS: CONSTRUCTOR
    IMPORTING I_ID TYPE STRING,
    HELP_THE_PILOT FOR EVENT
    CALL_BUTTON_PRESSES OF PILOT,
    HELP_A_PASSENGER FOR EVENT
    CALL_BUTTON_PRESSED OF PASSENGER
    IMPORTING E_SEATNUMBER,
<b>    CALL_SERVICE_PRESSED FOR EVENT
    CALL_SERVICE_NUMBER OF PASSENGER
    IMPORTING E_SERVICENUMBER,
    CALL_TYPE_PRESSED FOR EVENT
    CALL_SERVICE_TYPE OF PASSENGER
    IMPORTING  E_SERVICETYPE.</b>
  PROTECTED SECTION.
    DATA ID TYPE STRING.
ENDCLASS.                    "flight_attendant DEFINITION
class Implementations
CLASS PILOT IMPLEMENTATION.
  METHOD CALL_FLIGHT_ATTENDANT.
    RAISE EVENT CALL_BUTTON_PRESSES.
  ENDMETHOD.                    "call_flight_attendant
ENDCLASS.                    "pilot IMPLEMENTATION
      CLASS passenger IMPLEMENTATION
CLASS PASSENGER IMPLEMENTATION.
  METHOD: CONSTRUCTOR.
    SEATNUMBER = I_SEATNUMBER.
    SERVICENUMBER = I_SERVICENUMBER.
    SERVICETYPE = I_SERVICETYPE.
  ENDMETHOD.                    "constructor
  METHOD: CALL_FOR_HELP.
    RAISE EVENT: CALL_BUTTON_PRESSED
    EXPORTING E_SEATNUMBER = SEATNUMBER.
<b>    RAISE EVENT: CALL_SERVICE_NUMBER
    EXPORTING E_SERVICENUMBER = SERVICENUMBER.
    RAISE EVENT: CALL_SERVICE_TYPE
    EXPORTING E_SERVICETYPE = SERVICETYPE.</b>
  ENDMETHOD.                    "call_type_help
ENDCLASS.                    "passenger IMPLEMENTATION
      CLASS flight_attendant IMPLEMENTATION
CLASS FLIGHT_ATTENDANT IMPLEMENTATION.
  METHOD CONSTRUCTOR.
    ID = I_ID.
  ENDMETHOD.                    "constructor
  METHOD HELP_THE_PILOT.
    WRITE: / ID, 'helps pilot'.
  ENDMETHOD.                    "help_the_pilot
  METHOD: HELP_A_PASSENGER.
    WRITE: / ID, 'helps passenger on seat',
    E_SEATNUMBER.
  ENDMETHOD.                    "help_a_passenger
<b>  METHOD CALL_SERVICE_PRESSED.
    WRITE: 'to have serviceno', E_SERVICENUMBER.
  ENDMETHOD.                    "call_service_pressed
  METHOD CALL_TYPE_PRESSED..
    WRITE: 'service type' ,E_SERVICETYPE.
  ENDMETHOD.</b>                    "call_type_pressed
ENDCLASS.                    "flight_attendant IMPLEMENTATION
global data
DATA: O_PILOT TYPE REF TO PILOT,
O_PASSENGER_1 TYPE REF TO PASSENGER,
O_PASSENGER_2 TYPE REF TO PASSENGER,
O_PASSENGER_3 TYPE REF TO PASSENGER,
O_PASSENGER_4 TYPE REF TO PASSENGER,
O_PASSENGER_5 TYPE REF TO PASSENGER.
DATA: O_PURSER TYPE REF TO FLIGHT_ATTENDANT,
O_STEWARDESS TYPE REF TO FLIGHT_ATTENDANT,
O_FOODSERVICE TYPE REF TO FLIGHT_ATTENDANT,
O_DRINKSERVICE TYPE REF TO FLIGHT_ATTENDANT.
classical processing blocks
START-OF-SELECTION.
  CREATE OBJECT: O_PILOT,
  O_PASSENGER_1 EXPORTING I_SEATNUMBER = 11
                          I_SERVICENUMBER = 12
                          I_SERVICETYPE = 13,
   O_PASSENGER_2 EXPORTING I_SEATNUMBER = 14
                          I_SERVICENUMBER = 15
                          I_SERVICETYPE = 16,
   O_PASSENGER_3 EXPORTING I_SEATNUMBER = 17
                          I_SERVICENUMBER = 18
                          I_SERVICETYPE = 19,
   O_PASSENGER_4 EXPORTING I_SEATNUMBER = 20
                          I_SERVICENUMBER = 21
                          I_SERVICETYPE = 22,
O_PASSENGER_5 EXPORTING I_SEATNUMBER = 23
                          I_SERVICENUMBER = 24
                          I_SERVICETYPE = 25.
*o_passenger_2 exporting i_seatnumber = 17,
*o_passenger_2 exporting i_seatnumber = 21,
*o_passenger_2 exporting i_seatnumber = 25,
*o_passenger_2 exporting i_seatnumber = 31.
  CREATE OBJECT: O_PURSER
  EXPORTING I_ID = 'purser',
  O_STEWARDESS
  EXPORTING I_ID = 'stewardess',
  O_FOODSERVICE
  EXPORTING I_ID = 'foodservice',
  O_DRINKSERVICE
  EXPORTING I_ID = 'drinkservice'.
  SET HANDLER: O_PURSER->HELP_THE_PILOT FOR O_PILOT,
  O_STEWARDESS->HELP_A_PASSENGER FOR ALL INSTANCES,
<b> O_STEWARDESS->CALL_SERVICE_PRESSED FOR ALL INSTANCES,
  O_STEWARDESS->CALL_TYPE_PRESSED FOR ALL INSTANCES.</b>
  CALL METHOD: O_PILOT->CALL_FLIGHT_ATTENDANT,
  O_PASSENGER_1->CALL_FOR_HELP.
similarly call the methods for the other objects also.
Regards,
Vidya

Similar Messages

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • New to Abap objects?

    Hi
    iam new to abap objects. can u please suggest me some links or material to read?
    thanks in advance
    chythanya

    Hi Chytanya,
    Please check this link for step by step tutorials.
    http://www.****************/Tutorials/OOPS/MainPage.htm
    Please check this form
    Need ABAP Objects Tutorial
    Need ABAP Objects Tutorial
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
    http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
    http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
    http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
    Download the pdf'ds from here, willbe helpful.
    http://www.esnips.com/doc/6d16a298-9227-4d32-acf1-e91164c89daf/3-ABAP-Objects(P283)
    Best regards,
    raam

  • Need help using Apple Remote Desktop for remote family members

    I am new to ARD and need help. I know there are solutions to do what I am trying to do through LogMeIn and Teamviewer - but I have LogMein right now and the free edtition is going away and I think Teamviewer will do the same sooner or later. I have remote desktop but hadnt used it, so I thought it would be a good thing to implement so I wont have to worry about paying fees for services like LogMein or teamviewer down the road.  Long story short I need to be able to remote help friends and family members with their macs and using applications, mostly through screen sharing and control and file sharing. All of the folks id like to help have home ( not business style ) internet service whith DHCP and non-static IP's.  I have set this up for myselft to test it and I can be at work and search my homes IP address and I can see all the macs with ARD on them and it all works perfectly.  I have a mac mini running Lion Server so the ports are forwarded to that server at my home - this is the only think I can think of that is making my home work and my friends not.  But when I try to help my friends and family after I type in their IP and it scans it sees their computer - ( it shows a grayed out icon and their IP ) but nothing else.  I cannot control or screen share. It says it cannot verify.  I helped my friends put the ARD client ( most up to date client ) on their macs as well.  I was hoping that using ARD would mean not haivng to set up my friends and family's routers for port fowarding and all those details.  Is there anything I can do using ARD to be able to type in my friends IP address have it scan and then see all their MACS at their home and pick the one that needs attention/ help, without port forwarding or heavy set up ?  I guess the root question here is how or what is best way to set up ARD to be used to help people remotley when they are all home users as well, no port forwarding, no static-IP, that kinda thing.
    Any help is appreciated - Im trying to use ARD and not a 3rd party app since im afraid even if they are free now they wont stay that way. Please let me know throughts and sugesstions ;p)

    I poked around a bit and the file seems to be:
    /Library/Application Support/Macromedia/mms.cfg
    I'd like to get some confirmation from Adobe that this is the correct file to push, though (it seems like it as it only contains this):
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    My screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    Bad or incompatible RAM is, more often then not, the cause of most Kernel Panics. It could also just need to be reset.
    Here's the most used site for Resolving Kernel Panics. Please do all the steps in order, even if you don't think you need to do a certain step.
    Here is a great MacFixIt article.
     Good Luck!
    DALE

  • I need helping using iAds in my application.

    I need helping using iAds in my application. I currently am not using any storyboards. I am using Sprite builder for my UI.
    I attatched an image ot show all the different file name I have.
    Everyone is being used & they all work fully.
    The "iAdViewController.h & .m" files are just example codes I looked up and was messing with so that my iAd can work.

    I wouldn't even be able to use the Mathscript node in an executable? 
    What I am trying to do is make a user configurable data stream. 
    They tell me how many bytes are in the stream and what parameters they
    want to be put in to it.  Currently I have to make vi's that are
    called dynamicaly to make the parameters.   Then recompile
    the code and send it to them.  This is somewhat of how the config
    file is set up so I know how to make the data.
    Data_Type  foo
    Bytes 30
    parameter_name        
    function           
       byte#          format
    sync              
    foo_sync            
    29               int
    time                              
    foo_time             
    1,2,3,4       double
    If I can't use MathScript to allow the user to make there own functions
    is there another way that I might be able to do this so I do not have
    to recompile the code atleast?  Were I might just be able to make
    the new function and send that to them.
    Any Idea would be great.

  • Hello guys..does anybody know how to install and use adobe master collection with the new lion?   I need to use Flash and illustratore, but apparently those programmes are incompatible with the new operative sistem...   I am a new mac users and I'd like t

    Hello guys..does anybody know how to install and use adobe master collection with the new lion?
    I need to use Flash and illustratore, but apparently those programmes are incompatible with the new operative sistem...
    I am a new mac users and I'd like to know if there are other similar programmes I can use with lion!

    Lab79 wrote:
    Are you on Apple's payroll?
    well dude I can only let you know that as I work with those programme I don't have to pay for it is my company that pays the programme I whant to use( that's why I was asking if there where other programmes ..that I could use with lion insted that Illustrator and Flash!)..I know Adobe since 2005 and I can say that Adobs products are very good...I think that if it's an Adobe probleme or fault ..they will solve it very soon...but unfortunally I have the impression that after Jobs passed away Appel decided to change politics..and everything started to go very bad! (see FCP X)..
    good luck with apple dude..
    Where is the Apple problem? I have CS4 and CS5 running perfectly fine on my Macbook Pro. Installed 5 after Lion upgrade. Worth every cent. Adobe did have some catching up to do with Lion but with the CS5.5 update all runs fine. But not yours. So it is a problem with the Lion OS? You say you have been with Adobe since 2005. So you would be aware of all the other issues that Adobe had catching up with past Oss in Mac and Windows then. They get it right, but it is up to them. It is not up to Apple, nor Microsoft for that matter, to run around and check that every software developer in the world is running their business properly.
    And what has politics got to do with anything. Some people just have to blame Software for their poor Hardware maintainence of failure of the same.
    <The only think I can really do is to go back on my old windows...give back this orrible lap top and ask for my money back!>
    Great suggestion. You should go with that one, but good luck getting a refund.
    Bye

  • I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    We need more information. I'm not sure what you mean by both Lion and iCloud have never worked.

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • Need to learn abap  objects plz help me

    hi to all sdners ,
                           i need to learn oops  in abap plz send me material and tutorials for learning it. please help me .you  can send all the materials to my mail id [email protected] will rewarded.

    hi
    Object Oriented prg
    A programming technique in which solutions reflect real world objects
    What are objects ?
    An object is an instantiation of a class. E.g. If “Animal” is a class, A cat
    can be an object of that class .
    With respect to code, Object refers to a set of services ( methods /
    attributes ) and can contain data
    What are classes ?
    A class defines the properties of an object. A class can be instantiated
    as many number of times
    Advantages of Object Orientated approach
    Easier to understand when the system is complex
    Easy to make changes
    Encapsulation - Can restrict the visibility of the data ( Restrict the access to the data )
    Polymorphism - Identically named methods behave differently in different classes
    Inheritance - You can use an existing class to define a new class
    Polymorphism and inheritance lead to code reuse
    Have a look at these good links for OO ABAP-
    http://www.sapgenie.com/abap/OO/
    http://www.sapgenie.com/abap/OO/index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
    http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    http://www.allsaplinks.com/
    http://www.sap-img.com/
    http://www.sapgenie.com/
    http://help.sap.com
    http://www.sapgenie.com/abap/OO/
    http://www.sapgenie.com.
    http://www.sapgenie.com/abap/OO/index.htm
    http://www.sapgenie.com/abap/controls/index.htm
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    http://www.sapgenie.com/abap/OO/index.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    http://www.sapgenie.com/abap/OO/
    /people/dirk.feeken/blog/2007/07/06/abap-trial-version-for-newbies-part-17--your-first-abap-object
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/why%20use%20abap%20objects
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    ankit

  • New internal order type--need help

    Dear all:
    i have a case need help.
    now i want to create a new internal order type ,and assign a new number range and a default settlement rule to it .
    the settlement rule is that the actual costs of this  internal order type need to be
    sent to a cost element .
    what should i do step by step?
    thanks!
    best regards!

    Hi,
    2. Order Master Data
    2.1 Define Order types (KOT2_OPA)
    IMG &#61664;Controlling &#61664; Internal Orders &#61664;Order Master Data &#61664; Define Order Types
    An Internal order is created under an Order type. An order type is used for storing various control parameters and various defaults while creating an internal order. It is used for classifying various types of internal orders according to usage for e.g. Real orders for trade fairs, real orders for Capital investment measure, Statistical orders for motor vehicle expenses.
    The order type is client-specific, which means that every order type can be used in all controlling areas. A number range is assigned to the internal order type.
    Click on “New Entries”
    Take a drop in the field Order category and select 01
    Enter
    Update the following
    Give Order Type :- Z810
    Description :- Traders First Real order type
    Object Class :- OCOST overhead
    Reference Order :- Collective order without automatic goods movement
    Residence time 1 :- 12 months
    Residence time 2 :- 1 month
    Check “Commit Management and Check Integrated Planning
    Activate CO Partner Updating -You activate this so that allocations between orders and other CO objects (cost centers, projects, etc.), the partner information is retained and whether for each order a totals record should be written.
    Save
    Click on “Field Selection”
    Here you can hide the various fields or make it as required entry or only display or available for input. Thus while creating internal order only those fields are displayed and available for input.
    Click Save
    2.2 Maintain Number Ranges for Orders (KONK)
    IMG &#61664;Controlling &#61664; Internal Orders &#61664; Order Master Data &#61664;Maintain Number Ranges for Orders
    Number Range needs to be assigned to the internal order type. Number range can be internal or external. In Internal numbering system automatically assigns a number from the given number range. In external numbering the user has to manually assign the number from the given number range.
    We will configure internal number range for our internal order type – Trade Fair
    Click on Group &#61664;Maintain (From the menu bar)
    Click on Group &#61664; Insert (From the menu bar)
    Update the following
    From Number: - 910000000000
    To Number: - 919999999999
    Click in “plus icon” at the left bottom of the screen
    Click Save
    You will find internal order type Z810 in not assigned
    You need to assign the order type to the group we created above. Proceed as follows:-
    Position the cursor on: - Z810 Trade Fair real order type 
    Click on “Arrow”   Z810 Trade Fair real order type note it turns blue                                              
    Select Check mark Z810 A ltd India fair real order
    Click “Element Group”
    The internal order type Z910 moves under the group which can be seen as follows:-
    Z810: A Ltd India Trade fair real order / Z810 Trader Fair real order type.
    Click Save
    Select: - Z810: A Ltd India Trade fair real order / Z810 Trader Fair real order type.
    Click on “Pencil” icon.
    Click Back arrow.
    2.3 Define Model Orders
    IMG &#61664;Controlling &#61664;Internal Orders &#61664;Order Master Data &#61664;Screen Layout
    &#61664;Define Model Orders
    Model orders are not orders in the commercial sense, but serve merely as references for creating "normal" orders. Model orders contain default values for the orders in an order type. The Model order is assigned as the reference order in the order type.
    When you create a new order, all the fields active in the relevant order type are copied from the model order to the new order.
    Example
    You want to settle all your marketing orders to the same sales cost center. Stipulate the cost center as the default value in the model order for marketing orders.
    When you create a new marketing order, the system defaults this cost center. If you want to settle the order to a different cost center, you can overwrite the default cost center in the orders.
    We will create a model order with some defaults and assign it to the Trade fair internal order type
    Click “Create CO Model Order”
    Press F4 and select ($$) 03 model order
    Click on the master data and update the following
    Order: - $$$ Z81000001
    Description text: - A Limited Trade affair
    Click Save
    Assign this model order to the order type Z810
    Update the reference order with the model order number $$$Z81000001 in the reference order field
    Click on save.
    3 Planning
    3.1 Maintain User-Defined Planner Profiles
    IMG&#61664;Controlling&#61664;Internal Orders&#61664;Planning&#61664;Manual Planning&#61664;Maintain User-Defined Planner Profiles
    Check the User defined planner profile ZOCM91 created by us contains the layouts for internal orders.
    Double click on General controlling
    Planning area: Cost element/activity inputs.
    Cost Center: Activities/Prices
    CCtr Statistical key figures
    Orders: Cost Element/Activity inputs
    Ord: Statistical key figures
    Select :- Orders: Cost element/activity inputs
    Double Click on Layouts for control
    3.2 Maintain Planner Profile for Overall Planning (OKOS)
    IMG &#61664; Controlling&#61664;Internal Orders&#61664;Planning&#61664;Manual Planning&#61664;Maintain Planner Profile for Overall Planning
    Here you can specify the time frame for which values are to be planned for Internal order. Further you can also default the number of decimal places and the display factor. Default cost element group while planning.
    Double click on “Define planning profile for overall planning”
    Click on “New Entries”
    Select “05 Planned Total”
    Profile: 810000 General Plan Profile – A Ltd
    Click Save
    Select back arrow
    Double click maintain planning profile for order type
    Give: - Z810 Trader Fairs Real order type
    Give Plan profile: - 910000
    Click Save
    4 Settlement
    4.1 Maintain Allocation structure
    IMG&#61664; Controlling&#61664;Internal Orders&#61664;Actual Postings&#61664;Settlement&#61664; Maintain Allocation Structures
    An Allocation structure comprises one or several settlement assignments. An assignment shows which costs (origin: cost element groups) are to be settled to which receiver type (e.g. cost center, order and so on)
    You have 2 options:- You can settle to a settlement cost element or settle by cost element i.e. settle using the original cost element.
    We will use settle by cost element.
    Click on “New Entries”
    Allocation stru :- Z8
    A Ltd : Internal order settlement structure
    Click Save
    Select Z8 Internal order settlement structure
    Double click on Assignments
    Click on “New Entries”
    Assignment :- 10 Settlement Primary cost Element
    Click Save
    Select 10 Settlement Primary cost Element
    Double Click on Source
    Give From Cost Element To Cost Element
    Save
    Click back arrow
    Note:-The color has become green
    Select: Settlement primary cost element
    Double click on Settlement cost
    Click “New Entries”
    Select CTR Cost Center
    By Cost Element  Check
    Save
    4.2 Maintain Settlement Profile
    IMG &#61664;&#61472;Controlling &#61664;Internal Orders &#61664;Actual Postings &#61664;Settlement&#61664;Maintain Settlement Profile
    Here we define a range of control parameters for settlement.
    Double Click on “Maintain Settlement Profiles”
    Click on “New Entries”
    Select “Settlement not allowed”
    Assign the allocation structure Z9 created earlier in the settlement profile.
    Click on “Save”.
    Select Back Arrow
    Double Click on “Enter Settlement Profile in order types”
    Give Settlement Profile “ Z9100”
    Click on “Save”.
    4.3 Maintain Number Ranges for Settlement Documents
    IMG &#61664;Controlling &#61664;Internal Orders &#61664;Actual Postings &#61664;Settlement&#61664;Maintain Number Ranges for Settlement Documents
    You should define separate number range intervals for settlement documents for each controlling area.
    Click Group &#61664; Maintain
    Click Group&#61664; Insert
    Update the following:-
    Give “From Number” 1000000000- To Number 1999999999
    Click on “+” at the bottom left side.
    Click 8100
    Click on “Arrow” icon.
    Select Settlement documents for “A limited” Check box
    Click “Element group button”
    Click “SAVE”
    Assign Points
    Zia

  • Setting Up New FCP5 HD Bay -- Need Help

    I'm setting up an HD edit bay for a friend, and I have a number of questions. Any help would be a godsend.
    Basically, he's got a G5 with Final Cut Studio installed, a Motu audio interface, a Mackie Mixer, a Decklink Pro HD dual link, M-audio LX4 5.1 speakers, and a DVD/VHS recorder. He has one 250G internal capture drive, and one external 1TB firewire G-Raid. He's running a 23" and 20" Cinema Displays, and a Panasonic 32" HD LCD Flatscreen.
    He wants to rent decks per project for capture and output.
    My questions is this, how do we output to SD VHS/DVD or other formats for clients? Do we need a Switcher? Is it possible to do format conversion in Final Cut and output via Firewire instead of decklink to SD devices?
    Also, is SDI (serial digital interface) cross-platform from SD to HD? Kramer Electonics has an interesting format converter that supports SDI, but will that change HD to SD? Here is a model number and link. FC-7402
    http://www.kramerelectronics.com/indexes/item.asp?pic=71
    Kramer also has a firewire format converter that looks interesting. FC-20
    http://www.kramerelectronics.com/indexes/item.asp?pic=430
    One of the Mac Vendors suggested the Blackmagic Multibridge Extreme, which sounds perfect, but costs $2000 - 3000.
    I'm looking for a low cost alternative, if possible.
    I really need help from someone experienced with this. I'm a freelance editor who cuts offline mostly on Avid for episodic TV, but my friend master HD out of his Mac edit suite. This is new territory for me.
    Thanks in advance.

    You should setup your local DNS to resolve only for the 'film.lab.' domain. Any requests that your local DNS will not be authoritative for should be forwarded to your district's DNS server. You should also set your local DNS to allow recursion only for clients on the 10.x.x.x subnet. The failure of clients configured to use your DNS for name resolution could be due to rules that have bee setup on your district's edge router to block outbound and inbound port 53 requests for all internal clients.
    If you set your server and clients to use your district's DNS server as the secondary for your zone, you must make certain that any hostnames within your local zone are defined on your district's DNS to resolve to the private, 10.x.x.x, subnet that you will be running your systems on. If you don't -and your DNS goes down and there is no secondary defined on the clients that contains the zone info for your subnet- your clients won't be able to find any hosts. If you wish to run services that will be accessible from the Internet on your local server, this may require your network admins to make changes to routing to allow those request to be pass from the public network to the private one.
    Also, if your district runs a central DHCP server you will need your district network admins to setup their DHCP server to return the correct client settings for your DNS and search domains for the clients within your subnet. If they do run a central DHCP server, do not attempt to set up a local one for your subnet. If you do, the probability that you will receive a very angry phone call from a not so happy fellow at your district is very high.

  • My D420 is not working on my new Mac Mini I need help

    I have a new Canon Printer D420 . I love the machine works great
    the price was great. It worked good on my old Imac for a few weeks then
    I bought a new Mac Mini and now I can't get it to work. I reloaded my
    solfware taht came with it..... need help
    thanks 
    Ray Land 

    Hi Ray Land,
    We can help narrow down the cause.  What operating system are you using on your new Mac Mini? 
    If you are running the Mountain Lion OS, you can download the latest driver here.  An important note is that the current print queue must be deleted before installing the new driver.  This will ensure proper communication.
    If this doesn't work or you need further assistance, please contact us here.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • Add one day to the current date

    Hi all, A stupid question... How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days: something like: select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY') from dual Thanks

  • VBA to save an Excelfile as pdfdocument with a pdf document open password

    I use VBA and Adobe Acrobat PDFMaker to save Excel-files as pdfs. The code I use works perfectly (see below). Which VBA-command is necessary to add a Document Open Password to the pdf to open the pdf-file? thank you in advance and best regards gauss

  • Pricing condition type and the procedure it belongs to

    Hello Experts, Pricing is found in basic function in spro. Under this we maintain the condition types. But how does the SAP system know for which pricing procedure a condition type belongs? Is a condition type uniquely usable by 1 pricing procedure o

  • How to change active partition?

    Hi experts, I have disk D which contains OS windows 7 and not in active, but my another disk E is in active with 100% free space.so, how can i change active partition from E to D ? please help me  

  • Converting Spool request to Doc

    Hi all,          I want to convert the spool request into '.DOC' . Kindly help me. Thanks