2013 Apr 16 5:30 PM
Hello Guys,
I saw a lot of discussions concerning this issue.
But no one helped me out.
I have to add 2 fields MAterial belonging to ORDER and the description of this material (MAKT)
I see everywhere you have to use Enhancement Spot ES_RM07DOCS.
Buit when i look in program RM07DOCS i see many of these spots..
\PR:RM07DOCS\EX:RM07DOCS_01 | Dynamic Enhancement Point | Event | AT SELECTION-SCREEN | |
\PR:RM07DOCS\EX:RM07DOCS_02 | Static Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_03 | Static Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_04 | Dynamic Enhancement Point | Event | INITIALIZATION | |
\PR:RM07DOCS\EX:RM07DOCS_05 | Dynamic Enhancement Point | Event | AT SELECTION-SCREEN OUTPUT | |
\PR:RM07DOCS\EX:RM07DOCS_06 | Dynamic Enhancement Section | Subroutine | PROCESS_LIST | |
\PR:RM07DOCS\EX:RM07DOCS_07 | Dynamic Enhancement Point | Subroutine | BUILD_FIELDCATALOG | |
\PR:RM07DOCS\EX:RM07DOCS_08 | Static Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_10 | Dynamic Enhancement Point | Subroutine | PROCESS_LIST | |
\PR:RM07DOCS\EX:RM07DOCS_11 | Dynamic Enhancement Section | Subroutine | PROCESS_LIST | |
\PR:RM07DOCS\EX:RM07DOCS_O1 | Dynamic Enhancement Point | Event | INITIALIZATION | |
\PR:RM07DOCS\EX:RM07DOCS_G4 | Static Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_G5 | Dynamic Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_G6 | Static Enhancement Point | Before First Unit | N->RM07DOCS | |
\PR:RM07DOCS\EX:RM07DOCS_G7 | Dynamic Enhancement Point | Before First Unit | N->RM07DOCS |
Could someone explain me clearly which steps i have to perform to get these 2 fields filled in the layout of MB51
Thanx in advance.
2013 Apr 22 7:32 PM
Using implicit enhancements you can add fields to the structure ITAB and populate the fields in form DATA_SELECTION. Both are in include RM07DOCS_GENERATED.
2013 Apr 17 8:31 AM
Hi Frank
Please, see SAP Note 357187 - MB51: Fields in field catalog / selection screen.
I hope this helps you
Regards
Eduardo
2013 Apr 17 9:16 AM
Hi Eduardo,
I saw you have given this oss-note in more discussions about this.
But this issue is only about mseg and mkbf lfields not over fields form oter tables.
Gr., Frank
2013 Apr 22 7:32 PM
Using implicit enhancements you can add fields to the structure ITAB and populate the fields in form DATA_SELECTION. Both are in include RM07DOCS_GENERATED.
2013 Sep 26 9:48 PM
how are you able to add fields to ITAB?
You can create a table using
CALL METHOD cl_alv_table_create=>create_dynamic_table
but you still cannot modify ITAB and add entries to them using enhancemts or field symbols.
In other words, SAP doesn't allow you modify internal tables created during runtime...
please me know.
thanks
2013 Oct 10 6:11 PM
Implicit enhancements will allow you to add fields to any declared structure. My code looks like this:
...
data: XBLNR type MKPF-XBLNR .
data: ZEILE type MSEG-ZEILE .
ENHANCEMENT 7 Z_MB51_ENH. "active version
INCLUDE type z_mb51_enhanced=>extra_fields.
ENDENHANCEMENT.
data: end of itab.
2013 Sep 26 3:59 PM
Frank, have you gotten this figured out? some insight would be appreciated.
thanks