r/abap

▲ 2 r/abap

Delivery deletion from EWM and ERP

Hey guys!

I am building a program for deleting old deliveries from both EWM and ERP side. How can I get confirmation that delivery got deleted also on ERP side? Currently, the logic works well but the confirmation of deletion is obtained only for EWM side. The issue is that for most deliveries, they are automatically deleted from both EWM and ERP sides, but a couple of them are still available in LIKP, even though they are deleted from EWM tables. No idea how to check it and how to obtain confirmation during my program that my ERP delivery got also deleted. I need the confirmation to get updated in my custom table for logs. Currently I am updating custom log table based on confirmations from EWM but I think this is incorrect, as those couple of deliveries are (no idea why also) still available in LIKP.

Any suggestions would be appreciated as I am not so familiar with EWM logic and just starting my ABAP journey! Thanks in advance for the help!

reddit.com
u/Abject-Incident1254 — 24 hours ago
▲ 5 r/abap

ABAP: Best way to count item rows per header row — DB aggregation vs internal table processing?

Hi everyone,

I’m working on an ABAP report where I have a header internal table and an item internal table.

The header table is something like:

gt_header
- seq_no
- vbeln_so
- item_cnt

The item table is something like:

gt_item
- seq_no
- vbeln_so
- posnr
- ...

What I want to do is set the number of item rows for each header row.

My first approach was something like this:

LOOP AT gt_header ASSIGNING FIELD-SYMBOL(<fs_header>).

DATA(lt_item_temp) = gt_item.

DELETE lt_item_temp WHERE seq_no <> <fs_header>-seq_no.

DESCRIBE TABLE lt_item_temp LINES <fs_header>-item_cnt.

ENDLOOP.

But I realized this is probably inefficient because it copies the whole item table for every header row and then deletes most rows.

Another approach I considered was:

SORT gt_item BY seq_no.

LOOP AT gt_header ASSIGNING FIELD-SYMBOL(<fs_header>).

DATA(lv_cnt) = 0.

LOOP AT gt_item TRANSPORTING NO FIELDS
WHERE seq_no = <fs_header>-seq_no.

lv_cnt = lv_cnt + 1.

ENDLOOP.

<fs_header>-item_cnt = lv_cnt.

ENDLOOP.

However, I’m not sure whether SORT + LOOP WHERE on a standard internal table really uses the sorted order efficiently, or whether it still scans more rows than expected.

I’m thinking of these options:

  1. Count the item rows directly in SQL using COUNT(*) and GROUP BY, then join or merge the result back into the header table.
  2. Build a sorted/hashed internal table in ABAP with seq_no and item count by looping over gt_item once.
  3. Use READ TABLE ... BINARY SEARCH to find the first matching item row and then count only the matching range.
  4. Use a secondary sorted key on gt_item and LOOP AT gt_item USING KEY ... WHERE seq_no = ...

Which approach would you recommend in real ABAP development?

Is it generally better to push this kind of count aggregation to the database, or is an internal table aggregation preferred when the data is already loaded?

Also, does LOOP AT itab WHERE ... on a standard table benefit from a prior SORT, or should I use a sorted table / secondary key explicitly?

Thanks!

reddit.com
u/Substantial_Half6347 — 3 days ago
▲ 2 r/abap

Dynamic select query.

Can we create an FM where the inputs are table names and fields

And the output is the data from that table for those fields?

reddit.com
u/wilhelmtherealm — 4 days ago
▲ 1 r/abap

SAP learning hub practice system issue

When I opened my SAP learning hub practise system for ABAP backend cloud certification prep, it is showing the below error. I even tried to enroll for new system and that is stuck in "preparing system access"...anyway I can contact support or is it for everyone?

u/PracticalCase4702 — 6 days ago
▲ 0 r/abap

SAP ABAP Consultant

SAP ABAP Consultant

Quadrafort is hiring an experienced SAP ABAP Consultant for its Indore location. We are looking for professionals with strong technical expertise in SAP ABAP development, customization, enhancements, and support. The ideal candidate should be capable of working closely with functional teams and delivering high-quality SAP technical solutions.

Key Responsibilities

  • Develop and maintain SAP ABAP programs, reports, interfaces, enhancements, and forms.
  • Work on RICEF objects including Reports, Interfaces, Conversions, Enhancements, and Forms.
  • Create and support SmartForms, SAP Scripts, ALV Reports, and Dialog Programming.
  • Perform debugging, troubleshooting, and performance optimization of ABAP programs.
  • Collaborate with functional consultants to understand business requirements and provide technical solutions.
  • Work on integrations using BAPI, RFC, IDOC, and APIs.
  • Support SAP implementation, enhancement, and production support activities.
  • Ensure proper documentation, testing, and coding standards are followed.

Required Skills

  • Strong hands-on experience in SAP ABAP development.
  • Good understanding of Data Dictionary, User Exits, BADIs, Enhancements, and SmartForms.
  • Experience with Interfaces such as RFC, BAPI, and IDOCs.
  • Knowledge of debugging and performance tuning techniques.
  • Exposure to SAP functional modules like MM, SD, or FICO is preferred.
  • Strong analytical and communication skills.

Eligibility Criteria

  • Minimum 3 years of relevant SAP ABAP experience.
  • Immediate or early joiners will be preferred.

Interested candidates share you resume to contact.cornerstonesolutions@gmail.com

reddit.com
u/Ecstatic-Offer-8391 — 6 days ago
▲ 5 r/abap

C_ABAPD_2601

Hey everyone! 👋

Looking for study buddies for C_ABAPD_2601 (SAP Certified Associate - Back-End Developer - ABAP Cloud)

I have backend dev experience but I'm completely new to SAP/ABAP. Would love to connect with:
✨ Fellow learners studying for the same exam
✨ Anyone who's passed it and can share tips
✨ Resource recommendations

Happy to study together and keep each other motivated! Drop a reply or DM me 😊

reddit.com
u/Lost-Interaction-575 — 8 days ago
▲ 2 r/abap

SAP API restriction

Hello All,

I've seen that SAP has put on limitations wrt the API usage saying that external AI agents will be put at bay.

Does this have implications on the API that we create on On prem using OData and RAP framework. Do the limitations apply if we want to call an API from React or Node.JS?

reddit.com
u/Affectionate_Hat_887 — 6 days ago
▲ 5 r/abap

Parallel Processing Strategy

Hi I have one report which processes almost 1lac+ equipment and involves multiple bapi calls which parallel processing strategy should I use also guide where to find examples or documentation

reddit.com
u/ActivePudding8416 — 9 days ago
▲ 1 r/abap

User Exit Move Field To Vbep

Hello guys,

Maybe someone can help me out :/..i want to achieve if i create a sales order with ref to another sales order..how can i change all the dates to be to todays date (no need to put in date in the pop-up screen)..i used in mv45afzz user exit move field to vbkd and to vbak to change req del date and pricing date..but read its dangerous to manipulate edatu in user exit move field to vbep..

Any suggestion would be great. Thanks

reddit.com
u/Tight_Percentage_571 — 7 days ago
▲ 0 r/abap

Company not returning my marksheet and cheque

I had a 4-year career gap from 2020 to 2024. Then I got a job at a startup company in Bangalore. At the time of joining, they told me they would provide training and later deploy me to a client project. I signed a 3-year bond with a penalty of ₹3 lakhs.

After 6 months of training, they forced me to attend interviews for their client by showing 4.5 years of experience. I worked for 1.5 years with inflated experience. Later, they again tried to deploy me as a candidate with 5.6 years of experience even though I had only 2.2 years of actual experience. So I resigned because I did not want to cheat any client for their profit.

Now they are asking for ₹3 lakhs for a relieving letter and the return of my documents thru legal notice. They are also threatening me with a negative background verification in the future. I have the necessary proof for misrepresentation to client.

If I go legally, can I reduce the amount? How much time will it take?

reddit.com
u/Internal_Promise_318 — 9 days ago
▲ 2 r/abap

Update VBAP through background program

Hey guys, I am building a program that is deleting a delivery from the system and then needs to update data on the sales order level (VBAP). This program will be run every day to find old deliveries for the deletion. Once delivery is deleted, I need to update one of the VBAP standard fields. Do you have any suggestions on how to approach this topic? First time doing this and concerned like what if someone will have this sales order open at the time of running the report? Will it still get updated or will it crash? Any suggestions will be highly appreciated!

reddit.com
u/Abject-Incident1254 — 10 days ago
▲ 9 r/abap+1 crossposts

How to get a job in SAP ABAP as a fresher with 6 months internship experience.

Hey everyone. Final-year CSE student here, currently doing an SAP ABAP internship on an S/4HANA system. I wanted to share my experience and ask — how can I get a job as a fresher with only 6 months of internship experience.

Need guidance.

reddit.com
u/unEmployeee — 11 days ago
▲ 15 r/abap+1 crossposts

sap-odata-explorer: CLI + Desktop tool for real SAP OData services (feedback wanted)

Hi, if you, like me want an easy way to discover and test OData services, want a quick way to build queries (V4 F4 help build-in), a quick cli tool supporting system profiles and service aliases, along with a gui much friendlier than SAP gateway client, but find tools like Postman do not “speak SAP”, you can have a look at an early alpha tool I made and actually use daily when I develop services,

- Gateway catalog discovery + service search
- Visual query builder ($select, $filter, $expand, etc.)
- Results grid with expandable navigation properties
- SAP View that respects @UI.lineItem, selection fields, value helps from annotations
- Fiori-readiness linter that points to concrete CDS annotation fixes
- Decent auth support (Basic + keyring, Windows SSO, browser SSO)
- Both CLI (sap-odata run, sap-odata lint) and Tauri desktop app

Would appreciate any feedback.
- Does the linter catch real issues you see?
- Any auth problems in your environment?
- What feature would make you actually use this regularly?

GitHub: https://github.com/kts982/sap-odata-explorer

Prebuilt binaries and MSI installer are in the releases.

Thanks

reddit.com
u/kostas123456 — 11 days ago