2024 Apr 22 4:18 AM - edited 2024 Apr 26 11:17 PM
Hi,
I need to do a mass update for a single Z*custom field of a STD table(say EANL).
The no. of records expected are around 30 million recs.
I am using Open cursor & then Fetch cursor technique to get 50000 records(package) at a time and update it in a do..enddo loop. Ofcourse 'Package' is a selection screen field.
Is this a right approach?
Now how do i make this fetch cursor & update(using FM) to submit into different background jobs?
I know there are std FM's like FM's JOB_OPEN, SUBMIT Program & Job_ClOSE. But how do i fit these pieces together(fetch cursor + Update+ jobs) to make use these FM's into my program?
Can anyone please suggest.
Thanks
Request clarification before answering.
Hi,
My routine inserts about 18mln rows every now and then.
It's built from a report that has all the needed data, loops over them and every 'step' like 2mln commits with an update module to the backend:
LOOP AT user_items ASSIGNING FIELD-SYMBOL(<ins>).
INSERT <ins> INTO TABLE inserted.
IF lines( inserted ) >= 2000000 OR sy-tabix = num_of_all_lines.
CALL FUNCTION 'YIMT_BW_AUTH_DB' IN UPDATE TASK
TABLES inserted = inserted.
CLEAR inserted.
COMMIT WORK AND WAIT.
ENDIF.
ENDLOOP.
M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.