Skip to Content
author's profile photo Former Member
Former Member

Customer exit EXIT_SAPLVV01_001

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 16, 2009 at 02: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....

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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..

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.