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

Delimiting Dates Functionality in Z table

Former Member
0 Likes
420

Hello, i need to create the delimiting dates functionality, which will trigger proper warning message and will handle overlapping time periods.

Can anyone help me on this?

I've already enabled and coded the two Standard Modules in the Custom table's Screen Logic:-

PROCESS BEFORE OUTPUT.

MODULE liste_initialisieren.

LOOP AT extract WITH CONTROL

tctrl_zxxm_pc CURSOR nextline.

MODULE liste_show_liste.

MODULE liste_deactivate.

ENDLOOP.

*

PROCESS AFTER INPUT.

MODULE liste_exit_command AT EXIT-COMMAND.

MODULE liste_before_loop.

LOOP AT extract.

MODULE liste_init_workarea.

CHAIN.

FIELD zxxm_pc-zz_tdate .

FIELD zxxm_pc-z_poc .

FIELD zxxm_pc-zz_fdate .

FIELD zxxm_pc-zz_pc .

MODULE set_update_flag ON CHAIN-REQUEST.

ENDCHAIN.

"INSERTED AJMAL.D 13/03/2008

CHAIN.

FIELD zxxm_pc-zz_fdate .

FIELD zxxm_pc-zz_tdate .

MODULE temp_delimitation ON CHAIN-REQUEST.

ENDCHAIN.

"END

FIELD vim_marked MODULE liste_mark_checkbox.

CHAIN.

FIELD zxxm_pc-zz_tdate .

FIELD zxxm_pc-z_poc .

FIELD zxxm_pc-zz_fdate .

MODULE liste_update_liste.

ENDCHAIN.

ENDLOOP.

MODULE liste_after_loop.

But its giving me dump. Are there any other coding of configurations to make?

1 REPLY 1
Read only

RemiKaimal
Active Contributor
0 Likes
319

Hello,

Plz do not write code in the PBO/PAI of a TMG.

You will lose all the code, once the TMG is regenerated.

It's safe to handle a TMG through events, since the code exist in a separate include.

Once the TMG is regenerated all you have to do is reattach the Subroutine.

Regards,

Remi