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: 

Populating data with Enter button on TMG level.?

Former Member
0 Kudos

Hi All,

I have requirement to display cost center description and profit center description while click on the enter button the descriptions

should display for the corresponding profit center and cost center before save.

I have used Event 05(Create new entry) to populate descriptions With Enter button . And it was working fine.

Now  when user try to change already existing entry in TMG level , that time Descriptions are not populating automatically with Enter button, but working with when click on save button only for the event 01.

But now i want to display descriptions with Enter button only even for changing the already existing record.

Please suggest what functionality should i provide for this requirement.

Thanks

Siva

1 ACCEPTED SOLUTION

Bhushan_hs
Participant
0 Kudos

Hi Siva,

You can use EVENT Number 21 for your requirement, when user enters Cost center you can fetch its corresponding description pass it required field in Event Number 21.

Event number 21 triggers when user presses enter.

Regards,

Bhushan

4 REPLIES 4

former_member491621
Contributor
0 Kudos

Hi Siva,

You can try creating your own module in the TMG screen flow logic and write the required code there.

You could see the reference code below

PROCESS AFTER INPUT.

MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.

MODULE LISTE_BEFORE_LOOP.

LOOP AT EXTRACT.

   MODULE LISTE_INIT_WORKAREA.

   CHAIN.

    FIELD ZTABLENAME-FIELD1 MODULE <your_module>.          " Create this module

    FIELD ZTABLENAME-FIELD2 .

    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.

   ENDCHAIN.

   FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.

   CHAIN.

    MODULE LISTE_UPDATE_LISTE.

   ENDCHAIN.

ENDLOOP.

Note: you have to grey out the fields on the maintenance screen(if you want to!!) by writing another module in the PBO.

Hope this helps

Do let me know if you need any more help.

Former Member
0 Kudos

Hello Siva,

you used the event 05 to fetch the description.

that code will be called and description will get displayed only while creating a new entry in the database.

use same logic with another event which will be executed when the data is changed. i think 08 or 11 or 12.

please check and apply.

Thanks and Regards,

Bhaskar

Bhushan_hs
Participant
0 Kudos

Hi Siva,

You can use EVENT Number 21 for your requirement, when user enters Cost center you can fetch its corresponding description pass it required field in Event Number 21.

Event number 21 triggers when user presses enter.

Regards,

Bhushan

hiriyappa_myageri
Participant
0 Kudos

hi Shiva,

1.Try to use events 10,11,12. and trigger these events when ever user changing the records and populate you message.

Regards,

Hiriz