cancel
Showing results for 
Search instead for 
Did you mean: 

Get material list

Former Member
0 Kudos

Hi

In a Java program I have to display a list with all the materials (db table mara). Does a BAPI or RFC exist that returns a greather number of fields regarding the BAPI_MATERIAL_GETLIST.

I have to display some fields that the standard bapi does not display, for example MTART, PSTAT, MATKL , MEINS, GROES etc.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Giorgio,

You need 2 RFMs: BAPI_MATERIAL_GETLIST and BAPI_MATERIAL_GETDETAIL.

Note, however, that this will lead to N+1 remote requests (N - number of records). It would be better if you first write your own RFM that uses pair above to expose necessary list.

VS

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can use the RFC_READ_TABLE function module instead to directly read the MARA table.

Regards,

Rich Heilman