Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ME5A - fill a new Z field

sm26
Participant

Hello dear Gurus!

Basing on this thread:
https://archive.sap.com/discussions/thread/3899883

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 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

7 REPLIES 7

former_member196331
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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.
enhancement  2 DIMP_GENERAL_SAPDBDAM.

*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

sm26
Participant
0 Kudos

Sorry, won't happen again.

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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