Where the documentation is provided for the Standard Function module ?

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

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

Similar Messages

  • Change the standard function module

    The standard function module FI_DUPLICATE_INVOICE_CHECK will check whether an invoice/credit memo has already been posted where all of the following attributes match: Company code, vendor, currency, document date, reference number (If a reference number was entered in the current invoice/credit memo). If no reference number was entered in the current invoice/credit memo the system checks whether an invoice/credit memo has already been posted where all of the following attributes match: Company code, vendor, currency, document date, amount in document currency
    my requirement is
    The above functionality described in the short description doesn’t provide for the need within AP to check on duplicate invoices. The functionality in FI differs from the functionaltiy provided in LIV and therefor needs to be aligned. The risk of posting duplicate invoice entry is eminent since the check is dependent on all parameters. For a good duplicate invoice number check we need FI to check on Vendor and invoice reference within the same fiscal year. To modify rules, copy FI_DUPLICATE_INVOICE_CHECK, modify the checks and then call the copied function module from FB60. The remaining field check in the standard function module should be deleted.
    how  to achive this. i didn't understand the requirement .Please give me any suggestion for this.

    Hi ,
    I think what you are saying is the functionality given in Logistics Invoice verification is not suitable for FI Invoice.
    If I am correct , then there is a configuration setting in SPRO where you set check for duplicate invoice. It has just three checkboxes
    a) Company code b) Reference number c) Invoice date
    so I think this configuration setting will suffice your requirement.
    Please let me know.
    Amit

  • Need to know the standard function module/program in E recruitment

    Hi All,
    I need to know the standard function module/programm that defaults the 'Functional area' field in the posting page from the requisition page.
    Early responce is greatly appreciated.
    Thanks and best regards
    Rajeev

    Hi Masa,
    Thanks for your reply.
    We are using Assets with the integration of Project systems. We are now in 4.6C R/3 & SRM 5.0 system. And now R/3 upgrade and SRM upgrade going on smultaniously to ECC6.0 and SRM 7.0 respectively.
    I would like to know any new functionality available in the latest upgrades and we have done lot of customization for Asset Procurement. And would like to go with Vanilla.
    Can you please provide me some inputs about the Project (WBS element ) based Asset Procurement in SRM as standard.
    Thanks and Regards,
    Ramesh

  • Need to know the standard function module in E-Recruitment

    Hi All,
    I need to know the standard function module that defaults the value of 'Functional area' in 'Posting' from 'Requisition'.
    Early response is greatly appreciated.
    Thanks an best regards
    Rajeev

    Hi Masa,
    Thanks for your reply.
    We are using Assets with the integration of Project systems. We are now in 4.6C R/3 & SRM 5.0 system. And now R/3 upgrade and SRM upgrade going on smultaniously to ECC6.0 and SRM 7.0 respectively.
    I would like to know any new functionality available in the latest upgrades and we have done lot of customization for Asset Procurement. And would like to go with Vanilla.
    Can you please provide me some inputs about the Project (WBS element ) based Asset Procurement in SRM as standard.
    Thanks and Regards,
    Ramesh

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • Error in the SAP standard function module 'RSDRI_INFOPROV_READ'.

    Hello Experts,
    We upgraded from 3.5 to 7,0 support pack 17 .
    After upgrade we are getting error
      with return code 11 'Others´'.
    While debugging the standard function module we found that the standard method s_r_infoprov->read is being executed with the return code = 8 (inherited_error).
    Any suggestions?
    Regards,
    Vivek

    Not sure if the parameters provided were correct,you may wish to do a sanity check
    Input Parameters:
    1. I_INFOPROV - This will hold the Name of the Info Cube from where we need the pull the data.
    2. I_T_SFC - This parameter is in the format of Internal Table which holds the Character Info Objects we need to pull from the Source Cube.
    3. I_T_SFK - This parameter is also in the format of Internal Table which holds the Key Figure Info Objects which we need to pull from the Source Cube.
    4. I_T_RANGE - This is also in the format of Internal Table which holds the Selection criteria for which we need to pull from the Source Cube u2013 For example the Company Code u2013 001 and Fiscal Year Period u2013 001/2006.
    5. I_T_REQUID u2013 Selection of cube data based on Request Id.
    6. I_SAVE_IN_TABLE u2013 In case you need to save the data in DB table
    7. I_REFERENCE_DATE u2013 This holds the current date.
    8. I_AUTHORITY_CHECK u2013 This will hold the value u2018Ru2019, which is meant for READ.
    9. I_DEBUG u2013 This is for Debugging mode and holds the default value u2018Yu2019.
    Output Parameters:
    1. E_T_DATA u2013 This Output Parameter is of internal table format, in which we can mention the output fields (For all the fields mentioned in the Input Parameter, this output parameter will hold the values).
    2. E_END_OF_DATA u2013 Once the FM is executed successfully, this output parameter will hold the value u2018Xu2019, means extraction completed successfully.
    Hope it Helps
    Chetan
    @CP..

  • How to find standard function modules for IDOCs

    Hi,
    Can anyone tell me is there any way to find the standard function module for IDOC. I have checked BD60 but it's not available. For example  Idoc type WPUBON01 and I need to know the function module. Can anyone tell me the way out.
    Secondly, if anyone can provide me the code to map the file fields and idoc segements.
    Regards

    Use WE82 to find message type associated with Idoc type.
    Then use this message type as a search string to find the FM.
    The associated FMs are.
    POSED_FILL_OVERVIEW_ENT_WPUBON
    POSED_INIT_DATA_WPUBON       
    POSED_LOCK_DATA_WPUBON       
    POSED_OVERVIEW_ASSIGN_WPUBON 
    POSED_READ_DATA_FROM_DB_WPUBON
    POSED_READ_TR_DATA_WPUBON    
    POSED_SAVE_DATA_WPUBON       
    POSED_SEARCH_STRING_WPUBON   
    POSED_STORE_DATA_WPUBON      
    POSED_UNLOCK_DATA_WPUBON     
    POSED_UPDATE_DATA_WPUBON     
    POSED_UPDATE_TR_DATA_WPUBON  
    Thanks,
    Utsah Garg.

  • How to copy the standarad function module

    hi,
          i wants to copy the standard function module which are not rfc enabled. for that one i copied standard one and modified the attributes to rfc enabled. but it was giving the errors "You can only use LIKE and TYPE to specify types in RFC",
    how can i solve my problem. pls help me.

    Hi mukka,
    1. In that FM, while after copying to Z,
    2. there is a second parameter in IMPORT
    WITH_TEXT
    3. in the column of Associated type,
        it will be blank.
      give some data element like CHAR30
       and also give type
    4. Then it will not give the error.
    regards,
    amit m.

  • How to find the existing function module is used in another function module

    Hi all,
    I created a function module and the same one is called from another function module.
    When I tried to find where the  first function module is used  using  Where-used List , I am getting the message "function module not found in selected areas" .
    Please  guide me what is other method to find whether the function module is used in another one.
    Thanks,
    Vengal Rao.

    hi,
    Go to UTILITIES-> Update Navigation index.
    or go to fucntion group and Generate the Funtion group once.
    it will detect all fucntion modules under that function group.
    regards,
    Rama

  • Standard Function  modules for t-codes FBV3 and FB03

    Dear SDN Community,
      Can you please tell me what are the standard function module that I should use to simulate the following transaction codes from Web.
    FBV3- Display Parked document
    FB03 - Display posted document
    Thanks!
    Surya.

    Hi,
    Please check these BAPI and FM.
    BAPI_ACC_DOCUMENT_DISPLAY
    FI_DOCUMENT_DISPLAY_RFC
    Regards,
    Ferry Lianto

  • Standard Function module for Creating Vendor?

    hi ppl
    i want to know that which function module gets call when we create a vendor from trans. code XK01, i.e. the standard function module SAP uses.
    Regards,

    Ravi,
    What you can do is that you can debug the normal working of the standard webdynpo. This will be helpful in solving the problem.
    Incase you need further clarifications, please let me know.
    Thanks
    Atul

  • MySAP replacements for Excel upload function modules?

    I am doing some development in SRM 4.0 (WAS 640) and I notice that a few of my favorite function modules are no longer available.  Specifically, I'm missing these the most:
    KCD_EXCEL_OLE_TO_INT_CONVERT
    ALSM_EXCEL_TO_INTERNAL_TABLE
    Are there new equivalents?  I know how to access XLS files by writing my own OLE calls, but sometimes it's just easier to use the standard function modules instead.
    Yes, I've done a function module search, but I've found nothing that looks to the the same as my old friends.

    Hi Chris,
    I can't give you an alternative function module per say. Obviously, the downside of using SAP functions, that were probably never released for customer consumption anyway is that they can easily disappear. The suggestion I have is to use the features offered by DOI (desktop office integration). There in lies a set of classes and methods for generically accessing various documents (e.g. ms word, excel etc.) There is some examples in the re-use library (tcode se83). So here you don't need to be worried about the OLE either. Possibly in WAS there might also be some other classes that might access Excel sheets. Downside of finding a new function is that it might disappear in the next version you go to, whereas DOI is unlikey to disappear in a hurry. Best of luck.
    p.s. there are a few other postings in the forum, maybe one will give you an answer, if you haven't search already.
    Message was edited by: Michael Bennett

  • Standard Function Modules required

    I am look for a standard Function Module / RFC / BAPI for the below
    Get the list of table (for a given search criteria like if I give m* it should return me list of
              tables starting with m)
    Get details of the table (its field details)
    Regards,
    Samson.

    Select TABNAME fron dd02l into Itab where Tabname like M*
    Select FIELDNAME ROLLNAME DOMNAME DATATYPE from dd03l into itab2 fro all entries in Itab where tabname = itab-tabname.
    Or:
    Select TABNAME fron dd02l into Itab where Tabname like M*
    Loo at Itab.
    Pass table name in each loop pass to FM: GET_FIELDTAB or DDIF_FIELDINFO_GET
    GET_FIELDTAB    -
    >If you pass table it will give you related fields.
    Endloop.
    Regards,
    Gurpreet

  • Copy Standard Function modules  to Z Function modules

    Hello,
    I have a requirement like , I need have a typical requirement where i need to copy few function modules in the same function group , in  this regard i copied 4 function module and calling performs with the program name , but i am unable to achive the requirement , Function module is getting Dump,
    Can any one explain the standarded function modules and place it in Z function group. or is it possible to include standard function group in to Z function group ?
    How to get reslove ?  please guide ...
    Thanks In Advance.
    With Best Regards
    Naganjaneyulu.P.V

    Hi Naganjaneyulu,
    If you copy it will be similar to Standard. But you can modify those FMs as you like which will not be possible in standard. Also if you solely copy the FM, If that FM consists or depends on the screens or Includes which are present in the Function Group then there will be syntax errors and shortdumps. The Reason for your short dump might be this.
    If you are still not happy with this approach, Kindly paste the standard FM that you are trying to clone and the short dump that you are encountering.
    Thanks,
    Sai

  • Standard Function Modules, BAPIs, BADIs and User Exits  in OM

    How do I check what are the Standard Function Modules / BAPIs in OM or any HR sub modules like PA, Comp, TEM etc..

    use Tcode <b>BAPI</b> and navigate to relevant module.
    for FM go to se37 and search with HR* or RH*

Maybe you are looking for