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: 

To know function module and enhancement for an basic idoc type

Former Member
0 Kudos

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

5 REPLIES 5

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Outbound function module: /SAPHT/IDOC_OUTPUT_INVRPT

Enhancement: BAdI name is /SAPHT/DRM_EDIS_BADI

0 Kudos

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

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

0 Kudos

and why the function module is prefixed with ' /SAPHT/ ' .. any particular reason..

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

I suppose because it belongs to SAP's High Tech solution... this is related to DRM. Those objects were developed with an own namespace.