Skip to Content
0
Former Member
May 03, 2011 at 04:15 AM

Problem in Using Mass Data Getlist.

9 Views

Hi All,

I am using a "Mass Data" Getlist for Salesorder. there are nearly 8000 records in VBAP table wich I want to bring it in Batches of 1000.

I have modified my Getlist to the requirement as given in the document

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fa3a06-8bcb-2c10-1daf-c604a4880361?quicklink=index&overridelayout=true]

FUNCTION Z_SALES_MASS_GETLIST.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(ME_MASS_REP) LIKE  MEREP_MASS_REP1 STRUCTURE
*"        MEREP_MASS_REP1 OPTIONAL
*"  EXPORTING
*"     VALUE(RETURN) TYPE  BAPIRET2
*"  TABLES
*"      IT_ZSALESORDERHEADER STRUCTURE  ZSALESORDERHEADER
*"----------------------------------------------------------------------
DATA : LDF_VBELN LIKE VBAK-VBELN.
LDF_VBELN = ME_MASS_REP-ME_KEY_GREATER_THAN.
select *
from   VBAK
INTO   CORRESPONDING FIELDS OF TABLE IT_ZSALESORDERHEADER
  UP TO     ME_MASS_REP-me_number_of_headers ROWS
                   WHERE     VBELN > LDF_VBELN
                   ORDER BY PRIMARY KEY.
ENDFUNCTION.

The Problem is that when I call this BAPI in the DOE using the adapter and trigger the initial download I am not getting in any data into the middlware from the backend.

Please let me know where do I pass the values of ME_KEY_GREATER_THAN and ME_NUMBER_OF_HEADERS.

Is it in the backend or through the middleware?

Is that the reason why I am not getting in the data to the middleware?

Edited by: krutheeka on May 3, 2011 6:31 AM

Edited by: krutheeka on May 3, 2011 6:32 AM