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

Table maintenance issue

Former Member
0 Likes
615

hi

I have created Table maintenance generator for a custom Transparent table.

In the table there are fields suppose ABC (some company code in it), XYZ (having company name description for the respective ABC fields value). Now when i create a new entry in this table thru SM30, i enter company code(field ABC) value as '10', now when i hit ENTER key the company description (XYZ field) should be populated automatically. i have attached Explicit search helps for the fields required.

How should i get the description populated automatically?

Regards,

Manjari

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

HI,

In order to get the description automatically populated, do the field level enhancement on the table.

in the table go to utilities, table maintenance generator, there double click on the screen number, which will take to the screen elements.

in the screen under which ever field you want the data to be auto populated, in the chain -endchain of the fields

write the statement module sub_description next to the company code field.

double click on the module sub_description, it will take to the pbo module of the table.

in the module,

you will have the entries available in the chain loop.

based on the chain loop entry, pass the entries to T001 table and get the description.

now assign the description to the field description.

save and activate it.

From next time onwards, when ever the company code is given, description will be automatically populated.

4 REPLIES 4
Read only

Former Member
0 Likes
579

Hi Manjari,

Why are you storing the company code description in your table? It's already stored in T001. You are duplicating data and iIf T001 gets updated all of your Z-table entries will all have the wrong text.

Create a view that joins your z-table to T001 instead.

Regards,

Nick

Read only

Former Member
0 Likes
579

i agree but as per the requirement i need to get the description populated when i hit ENTER key..

Read only

0 Likes
579

Hi,

Would a view joining your Z-table and T001 not satisfy this requirement?

Regards,

Nick

Read only

Former Member
0 Likes
580

HI,

In order to get the description automatically populated, do the field level enhancement on the table.

in the table go to utilities, table maintenance generator, there double click on the screen number, which will take to the screen elements.

in the screen under which ever field you want the data to be auto populated, in the chain -endchain of the fields

write the statement module sub_description next to the company code field.

double click on the module sub_description, it will take to the pbo module of the table.

in the module,

you will have the entries available in the chain loop.

based on the chain loop entry, pass the entries to T001 table and get the description.

now assign the description to the field description.

save and activate it.

From next time onwards, when ever the company code is given, description will be automatically populated.