Application Development 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: 

How to import TP data from cluster SAP ABAP ?

former_member396057
Participant
0 Kudos

Hi,

I want to import TP data from cluster without using FM: HR_FORMS_TIM_GET_B2_RESULTS.

But TP is not found PCL2 - B2 Cluster.

IMPORT tp FROM DATABASE pcl2(b2) ID b2-key.

IF sy-subrc EQ 0.
LOOP AT tp.
APPEND tp TO it_tp.
ENDLOOP.
ENDIF.

How to import TP data ?

Regards,

Shabbir

1 ACCEPTED SOLUTION

former_member396057
Participant
0 Kudos

This question resolved by myself.

I have checked the code inside the function module HR_FORMS_TIM_GET_B2_RESULTS and used the required code as per requirement. The FM:HR_TIME_RESULTS_GET is very useful.

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abendata_cluster.htm

Most propably you use the wrong key.

And by the way, copying an internal table with LOOP and APPEND as you do is the least optimal solution. Where did you learn that?

former_member396057
Participant
0 Kudos

This question resolved by myself.

I have checked the code inside the function module HR_FORMS_TIM_GET_B2_RESULTS and used the required code as per requirement. The FM:HR_TIME_RESULTS_GET is very useful.