Skip to Content

How to Copy programmes with enhancement points?

We need to make some customer require changes in transaction ME2o and therefore want to copy standard program RM06ELLB to new ZRM06ELLB.

In program RM06ELLB is used new technology of enhancement ENHANCEMENT-POINT (BADI).

After copy, source code inside enhancement in new program disappear (is not copied).

Copy of enhancement spot object (se18) is automatically assigned to oryginal program (RM06ELLB) and this assign can't be changed.

<b>Example in original programm:</b>

[code]

REPORT rm06ellb NO STANDARD PAGE HEADING MESSAGE-ID me.

ENHANCEMENT-POINT RM06ELLB_G4 SPOTS ES_RM06ELLB STATIC.

$$-Start: RM06ELLB_G4----


$$

ENHANCEMENT 67 MGV_GENERATED_RM06ELLB. "active version

INITIALIZATION.

DATA: mgv_matnr_prog LIKE rsvar-report,

mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.

FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.

ENDENHANCEMENT.

$$-End: RM06ELLB_G4----


$$

ENHANCEMENT-POINT RM06ELLB_G5 SPOTS ES_RM06ELLB.

$$-Start: RM06ELLB_G5----


$$

ENHANCEMENT 68 MGV_GENERATED_RM06ELLB. "active version

mgv_matnr_prog = sy-repid.

mgv_matnr_selopt_tab-name = 'S_BAUGR' .

append mgv_matnr_selopt_tab.

mgv_matnr_selopt_tab-name = 'S_MATNR' .

append mgv_matnr_selopt_tab.

call function 'MGV_SELOP_AFTER_INITIALIZATION'

EXPORTING

PROGRAM = mgv_matnr_prog

TABLES

SELOP = mgv_matnr_selopt_tab

EXCEPTIONS

NO_PROGRAMNAME = 1

OTHERS = 2

.

ENDENHANCEMENT.

[/code]

<b>Code after Copy in New programme:</b>

[code]

REPORT zrm06ellb NO STANDARD PAGE HEADING MESSAGE-ID me.

*ENHANCEMENT-POINT RM06ELLB_G4 SPOTS ES_RM06ELLB STATIC.

*ENHANCEMENT-POINT RM06ELLB_G5 SPOTS ES_RM06ELLB.

[/code]

<b>How can we copy source code with enhancements?</b>

Any Ideas ?

THANKS.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 12, 2006 at 09:06 AM

    We want to copy the complete Transaction ME2O to ZME2O to implement some changes in the new customer transaction.

    Any ideas?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2007 at 08:37 AM

    Hi,

    Any progress so far ?

    Thanks.

    Best regards,

    Guillaume

    Add a comment
    10|10000 characters needed characters exceeded

    • Nope, no solution found on this one.

      For workaround, we copied the sourcecode from an older release where there werde no enhancement points into a z-report and used this one for modifications..

      If anyone knows how this works, please share the information since a lot of reports behind standard transactions use this new technology of enhancement points in ECC 6.0

      THX

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.