Question:
Hi IDOC experts ,
I would like to save IDOC content to customer(Z) table before/after it is created.
I found user-exit SIDOC001 which has EXIT_SAPLEDI6_003 component as per SAP documentation which will be triggered before IDOC is assigned to partner profile.
SAP Documentation says
' Finally, exit 003 is called, which can process the entire data segment
table or the control record'
But when I am creating IDOC , its not triggering this exit. Do you kno why ?.
Is there any other better way ?.
Thanks in advance,
Nitin
Answer:
"not triggering this exit" - Is the user-exit activated in CMOD?
Do you want every IDoc stored in the Z table or one type of IDoc? If it's only one IDoc Type, check user-exits in the function module used to process the IDoc.
Answer:
yes ! user-exit is activated ...
Answer:
Then this userexit is not the one you need.
Is this process for all IDoc types or a specific one?
Answer:
this process is across IDOC types
Answer:
I don't see userexit EXIT_SAPLEDI6_003 in SIDOC001. Do you mean SIDOC002?
I know SIDOC001 is executed for every IDoc, but there's only one userexit (EXIT_SAPLEDI1_001) and this only allows you to access the control record. not the data segments.
What release are you on?
Answer:
Hi ,
Yes its SIDOC002. I am working on 4.6 C.
thanks in advance ,
Nitin