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 implementation in SD_COND_DETERMINATION

tim_kich
Explorer
0 Likes
1,095

Hello,

I have written a condition requirement where I want to add some code, but a field that I need is not available. So I have found the function module SD_COND_DETERMINATION that calls the requirement sub-routine and there happens to be an enhancement implementation right before the call. It is enhancement section SD_COND_DETERMINATION_05, enhancement number 7. I've managed to add some code there and activated it, but during debug, I don't see this code at all. Any ideas of what I'm missing?

Thanks.

Tim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
850

Hi Tim,

have you changed the existing ENHANCEMENT-IMPLEMENTATION?

ENHANCEMENT-SECTION     SD_COND_DETERMINATION_05 SPOTS ES_SAPLV61Z.
      bedingung_programm-kvewe = usage.
END-ENHANCEMENT-SECTION.
*$*$-Start: SD_COND_DETERMINATION_05------------------------------------------------------------$*$*
ENHANCEMENT 7  DIMP_GENERAL_SAPLV61Z.    "active version
          if usage = '4'.                                                 "in here???
            bedingung_programm-kvewe = 'J'.
          else.
            bedingung_programm-kvewe = usage.
          endif.
ENDENHANCEMENT.
*$*$-End:   SD_COND_DETERMINATION_05

That would be like a modification, because the ENHANCEMENT 7 is belonging to some industry specific coding (IS DIMP). If you´re not using DIMP, that would explain why your code is not executed: The ENHANCEMENT 7 is bound to a switch DIMP_GENERAL, which would than be in status OFF.

See documentation on switch framework here:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm

What you need to do is to create your own ENHANCEMENT IMPLEMENTATION: Go to enhancement mode and right-click on the statement ENHANCEMENT-SECTION -> create implementation.

Hope it helps,

BR,

Sebastian

2 REPLIES 2
Read only

Former Member
0 Likes
851

Hi Tim,

have you changed the existing ENHANCEMENT-IMPLEMENTATION?

ENHANCEMENT-SECTION     SD_COND_DETERMINATION_05 SPOTS ES_SAPLV61Z.
      bedingung_programm-kvewe = usage.
END-ENHANCEMENT-SECTION.
*$*$-Start: SD_COND_DETERMINATION_05------------------------------------------------------------$*$*
ENHANCEMENT 7  DIMP_GENERAL_SAPLV61Z.    "active version
          if usage = '4'.                                                 "in here???
            bedingung_programm-kvewe = 'J'.
          else.
            bedingung_programm-kvewe = usage.
          endif.
ENDENHANCEMENT.
*$*$-End:   SD_COND_DETERMINATION_05

That would be like a modification, because the ENHANCEMENT 7 is belonging to some industry specific coding (IS DIMP). If you´re not using DIMP, that would explain why your code is not executed: The ENHANCEMENT 7 is bound to a switch DIMP_GENERAL, which would than be in status OFF.

See documentation on switch framework here:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm

What you need to do is to create your own ENHANCEMENT IMPLEMENTATION: Go to enhancement mode and right-click on the statement ENHANCEMENT-SECTION -> create implementation.

Hope it helps,

BR,

Sebastian

Read only

tim_kich
Explorer
0 Likes
850

Worked perfectly. Thank you very much.