SAP ABAP IMG Activity OHBX2020 (Enhancement: Create New Text Variables)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PA-RC (Application Component) Recruitment
     PAPC (Package) Recruitment Customizing
IMG Activity
ID OHBX2020 Enhancement: Create New Text Variables  
Transaction Code S_L9C_94000453   (empty) 
Created on 20010118    
Customizing Attributes OHBX2020   Enhancement: Create New Text Variables 
Customizing Activity    
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHBX2020    

In this step, you can create additional text variables for applicant correspondence.

Activities

If you want to use this customer enhancement, you must do the following:

  1. Create a structure with the required database fields in the Data Dictionary.

    The database fields that you want to use as text variables must generally be of the type CHAR or NUMC.

    Please note that you may not use underscores (_) in the structure for technical reasons.

  2. Create a new module pool named ZPAP3CUS.

    SAP delivers a template for your module pool ZPAP3CUS , named MPAP3CUS . The structure T500P is included in this module pool. The system reads the personnel area to which the applicant is assigned from this table. The Organizational Assignment infotype (0001) must therefore be declared as tables P0001 in the module pool. When you use these routines, the addresses of the personnel areas are available.

  3. Declare the new structure with the ABAP keyword tables in the module pool. This ensures that the main programs SAPMPAP3 and RPAPRT05 can also access the data.
  4. If you use Microsoft Word for Windows for data processing, you must create a routine named fill_customer_structure in the module pool ZPAP3CUS. In this routine, you must call the routine add_customer_structure(rpaprt05) for each new structure. This makes the structure available in Microsoft Word for Windows.

    Example:

    If you want to use the structure ZZZZZ, your routine should be as follows:

    form fill_customer_structure.

    perform add_customer_structure (rpaprt05) using 'ZZZZZ'.

    endform.

  5. For the data to be retrieved at runtime, you must create a routine named fill_customer_data in module pool ZPAP3CUS. This routine is called by program SAPMPAP3 and program RPAPRT05 before a text is output.

Recommendation

  • If you read fields of a type other than NUMC or CHAR from the database, you must convert them using ABAP (for example, "write to g" and so on).

  • You must declare any data you require from the main programs SAPMPAP3 and RPAPRT05 as tables.

The prerequisite for this is that the data in the main programs is also declared as tables .

  • Error handling functions are built into both data processing programs.

    If a field of type NUMC is initial (empty) or if a field of type CHAR has the value '$ERROR', both programs issue an error message. This allows you to control error handling of your database fields in the routine fill_customer_data more specifically.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG OHBX2020 0 HLA0006876 Applicant Selection 
Maintenance Objects
Maintenance object type    
History
Last changed by/on SAP  20010118 
SAP Release Created in 46C