‎2007 Jun 04 1:17 PM
Hi all,
I'm using the FM HR_FORMS_TIM_GET_B2_RESULTS to access a cluster table. This FM returns the structure HRF_TIM_B2 which contains several tables. I want to read the data in table FT_ZES. How do I declare the internal table and loop through the FM's result? I call the FM like this:
DATA: wa_tim_b2 TYPE hrf_tim_b2.
CALL FUNCTION 'HR_FORMS_TIM_GET_B2_RESULTS'
EXPORTING
pernr = p0001-pernr
begda = pnpbegda
endda = pnpendda
IMPORTING
tim_b2 = wa_tim_b2
I tried this code, but received the error: "Internal table "WA_TIM_B2-FT_ZES" has no Header line -specification...."
LOOP AT wa_tim_b2-ft_zes.
CASE wa_ft_zes-ztart.
WHEN '9005'.
WHEN '9006'.
ENDCASE.
ENDLOOP.
Thanks in advance,
Ivo
‎2007 Jun 05 5:29 AM
tried this code, but received the error: "Internal table "WA_TIM_B2-FT_ZES" has no Header line -specification...."
<b>data : wa_ft_zes like line of xyz.</b>
LOOP AT wa_tim_b2-ft_zes<b> into wa_ft_zes ---> here u have to take data into work area.</b>CASE wa_ft_zes-ztart.
WHEN '9005'.
this is sample code , please check the sytax.
Regards
Peram
‎2007 Jun 05 5:29 AM
tried this code, but received the error: "Internal table "WA_TIM_B2-FT_ZES" has no Header line -specification...."
<b>data : wa_ft_zes like line of xyz.</b>
LOOP AT wa_tim_b2-ft_zes<b> into wa_ft_zes ---> here u have to take data into work area.</b>CASE wa_ft_zes-ztart.
WHEN '9005'.
this is sample code , please check the sytax.
Regards
Peram
‎2007 Jun 05 9:07 AM
‎2007 Jun 05 5:32 AM
Hi,
Declare a work area and use it in your loop..
DATA: WA LIKE LINE OF wa_tim_b2-ft_zes.
LOOP AT wa_tim_b2-ft_zes <b>INTO WA</b>.
Thanks,
Naren