Skip to Content
author's profile photo Former Member
Former Member

Enhance the code logic

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 11:09 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 11:14 AM

    hi ,

    use begda and endda also while selecting from HRP1050 table

    write endda as 99991231

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.