Skip to Content
0
Former Member
Jul 03, 2007 at 09:03 AM

SELECT, FOR ALL ENTRIES?

73 Views

Hi,

I can't use this code because EBELP and VGPOS are not the same...

EBELP --> EBELP NUMC 5 0 Item Number of Purchasing Document

VGPOS --> VGPOS NUMC 6 0 Item number of the reference item

DATA: ls_likp TYPE likpvb,
      it_lips TYPE tab_lipsvb,
      ls_lips TYPE lipsvb.

DATA: gt_ekpo TYPE STANDARD TABLE OF ekpo,
      gs_ekpo TYPE ekpo.

SELECT     *
FROM       ekpo
INTO TABLE gt_ekpo    
FOR ALL ENTRIES IN it_lips
WHERE      ebeln EQ it_lips-vgbel
AND        ebelp EQ it_lips-vgpos. -------------->> HERE IS THE PROBLEM

How to solve this?

regards,

Adibo.