Application Development and Automation 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: 
Read only

how to implement a note by code note:753708

Former Member
0 Likes
292

Hi everybody!!!

I need to implement a note but i need do it by code because the transaction SNOTE does not work.

does anybody know what do i need to do? this note refrence to HLACTRM0 program.

the note has this code below but i dont know that part to delete or to insert because i didn't find the code below

Please help me i'll reward.

CLEAR : wa_p0416, wa_p2006, wa_cmp.

  • Preliminar :

Delete Block

  • Get number of days per year :

CALL FUNCTION 'HR_MX_DAYS_PER_YEAR'

EXPORTING

I_DATE = date

IMPORTING

E_DAYS_PER_YEAR = days_in_period

EXCEPTIONS

NO_ENTRY_IN_T511K = 1

OTHERS = 2.

  • Get currency :

Insert Block

  • Get currency :

Delta 002Context Block

wa_p0416-numbr = days_to_liq.

APPEND wa_p0416 TO p0416_tab.

ELSEIF date GE wa_p2006-begda.

Delete Block

days_worked = date - wa_p2006-begda + 1.

665633

Insert Block

days_in_period = wa_p2006-endda - wa_p2006-begda + 1.

days_worked = date - wa_p2006-begda + 1.

Delta 003Context Block

IF do_simulation EQ 'X'.

IF days_to_liq EQ 0. days_to_liq = 0. ENDIF.

ELSE.

IF days_to_liq LT 0. days_to_liq = 0. ENDIF.

ENDIF.

Delete Block

  • store register with days to pay :

wa_p0416-numbr = days_to_liq.

APPEND wa_p0416 TO p0416_tab.

  • store register with days not paid :

store register with days to pay :

wa_p0416-numbr = days_to_liq.

APPEND wa_p0416 TO p0416_tab.

  • store register with days not paid :

1 REPLY 1
Read only

ferry_lianto
Active Contributor
0 Likes
254

Hi,

You can use the split-screen editor to adjust the corrections from the SAP Note to your modifications.

Please check this link for more information.

http://help.sap.com/saphelp_nw04/helpdata/en/1d/3abf3a7d37b04ee10000000a11402f/content.htm

Hope this will help.

Regards,

Ferry Lianto