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: 

Need to Create Custom table At Me21n

former_member196331
Active Contributor
0 Kudos

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.

12 REPLIES 12

Shubham1
Employee
Employee
0 Kudos

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

0 Kudos

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.

former_member196331
Active Contributor
0 Kudos

Can u help me Regarding the above issue.

Pranay Patel

0 Kudos

Hi, there are so many tabs at header level. In which tab, do you want this table.

0 Kudos

I Need to Created own Custom Tab. Thanks for your reply.

0 Kudos

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

Table Control Insert

For Deletion of a Row

How to delete entries from table control

0 Kudos

And if you want to make only one row editable and rest disabled. Please follow below thread:

Table Control :Making only one row in editable ... | SCN

0 Kudos

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.

0 Kudos

Append structure is used to add your custom fields to standard table.

0 Kudos

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.

0 Kudos

In your case its not possible. Because you cannot have same primary keys for N number of rows.

0 Kudos

Thank u i got clarification.I will close the post. Please Wait for some time. Thanks for your reply.