Abap HR basics

Hi Team,
Just started ABAP HR and need some help from you guys.
Wanted to how to read, update, created and delete a 
record in any infotype.
   I have basic knowledge like to read any latest or first record we have macro RP_PROVIDE_FROM_First/Last
   Any function modules and macors that we can use to create or delete or update a record in database ?
   I got a FM HR_INFOTYPE_OPERATION But unable to find what needs to be passed in some imports like RECORD etc..
Thanks in advance.
Abhi

Here you go :
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html
http://www.atomhr.com/Menu_pages/library_full.htm
http://www.planetsap.com/hr_hrtrans.htm
http://sap.ittoolbox.com/topics/t.asp?t=302&p=302&h1=302
http://fuller.mit.edu/hr/cluster_tables.html
http://www.atomhr.com/training/Hr307_config_HR_admin_security.htm
http://help.sap.com/saphelp_45b/helpdata/en/8e/6a46347969e94be10000009b38f83b/frameset.htm
http://www.saptutorials.com/index.php?a=list&d=2&p=3&strict=1&w1=P
http://help.sap.com/saphelp_470/helpdata/EN/e1/8e51341a06084de10000009b38f83b/frameset.htm
<b>FOR  HR_INFOTYPE_OPERATION</b>
BDC or HR_INFOTYPE_OPERATION
HR_INFOTYPE_OPERATION
Re: HR_INFOTYPE_OPERATION called inside Dynamic action
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"

Similar Messages

  • Just now i started learning ABAP and basically from JAVA background.

    hi,
    Just now i started learning ABAP and basically from JAVA background.Can anyone tell me how to implement(steps) java in sap(from where i have to start).
    regards,
    Venkat.

    Hi Venkat,
         if u know java very well, then u can take up EP. ABAP is also very easy one to read and understand, as ur basically from prgming background.
    To start with go thro the classical abap and then come to abapoo.
    u can find so many link when u search for doc in sdn.
    all the best,
    Regards
    Sathish

  • Need faqs on ABAP HR basics

    Hi folks,
              I need faqs on ABAP HR (with answers).  Could any body send me some material to attend interview on ABAP HR.Please i want with ansers as i amvery new to ABAP HR.
                Thanks,
               Shyam.

    Shyam,
    your question not lie under
    rules of engegement
    there is plenty of thread of question in HR are they not question in itself you need to watch them.
    Amit.

  • ABAP objects - basic ques

    Hi all,
    I need to display the fields of the structure USR_ROLE_Z by using the method DESCRIBE_BY_NAME of the class CL_ABAP_TYPEDESCR and then get the attribute COMPONENTS of the instanciated object of the class CL_ABAP_STRUCTDESCR.
    The method DESCRIBE_BY_NAME  of the class CL_ABAP_TYPEDESCR has the following parameters:
    P_NAME          importing     typed           ANY
    P_DESCR_REF     returning     typed ref to     CL_ABAP_TYPEDESCR
    The class CL_ABAP_STRUCTDESCR is inherited from the class CL_ABAP_TYPEDESCR.
    The class CL_ABAP_STRUCTDESCR has an attribute COMPONENTS typed ABAP_COMPDESCR_TAB (internal table)
    The ABAP_COMPDESCR_TAB has the structure ABAP_COMPDESCR.
    The structure ABAP_COMPDESCR contains the following fields:
         LENGTH               typed           I
         DECIMALS               typed           I
         TYPE_KIND(1)          typed          C
         TYPE_NAME(30)          typed          C
    How do i write the above programatically?
    Thanks.

    Hello
    I am not sure about what you mean by "... display fields of structure ..." yet the basic coding to extract metadata from you structure looks like this:
      " Describe structure
      go_sdescr ?= cl_abap_structdescr=>describe_by_name( 'USR_ROLE_Z' ).
      LOOP AT go_sdescr->components INTO gs_component.
    "  Here you have basic technical data about the structure fields
      ENDLOOP.
    Regards
      Uwe

  • Abap doubt basic

    wat is the diff between SE18 vs SE19

    Hi Kiran kumar,
      By using SE18---> Testing can be done.
                    SE19----> Testing cannot be done.
    Hope I am clear.
    Please let me know if you have any queries..!
    Thanks and Regards,
    Chandu.

  • ABAP: very basic syntax question

    Hi,
    Why doesn't this compile? skwfc_prop_relative_url a constant in type group SKWFC.
    data: LS_PROP type SDOKPROPTY.
    LS_PROP-NAME  = skwfc_prop_relative_url.
    Compile error:
    "LS_PROP-" expected, not "SKWFC_PROP_".
    Thanks!
    Jeroen

    Hi jeroen,
    1. just include the type pool, ten it will work.
    <b>TYPE-POOLS : SKWFC.</b>
    data: LS_PROP type SDOKPROPTY.
    LS_PROP-NAME  =  skwfc_prop_relative_url.
    regards,
    amit m.

  • Copy Command in ABAP report

    HI Gurus,
    I have a ABAP report - basic list, with lot of batch data on it. based on the report they will copy the batch numbers and paste in standard transactions.
    Users complaining to do a Ctrl + Y and then Ctrl + C then Ctrl + V to paste the batch numbers.
    Is there anything we can do programatically using hot sopt on batch numbers so we get the selected BATCH and execute copy command programatically when they click on BATCH number on basic list.
    All they need to do is Ctrl + V on standard transactions.
    Is there anyway to achieve this?
    Thanks Giri

    Giri - you would probably get more results if you mark this as a question. That way you can assign po1nts to helpful answers.
    In any event why don't you just do a CALL TRANSACTION when the user double clicks on a line?
    Rob

  • ABAP CERTIFICATION

    Hi
    can any one give me the certification questions on abap
    thanks,
    kiran

    Hi
    Pls go through the following link hope it will help u out
    http://www.sap-img.com/abap/important-abap-faq.htm
    http://www.sap-basis-abap.com/
    http://www.sap-img.com/bdc.htm
    http://sapdomain.com/certification.php
    http://www.techinterviews.com/?p=198
    ABAP Workbench Fundamentals (For course BC400)
    Create ABAP programs and the most important Repository objects using appropriate ABAP Workbench tools
    Navigate in the Workbench and use the syntax help
    Process source text with the ABAP Editor
    Test programs using the Debugger
    Define elementary and structured data objects
    Overview of important ABAP statements
    Use internal tables (introduction)
    Use modularization techniques local in the program
    Database dialogs: information about database tables in the ABAP Dictionary, read database tables
    User dialogs: list, selection screen, screens
    Overview of ABAP Web Dynpro (from SAP NetWeaver 2004s)
    Use function groups and function modules, classes and methods, BAPIs
    Project-oriented development using the Transport Organizer
    Overview of the different options for adapting software
    Advanced ABAP (For course BC402)
    ABAP runtime environment
    ABAP types and data objects
    Unicode
    Analysis tools for programs
    Work with internal tables
    Program modularization with function modules
    Performance of complex Open SQL statements
    Dynamic programming with field symbols and references
    Runtime type information, runtime type creation
    Program calls and memory management
    ABAP Objects : Object Oriented Programming in R/3 (For BC404)
    Introduction
    Analysis and Design
    Principles
    Generalization/Specialization
    Events
    Global Classes/Interfaces
    Summary and Outlook
    Developing User Dialogs (For BC410)
    Course Overview
    Basics for Interactive Lists
    The Program Interface
    Interactive List Techniques
    Introduction to Screen Programming
    Screen Elements for Output
    Screen Elements for Input/Output
    Screen Elements: Subscreens and Tabstrip Controls
    Screen Elements: Table Controls
    Context Menus
    Lists in Screen Programming
    Preview: Control Framework
    Enhancements and Modification (For course BC425)
    Overview of the options for making customer-specific adjustments to the SAP standard system
    Personalization (transaction variants)
    Enhancements to:
    - Elements of the ABAP Dictionary
    - SAP programs
    - SAP screen menus
    - SAP screens
    Enhancement techniques:
    - Enhancements to elements of the Dictionary
    - Enhancements via customer exits
    - Business Transaction Events (BTEs)
    - Business Add Ins (BAdIs)
    - User Exits
    Modifications:
    - Procedure
    - Utilities (Modification Assistant, Modification Browser)
    - Modification adjustment
    SAP Note Assistant (tool for SAP Note implementation)
    ABAP Dictionary (For course BC430)
    Introduction
    Tables in the ABAP Dictionary
    Performance in Table Accesses
    Consistency through Input Checks
    Dependencies of ABAP Dictionary Objects
    Changes to Tables
    Views
    Search Helps
    Developing Internet Application Components (For course BC440)
    Course Overview
    Introduction
    Internet,Intranet & WWW
    HTML,CSS and JavaScript
    Internet Transaction Server
    ABAP Workbench Basics
    SAP GUI for HTML
    Easy Web Transactions
    ITS Flow Logic
    HTML Business
    Summary and Outlook
    Form Printing Using SAPSmart Forms (for course BC470)
    Overview of SAP Smart Forms
    General concepts in form printing
    - Windows and pages, main and secondary windows, text and data
    Creating and adjusting an SAP Smart Form
    - Form Builder, Form Painter, form logic, node types (texts, graphics, addresses, and so on), text modules
    Variables
    - Form interface, global data
    Tables
    - Table Painter, dynamic tables, headers and footers
    Smart Styles
    - Style Builder, paragraph formats, and character formats
    Including graphics
    Change forms and application programs
    Developing BAPI enabled Web Applications with Java (For course CA926)
    For course TABC41, 42 and 43
    Basis technology overview
    ABAP Workbench
    ABAP Dictionary
    ABAP Development Projects
    Advanced Programming in ABAP Development Workbench (week 3 - 4 „TABC42")
    Techniques of List Processing
    Transaction Programming
    Database Updates
    Enhancements and Modifications
    Interfaces for Data Transfer

  • Difference between ITS and web dynpro abap

    Hi Experts.
    Can any explain me what is the main difference between  EWT/ ITS and web dynpro abap. Basically i am going to developed some existing EWT in webdynpro ABAP , so i want to know what are the advantage of WD ABAP over ITS .
    Thanks in Advance.
    Satya

    Closing thread, thanks for your help.
    Thanks,
    Satya

  • ABAP Certification - Regd

    Hi All,
    I am currently preparing for certification this tech ed.
    I got the syllabus fom SDN and sap website.
    i found the following is <b>missing</b> from the syllabus.
    <b>ALE / IDOC/ EDI
    Smart forms
    SAP Script
    LSMW
    ALV Reporting
    ABAP Query
    RFC
    BAPI</b>
    Some certified consultant can clear my doubt, whether questions from the above areas will be asked or not.
    Thanks in Advance.
    Regards,
    Senthil

    Hi laxmi,
    syllabus:
    Certificate name : SAP NetWeaver - ABAP Workbench (2003) (C_TAW12) 3 / 80 SAP WebAS 6.20
    The certification test consists of questions from the areas specified below:
    Topic Areas
    1. mySAP.com Technologies
    - mySAP.com
    - Navigation (system handling)
    - Technical setup of an SAP system
    - System-wide concepts
    2. ABAP Workbench Basics (++)
    - Data types and data objects
    - Internal tables
    - Data retrieval (authorization check)
    - Subroutines
    - The ABAP Runtime System
    - Function groups and function modules
    - Program calls and data transfer
    3. ABAP Objects (++)
    - Classes and objects
    - Inheritance
    - Casting
    - Interfaces
    - Events
    - Global classes and interfaces
    - Exception handling
    - Dynamic programming
    4. ABAP Dictionary (++)
    - Database tables
    - Performance for table access
    - Consistency through input check (foreigh key dependency)
    - Dependency of ABAP Dictionary objects
    - Views
    - Search help
    5. Techniqes for List Generation (++)
    - Data output to lists
    - Selection screen
    - Logical database
    - Program-specific data retrieval
    - Data formatting and control level processing
    - Storage of lists and background processing
    - Interactive lists
    6. Dialog Programming (++)
    - Screen (basics)
    - User interface (GUI title, GUI status)
    - Screen elements for output (text fields, status icons, and group boxes)
    - Screen elements for input/output
    - Subscreen and tabstrip control
    - Table control
    - Context menu
    - Dialog programming lists
    7. Database Changes
    - Database updates with Open SQL
    - LUWs and Client/Server Architecture
    - SAP locking concept
    - Organizing database changes
    - Complex LUW processing
    - Number assignment
    - Change-document creation
    8. Enhancements and Modifications
    - Changes in SAP Standards
    - Personalization
    - Enhancements to Dictionary elements
    - Enhancements using customer exits
    - Business Transaction Events
    - Business Add-Ins
    - Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    +++ = over 20%
    Regards,
    Senthil

  • Urgent Help for ABAP Certification

    Hi everyone,
    I am planning to do certification in ABAP by Jan.
    Can anyone provide me the proper materials for preparing for certification.
    I would be grateful if anyone can help.
    Thanks in advance,
    Nitin

    Hi Nitin,
    All About ABAP Certification
    /message/213564#213564 [original link is broken]
    /message/514469#514469 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/257122#257122 [original link is broken]
    /message/130164#130164 [original link is broken]
    This is link from SAP about ABAP certification
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    http://www.sapteched.com/india/confactivities/certexam.htm
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    There is a pdf called ABAP certification.
    http://www.esnips.com/web/SAP-ABAP?
    You can try www.sapdoamin.com
    They provide Certification simulation questions which are very useful and a must try site.
    Have a look at below link for mySAP Technology - ABAP Workbench
    https://websmp206.sap-ag.de/~sapidp/011000358700000746472003E
    Have a look at below link for SAP NetWeaver - ABAP Workbench
    http://www30.sap.com/hk/services/education/pdf/cert/ABAPWB.pdf
    The certification test consists of questions from the areas specified below:
    Topic Areas
    1. mySAP.com Technologies
    - mySAP.com
    - Navigation (system handling)
    - Technical setup of an SAP system
    - System-wide concepts
    2. ABAP Workbench Basics (++)
    - Data types and data objects
    - Internal tables
    - Data retrieval (authorization check)
    - Subroutines
    - The ABAP Runtime System
    - Function groups and function modules
    - Program calls and data transfer
    3. ABAP Objects (++)
    - Classes and objects
    - Inheritance
    - Casting
    - Interfaces
    - Events
    - Global classes and interfaces
    - Exception handling
    - Dynamic programming
    4. ABAP Dictionary (++)
    - Database tables
    - Performance for table access
    - Consistency through input check (foreigh key dependency)
    - Dependency of ABAP Dictionary objects
    - Views
    - Search help
    5. Techniqes for List Generation (++)
    - Data output to lists
    - Selection screen
    - Logical database
    - Program-specific data retrieval
    - Data formatting and control level processing
    - Storage of lists and background processing
    - Interactive lists
    6. Dialog Programming (++)
    - Screen (basics)
    - User interface (GUI title, GUI status)
    - Screen elements for output (text fields, status icons, and group boxes)
    - Screen elements for input/output
    - Subscreen and tabstrip control
    - Table control
    - Context menu
    - Dialog programming lists
    7. Database Changes
    - Database updates with Open SQL
    - LUWs and Client/Server Architecture
    - SAP locking concept
    - Organizing database changes
    - Complex LUW processing
    - Number assignment
    - Change-document creation
    8. Enhancements and Modifications
    - Changes in SAP Standards
    - Personalization
    - Enhancements to Dictionary elements
    - Enhancements using customer exits
    - Business Transaction Events
    - Business Add-Ins
    - Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    +++ = over 20%
    Regards,
    Satish

  • Tutorials and Documentation on Tree UI Element for ABAP

    Hi Everyone,
    I am having trouble finding documentation or tutorials on creating Tree structures in web dynpro for ABAP.
    Basically, I need some tutorials on using the "Tree" UI Element.  Also, how would I go about adding Check Boxes to such a control?  For example, someone would like to select the lowest item in a Tree using a check box.
    Tank you.
    Christiaan.

    Hi
    >a) How to check or how to write the code to check whether the current selected node is first level or second level or third level etc from the above example tree structure
    In the context node you have to have attribute level (integer). When you populate context nodes for the tree you have to set correct value 0, 1, 2, ... for the attribute. Then it'll be easy for you to read the value and understand what is the level.
    >b) How to insert a node only at the first level , second level and third level i etc from the above example
    It slightly depends on whether you use recursive nodes or not. But in general it's simple - just create a new element in the corresponding node
    >c) How to delete only leaf node . i have a requirement which says that i can delete only leaf nodes , if i delete a node which having children then it should not allow to me. i can delete a node which is not having any child
    IWDNode node;
    if (node.getChild("<child node name>").size() <= 0) {
    // leaf node
    >4) How to rename any node, once user selects any node then on click of any button then popup opens which retrieves the current textvalue of a node and user have an inputfield where he enters then on click of save then that new textvalue needs to be updated to the selected tree element
    Just bind the text property of a tree item to some node attribute (let say NAME). The just update a value of the attribute.
    BR, Siarhei

  • Certification for SAP - ABAP

    is there any certification for SAP-ABAP ???

    Hi this will help u.
    certification ..
    This is link from SAP about ABAP certification
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    http://www.sapteched.com/india/confactivities/certexam.htm
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    There is a pdf called ABAP certification.
    http://www.esnips.com/web/SAP-ABAP?
    You can try www.sapdoamin.com
    They provide Certification simulation questions which are very useful and a must try site.
    Have a look at below link for mySAP Technology - ABAP Workbench
    https://websmp206.sap-ag.de/~sapidp/011000358700000746472003E
    Have a look at below link for SAP NetWeaver - ABAP Workbench
    http://www30.sap.com/hk/services/education/pdf/cert/ABAPWB.pdf
    The certification test consists of questions from the areas specified below:
    Topic Areas
    1. mySAP.com Technologies
    - mySAP.com
    - Navigation (system handling)
    - Technical setup of an SAP system
    - System-wide concepts
    2. ABAP Workbench Basics (++)
    - Data types and data objects
    - Internal tables
    - Data retrieval (authorization check)
    - Subroutines
    - The ABAP Runtime System
    - Function groups and function modules
    - Program calls and data transfer
    3. ABAP Objects (++)
    - Classes and objects
    - Inheritance
    - Casting
    - Interfaces
    - Events
    - Global classes and interfaces
    - Exception handling
    - Dynamic programming
    4. ABAP Dictionary (++)
    - Database tables
    - Performance for table access
    - Consistency through input check (foreigh key dependency)
    - Dependency of ABAP Dictionary objects
    - Views
    - Search help
    5. Techniqes for List Generation (++)
    - Data output to lists
    - Selection screen
    - Logical database
    - Program-specific data retrieval
    - Data formatting and control level processing
    - Storage of lists and background processing
    - Interactive lists
    6. Dialog Programming (++)
    - Screen (basics)
    - User interface (GUI title, GUI status)
    - Screen elements for output (text fields, status icons, and group boxes)
    - Screen elements for input/output
    - Subscreen and tabstrip control
    - Table control
    - Context menu
    - Dialog programming lists
    7. Database Changes
    - Database updates with Open SQL
    - LUWs and Client/Server Architecture
    - SAP locking concept
    - Organizing database changes
    - Complex LUW processing
    - Number assignment
    - Change-document creation
    8. Enhancements and Modifications
    - Changes in SAP Standards
    - Personalization
    - Enhancements to Dictionary elements
    - Enhancements using customer exits
    - Business Transaction Events
    - Business Add-Ins
    - Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    +++ = over 20%
    with regards,
    HEma SUndara.
    pls give points if u find helpful.

  • Reg ABAP Certification

    Hi Friends,
    I am working as a ABAP Consultant for the past 5 years in 4.6c and 4.7. I am more exposed to Reports and Workbench tools. I am pretty sure that I really lag in terms of SAP Technologies growth.
    I need to improve my skills and at the same time update to the current requirements. I am confused to proceed with my next step. Well, Certification is the only way where I can keep in touch with the updates, So I need your suggestions in my scenario.
    Your suggestions will be appreciated.
    Thanks and Regards
    Leo

    Hi
    Pls go through the following link hope it will help u out
    http://www.sap-img.com/abap/important-abap-faq.htm
    http://www.sap-basis-abap.com/
    http://www.sap-img.com/bdc.htm
    http://sapdomain.com/certification.php
    http://www.techinterviews.com/?p=198
    ABAP Workbench Fundamentals (For course BC400)
    Create ABAP programs and the most important Repository objects using appropriate ABAP Workbench tools
    Navigate in the Workbench and use the syntax help
    Process source text with the ABAP Editor
    Test programs using the Debugger
    Define elementary and structured data objects
    Overview of important ABAP statements
    Use internal tables (introduction)
    Use modularization techniques local in the program
    Database dialogs: information about database tables in the ABAP Dictionary, read database tables
    User dialogs: list, selection screen, screens
    Overview of ABAP Web Dynpro (from SAP NetWeaver 2004s)
    Use function groups and function modules, classes and methods, BAPIs
    Project-oriented development using the Transport Organizer
    Overview of the different options for adapting software
    Advanced ABAP (For course BC402)
    ABAP runtime environment
    ABAP types and data objects
    Unicode
    Analysis tools for programs
    Work with internal tables
    Program modularization with function modules
    Performance of complex Open SQL statements
    Dynamic programming with field symbols and references
    Runtime type information, runtime type creation
    Program calls and memory management
    ABAP Objects : Object Oriented Programming in R/3 (For BC404)
    Introduction
    Analysis and Design
    Principles
    Generalization/Specialization
    Events
    Global Classes/Interfaces
    Summary and Outlook
    Developing User Dialogs (For BC410)
    Course Overview
    Basics for Interactive Lists
    The Program Interface
    Interactive List Techniques
    Introduction to Screen Programming
    Screen Elements for Output
    Screen Elements for Input/Output
    Screen Elements: Subscreens and Tabstrip Controls
    Screen Elements: Table Controls
    Context Menus
    Lists in Screen Programming
    Preview: Control Framework
    Enhancements and Modification (For course BC425)
    Overview of the options for making customer-specific adjustments to the SAP standard system
    Personalization (transaction variants)
    Enhancements to:
    - Elements of the ABAP Dictionary
    - SAP programs
    - SAP screen menus
    - SAP screens
    Enhancement techniques:
    - Enhancements to elements of the Dictionary
    - Enhancements via customer exits
    - Business Transaction Events (BTEs)
    - Business Add Ins (BAdIs)
    - User Exits
    Modifications:
    - Procedure
    - Utilities (Modification Assistant, Modification Browser)
    - Modification adjustment
    SAP Note Assistant (tool for SAP Note implementation)
    ABAP Dictionary (For course BC430)
    Introduction
    Tables in the ABAP Dictionary
    Performance in Table Accesses
    Consistency through Input Checks
    Dependencies of ABAP Dictionary Objects
    Changes to Tables
    Views
    Search Helps
    Developing Internet Application Components (For course BC440)
    Course Overview
    Introduction
    Internet,Intranet & WWW
    HTML,CSS and JavaScript
    Internet Transaction Server
    ABAP Workbench Basics
    SAP GUI for HTML
    Easy Web Transactions
    ITS Flow Logic
    HTML Business
    Summary and Outlook
    Form Printing Using SAPSmart Forms (for course BC470)
    Overview of SAP Smart Forms
    General concepts in form printing
    - Windows and pages, main and secondary windows, text and data
    Creating and adjusting an SAP Smart Form
    - Form Builder, Form Painter, form logic, node types (texts, graphics, addresses, and so on), text modules
    Variables
    - Form interface, global data
    Tables
    - Table Painter, dynamic tables, headers and footers
    Smart Styles
    - Style Builder, paragraph formats, and character formats
    Including graphics
    Change forms and application programs
    Developing BAPI enabled Web Applications with Java (For course CA926)
    For course TABC41, 42 and 43
    Basis technology overview
    ABAP Workbench
    ABAP Dictionary
    ABAP Development Projects
    Advanced Programming in ABAP Development Workbench (week 3 - 4 „TABC42")
    Techniques of List Processing
    Transaction Programming
    Database Updates
    Enhancements and Modifications
    Interfaces for Data Transfer

  • Defining complex types in ABAP

    Hi Folks,
    I am new to the ABAP world and has started programming in it for about two weeks now (therefore, two weeks of experience so far ). I have a question regarding definition of complex types in ABAP. Basically what I want to achieve is to define a type which is either mytype1 or mytype2. During the runtime, it should be decided whether complextype is of mytype1 or of mytype2. Maybe to put some more concrete context: I will call a method with an object of type "complextype". Depending how I set this object, this will be of mytype1 or mytype2. Please see the code schema below.
    TYPES BEGIN OF mytype1.
        TYPES:
        TYPES END OF mytype1.
    TYPES BEGIN OF mytype2.
        TYPES:
        TYPES END OF mytype2.
    TYPES BEGIN OF complextype.
        TYPES:
              mytype_name TYPE mytype1,
              mytype_name TYPE mytype2.
        TYPES END OF complextype.
    Is this a correct way to approach? If yes, how can I express this (either mytype1 or mytype2 but only one of them at a certain time) in ABAP types correctly?
    I will appreciate any kind of help.
    Thanks a million,
    Boldbaatar
    Edited by: Boldbaatar Tsend-Ayush on Apr 6, 2011 8:24 PM

    Hi,
    I think you should use the dynamic data reference .
    TYPES BEGIN OF mytype1.
        TYPES:
        TYPES END OF mytype1.
    TYPES BEGIN OF mytype2.
        TYPES:
        TYPES END OF mytype2.
    data: dref_complex type ref to data.
    field-sumbols:<fs_any> type any.
    if type eq mytype1.
    l_type = 'MY_TYPE1'.
    elseif type eq mytype2.
    l_type = 'MY_TYPE2'.
    endif.
    create data dref_complex type (l_type).
    "In order to access the components of  dref_complex , you should assign the same to field symbol
    assing dref->*  to <fs_any>.
    "then u can use  ASSIGN COMPONENT to get individual components
    Regards
    Arshad

Maybe you are looking for

  • How to sent the data reading in labview to excel datasheet

    Hi, I have aquire the current input from Cb68LP connector block to the labview.Thank a lot But I not sure how to sent the data to the excel datasheet(with row and column). thank

  • Nokia n9 phone keeps blinking after hard reset (cl...

    i don't have many things in my phone (excluding the pre-installed stuff). 10 minutes later, my phone will start blinking. it wont let me turn off the phone either. whats happening? Solved! Go to Solution.

  • CIN servise tax reports

    Hi Friends, what are the standards reports are available in SAP for service tax related, if not please let us know to develop the reports (Tables and fileds) Basically our client is not having any excise invoice.it is fully service oriented company.

  • 2 BIW connections to 1 R/3 system

    Hello, We have one R/3 system to which we want to connect 2 BIW systems. The BIW systems will be picking data from the same client in the R/3 system. when i try to configure the rfc connections, it fails since the client can have only one logical nam

  • Parameter enque/table_size

    Hello all I would like to know what is the relation between the size of lock table ( defined by parameter "enque/table_size") and number of locks that could be handled. If found only one related information in OSS note 13907 but it didn't helped me.