This is a test message to test the length of the message box.
Login
|

Write a comment

Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.

Facing an issue in implementation of LATE numbering

shaikzia - 03/01/2025 - 04:33

Hi , I am trying to implement the LATE NUMBERING method to assign StudentID number (alpha numeric) for my Key field STUD_ID while creating the records. But I am facing the below challenges. Can you help me here?

  1. I am seeing this error in my Behavior Definition at the statement --> draft table ZSTU_DATA_D "ZSTU_DATA_D" must have a field "DRAFTUUID" of type "X(16)", since "ZDM_STU_DATA" has the property "Late Numbering". -> ZSTU_DATA_D is my draft table generated and ZSTU_DATA is my original table with Key field STUD_ID: numc10 not null

  2. I don't see the below LOCAL class generated in my Beh Implementation. What do we need to do to get this local class generated? CLASS lsc_zbs_i_rappartner DEFINITION INHERITING FROM cl_abap_behavior_saver. PROTECTED SECTION. METHODS adjust_numbers REDEFINITION. ENDCLASS.

  3. I have only this class , so I added the METHOD adjust_numbers. in this class. CLASS lhc_zstudent_data DEFINITION INHERITING FROM cl_abap_behavior_handler. ENDCLASS

  4. In the below code , how this mapped table gets generated ? LOOP AT mapped-partner REFERENCE INTO DATA(lr_partner). ld_max_partner += 1. lr_partner->PartnerNumber = ld_max_partner. ENDLOOP.

If possible ,, can you share the complete end-end scenario you have developed for this? I can buy you a coffee,, if I get help from you and if I can successfully implement this in my scenario. Waiting for your positive reply.


Xexer - 03/01/2025 - 11:10

Hi shaikzia,

the scenario is build step by step, all steps you can find here: https://software-heroes.com/en/blog/abap-rap-build-simple-app

All the source code you find in the GitHub Repo: https://github.com/Xexer/abap_rap_blog

For your questions:

  1. Better you generate the Draft table via behavior definition, ADT takes care that all fields are included.

  2. The saver class is generated, when you ade late numbering in your behavior definition and generate the code via CTRL + 1.

  3. The handler class is the wrong place for this, better trust the auto generated methods and do not add core methods with copy/paste.

  4. The mapped table is part of the method signature and is auto generated from RAP framework. You can check the structure/table via F2 in ADT.

Greetings Björn


shaikzia - 03/02/2025 - 10:59

Hi Björn,

Thank You for your response. I will try this and let you know the result.


shaikzia - 03/10/2025 - 18:27

Hi Björn,

I started practising your RAP series and have completed it up to RAP - Draft (Part 2). Through this series, I understood the Numbering concept and was able to implement it in my RAP model and build a Fiori App in my SAP BTP Trial Account. I now want to proceed further by deploying this Fiori App in SAP BTP and SAP Build Work Zone.

Can I deploy it in the SAP BTP ABAP Environment or Cloud Foundry Environment? I would appreciate a little guidance on how to proceed. Have you covered this concept in any of your series?

I wish I had known about your website earlier in my career - it would have made my learning journey much smoother. As promised, I have made a small contribution to support your great work by buying 3 coffees. From now on, I will continue using your website to learn new ABAP concepts and will gladly contribute more to support your cause.


Xexer - 03/10/2025 - 20:02

Hi shaikzia,

good to hear that it worked for you and thank you for the coffee, I enjoy it. For the deployment you can find the article here: https://software-heroes.com/en/blog/btp-fiori-elements-app-deployment-en

There is also a link to the creation part, but the wizard maybe a little bit different now. Normally I do the deployment to the ABAP Environment, because that fits much better to the scenario.

To get an overview to all the content, you can check the new collections: https://software-heroes.com/en/abap-development-collections


shaikzia - 03/16/2025 - 17:20

Hi ,

I followed your Fiori App creation and deployment series as outlined in this link > https://software-heroes.com/en/blog/btp-fiori-elements-app-deployment-en I successfully completed all the steps, but I am stuck at the final step—creation of Business Roles in the Fiori Launchpad under the "Maintain Business Roles" app. It seems that this step cannot be performed using a BTP Trial account. Right ?


Xexer - 03/17/2025 - 08:14

Havn't tested the Trial Account so much, but that makes sense, to give the user not the admin rights to change user and autorizations. So thats a step for the future in your own system.