Skip to Content
0
Former Member
Jul 02, 2013 at 12:13 PM

Need two ebeln in one column

28 Views

Hi,

I want ekbe-ebeln and bsik-ebeln in one column.

Can anyone suggest the solution.

IF it_with_item-blart EQ 'RE'.

SELECT SINGLE ebeln gjahr belnr
FROM ekbe INTO (it_with_item-ebeln,it_with_item-gjahr1,it_with_item-belnr1)
WHERE gjahr = it_with_item-awkey+10(4) AND belnr = it_with_item-awkey(10).
MODIFY it_with_item TRANSPORTING:ebeln.
ENDIF.
READ TABLE it_bsik WITH KEY bukrs = it_with_item-bukrs belnr = it_with_item-belnr gjahr = it_with_item-gjahr.
IF sy-subrc = 0.
it_with_item-ebeln = it_bsik-ebeln.
it_with_item-zuonr = it_bsik-zuonr.
MODIFY it_with_item TRANSPORTING:ebeln,zuonr.
ENDIF.

Regards

Kalpana