ABAP ALV Double Click CO03

My client asks me to add a function that when he double click order column, he wants to see CO03. Below is the ABAP code. *&———————————————————————* *& Form LINE_SELECTION *&———————————————————————* * text *———————————————————————-* * –> p1 text * <– p2 text *———————————————————————-* FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield. CHECK r_ucomm EQ ‘&IC1′ …

[ Continue Reading... ]

ABAP Create Excel Download button at Selection Screen

If you want to create Excel download button at selection screen, you can check below method. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 …

[ Continue Reading... ]

Calculate Days Function-FIMA_DAYS_AND_MONTHS_AND_YEARS

Use below ABAP function, you can calculate days. 1 2 3 4 5 6 7 8 9 10 11 12 CALL FUNCTION ‘FIMA_DAYS_AND_MONTHS_AND_YEARS’ EXPORTING I_DATE_FROM = ’19991008′ I_DATE_TO = ’20000116′ IMPORTING E_DAYS = T_DAYS E_MONTHS = T_MONTHS E_YEARS = T_YEARS.   Result : T_DAYS = 466 T_MONTHS = 16 T_YEARS = 2

[ Continue Reading... ]

ABAP Function-Z_GET_EOH_VALUE

Using ABAP fuction “Z_GET_EOH_VALUE”, we can get Begining Stock, Begining AMT, Ending Stock, Ending AMT. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 …

[ Continue Reading... ]