Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance the code logic

Former Member
0 Kudos

Hi All ,

I am working on SAP-BI in that some code logic needs to be enhanced where for "Evaluation group" the report is picking the old record instead of the latest one.

HELP ME TO UNDERSTAND WHERE I CAN CHANGE IN THE CODE.

TYPES : BEGIN OF LX_HRP1050,

OBJID TYPE HROBJID, "Object ID

EVPTS TYPE P_EVPTS, "Evaluation points

EVGRD TYPE P_EVGRD, "Evaluation Group

END OF LX_HRP1050.

DATA: LT_HRP1050 TYPE STANDARD TABLE OF LX_HRP1050,

LW_HRP1050 TYPE LX_HRP1050,

SELECT OBJID EVPTS EVGRD FROM HRP1050 INTO CORRESPONDING FIELDS OF TABLE

LT_HRP1050 FOR ALL ENTRIES IN I_T_DATA WHERE

OBJID = I_T_DATA-PLANS.

READ TABLE LT_HRP1050 INTO LW_HRP1050 WITH KEY

OBJID = LW_IDATA-PLANS

BINARY SEARCH.

IF SY-SUBRC = 0.

  • FILLING THE DATA FOR THE NEWLY APPENDED FIELDS

LW_IDATA-ZEVPTS = LW_HRP1050-EVPTS.

LW_IDATA-ZEVGRD = LW_HRP1050-EVGRD.

ENDIF.

MODIFY I_T_DATA FROM LW_IDATA INDEX lw_index

TRANSPORTING ZPSTLZ

ZPOBOX ZORT01 ZEVPTS

ZEVGRD.

CLEAR LW_IDATA.

ENDLOOP.

3 REPLIES 3

Former Member
0 Kudos

This message was moderated.

0 Kudos

Thank you very much let me change the code and i'll come back with the result as well rewards point also.

Former Member
0 Kudos

hi ,

use begda and endda also while selecting from HRP1050 table

write endda as 99991231