2009 Mar 18 10:54 AM
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
2009 Mar 18 11:00 AM
This FM module will return sub organization units which comes under particular Organization based on organizational structure in your System.
2009 Mar 18 10:55 AM
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
2009 Mar 18 10:57 AM
or u jus see the input that needs to be passed n jus try debugging it, u will get an idea of the FM
2009 Mar 18 10:58 AM
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
2009 Mar 18 11:00 AM
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
2009 Mar 18 11:00 AM
This FM module will return sub organization units which comes under particular Organization based on organizational structure in your System.
2009 Mar 18 11:29 AM
Yes Amit it is returing the values that are based on the evaluation path what i am passing!!
regards
sas
2009 Mar 18 11:41 AM
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
2009 Mar 18 11:52 AM
2009 Mar 18 12:28 PM
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
2009 Mar 18 12:53 PM
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.
2009 Mar 18 2:07 PM
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
2009 Mar 18 11:32 AM
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
2009 Mar 18 1:07 PM
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
2009 Mar 18 1:26 PM
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