Skip to Content
0
Former Member
Oct 20, 2006 at 09:36 PM

Select Logic

24 Views

Hi,

Iam getting input PO, Company Code, Change date and changed user fields in selection screen. for this i have written this.

SELECT AEDAT EKGRP EBELN

BEDAT LIFNR WAERS

ERNAM FROM EKKO INTO TABLE GT_EKKO WHERE

EBELN IN SO_EBELN AND

BUKRS IN SO_BUKRS AND

EKGRP IN SO_EKGRP.

SELECT OBJECTID

USERNAME

UDATE FROM CDHDR INTO TABLE GT_HDR

FOR ALL ENTRIES IN GT_EKKO WHERE

OBJECTID EQ GT_EKKO-EBELN AND

OBJECTCLAS = 'EINKBELEG' AND

USERNAME IN SO_ERNAM AND

UDATE IN SO_ERDAT.

Problem is "OBJECTID" and "GT_EKKO-EBELN" does not have same length. how should i proceed.

Regards

Reddy