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

issue with Structure

Former Member
0 Likes
709

Hi All

I am creating BAPI's so for that I am exporting a structure as a return value.

I have multiple records in my table but i want all the records to be displayed.

But Using Structure,only one record is displayed.

Pleease resolve the issue and give me correct solution.

I will reward 10 points to the best soln.

Regards

Deepanker

6 REPLIES 6
Read only

Former Member
0 Likes
692

Define that structure as table(In tables tab).

This will solve ur problem.

Thanks and Regards,

Read only

0 Likes
692

Chandra

but still my issue not resolve bcoz structure will hold only one record.

Read only

0 Likes
692

Create a table type in SE11 for your structure.

Then declare your import/export parameters with reference to that table type.

Read only

0 Likes
692

Can u please check in debugging mode that 2-record is appending in to that structure or not.

Thanks and Regards

Read only

rajesh_akarte2
Active Participant
0 Likes
692

Hi,

Go in Tables tab of function module,there in parameter field give the returning table name ,in typeing field write LIKE and in associated type write ur structure name.

It will solve ur problem.

Regards,

Rajesh Akarte

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
692

in u r functional module...tables TAB declare itab like <structure name>

in your program append your entries to this itab.