Ansicht
Dokumentation

EXIT_SAPLKAEP_002 -

EXIT_SAPLKAEP_002 -

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Each record is read from the database and prepared by the application component program, then passed along to this function module. You will not receive all the fields automatically; first maintain view V_TKALV to ensure that the fields needed in the exit are available.

Example: Extensions in Plan (Add Manager from Cost Center Master Data)

  1. Add the new field (ZZ_VERAK) to structure CI_KAEP_COPL:

    Field Name DE Type Length CheckTable Short Description
    ZZ_VERAK VERAK CHAR 20 Manager
  2. Activate the structure, then activate the structure KAEP_COPL in the display mode.
  3. Maintain view V_TKALV with transaction SM34:
    1. In the initial screen, enter V_TKALV.
    2. In the overview screen, go to "Selection dependencies".
    3. Choose "New entries" to maintain the fields in ZZ_VERAK needed for your exit.
    4. In this detail screen, enter KAEP_COPL for the field structure of the line item report in actual.
    5. In the display field, always enter the new field ZZ_VERAK.
    6. In the selection field, enter the required fields: First OBJNR, then choose "Next entry" for the next selection fields (KOSTL, KOKRS, and BUDAT).
  4. Use transaction CMOD to create the user exit. If you choose "Change", you will immediately be able to use the F2 key to branch to the function module.
  5. The module interface offers all line item structures for selection. Not all the fields are filled; other fields are always filled, such as "Cost element". Once completed, view maintenance ensures that this structure readies the necessary data in the exit. You can find the exact structure for parameter CS_RECORD in the module interface.
  • In addition, I_REP_OBJECT gives the report object. (For example, you need the manager information for cost centers only. You can guarantee this only by the callup of this parameter.) To display all existing report objects, see domain KAEP_OBJ.





ABAP Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2189 Date: 20240613 Time: 185458     sap01-206 ( 37 ms )