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

How to export an table using a method

Former Member
0 Likes
665

Hi Experts,

I am new in ABAP OO and I have a little problem. I want to export a table by calling a method. For this I have declared an export paramater as type of the structure I want to give back.

PE_TAB_RESULT Exporting Type /IXULT/HV_MM_STRU

If i now want to append a new line to my table I always get the error "occurs n" in my method.

Please can someone help me with that problem?

Greetings, Alexander

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
631

Is your export parameter defined as a TABLE type, or just a strcuture?

I don't recognize the error message you are getting - can you double check you've got it right.

matt

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
632

Is your export parameter defined as a TABLE type, or just a strcuture?

I don't recognize the error message you are getting - can you double check you've got it right.

matt

Read only

Former Member
0 Likes
631

Thats exact my problem. I did not really know how to define my export parameter as table.

In a ABAP program I can say:

it_tab type table of structure but in the method I only can say: like, type or type ref to.

My export paramter is defined as type of a structure.

Read only

Sm1tje
Active Contributor
0 Likes
631

is there also a table type of the structure you are using? If so, use that as your TYPE otherwise create a table type yourself with line type the structure that you want.