‎2008 May 07 5:53 AM
‎2008 May 07 5:55 AM
hI,
oF Course !! Check the syntax of Read statement.
Thank you.
‎2008 May 07 5:56 AM
Hi,
Yes, you can READ a table with 2 or more keys.
For your reference
READ TABLE pa_gt_actual_prices INTO ls_act_prices
WITH TABLE KEY kokrs = p_kokrs
perio = l_perio
objnr = ls_cssl-objnr
gjahr = p_gjahra.
Regards,
Farheen.
‎2008 May 07 5:56 AM
yha
it wll b
read table it_vbap with key vbeln = it_vbeln posnr = it_posnr.
with regards
Rohan Shetty
‎2008 May 07 5:59 AM
Yes you can.
loop at it1.
Read table itab with key abcd = it1-abcd
fghj = it1-fghj.
if sy-subrc = 0.
do process.
endif.
endloop.
Regards,
Madan.
‎2008 May 07 6:00 AM
hi,
Check this link
Link:
[https://www.sdn.sap.com/irj/sdn/forums].
Regards.
‎2008 May 07 6:01 AM
Check in SAP help or SDN .
read table <tab1> into <ls> with key
WHERE variable1 = value1
Binary search.
and
Read table itab with key variable1 = value1 variable2 = value2.....
thanks
Jagadeesh.G
‎2008 May 07 6:01 AM
Hi Ronita,
Yes in the read statement we can use more than one key. Pls find the below syntax of the same.
read table it_circle into wa_circle
with key circle_id = cid
circle_name = cname
circle_customer = cust.Pls reward if useful.
Thanks,
Sirisha.
‎2020 Dec 22 7:41 AM
Hi Sirisha,
Is it possible to add same key field with two input field in an read statement ?
readtable it_circle into wa_circle
withkey circle_id = cid or
circle_id = cid1
circle_customer = cust
‎2020 Dec 22 8:52 AM
‎2008 May 07 6:03 AM
with work area
Read table it_tab into wa_tab with key
key1 = wa_xyz-key1
key2 = wa_xyz-key2.
if sy-subrc = 0.
Perform your logic here.
endif.
with field symbols
Read table it_tab assigning <fs_tab> with key
key1 = wa_xyz-key1
key2 = wa_xyz-key2.
if sy-subrc = 0.
Perform your logic here.
endif.
Reward points if helpful
Regards
Bikas
‎2008 May 07 6:03 AM
Hi Ronita De,
We can read an internal table with two keys.....
READ TABLE IT_KNA1
INTO WA_KNA1
WITH KEY KUNNR = P_KUNNR
LAND1 = C_LAND1.
IF SY-SUBRC = 0.
write: / 'Read is SUCCESS'.
ENDIF.
thanks & regards
Kishore Kumar Maram