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: 

/SAPDMC/SAP_LSMW_INTERFACE won't call the Substituion Exits for FI docs upload !!!

ealimeta
Participant
0 Kudos
314

Hello folks !

I have created an LSMW that creates batch input data for FI .

I launch this  LSMW project  using the programm /SAPDMC/SAP_LSMW_INTERFACE as a background job .
I have created a Subsitution at the third level (callup point 03 - Complete Document) that contains an  exit   on specific prerequisites.
When i try to create  a fi doc using FB01 this exit  gets executed , instead when i run the /SAPDMC/SAP_LSMW_INTERFACE for the LSMW project created , the documents gets posted but  the program won't pass through my Substitution exit


Any idea  why , or how to make it pass over there ???

Thanks in advance .

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos
152

I suppose the prerequisites are not met in background during the BDC execution /or/ some code is not valid (e.g. an ASSIGN to another program)


Could you describe the prerequisites and the code of the exit?


Hint: Read also Note 386896 - Substitution at call-up point 3 ("Complete document") for restrictions and alternatives.


Regards,

Raymond

0 Kudos
152

First thanks for  replying .

The prerequisites are quite simple  , 
If the document type   BLART = 'KF'  then the  exit must be executed .

Already  read that note and implemented for  another BAPI   BAPI_ACC_DOCUMENT_POST  at the same call-up point (3) .

Maybe the  /SAPDMC/SAP_LSMW_INTERFACE program won't call the  FM FI_SUBSTITUTION_DOC  and FI_VALIDATION_DOC  , which are the FM'S responsible for  the COMPLETE DOCUMENT  substitution and validation .

Any idea on this ?