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

Where the documentation is provided for the Standard Function module ?

Former Member
0 Likes
1,771

If there is no documentation provided for the standard function module in SE37 what is the best way to understand the functionality of the function module?Is there any where we can find the documentation?

Please dont say the From coding part its too vast to understand

Ex: HRCM_ORGSTRC_INFO_TABLE_GET

Paint for me ..

Regards

sas

Edited by: Julius Bussche on Mar 18, 2009 1:17 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,587

This FM module will return sub organization units which comes under particular Organization based on organizational structure in your System.

14 REPLIES 14
Read only

Former Member
0 Likes
1,587

check the where used list to see where it has been used, from there u can get an idea.

Also login in german language and check in se37 if documentation exists or not as in some cases documentation is not present in english but is present in german.

кu03B1ятu03B9к

Edited by: kartik tarla on Mar 18, 2009 4:26 PM

Read only

Former Member
0 Likes
1,587

or u jus see the input that needs to be passed n jus try debugging it, u will get an idea of the FM

Read only

Former Member
0 Likes
1,587

Hi ,

In SE37 t-code,

Enter your function module name,Then there will be one button

FUNCTION MODULE DOCUMENTATION ,If that FM's documentation

is present then it will show you by pressing that or you can also check

from GOTO->DOCUMENTATION from the menu bar.

Hope it helps

Regards

Mansi

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,587

Hi,

Try searching on SDN, may you can find a small explaination...

Or execute the FM once and see the output.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
1,588

This FM module will return sub organization units which comes under particular Organization based on organizational structure in your System.

Read only

0 Likes
1,587

Yes Amit it is returing the values that are based on the evaluation path what i am passing!!

regards

sas

Read only

0 Likes
1,587

Hi,

first goto se37>enter your FM name>Goto>Documentation>FM Documentation(F9). or

If you goto that FM after entering the FM name in se37--> there is tab called "Function module documentation". but it will be disabled sometimes bcs some documentation will be available in language DE only. for this try lo login in DE language and check it out.

Regards

Arani Bhaskar

Read only

0 Likes
1,587

So anything more would you like to know?

Read only

0 Likes
1,587

Yes amit,

Thanks for reverting back..........

i am just checking there is one report assighned to me of which in the coding part they have commented the RH_STRUC_GET and replaced the above funciton module.........

i am just searching why that has been replaced with that!!! any idea?

is there any additionalities compared to RH_STRUC_GET?

regards

sas

Juilius instead of painting my post if u suggest some one to answer i feel so happy

Edited by: saslove sap on Mar 18, 2009 1:36 PM

Read only

0 Likes
1,587

The only purpose I see which might be they were not to intended to AUTHORITY check .But RH_STRUC_GET does AUTHORITY_CHECK by default. Beyond this i cannot see any reason.

Read only

0 Likes
1,587

O Really thanks amit !!

Are you able to understand the below code and please provide your valuable inputs what we are understanding is the same.


PERFORM read_infotypes.

*-- ********************************************************** NMP
*-- IF scb frozen then write to itab-scb field.  nmp 11/2001.
*-- ********************************************************** NMP
*--Begin of Change by vneld - 01/17/2007
*  IF PA0001-ZZBERN NE SPACE.
*    FROZEN = PA0001-ZZBERN.
*  ENDIF.
*  ITAB-SCB = FROZEN.
*-- ********************************************************** NMP
*--end of Change by  vneld- 01/17/2007

  PERFORM get_date USING '92'
                   CHANGING w_hiredate.
  PERFORM get_date USING '93'
                   CHANGING w_rehire.
  PERFORM get_date USING '94'
                   CHANGING w_termdate.
  IF NOT ( w_rehire IS INITIAL ).
    w_hiredate = w_rehire.
    itab-code = 'R'.
  ELSE.
    itab-code = 'H'.
  ENDIF.
  IF p0001-persg = '3'.
    itab-code = 'T'.
  ENDIF.

*Change by Mdukes
** We need HIRE,Rehire & term  within 13 month`s window
** But if someone Hire in IT ,change dept and then terminated .
** We need to exclude that person from the list  .
** We need to change his Org.Unit by END_DATE 12/31/9999 from Pa0001.

  CLEAR:result_tab.REFRESH:result_tab.

  CALL FUNCTION 'HRCM_ORGSTRC_INFO_TABLE_GET'
    EXPORTING
      PLVAR          = '01'
      ROOT_OTYPE     = 'O'
      ROOT_OBJID     = P0001-ORGEH
      BEGDA          = SY-DATUM
      ENDDA          = P0001-ENDDA
      PATH_ID        = EVPATH
      PATH_DEPTH     = 10
    TABLES
      ORG_INFO_TABLE = result_tab
    EXCEPTIONS
      PATH_ERROR     = 1
      ROOT_ERROR     = 2
      OTHERS         = 3.

*  CALL FUNCTION 'RH_STRUC_GET'
*    EXPORTING = 'O'
*      act_objid       = PA0001-ORGEH
*      act_wegid       =  EVPATH
*      act_plvar       =  TYPE
*      act_tflag       = space
*      act_vflag       = space
*      authority_check = space
*    TABLES
*      result_tab      = result_tab
*    EXCEPTIONS
*      no_plvar_found  = 1
*      no_entry_found  = 2
*      OTHERS          = 3.

* reading the Org.Unit based on employee Org.unit (Evaluation Path 'O-O'.
* After that making sure the latest Pa0001 org.unit is part of selection org.unit
* If yes, set the flag to = 1 . Otherwise ignore the rec .
* We want only IT folks hire/rehire/term within 13 monthu2019s window
* if somebody change the dept and get term within 13 monthu2019s .it
* Should show up in hire but not in term report .
  CLEAR:REC.

  lOOP AT result_tab.
    read table PCHOBJID with key low = result_tab-OBJID.
    if sy-subrc = 0 .
      Rec = 1.
      EXIT.
    Endif.
  ENDLOOP.


  if rec  = 1.
*--begin of change by vneld- 01/17/07


    CHECK ( ( w_hiredate >= w_13th_mnth_date AND w_hiredate <= sy-datum )
      OR
          ( w_termdate >= w_13th_mnth_date AND w_termdate <= sy-datum ) ).

*--end of change by vneld- 01/17/07


**---check for hires or terms in the calendar year.
**---No future terms
*  CHECK ( ( W_HIREDATE(4) = SY-DATUM(4) ) OR
*  ( W_TERMDATE(4) = SY-DATUM(4) AND W_TERMDATE <= SY-DATUM ) ).


    CONCATENATE p0002-vorna p0002-nachn INTO itab-name SEPARATED BY ' '.

*--Begin of change by vneld 03/29/2007
*--get supervisor name
    data : lname(20),
           fname(20).
    clear: lname,
           fname.
    Select vorna nachn from pa0002 into (fname ,lname)
           where pernr =  p0001-zzsuper_no.
    endselect.
    CONCATENATE lname fname INTO itab-supv SEPARATED BY ' '.

*  itab-supv = p0001-zzsuper_text.
*--End of change by vneld 03/29/2007

*----get employee group text
    CLEAR t501t.
    SELECT SINGLE * FROM t501t WHERE sprsl = 'EN' AND
                                     persg = p0001-persg.
    IF sy-subrc EQ 0.
      itab-group = t501t-ptext.
    ENDIF.
    PERFORM get_dept.
    PERFORM get_position.
    PERFORM append_fields.
  endif.
ENDFORM.                    " PROCESS_EMPLOYEE

Edited by: saslove sap on Mar 19, 2009 7:45 AM

Read only

Former Member
0 Likes
1,587

Hi,

It is not necessary that the documentation is provided for all the stamdard FM's.

But you can check the Function Module Documentation Tab or search sdn for more info.

For the FM mentioned above there is no doc in English, may be its in german language.

Regards,

Manish

Read only

Former Member
0 Likes
1,587

hi sas,

Hope this may be helpful to some extent,

Function Module Documentation:

Function module documentation contains important detailed information about the task of the function module. It should be detailed enough for other users to be able to understand your function module without having to examine its source code.

To create the documentation:

1.Open the Function Builder and enter the name of the function module that you want to document.

2.Select Interface.

3.Choose Change.

4.Choose Function module doc.

The system opens the SAPscript editor. Here, you can enter comprehensive function module documentation, including examples, tips for using the function module, and any other relevant information.

The SAPscript editor differs considerably from the ABAP Editor. Firstly, the menus and key settings are different. Secondly, you can use special formatting in SAPscript documentation. For further information about the SAPscript editor, see Text Processing with the SAPscript Editor

5.Save the documentation

Thanks in advance

Srikanth.p

Read only

Former Member
0 Likes
1,587

Hi,

Login into your SAP System in language DE. Then goto SE37. Then enter the function module name.

Then click Function module documentation button in the toolbar of Function module.

Then you will get the documentation of the Function module.

Copy all the text there in that documentation. Goto Google language translator:

http://www.google.co.in/language_tools?hl=en

In Translate text box, paste the contents which you have copied. Then choose German language to English language. And press translate text.

You will get the documentation in English language.

(For some of the objects in SAP, documentation is done in German language. You can do this procedure)

Best Regards,

Suresh