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

Commenting code in the Enahnacement Section

Former Member
0 Likes
1,549

Hi,

While trying to create the sales order using BAPI BAPI_SALESORDER_CREATEFROMDAT1, there is a call to the FM SD_SALES_HEADER_MAINTAIN in the ENHANCEMENT-SECTION KOPF_ANLEGEN_01 SPOTS ES_SAPLV45J.

I want to comment this call. In TCode SPAU_ENH, after selecting the above enhancement section and clicking on the change mode, the code is still displayed in display mode.

How do I comment the call to the FM in the Enhancement Section.

Thanks,

Mick

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
884

I have experience with enhancements but not with SPAU_ENH, so I hope it's the same. I guess you know what you are doing, and you want to comment out the STANDARD CODE (even if what Raj is true, i.e. the enhancement-section is deactivated by an active implementation).

- click the kind of whirl button to get into enhancement mode

- Position your cursor on the enhancement-section line, right click, choose "change"

2 REPLIES 2
Read only

Former Member
0 Likes
884

Hi,

Only one Active Implementation is possible at runtime for Enhancement Sections. So though the code is visible in normal mode , if you check in Debugg mode the latest Implementation is visible. So if you wish not to call this FM, then Implement the Enh Section and comment the Function Call in the implemented Section.

Hope this helps you.

Raj

Read only

Sandra_Rossi
Active Contributor
0 Likes
885

I have experience with enhancements but not with SPAU_ENH, so I hope it's the same. I guess you know what you are doing, and you want to comment out the STANDARD CODE (even if what Raj is true, i.e. the enhancement-section is deactivated by an active implementation).

- click the kind of whirl button to get into enhancement mode

- Position your cursor on the enhancement-section line, right click, choose "change"