Application Development and Automation 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: 
Read only

Importing Table

Former Member
0 Likes
1,019

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
999

became error

the type is unknown

why?

Edited by: marty anujit on Apr 24, 2009 2:59 PM

10 REPLIES 10
Read only

Former Member
0 Likes
999

Hi,

Try like this : importing pf_spediumsetz type *STANDARD * table zsd_spediumsetz,

Read only

Former Member
0 Likes
999

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.

Read only

0 Likes
999

i have try it but became an error.

Read only

0 Likes
999

Show the code how you proceeded..?

Read only

Former Member
0 Likes
999
importing pf_spediumsetz type standard table zsd_spediumsetz

became a erorr message, that command not finished

Read only

Former Member
0 Likes
999
methods: merge_data
              importing pf_spediumsetz type standard table zsd_spediumsetz,
Read only

0 Likes
999

>

>

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 ,

Read only

Former Member
0 Likes
1,000

became error

the type is unknown

why?

Edited by: marty anujit on Apr 24, 2009 2:59 PM

Read only

0 Likes
999

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.

Read only

0 Likes
999

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