‎2011 Jun 15 6:39 AM
Hello everyone,
is there a general badi, enhancement-point or user exit to modify idocs at input-processing?
I have to change control-structure AND data-segments.
With general I mean, for all message types.
Thx for help
Christian
‎2011 Jun 15 8:06 AM
Hi
Depends of the IDOC type. Usually, you have enhancements, search in the coding the string 'CALL CUSTOMER-FUNCTION' or search notes for the IDOC that you want to enhance (for instance, Note 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS for a inbound IDOC)
Regards,
Eduardo
‎2011 Jun 15 8:06 AM
Hi
Depends of the IDOC type. Usually, you have enhancements, search in the coding the string 'CALL CUSTOMER-FUNCTION' or search notes for the IDOC that you want to enhance (for instance, Note 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS for a inbound IDOC)
Regards,
Eduardo
‎2011 Jun 15 8:26 AM
Thx for help
And there is no general modification possibility for all idocs (in input)?
Because all Idocs contains the same content.
thx
‎2011 Jun 15 9:11 AM
Hi
As I say you, I don't know what IDOC you are talking about, and if I have experience or I have any knowledge about it. As I tell you if you dont find these strings in the function module for the inbound IDOC (CALL CUSTOMER-FUNCTION, IF_EX for BADI's and so on), you have the possibility to change the function module that manage this IDOC with a Z_* module function replacing it in tcodes where you do the settings for the IDOC (this Z_* module function is created using the standard function as a template and adding the logic that you need, of course, you must think that it need an extra-effort to mantain it after support-packages and upgrades, so, remember to document it).
See the tcodes WE81, WE82, BD51, WE42 and so on where you do the settings for IDOCs.
For instance, one for the message PORDCR1 (an inbound idoc) I needed to delete some items, so I created the message ZPORDCR1 and set it to function module Z_BAPI_IDOC_INPUT1 instead BAPI_IDOC_INPUT1 (that it is the template where I added the logic that I needed). After, you must do the changes in WE20 and avoid to use the standard message (it's cleaner than the modifications of objects or standard settings, perhaps it could be made better, but it works).
Futhermore, see in the function module if you are using a BAPI to create the document (search it in the function module). If the additional info is related with customer fields (ie: ZZ-FIELDS), remember that not all types of fields (quantities and amounts for instance) work for EXTENSION structure.
It's a suggestion.
I hope this helps you
Regards
Eduardo
‎2011 Jun 15 9:17 AM
Hello Eduardo
Thx again for your suggestion.
It sounds like a runing solution, but we don't want to modify sap-standard or copy standard FMs.
Because, as you have already said, it means much work at an release-upgrade.
Now I was looking for exists and I've found the FM EDI_CONTROL_RECORD_MODIFY.
How can I find the SMOD record for this user exit?
Thank you very much for help!
‎2013 May 01 11:07 AM
The function module EDI_CONTROL_RECORD_MODIFY is assigned to SMOD record SIDOC001.
Hope I have answered your question.
Regards,
Nilay Dalwadi.