on 01-04-2014 9:32 AM
Hi ,
i have requirement to add item text to be added to std tcode ME55 for display in ALV.
any BADI to do it.please shere any possible ways other than going for custom.
Regards,
Umakant.
1. Add new structure at table 'MEREP_OUTTAB_EBANOV' with your requirement fields for add at ME55 ALV view
2.Implement Badi ES_BADI_ME_REPORTING to fill the result.
method IF_EX_ME_CHANGE_OUTTAB_CUS~FILL_OUTTAB.
****===============================================
** IMPORTANT NOTE for developer, DO NOT remove this section
** each report should have specifict logic.
** all logic and data declaration better undur report logic selft
** modify should be done after modify flag has value, otherwise will
** make report become "NGACO" ...
****===============================================
case SY-CPROG.
when 'RM06BF00'. " only valid for report ME55
*** =========== start for ME55====================
** this data declaration section only valid for ME55 transaction / RM06BF00 report
** OTHER transaction MUST declare for specific report
data: LS_CH_OUTTAB type MEREP_OUTTAB_EBANOV.
data: E_LS_CH_OUTTAB type MEREP_OUTTAB_EBANOV.
data: VCHG type SY-BINPT.
*** =========== end for ME55==========
loop at CH_OUTTAB into E_LS_CH_OUTTAB.
clear VCHG.
call function 'Y_BADI_REPT_MODIFY_ME55'
exporting
I_LS_CH_OUTTAB = E_LS_CH_OUTTAB
changing
E_LS_CH_OUTTAB = LS_CH_OUTTAB
VCHANGE = VCHG
exceptions
DATA_CHANGE = 1
others = 2.
if VCHG is not initial.
modify CH_OUTTAB from LS_CH_OUTTAB.
endif.
endloop.
endcase.
endmethod.
I was success add new field Order number (AUFNR) Order description (KTEXT) and order user status ASTTX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The BAdI is ME_CHANGE_OUTTAB_CUS, Enhancement spot ES_BADI_ME_REPORTING, sample implementation CL_EXM_IM_ME_CHANGE_OUTTAB_CUS.
Hint: To be allowed to use this BAdI, business function LOG_MMFI_P2P must be activated thru SFW5. As you can see in documentation minimal level is Ehp4.
Regards,
Raymond
User | Count |
---|---|
95 | |
11 | |
9 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.