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: 

How to update custom 'Z' table with values from essr,during ML81n run.

Former Member
0 Kudos

Whenever I run u2018ML81nu2019 t-code and create a new service entry sheet, data gets updated in ESSR table. At this time I want my custom u2018Zu2019 table to be updated with values from ESSR table. I used MB_DOCUMENT_BADI for this purpose. But the problem is ESSR is not updated when this BADI is run. It is updated into the database at a later point. Hence even if I write coding in the methods of this BADI, values of ESSR cannot be used. I even tried MB_DOCUMENT_UPDATE, but this BADI is not triggered when a new posting is done.

Pls help me out with this.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos

Saud,

i recon MB_DOCUMENT_BADI is not responsible for ML81N.

Use need to use Exit:
 SRVREL                                  Changes to comm. structure for release of entry sheet 
Fm EXIT_SAPLEBND_003
parameter name I_CESSR

Former Member
0 Kudos

But SRVREL is not triggered throughout the run of ML81n.

0 Kudos

It should trigger.

Did you activate SRVREL exit after doing modification in Cmod?

just activate this

Former Member
0 Kudos

Yes i activated it and placed a debugger point also to see whether it is getting triggered. In fact i checked using exit handler class also to see whether it gets triggered.

0 Kudos

Saud,

FM EXIT_SAPLEBND_003 include ZXMLUU10.moreover read documentation of Fm

Where you put the break-point is should be in ZXMLUU10