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: 

BAPI_MATERIAL_GETLIST ERROR PARAMETER MAXROWS

Jimmy21
Participant
0 Kudos

Hi all.

I'm trying to use the next BADI: BAPI_MATERIAL_GETLIST but when I pass the parameter MAXROWS trigger the next error:

Function module "BAPI_MATERIAL_GETLIST" was called with the parameter 'MAXROWS'. This parameter is not defined.

This is my code:

CALL FUNCTION 'BAPI_MATERIAL_GETLIST'
      IMPORTING
        maxrows              = NUMROWS
      TABLES
        matnrselection       = lt_bapimatram
        materialshortdescsel = lt_bapimatras
        plantselection       = lt_bapimatraw
        matnrlist            = lt_bapimatlst.
1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

An IMPORTING parameter should be called in the EXPORTING option of CALL FUNCTION...

Regards,
Raymond

1 REPLY 1

raymond_giuseppi
Active Contributor

An IMPORTING parameter should be called in the EXPORTING option of CALL FUNCTION...

Regards,
Raymond