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

BAPI_MATERIAL_GETLIST ERROR PARAMETER MAXROWS

Jimmy21
Participant
0 Likes
656

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
Read only

RaymondGiuseppi
Active Contributor
521

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

Regards,
Raymond

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
522

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

Regards,
Raymond