2008 Mar 18 7:26 AM
Hi Gurus,
I have to write some code in program SAPLEINB
in include LEINBF0M.
Actually there is Enhancement Point.
ENHANCEMENT-POINT LEINTF0M_07 SPOTS ES_SAPLEINB.
how to write my code in this point.
is there any exit or something available fo this.
Pls help me.
Hi Gurus,
I have to write some code in program SAPLEINB
in include LEINBF0M.
Actually there is Enhancement Point.
ENHANCEMENT-POINT LEINTF0M_07 SPOTS ES_SAPLEINB.
how to write my code in this point.
is there any exit or something available fo this.
Pls help me.
2008 Mar 18 7:47 AM
Hi Sekhar,
Refer the sample code below :
*Selection Screen
SELECT-OPTIONS:
so_carr FOR gv_carrid,
so_conn FOR gv_connid.
ENHANCEMENT-POINT FLIGHTS_DECLARATION SPOTS FLIGHTS_DISPLAY STATIC.
START-OF-SELECTION.
*Select Data
ENHANCEMENT-SECTION FLIGHTS_DBSELECT SPOTS FLIGHTS_DISPLAY.
SELECT carrid connid fldate price currency
from sflight
into table gt_flights
where carrid in so_carr
and connid in so_conn.
END- ENHANCEMENT-SECTION.
*List Output
LOOP AT gt_flights INTO gs_flights.
WRITE : / gs_flights-carrid,
gs_flights-connid.
append gs_flights to gt_flights.
ENDLOOP.
Useful Link :
Hope this helps.
Please reward points if useful.
Regards
Rose.
Edited by: Rose Preethi on Mar 18, 2008 1:18 PM
2008 Mar 18 7:56 AM
Hi,
you will have to copy the program "SAPLEINB" into a Z program and then you can use add in your code to it.
But, while doing which you will have to implement the enhancement spot and then only you can proceed further on this.
please do as mentioned and let me know if you are still facing any issues on this.
Thanks,
Vishnu.
2008 Mar 18 8:24 AM
Hi Shekar,
You have to implement this Enhancement Point. There would be button on Toolbar called Enhace ( Shift + F4). Click on that, it will show code with background as white. Then right click on Enhancement Spot name and Create Implementation. Once you have created the implementation then you can come back to the code, you can see the new block would be created like this
ENHANCEMENT <number> <implementation name>. "active version
ENDENHANCEMENT.
click on Enhance Button, put your cursor on implementation name and EDIT -> Enhancement Operation --> Change.
you can also go through this blogs
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3056] [original link is broken] [original link is broken] [original link is broken];
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3336] [original link is broken] [original link is broken] [original link is broken];
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3430] [original link is broken] [original link is broken] [original link is broken];
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3506] [original link is broken] [original link is broken] [original link is broken];
Regards,
Akash
Please give rewards if it helps.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |