Get Time Evaluation Cluster using Function Module

Here’s a piece of code to get cluster TM in program Z :

  DATA: tim_b2            TYPE  hrf_tim_b2.
  CALL FUNCTION 'HR_FORMS_TIM_GET_B2_RESULTS'
    EXPORTING
      pernr                 = pernr-pernr
      begda                 = pn-begda
      endda                 = pn-endda
    IMPORTING
      tim_b2                = tim_b2
    EXCEPTIONS
      wrong_cluster_version = 1
      no_read_authority     = 2
      cluster_archived      = 3
      technical_error       = 4
      OTHERS                = 5.
Advertisements

2 comments

    • Hi Lennin,

      Here’s the example, just add it after calling the FM:

      *example you are accessing ZES data of cluster B2
      DATA: lx_zes TYPE ptr_f_zes.
      
      LOOP AT tim_b2-ft_zes INTO lx_zes.
      *data population/manipulation
      ENDLOOP.
      

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s