Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

report - see inside for more details...

Hi guru's,

i need to get multiple batches instead of getting only the 1st batch it's an production issue need to solve asap.pls provide me the solution

my block of code given below :

DATA : l_venum LIKE vekp-venum,

l_vepos LIKE vepo-vepos,

l_obknr LIKE ser06-obknr,

l_svepos LIKE ser06-vepos.

ldata1[] = ldata[].

DELETE ldata1 WHERE vbelv EQ ' '.

LOOP AT ldata1 WHERE status EQ 'CLOSED'.

MOVE-CORRESPONDING ldata1 TO ldatal.

SELECT SINGLE charg FROM lips INTO ldatal-charg

WHERE vbeln EQ ldata1-vbelv

AND matnr EQ ldata1-matnr

AND charg NE ' '.

  • Function Module to get batch classification details.

CALL FUNCTION 'ZSD_BATCH_CLASSIFICATION_DATA'

EXPORTING

ch_charg = ldatal-charg

ch_matnr = ldatal-matnr

ch_werks = ldatal-werks

TABLES

t_clobjdat = lclobjdat[]

EXCEPTIONS

no_classification = 1

no_classtypes = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

Thanks and Regards,

shahshi

Edited by: Julius Bussche on Sep 8, 2008 10:56 PM

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question