BAPI_MATERIAL_GETLIST error de parámetro MAXROWS

Hola a todos.
Estoy utilizando la BAPI: BAPI_MATERIAL_GETLIST dentro de una función, al pasarle el valor de numero de registros que quiero que devuelva al parametro MAXROWS me aparece el siguiente error en tiempo de ejecución:

CALL FUNCTION 'BAPI_MATERIAL_GETLIST'
      IMPORTING
        maxrows                     = numfilas
      TABLES
        matnrselection            = t_bapimatram
        materialshortdescsel  = t_bapimatras
        plantselection             = t_bapimatraw
        matnrlist                     = t_bapimatlst.

Hola,

A ese parámetro lo tenés que llamar con EXPORTING, no IMPORTING.

CALL FUNCTION 'BAPI_MATERIAL_GETLIST'
* EXPORTING
*   MAXROWS                            = 0
* TABLES
*   MATNRSELECTION                     =
*   MATERIALSHORTDESCSEL               =
*   MANUFACTURERPARTNUMB               =
*   PLANTSELECTION                     =
*   STORAGELOCATIONSELECT              =
*   SALESORGANISATIONSELECTION         =
*   DISTRIBUTIONCHANNELSELECTION       =
*   MATNRLIST                          =
*   RETURN                             =
          .

Saludos.

2 Me gusta

Gracias @sconoredhot si esa fue la solucón que me mostró al utilizar el wizard. Gracias.

1 me gusta

Este tema se cerró automáticamente 7 días después del último post. No se permiten nuevas respuestas.