This code performs data manipulation on the tables `tcurf` and...
March 29, 2023 at 06:28 AM
This code performs data manipulation on the tables tcurf
and gt_tcurs
.
For tcurf
:
- If the internal table
gt_tcurf[]
is not empty, select all records fromtcurf
where either thefcurr
ortcurr
fields match any values in thelr_curr_i
internal table AND do not match any values in thelr_curr_e
internal table. Store the selected records in the internal tablegt_tcurf_del
. - If any records were selected (indicated by
sy-subrc = 0
), delete them fromtcurf
. - Write a message with the number of records in
gt_tcurf_del
. - Modify
tcurf
by adding any records in the internal tablegt_tcurf
.
For gt_tcurs
:
- If the internal table
lr_curr_i
is not empty, delete any records fromgt_tcurs
where thefcurr
andtcurr
fields do not match any values inlr_curr_i
. - If the internal table
lr_curr_e
is not empty, delete any records fromgt_tcurs
where thefcurr
field matches any value inlr_curr_e
OR thetcurr
field matches any value inlr_curr_e
.
Generate your own explanations
Download our vscode extension
Read other generated explanations
Built by @thebuilderjr
Sponsored by beam analytics
Read our terms and privacy policy
Forked from openai-quickstart-node