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: 

Customer exit EXIT_SAPLVV01_001

Former Member
0 Kudos

Hi Experts,

I have a problem with the customer exit. This is related to change pointers. when I execute BD21 with mesage type DEBMAS the function module MASTERIDOC_CREATE_DEBMAS triggers. Inside of it we have a function exit where I am doing some modifications to the IDOC_DATA (deleting some segments, appending, modifying)..

Here the problem is there was some code written already in the customer exit as part of some development.

Now If I run BD21 , my code executes and others also..If they run their programs my code also will be executed.

If we have custom program which creates idoc, that makes my problem easier. I can put some indicator in E1KNA1M segment and check the condition in the exit. But here eveything is doing from standard.

How would I make sure that other code should not be executed when I run and my code should not be executed when others run?..

Thanks in advance.

2 REPLIES 2

former_member156446
Active Contributor
0 Kudos

Hi you can put some condition if you can by filtering on Tcodes...

if sy-tocde = "UR Tcode".

Your Logic...

endif.

or based on the calling program... if it was custom code.. I would have suggested to use some selection parameter say X and say if X = X etc....

0 Kudos

Thanks for the reply..

sy-tcode check can be done..Actually for testing purpose I am running it through BD21.

But in the real time...there are two programs in batch that would execute my program..

1) RBDMIDOC - Generate IDocs from change pointers.

2) RSEOUT00 - Process All Selected IDocs (EDI)

Any suggestions..