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: 

dump while executing class method whose exporting parameter of type table

Former Member
0 Kudos

hi,

i am getting dump after executing a method in which i want to export an internal table which will hold all the states name along with its code on the basis of the country name which is my importing parameter.

for the above i am using importing parameter named as country of type too5u-land1 and the exporting parameter named as itab of type table and below is my code for the requirement.

method PROCESS.

select BLAND BEZEI from T005U

INTO TABLE ITAB WHERE

LAND1 = COUNTRY.

endmethod.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please check the below code


parameters country type land1.

*Refer the class which we are using like below
data: a type ref to ZCL_TX_SERVICE_01.
data itab type ycountry.

*ycountry is a table type defined in dictionary with fields BLAND and BEZEI
data wa like line of itab.

*If we are using instance method we need  to create the instance like below
create object a.

*In the method process define exporting parameter itab as type ycountry which is a table type already defined
CALL METHOD a->PROCESS
  EXPORTING
    COUNTRY = country
  IMPORTING
    ITAB    = itab.
    .

loop at itab into wa.
write:/ wa-bland.
endloop.

Regards

Dande

former_member219399
Active Participant
0 Kudos

Hi,

What is the description of the short dump?

With regards,

Vamsi