2009 Jan 08 9:13 AM
hi all,
I have following subroutine.
since I have a input parameter P_Itab as a internal table
How come I can not loop this internal table in the FORM.
FORM get_dydata using P_Itab
LOOP AT P_Itab.
some code.....
END LOOP.
ENDFORM. "get_data
2009 Jan 08 9:14 AM
hi all,
I have following subroutine.
since I have a input parameter P_Itab as a internal table
How come I can not loop this internal table in the FORM.
FORM get_dydata using P_Itab
LOOP AT P_Itab.
some code.....
END LOOP.
ENDFORM. "get_data
2009 Jan 08 9:14 AM
2009 Jan 13 2:45 AM
2009 Jan 08 9:15 AM
Hi,
use this
FORM get_dydata tables P_Itab
endform.
regards,
Santosh Thorat
2009 Jan 08 9:17 AM
hi,
try this one...
FORM get_dydata using tables P_Itab
LOOP AT P_Itab.
some code.....
ENDLOOP.
ENDFORM. "get_data
regards
vijay
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 3:52 PM
2009 Jan 13 2:47 AM
This might be work.
But I thought SAP didn't recommend us to do so.
2009 Jan 08 9:17 AM
HI,
You need to make it as
data: itab like tstc occurs 0 with header line.
select * from tstc into table itab up to 10 rows.
perform abc using itab.
*&---------------------------------------------------------------------*
*& Form abc
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_ITAB text
*----------------------------------------------------------------------*
form abc using p_itab structure tstc.
loop at itab.
write:/ 'HALO'.
endloop.
endform.
regards,
venkatesh
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 3:52 PM
2009 Jan 13 2:48 AM
2009 Jan 08 9:19 AM
HI,
data: itab like tstc occurs 0 with header line.
select * from tstc into table itab up to 10 rows.
perform abc tables itab.
*&---------------------------------------------------------------------*
*& Form abc
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_ITAB text
*----------------------------------------------------------------------*
form abc tables p_itab structure tstc.
loop at p_itab.
write:/ 'HALO'.
endloop.
endform.
Regards,
venkatesh
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 3:52 PM
2009 Jan 08 10:10 AM
Hi,
Can you tell me how an Input Parameter can be an "Internal Table"??
Select-option is an Internal table and you can loop over it....
S_itab
loop at s_itab into wa_itab.
wa_itab-low ..... "this holds the value
endloop.
please do let me know...
Regards,
neha
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 3:53 PM
2009 Jan 13 2:52 AM
I don't know internal table can not be used in this specific way.
Just want to express that I want to input a structure as a parameter but the structure of it is unknown yet.
2009 Jan 13 5:33 AM
Hi,
No,you cannot input structure as a parameter!!!!
Can you tell me what exactly is your requirement?
Regards,
Neha
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |