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

Enhancement Points

Former Member
0 Likes
629

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.

3 REPLIES 3
Read only

Former Member
0 Likes
555

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 :

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cd334f3-0a01-0010-d884-f5612003...

Hope this helps.

Please reward points if useful.

Regards

Rose.

Edited by: Rose Preethi on Mar 18, 2008 1:18 PM

Read only

Former Member
0 Likes
555

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.

Read only

Former Member
0 Likes
555

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.