2009 Oct 12 1:17 PM
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.
2009 Oct 12 1:37 PM
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
2009 Oct 12 2:31 PM
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?
2009 Oct 19 5:45 PM
My mistake. The screen field names had to be changed. On changing, it works.