36 - ABAP Programming - Best Performance Guidelines(Parallel Cursor) Part6

  Рет қаралды 6,496

SAP ABAP by Rahul Mehta

SAP ABAP by Rahul Mehta

Жыл бұрын

Best Programming Guidelines Covered:
-Use Parallel Cursor in nested loops.

Пікірлер: 28
@Rajasekharabap
@Rajasekharabap 15 күн бұрын
U are god sir thank u Now clearly understood when we go for read table,nestedloops,parellel cursor
@sapabapbyrahulmehta
@sapabapbyrahulmehta 14 күн бұрын
Great Rajasekhar 👍
@mohammed5711
@mohammed5711 3 ай бұрын
Crystal clear explanation. Thank you so much sir
@sapabapbyrahulmehta
@sapabapbyrahulmehta 3 ай бұрын
Thank you very much.
@vikharkhan3953
@vikharkhan3953 5 ай бұрын
Great explaination. I have a question. Does the sy-tabix returns current loop iteration or returns the index number from where data transferred to work area?
@sapabapbyrahulmehta
@sapabapbyrahulmehta 5 ай бұрын
Thank you. If you are Looping or reading based upon a condition then in that case, it will return the index of the matching record based upon that condition. In some cases, we need index of matching record in that case we don't even use work area.
@sairahulreddy9127
@sairahulreddy9127 6 ай бұрын
Heloo sir my query is - Loop at it_data1 into lwa_data1 from lv_index . Let say lv_index is 4 so it read from 4th row after that how it read from 5th row because we havent incremented lv_index it should always read from 4th row only please clarify this is from v_index will work only for first time from next time it will not consider. ???
@sapabapbyrahulmehta
@sapabapbyrahulmehta 6 ай бұрын
LOOP means - It will process the records one by one. If loop is processing for 4th record, so in next iteration, it will process the record 5, 6 and so on. We started the loop from Index - 4, but it will point to next record in next iteration.
@grzewicz1109
@grzewicz1109 Жыл бұрын
Hi. Thanks for great explanation. From my understanding, each loop has its own sy-tabix value, right? When these values are reseted? When program finishes?
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
Hello Grewicz, Thank you for the feedback. Your understanding is right, each loop has it's own sy-tabix value. When the loop ends, it will reset at that time.
@grzewicz1109
@grzewicz1109 Жыл бұрын
@@sapabapbyrahulmehta but the internal loop keeps its sy-tabix incrementing even when external loop goes to next iteration ( its tabix goes from 0 to 1). Does that mean that inner loop is truly finished (sy-tabix resets) only when outer loop, that contains it, is finished?
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
@@grzewicz1109 When we see any internal table in the Debugging Mode, the first column is always the index of the rows, the name of the colum is ROW. Whatever the records processed in the first iteration Internally it will mark as processed and in the next iteration SAP simply check the value of ROW column for the new record and that will act as SY-TABIX.
@sireeshaande9102
@sireeshaande9102 11 ай бұрын
Hi, can we use parallel cursors for more than 2 loops..?
@sapabapbyrahulmehta
@sapabapbyrahulmehta 11 ай бұрын
If you have 3 nested loops, then same way we will apply parallel cursors for 3rd loop also.
@sireeshaande9102
@sireeshaande9102 11 ай бұрын
@@sapabapbyrahulmehta ok sir, Thank you.
@sapabapbyrahulmehta
@sapabapbyrahulmehta 11 ай бұрын
@@sireeshaande9102 👍
@yuvrajkarwar4713
@yuvrajkarwar4713 Жыл бұрын
Sirji, what if key columns are not in order?
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
Hello Yuvraj, Can you please explore your query?
@GauravSingh-lz8mb
@GauravSingh-lz8mb Жыл бұрын
@@sapabapbyrahulmehta I have the similar question sir, What if it is not in sequence as Order No 1,2,3,4,5,6 and so on. What if the order numbers are like 001abc, 005xyz, means the sequence is not followed it could be anything numeric characters. then how can do this parrellal cursor sir?
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
@@GauravSingh-lz8mb Hello Gaurav, order number is a numeric field, So a-z is not allowed. It will only accept numbers.
@user-bl8vw3pm2s
@user-bl8vw3pm2s 4 ай бұрын
@@sapabapbyrahulmehta Sir, So can we say that for implementing parallel cursor conditional column of both the internal table should be sorted?
@sapabapbyrahulmehta
@sapabapbyrahulmehta 4 ай бұрын
@@user-bl8vw3pm2s At least the inner internal table on which we are applying the Binary Search, that must be sorted.
@AliAsim-ks8br
@AliAsim-ks8br Жыл бұрын
Hi Rahul Do you give online training on Abap?
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
Hello Ali. I am not providing any online training as such,but if you stuck somewhere, you can ask those queries.
@AliAsim-ks8br
@AliAsim-ks8br Жыл бұрын
@@sapabapbyrahulmehta thanks for the reply, can you pls share your email. thanks Ali
@sapabapbyrahulmehta
@sapabapbyrahulmehta Жыл бұрын
@@AliAsim-ks8br My Email address is rahul3620023@gmail.com.
@charan3059
@charan3059 3 ай бұрын
In the parallel curser also we have do the bug analysis like if we add new record in header table. It was not reflecting in the output. You have explained about bug analysis for the normal process. Do We have to do the same process for the parallel cursor? kzbin.info/www/bejne/qmqrYZR9ls1mpdksi=2VUvDPlWGQ96WQXv
@sapabapbyrahulmehta
@sapabapbyrahulmehta 3 ай бұрын
Yes. As the requirement is same. You can add there also.
37 - ABAP Programming - Best Performance Guidelines Part7
9:56
SAP ABAP by Rahul Mehta
Рет қаралды 3,2 М.
Parallel Processing in SAP ABAP | Callback Function with Example
32:36
An ABAPer’s Life 😀
Рет қаралды 3,5 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 117 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 126 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 13 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
36 - Additional ABAP Concepts - OPEN CURSOR , FETCH NEXT CURSOR , CLOSE CURSOR Part1
15:15
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 807 М.
ATC Check in S4HANA | What is ATC? | Why is it required?
24:40
An ABAPer’s Life 😀
Рет қаралды 11 М.
SAP ABAP Parallel Processing - Part 1 | Introduction and Basic foundation |
23:44
Pankaj Kumar - SAP Tech Trainer
Рет қаралды 11 М.
Nested For Loop In Java Tutorial #24
10:02
Alex Lee
Рет қаралды 267 М.
ABAP Parallel Processing with SPTA Framework
13:20
Somnath Paul
Рет қаралды 1,3 М.
96 - ABAP Programming - Control Break Statements Part1
8:39
SAP ABAP by Rahul Mehta
Рет қаралды 5 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 117 МЛН