如何在SAP标准IDOC中增加自定义字段传输

在sap定价中,经常会增加一些自定义的增强字段,这样在条件IDOC中无法自动包含这些字段的传输,这就需要做些增强扩展的开发,具体步骤如下notes。

 

587811 - Modification: ALE transfer of fields for bulkiness

 

Symptom

************************************************************************
*  Caution: This is a modification              *
*  See Note 170183*
************************************************************************

During the distribution of freight condition records using message type 'COND_A' (Conditions: Master data for price determination) via ALE, the fields for bulkiness processing

  • Bulkiness Group (BUGRP)
  • Cumulate Minimum Weights Indicator (MGKUM) 

are not transferred to the target system.


 

Other Terms

TK12, TK13, IDoc, COND_A02, condition information, bulkiness factor, bulkiness


 

Reason and Prerequisites

This was not programmed.


 

Solution

Since enhancing IDoc basic type 'COND_A02' is not possible in the current release, a corresponding customer enhancement has to be used. The following is a description of the necessary steps for this:

  1. 1. Enhancement of IDoc type 'COND_A02'.

    Note: For detailed documentation, you can refer to the SAP Library [path: Basis -> Basis Services / Communication Interface (BC-SRV) -> IDoc Interface (BC-SRV-EDI) -> IDoc Interface / Electronic Data Interchange (BC-SRV-EDI) -> Structure, Documentation and Definition of IDoc Types -> Define New IDoc Types -> Enhancement of an IDoc Type].
  1. a) Create customer segment 'Z1KOMG' using Transaction 'WE31' [SAP Library: Enhancement of an IDoc Type -> Group segments]:
    Field nameData element
    BUGRPVH_BUGRP
    MGKUMVH_MGKUM
    Save your entries.
  1. b) Define an enhancement for IDoc type 'COND_A02' using Transaction 'WE30' [SAP Library: Enhancement of an IDoc Type -> Enhance Basis Type]. Select 'Enhancement' as the development object. On the next dialog box select 'Create' and specify 'COND_A02' under 'Linked Basic Type'. Afterwards create an enhancement segment by positioning the cursor on segment 'E1KOMG':

    Segment typeZ1KOMG
    Min. number1
    Max. number1
    Save your entries.
  1. c) Using Transaction 'WE82', you can assign the enhancement to message type / basis type 'COND_A / COND_A02' [SAP Library: Enhancement of an IDoc Type -> Assign Message Type, Basis Type and Enhancement].
  1. 2. Adjust IDoc outbound processing.
  1. a) Enhancement in function module 'MASTERIDOC_CREATE_COND_A'.
    Add form 'FILL_Z1KOMG' to an include of function group 'VKOE' and enhance form 'EDIDD_FILL_AND_SEND' in accordance with the attached correction instruction.
  1. b) Adjust the corresponding partner profiles using Transaction 'WE20' [SAP Library: Enhancement of an IDoc Type -> Change Partner Profiles (Outbound)]. Specify the name of the enhancement created above in the outbound parameters for message 'COND_A'.
  1. 3. Adjust IDoc inbound processing.
  1. a) Enhancement in function module 'IDOC_INPUT_COND_A'.
    Add form 'READ_SEG_Z1KOMG' to an include of function group 'VKOI' and enhance form 'FILL_APPL_STRUCTURES' in accordance with the attached correction instruction.
  1. b) Enhance the assignment of function module 'IDOC_INPUT_COND_A' using Transaction 'WE57'. Define here that the function module may process the enhanced basic type with message 'COND_A'. In doing so, you enhance the ALE registration of the function module [SAP Library: Enhancement of an IDoc Type -> Enhance Assignment of the Function Module (direct inbound)].
  1. 4. Release the IDoc segment and the IDoc enhancement.

    First release new segment 'Z1KOMG' and then your enhancement. You set the release from the respective development tool (see above) via 'Edit -> Set Release'. You can also cancel the release again via 'Edit -> Cancel Release' [SAP Library: Enhancement of an IDoc Type -> Release Newly Defined Objects].


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值