on 04-11-2016 11:07 AM
Hello All,
I have added Vendor material number (IDNLF) and Requisitioner Name (AFNAM) in the report ME2n using below logic.
Field names in structure should start with zz.
TYPES: BEGIN OF TY_EKPO,
EBELN TYPE EBELN,
AFNAM TYPE AFNAM,
IDNLF TYPE IDNLF,
EBELP TYPE EBELP,
END OF TY_EKPO.
DATA : IT_EKPO TYPE STANDARD TABLE OF TY_EKPO,
WA_EKPO LIKE LINE OF IT_EKPO.
IF SY-TCODE = 'ME2N' OR SY-TCODE = 'ME2L'.
SELECT EBELN AFNAM IDNLF EBELP FROM EKPO
INTO TABLE IT_EKPO
WHERE EBELN = IM_EKPO-EBELN.
IF SY-SUBRC = 0.
READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELP = IM_EKPO-EBELP.
re_outtab_purchdoc-ZZAFNAM = WA_EKPO-AFNAM.
re_outtab_purchdoc-ZZIDNLF = WA_EKPO-IDNLF.
ENDIF.
ENDIF.
If i run ME2N report then i can see these two fields in the report with value.
But if i run standard program if ME2N (RM06EN00) then i can not see value in these two fields.
Include LMEREPD02 which contains the enhancement is not getting called in the report RM06EN00.
Please help.
Regards,
Anuja Dhondge
client is scheduling mail for this report.
To schedule client is using program RM06EN00.
but above program does not contain the include LMEREPD02 where in actual logic is written.
Please help me.
Regards,
Anuja Dhondge
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shiram,
I have done the change as per your suggestion and it is working also.
If i run the report RM06EN00 and RM06EL00 seperatly then i can see the Requisitioner and vendor material number fields with value.
client is scheduling background job for this report then these two fields are blank with no value.
Please help.
Regards,
Anuja Dhondge
Hello,
The Include LMEREPD02 is there in the main program RM06EN00 FM 'ME_REP_COUNT_TABLE_LINES'.
That include only contain local class definition.
So put the break-point at your code in that include and check whether its stopping there or not.
If its stopping there, then try with removing sy-tcode check.
Regards,
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.