11-29-2007 8:16 PM
Hi all
I need to prepare idoc to send inventory data to customer.. so need
to develop 846.
For 846 -Inventory Advice , i found the most matching basic idoc type
is INVRPT01
bt the standard segments in the basic idoc type are not meeting the
requirement, so we decided to extend the basic idoc type and include
the customized segments.
1. where could i see the standard outbound function module for INVRPT01
2. How to find the enhancements for above function module
3. If there are no standard enhancement for the function module.. how
to modify the code to our requirement( I mean without enhancements)
Thanks.
Vivek
11-29-2007 9:00 PM
Outbound function module: /SAPHT/IDOC_OUTPUT_INVRPT
Enhancement: BAdI name is /SAPHT/DRM_EDIS_BADI
11-29-2007 9:15 PM
Hi
With the above given Badi, can we pop up data in customized segments.. I mean .. if we code modification program in this Badi.... will the desired data would go to respective customized segments....
11-29-2007 9:26 PM
Yes.
Since this BAdI (specifically, the method HANDLE_INVRPT_GENERATED_DATA) is called after the IDoc is completely assembled by the standard process, you have access to the control record and the table containing the IDoc data, so you can manipulate them any way you need it. You can insert a new (custom) segment at the proper position too, if that is what you want.
11-29-2007 9:33 PM
and why the function module is prefixed with ' /SAPHT/ ' .. any particular reason..
11-29-2007 9:40 PM
I suppose because it belongs to SAP's High Tech solution... this is related to DRM. Those objects were developed with an own namespace.