Skip to Content

ME5A - fill a new Z field

Sep 24, 2017 at 03:44 PM


avatar image

Hello dear Gurus!

Basing on this thread:

I wish to fill my new Z field inside ME5A.

I can see my new Z field in the report, but it's not in IT_EBAN[] @ rm06ba00

and not in CI_EBANDB.

When I F1 the field, I can see that it's in MEREP_OUTTAB_EBAN.

I've found that CI_EBANMEM has my field, and MEREP_OUTTAB_EBAN has CI_EBANMEM.

I can't append my field into CI_EBANDB like @NewB To Abap has suggested in the thread mentioned above, because there are some tables that have both CI_EBANMEM and CI_EBNANDB, so it can't be done this way.

My end result is to fill ME5A with data from another Z table.

in my Z table I have BANFN (Purchase requisition number) and status (my new Z field)

it should be just a simple inner join of tables.

I feel that what I'm missing is very basic and should be right in-front of me, but I just can't understand what am I supposed to do.

Thanks in advance,

Gaist Or

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Kali Charan Sep 25, 2017 at 03:29 AM

As you said.

When I F1 the field, I can see that it's in MEREP_OUTTAB_EBAN.

This is correct.

Now your task is you need to find the place, modify the final internal table it_eban, Nothing but enhancement point.
Before showing the result, you need to modify the zfield.
Hope you understood.

for me i have found enhancement point in the program :: SAPDBBAM

then modify the table it_eban.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello dear Mr. Charan

First of all, thank you for your response.

I'm sorry, but I'm not quite following.

when I look in SAPDBBAM, I can see it_eban[], but this internal table still don't have my Z-field.

so, even if and when I'll find the right enhancement point, I don't understand where do I need to add my values to.

Really appriciate your help,

Gaist Or


As per my knowledge, Append Eban table.

You heard it correct, What ever the field you were added at MEREP_OUTTAB_EBAN same sequence you add at eban append stricture,.
Now in the above program::SAPDBBAM. put break point then find the z fields are coming or not.

If z field found, Just update the value at run time. (Enhancement later). for one row. not each and every row.

Now check it in front end. update value is coming or not. If it's come.
Find enhancement point.


Dear Mr Charan,

I've think I've found the enhancement point you are talking about in SAPDBBAM

FROM pbo.

enhancement-point sapdbbam_02 spots es_sapdbbam.

*my code

but my problem is that when I use BP to check it, it will only run this part of the code BEFOR the selection screen initialization.

I've tried to look all over SAPDBBAM in debugging mode, and I could not find a place to enter my portion of the code after the selection screen and before the ALV output.

I've also tried to implement BAdI ME_CHANGE_OUTTAB_CUS at FM06BFSL but at this point my scope only include IT_EBAN and not the OUTTAB (Type MEREP_OUTTTAB_EBAN), and IT_EBAN doesn't have my Z-field

I thought that it might be a good place to look at SAPLMEREP/LMEREPI08 because this is my first encounter with the OUTTTAB initialization but I couldn't find an enhancement point over here, or any place after that.

Any Ideas or suggestions would be much appreciated,

Gaist Or

Raymond Giuseppi
Sep 25, 2017 at 11:29 AM

Did you try with BAdI ME_CHANGE_OUTTAB_CUS (if active in your system, part of business function LOG_MMFI_P2P.)

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Yes, but I can't find the right place to use this BAdi,

When I use it, I can insert my own data into the OUTTAB of the BAdi, but after that, I can't connect this OUTTAB with the ALV.

Do you know a place to intervene that would enable me to append the BAdi output into the ALV OUTTAB?

Thanks in advance,

Gaist Or