Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Documentation

Former Member
0 Likes
1,882

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?

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
1,829

Hi,

One thing is for sure this function is "Not released" use it on your own risk.

Regards.

11 REPLIES 11
Read only

paul_bakker2
Active Contributor
0 Likes
1,829

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

Read only

0 Likes
1,829

Hi ,

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?

Read only

0 Likes
1,829

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


Read only

0 Likes
1,829

Hi ,

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.

Read only

0 Likes
1,829

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

Read only

0 Likes
1,829

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.

Read only

Former Member
0 Likes
1,829

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    

Read only

Former Member
0 Likes
1,829

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

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,830

Hi,

One thing is for sure this function is "Not released" use it on your own risk.

Regards.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,829

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'?

Read only

0 Likes
1,829

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.