‎2009 Apr 24 1:14 PM
Hi
how can i importing a table in the method?
i try this
methods: merge_data
importing pf_spediumsetz type table zsd_spediumsetz,
but became a error message.
thx
‎2009 Apr 24 1:53 PM
became error
the type is unknown
why?
Edited by: marty anujit on Apr 24, 2009 2:59 PM
‎2009 Apr 24 1:24 PM
Hi,
Try like this : importing pf_spediumsetz type *STANDARD * table zsd_spediumsetz,
‎2009 Apr 24 1:28 PM
Hi Marty,
Create a table type for zsd_spediumsetz as say ZTT_sd_spediumsetz and write the method statement as
methods: merge_data
importing pf_spediumsetz type ZTT_sd_spediumsetz,I think it works.
Regards,
Swapna.
‎2009 Apr 24 1:41 PM
‎2009 Apr 24 1:45 PM
‎2009 Apr 24 1:40 PM
importing pf_spediumsetz type standard table zsd_spediumsetzbecame a erorr message, that command not finished
‎2009 Apr 24 1:47 PM
methods: merge_data
importing pf_spediumsetz type standard table zsd_spediumsetz,
‎2009 Apr 24 1:50 PM
>
>
methods: merge_data > importing pf_spediumsetz type standard table zsd_spediumsetz, >
this is wrong
Change the code like this..
types: tt_zsd_spediumsetz type standard table of zsd_spediumsetz.
methods: merge_data
importing pf_spediumsetz type tt_zsd_spediumsetz ,
‎2009 Apr 24 1:53 PM
became error
the type is unknown
why?
Edited by: marty anujit on Apr 24, 2009 2:59 PM
‎2009 Apr 24 2:01 PM
you need to do some thing like this..
report ztest.
types: tt_zsd_spediumsetz type standard table of zsd_spediumsetz.
class myclass definition.
methods: merge_data
importing pf_spediumsetz type tt_zsd_spediumsetz ,
......
endclass.
‎2009 Apr 24 2:08 PM
aha...i have definition the types in other include, i think so, that the types unknow.....
now, the new definition.
class gc_edit_data definition final.
public section.
types: t_zsd_spediumsetz type sorted table of zsd_spediumsetz.
methods: merge_data
importing pf_spediumsetz type t_zsd_spediumsetz,
select_spediumsetz. "Wird nur zum testen verwendet
private section.
data: gt_spediumsetz type table of zsd_spediumsetz.
endclass. "gc_edit_data DEFINITION
thx very much for help
anu