Flipkart.com

Wednesday, March 4, 2009

Decoupled Infotype

What is this?
This is OOPS way of creating/maintaining infotypes.

What is 'decoupled' here?

Business Logic of the infotype and the user interface code are separated now.

Can you explain?
In the earlier method, the code for application/logic and code for the UI screen are in a same ABAP program. (Module pool). Now using OOPS we have a new framework, which separates Application logic and UI logic. We have separate set of classes which carry the code for validation, default values etc.

What about future?
Any new infotypes you create, automatically get created using the 'Decoupled' technology. SAP Also provides IMG tools to migrate an existing (standard or custom) infotype into 'Decoupled' framework.

Whats the use of decoupled infotypes?
Newer applications such as some ESS scenarios, HR Admin services are supported only for decoupled infotypes. That means you need to migrate these infotypes, if you need to use them in some ESS applicaitons.
Maintaining infotypes using PA30 (or PA20) is not effected by this. Both technologies are supported.

What is the advantage compared to old technology?
-> New controls, new graphic elements, visual patterns etc.
-> Improves performance for Batch data input.

I am not an 'OOPS' ABAPer. So tell me technically what has been changed?


-> Two new structures are defined. These are specific to screens.
1. HCMT_BSP_PA_yy_Rnnnn (Country specific infotypes)
2. HCMT_BSP_PA_XX_Rnnnn (International infotypes)
3. ZHCMT_BSP_PA_yy_R9nnn (Custom Country specific infotypes)
4. ZHCMT_BSP_PA_XX_R9NNN (Custom International infotypes)
Contains all PSnnnn fields and additional fields to be displayed in infotype screen.

-> Conversion Class
These are the interfaces between screen logic and application logic. It does following tasks.
1. Conversion of screen fields and providing them in a structure to the backend program.
2. Conversion of backend structure given by program into front end screen fields.
3. Setting screen (control) attributes to the screen fields.

Naming convention for conversion class
CL_HRPA_UI_CONVERT_nnnn_yy (Country specific)
CL_HRPA_UI_CONVERT_nnnn_XX (International)

Conversion classes are Infotype Specific and Country Specific. They are assigned in table V_T588UICONVCLAS

-> Check Classes
Business Logic Goes here (Validations and default values). This class has several standard methods, and custom methods also can be added here.
Check Classes are coded manually.

Entry in table V_T582ITVCLAS for the classes to determine version IDs and Infoptye containers
Naming Convention for check class:
CL_HRPA_INFOTYPE_nnnn.
ZCL_HRPA_INFOTYPE_nnnn.

Check classes for different versions are assigned in table V_T582ITVCHCK


15 comments:

  1. Hello KK,
    Nice to see your writings about HR Abap...Keep up the Good Job!

    I have a Question reg Decoupled ITs. When I tried to update IT0021 through PA30, I couldn't see anywhere it calling the Decoupled logic.I mean, it doesnt call the new BADI's( HRPAD00INFTYBL ) for the Decoupled ITs. Can u pls tell me how to make PA30 or PA40 work in the Decoupled framework ?

    thanks in advance,
    Mahesh

    ReplyDelete
  2. Hi Mahesh,
    Which SAP version you are in .. ?

    It means that currently your infotype 21 is not yet in decoupled framework. SAP provides(help.sap.com) steps to convert existing infotypes to decoupled framework. It is straight and simple.

    Thanks
    Krishna

    ReplyDelete
  3. Hi KK,

    nice blog.

    in my reqirement, in PA30 for infotype 0007 i need to get the check box automatically checked depending on the employee group.

    Can i use HRPAD00INFTYBL? or should i use HRPAD00INFTY? HRPAD00INFTY is easier as i can use 'Before_output' but for HRPAD00INFTYBL i can not figure out what to do!

    --
    Regards
    AJ

    ReplyDelete
  4. I am curious to find out what blog platform you are
    working with? I'm experiencing some small security issues with my latest site and I'd
    like to find something more safeguarded. Do you have any solutions?
    Stop by my page - http://wearedogpound.com

    ReplyDelete
  5. Pretty section of content. I just stumbled upon your
    site and in accession capital to assert that I acquire in fact
    enjoyed account your blog posts. Anyway I will be
    subscribing to your augment and even I achievement you access
    consistently fast.
    Also see my web site :: work from home

    ReplyDelete
  6. I've been browsing on-line greater than three hours lately, but I by no means found any attention-grabbing article like yours. It is lovely worth sufficient for me. In my opinion, if all website owners and bloggers made good content as you probably did, the internet can be much more helpful than ever before.

    Here is my website; upm.es

    ReplyDelete
  7. I got this web site from my buddy who informed me on the topic of this web site and now this time I am browsing this web site
    and reading very informative articles here.

    my website :: smoking drug

    ReplyDelete
  8. Excellent post however I was wondering if you could write a litte
    more on this topic? I'd be very thankful if you could elaborate a little bit further. Kudos!

    Also visit my web site; advantages of link building

    ReplyDelete
  9. Hi there, after reading this awesome piece of writing i am
    as well happy to share my knowledge here with colleagues.


    my web blog :: not getting pregnant

    ReplyDelete
  10. I blog quite often and I seriously thank you for your information.
    The article has really peaked my interest.

    I will take a note of your website and keep checking for new details
    about once per week. I opted in for your RSS feed as well.


    Feel free to visit my website :: http://gohima.com/

    ReplyDelete
  11. I was recommended this web site by my cousin. I am not sure whether this
    post is written by him as no one else know such detailed about my trouble.
    You are wonderful! Thanks!

    my page ... http://re-visionfarm.org/kids-clothing-shopping-for-kids-clothing-is-made-easier-online/

    ReplyDelete
  12. The first and most obvious feature of the new Hanfu is the fact that it incorporates a lot of Western-inspired elements to its appearance. Find more interesting information about New Hanfu.

    ReplyDelete
  13. Drug Rehab Malaysia, a top addiction treatment centre in the USA, offers residential rehab and medical detox programs to cure alcohol, drug and co-occurrent mental health disorders including panic disorder. Get detailed info about drug rehab on this site.

    ReplyDelete
  14. With these three options you can choose the degree that best suits you and your goals. After choosing an online school to go to, make sure you know what type of law that they offer. Source to know more about online law school.

    ReplyDelete