01-16-2009 2:03 PM
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.
01-16-2009 2:32 PM
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....
01-16-2009 3:12 PM
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..