‎2014 Jun 16 4:24 AM
I want to know what does this FM "MC_RATIO_UNIT_READ" do. I can't find any documentation or explanation related to this one both on sites and help on sap. If i meet this kind of problem again where can i look it up?
‎2014 Jun 16 5:44 AM
Hi,
One thing is for sure this function is "Not released" use it on your own risk.
Regards.
‎2014 Jun 16 4:57 AM
Hi,
You must be new here . Documentation is definitely not SAP's strong point!
I tend to look through the function code to gain some understanding, or do a 'where-used' to see where it is called from. Sometimes the calling programs have a brief comment.
good luck,
Paul Bakker
‎2014 Jun 16 5:02 AM
Hi Paul Bakker,
Yes, i am new. Plus, Some FMs are too long to get through. that's why i want some document to help me understand other FMs better. By the way, do u know what does FM "MC_RATIO_UNIT_READ" do?
Is there any way to get the documentation?
‎2014 Jun 16 5:13 AM
Hi,
Unfortunately there is no way to get the documentation, because none exists.
You just have to deduce what the FM does from its name, the code and how it is called.
Yes it's a big problem. Too many programmers have the idea that they write 'self-documenting code'.
But I could rant all day about this....
cheers
Paul B
‎2014 Jun 16 6:02 AM
Hi Paul Bakker,
Thx, but since i am new to sap, it's very difficult to just understand all the codes and processes. Guess, i need to go through it. if you have any tips or tricks about going through FM, please tell me.
‎2014 Jun 16 6:24 AM
OK, some tips:
- examine the database tables (their content and structure) that the FM is reading
- take the meagre in-line German comments and put them through Google translate
- run a couple of tests in SE37 to see what it does
It makes you weep. A few lines of plain English explaining WHAT the function module does - a few minutes' worth of work - would make all of the above unnecessary. Think of all the function modules in SAP that lack even the most basic documentation... how many people have had to struggle through the same issues?
(OK, this particular FM hasn't been released. But plenty more have).
I'm stepping down off the soapbox now.
cheers
Paul Bakker
‎2014 Jun 17 4:13 AM
Thank you, Paul Bakker for providing me some good tips. yes again,due to lacking of documentation, lots of sap newbie like me suffer a lot.
‎2014 Jun 16 5:01 AM
Hi Sophanith,
The Function Module as conveyed by you is used for determination of the ratios and corresponding units of info structure.
Please check for where used in SAP on how to use this.
BR/Thanks
Pranav Agrawal
‎2014 Jun 16 5:02 AM
Hi,
I guess you have to analyze the ABAP code written in the program to get to know what it is doing. Else try searching where the FM is used and it may help to understand why it is being used.
Regards,
Vedanth Ravi
‎2014 Jun 16 5:44 AM
Hi,
One thing is for sure this function is "Not released" use it on your own risk.
Regards.
‎2014 Jun 17 7:56 PM
Overall I agree that documentation is far from spectacular in SAP, but you'll find at least some documentation in the functions that are released to the customer (like the BAPI... ones). Many function modules are also rather self-explanatory.
Quite honestly I just don't understand why would you want to spend time understanding in depth what this function does? The whole point of a function is exactly the opposite - it's a "black box" where you can put some values in and get some values back. Who cares what happens inside as long as it works fine? Certainly desire to learn is more than admirable but the effort seems to be rather misplaced in this case.
Are you not getting the right values back? Then maybe you need to put different values in or find a different function. If you don't know what values to put in then how about running 'where used'?
‎2014 Jun 19 5:03 AM
No, i want the documentation because i do not know what is this function supposed to do. I just saw this function in my senior code, but i don't know its purpose that's why documents will help me understand more about the codes.