Skip to Content
author's profile photo Former Member
Former Member

Example code using decoupled infotype framework??


I am trying to learn about decoupled infotype framework, i need some sample code where we read, change and delete infotype records. Or links to where i could find some sample code.

Any help will be appreciated.


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 03:41 PM

    No real sample code to go through. I suggest reading the very well done Wiki by Markus Klein (sp?) about it. Basically, what you have is...

    screen structure <-> conversion class (in/out) <-> infotype structure

    The conversion classes act as the middle-man between the front and back end. You can put coding into your in/out conversion classes to perform functionality you need...such as formatting, or checks, etc. You could have a screen structure that encompasses two infotypes for example and then in the conversion classes, you could pass the needed fields to their correct infotype structure.

    As a real world example, for ESS, we have a custom infotype for some additional dependent information. We added these fields to the SCREEN structure of our ESS service for dependents. Then, in our conversion class, we take those fields and put them into the custom infotype structure we have while letting all the other fields go on into the standard infotype. This is the idea of "de-coupled"....the backend structure is not dictated by what's on the screen and vice-versa.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your reply. I understand the overall process. Basically decoupled infotype framework work as model view controller. I am currently doing the conversion classes which performs the functionality. Since i have not used these classes and methods before thats why need some sample code. Just makes it easier when i do the coding.

      Thanks for your help. Some points were awarded.


  • Posted on Dec 04, 2007 at 07:56 PM

    The best "sample" code I found for this was looking at several of SAPs own standard code examples.....especially the country specific services and such for ESS. I didn't really "get" the conversion classes either until I poked around and looked at how SAP did it. Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.