In that case then you should consider another WHERE condition also otherwise the same PO will be read. Why are you clearing WA_COLLECT1 within the loop? LOOP at wa_collect1. MOVE-CORRESPONDING WA_COLLECT1 TO WA4. READ TABLE IT2 INTO wa2 WITH KEY ebeln = wa2-ebeln. IF SY-SUBRC = 0...
SAP Managed Tags: ABAP Development Hi ! Here are things you could do: 1. You can use nested loops with the WHERE statement on the inner loop. But this can be slow. This will look like this loop at i_tab1 into wa1 loop at i_tab2 into wa2 where cond1 = wa1-cond1... ( move...
2 Or you can use nested loops by using where clause. Performance is depends on lot many factors, such as no. of records fetched, no of records in DB table, indexes on the table, etc. Regards, Atish 290 SAP Managed Tags: ABAP Testing and Analysis Hi, Check this Program This wil perf...
I think my WHERE condition is not satisfied because I have not specified BELNR in my WHERE condition. I tried specifying BELNR in WHERE condition as below. SELECT belnr gjahr ebeln INTO TABLE WT_RSEG FROM RSEG FOR ALL ENTRIES IN ITAB WHERE belnr eq itab-awkey "I have also tried...
2nd method : loop then Select statement with condition. 1. TAB1 and TAB2 , two select statements to fetch data from tables, then loop on TAB1 and then in this loop another loop for TAB2 for populate data into output table . output like TAB1-FIELD-A TAB2-FIELD-A TAB1-FIELD-A TAB...
SAP Managed Tags: ABAP Development Hi Shiva, You are not matching with kunnr any where. If you have something in mind to populate kunnr from some other table than based on the condition inside your loop you can either read kunnr or vbeln. Let me know if you have not understood. Exp...