Application Development and Automation 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: 
Read only

custom fields in PO

Former Member
0 Likes
1,171

Hi,

i have to add custom fields in item data of PO. I have done this MM06E005. I have created the fields in CI_EKPODB. I have created the screen containing the fields and have written the logic in EXIT_SAPMM06E_016 for exporting data to subscreen and EXIT_SAPMM06E_018 for exporting data to db table from screen.

The problem that i am facing is that the screen is getting displayed in purchase order but if i enter any value on the screen that doesn't gets saved to the db. the field in EKPO_CI strucutre is completely blank but if i change the data in debugging mode then i am able to see it in db table. Can some one help me with this?

Thanks.

Hi,

i have to add custom fields in item data of PO. I have done this MM06E005. I have created the fields in CI_EKPODB. I have created the screen containing the fields and have written the logic in EXIT_SAPMM06E_016 for exporting data to subscreen and EXIT_SAPMM06E_018 for exporting data to db table from screen.

The problem that i am facing is that the screen is getting displayed in purchase order but if i enter any value on the screen that doesn't gets saved to the db. the field in EKPO_CI strucutre is completely blank but if i change the data in debugging mode then i am able to see it in db table. Can some one help me with this?

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
830

Hi,

Make sure that you use the EKPO-<fieldname> in the screen fields, i.e. select the table name from the screen attributes in the screen painter and then insert the required fields on the screen.

In the exits just write the statement, MOVE-CORRESPONDING to pass the screen fields data to database table and vice versa

Finally declare: TABLES: EKPO in the top include if required.

Regards

shiva

Read only

Former Member
0 Likes
830

Hi Shiva,

Thanks for ur help. i did not use the table-fieldname in the screen painter. Now after i use EKPO, i am able to enter some values on the screen in PO and it does not disapeear after i press Enter but the problem is i am still not able to save it to the db table. if i enter values and press save , i get the message " No changes made". In the exit, EXIT_SAPMM06E_018

i am using

E_CI_EKPO-ZPROD_EXP = EKPO_CI-ZPROD_EXP.

Is this wrong?

Read only

Former Member
0 Likes
830

My mistake. The screen field names had to be changed. On changing, it works.