Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
abhishekd
Product and Topic Expert
Product and Topic Expert
1,767

 

A much-awaited feature of public cloud is now available with the 2502 release, with this feature we can attach a custom F4 value help to application job parameters, a basic yet essential feature.

Technical Details

Below are the steps on how we can attach F4 value help to application job parameters.

1) Create a class where all the business logic will be executed, this class will also contain all the job parameters.

abhishekd_0-1738673211900.png

To schedule an application job, you require an application job catalog entry that contains the name of the class (Class with execute method) which contains the interface IF_APJ_RT_RUN. You can create and edit application job catalog entries in the editor for application job catalog entries.

abhishekd_1-1738673211905.png

 

2) Creation of Application Job Catalog Entries

You can create an application job catalog entry in the ABAP development tools for Eclipse (ADT) using the creation wizard.

abhishekd_2-1738673211909.png

How to provide F4 to a parameter in application job

abhishekd_3-1738673211913.png

  • Create the above catalog entry for the field.
  • Select CDS view as value help type and provide the CDS view in the value help section.

Creation of Value help CDS

Create CDS view with below annotations and assign this view to a parameter of the corresponding job catalog. The application job framework uses these annotations to render the value help dialog and the CDS view to search, filter, and display the list of possible values.

abhishekd_4-1738673211917.png

  • @ObjectModel.dataCategory: #VALUE_HELP. This is a mandatory annotation for defining a CDS value help. Only CDS views with this annotation can be used in the application job framework.

Along with F4 help, now we can group the job parameters fields in different sections by creating different sections and groups.

Add Section and Group in catalog-->

abhishekd_1-1738679561470.png

 

 

 

 

 

 

 

 

Add the group to each of the parameter 

abhishekd_0-1738682869148.png

abhishekd_2-1738682942366.png

Creation of Application Job Template

Create application job template and provide the catalog entry that was created in above steps

abhishekd_5-1738673211919.png

Application Job Fiori App to execute the job

abhishekd_7-1738673211926.png

User can select any value from the F4 that was attached in Job catalog to these fields.

abhishekd_0-1738684278308.png

abhishekd_0-1738683957143.png

Pretty easy right? Give it a try and let me know in the comments section whether this post was helpful. I will be creating more blogs on the new feature of public cloud that were introduced in the 2502 release.

Thanks

Abhi

 

7 Comments