Skip to Content
0
Apr 01, 2014 at 12:43 PM

Info set - Internal table

26 Views

Hi,

I need to add an internal table to my infoset to extract the KONH-KNUMH.

In particular, I've add the following codes:

DATA

data: I_CONT type table of KONH,

S_CONT type KONH.

INIZIALIZATION

select KNUMH VAKEY from KONH

into corresponding fields of table I_CONT

where DATAB <= VAL

and DATBI >= VAL.

I've decalred VAL as parameters.

CUSTOM FIELD

KITA

clear KITA.

concatenate 'XXXXXXX' MATNR-MARA into KITA separated by ' '.

NCIT

clear NCIT.

read table I_CONT into S_CONT

with key VAKEY = KITA

binary search.

if sy-subrc ne 0.

NCIT = S_CONT-KNUMH.

ENDIF.

Why the NCIT is blank? Where i can correct the codes?

Thanks and best regards.

Antonio