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: 

Fields update on Table maintenance generator screen

Former Member
0 Kudos

HI All..

I have a custom table with five fields. I did table maintenance generator on it. It has Screen 1 as overview screen and scree 2 as single screen.

Now of the five fields two fields are user name and date. When i enter data on the other three fields and save it on the second screen - iam able to update the two fields for username and date and display on the screen two itself.

But if iam not saving the data on the screen 2 and going back to screen 1 and then save it - iam not able to update the user name and date and also to display the username and date on the screen.

Any suggestions are helpful..

Thanks and will reward helpful answers.

11 REPLIES 11

Former Member
0 Kudos

Hi

When it's generated a view with two screens the system doesn't often insert all fields in the first screen, but it inserts the main fields only.

So u should create a view with only one screen.

U also can create maitenance view and generate the SM30 for this view instead of the table, for this kind of view you can hide some fields and fill them automatically.

Max

0 Kudos

In this case..

Iam having the functionality of SM30 through table maintenance generator.

On Screen 2- single screen - user name and date is working as i had written the logic in the relevant PBO and PAI module.

But if user is not saving the data in screen screen2 and coming back to screen 1- which is overview screen and then try to save it-- all other fields are getting saved except the username and date..

Thanks.

Former Member
0 Kudos

Hi,

Use the same PBO module in the flow logic of the 1st screen also..

THanks

Naren

0 Kudos

Iam doing that..

and now iam able to display the name and date on screen 1 too and when saved.. the screen 2 of it does not show the name and date and even when i go to se11 and see the table record the name and date or not updated. But the screen 1 is displaying name and date.

Where as if i change data and save in screen 2 everyting works fine..

Appreciate your help..

Former Member
0 Kudos

Hi,

Make sure you put the module inside the LOOP AT ..ENDLOOP of the PAI event..

And make sure it is before the following MODULE within the LOOP..

MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.

Thanks

Naren

0 Kudos

I have one more question..

I have a filed with data type dec (6,2). When i enter value zero on the screen - it is getting cleared out. But it is getting stored in the backend database table - it is not getting displayed on the screen as '0' and displaying blank field.

Appreciate your help.

Former Member
0 Kudos

Hi,

It is because of the property of that field..

Thanks

Naren

0 Kudos

Is there any way i can make the zero value getting displayed, whenever user enters a zero and hits enter or whenever the screen is supposed to display zero value form the table field.

Thanks.

0 Kudos

yes, you can display zero values. Convert your attribute of the field from Decimal to Char. Only char fields will hold zero values in change mode. Others won't.

0 Kudos

but remember it will allow you to enter other characters as well(special characters as well as alpha numerals), which will result is short dump while calculation. you have to validate the char field using Chain and endchain. Thanks

Former Member
0 Kudos

Hi all,

I have the same problem... but I realize that those fields i could not see in first screen have other data element types than char or numc.

It seems to be happening only in mysap version... because in sap 4.5 i could do the maintenance view without problems.