cancel
Showing results for 
Search instead for 
Did you mean: 

only a few fields from bapi import structure

joerg_arndt
Participant
0 Kudos

Hi Friends,

when I create a service call in webdynpro abap, I use bapi_material_get_detail.

I want to show the material_general_data in a table.

But I want only a few fields from material_general_data structure to show in the table.

When I try to select only a few fileds in the component controler, it is not possible, because all the fields are marked

and I can not unmark them.

Have I missed something or do I have to go another way. (calling the bapi in a methode).

Thanks in advance.

Rg. Jimbob

Accepted Solutions (0)

Answers (1)

Answers (1)

saket_abhyankar
Active Participant
0 Kudos

Hi

I think you need to proceed as follows:

You are using table UI element, right? Then

You have 2 options:

1) While creating binding, bind only those (columns) fields with controller which you want to display in the output.

2) If you have already created the binding then

i) Expand the table

ii) There you will see all the columns which you have bound

iii) Delete columns from there (table) which you don't want to display in the output

Thus irrespective of the columns present in the controller, you can display only those columns which are required.

I hope this will help.

Regards,

Saket.

joerg_arndt
Participant
0 Kudos

Thanks Saket,

no, I use alv list for output. sorry for the mistake.

RG. JImbob

joerg_arndt
Participant
0 Kudos

Thanks Saket,

no, I use alv list for output. sorry for the mistake.

RG. JImbob

joerg_arndt
Participant
0 Kudos

Hi, I found out it could be difficult, because, when I chnage the structere, I get an dump when I try to import data from bapi to a modifyd structere.

So I have change the methode rxecute_bapi_material_get_data in the component controler.

Thanks

RG. Jimbob