05-11-2016 4:16 AM
HI,
I am facing one problem, I need to create one Custom table at Me21n Header level.
The table should have 3 columns , Rows should be enables after press the button Addrow and Delete row.
The Screen Number is :: 101
And At Header level Structure is CI_EKKODB.
My doubt is Normally Table means N number of rows like Each document is having may be 1 to n
Document 1 having 5 rows, Document 2 is having 6 rows.
May i know Where should i save the Data, Table means number of Entries. But Ekko is the Header. Always it will be save only one entry.
Where can i add and Save the Data in Ekko or Any custom Table.
Need Your Suggestions please.
05-11-2016 4:44 AM
Hello
As I understand you wish to add a custom tab at header level of ME23N.
Use structure CI_EKKODB in EKKO for adding customer field.
Use structure CI_EKPODB in EKPO in case of item.
Enhance BADI ME_GUI_PO_CUST and add your sub screen using subscribe method.
BADI ME_PROCESS_PO_CUST and set visible /invisible mode of the fields.
Refer this thread too.
Shubham
05-11-2016 4:54 AM
Hi,
Thanks for your reply, You did not understood My requirement.
I need at header level.
Suppose i added some fields under CI_EKKODB in EKKO
Imaging i have added two fields at header So
Ekko field1 field2.
ekko-docno field1 field2.
50000085 one two
But i need table at header level. How number of entries will be saved At header level.
like
ekko-docno field1 field2
50000085 one two
one1 two1
one2 two2
one3 two3.
This is my question.
05-11-2016 8:55 AM
05-11-2016 10:03 AM
Hi, there are so many tabs at header level. In which tab, do you want this table.
05-11-2016 10:06 AM
05-11-2016 10:36 AM
I guess you can achieve that through custom table only. Use table control to insert row/delete row. Add two buttons for Add and Delete. Get records in internal table and update your custom table on save.
For Inserting a Row
For Deletion of a Row
05-11-2016 10:39 AM
And if you want to make only one row editable and rest disabled. Please follow below thread:
05-11-2016 10:57 AM
Hi, Thanks for your reply. So, Table is I need Create , Am i correct, Normally in Subsceen, They will give the Append structure i am thinking that way.
05-11-2016 11:03 AM
Append structure is used to add your custom fields to standard table.
05-11-2016 11:06 AM
Ok, If the Data will be save in Standard table i will be happy, but not possible because i need to save number of rows.Am i correct.
05-11-2016 11:10 AM
In your case its not possible. Because you cannot have same primary keys for N number of rows.
05-11-2016 11:23 AM
Thank u i got clarification.I will close the post. Please Wait for some time. Thanks for your reply.