Step 1: Create a custom segment
- Use transaction code WE31 to create a new segment with the custom fields you need.
- Set release
Step 2: Create the IDoc extension
- Use transaction code WE30 to create an extension for the existing basic IDoc type.
- Reference the basic type you are extending and add your new segment in the appropriate place within the hierarchy.
Step 3: Link to the partner profile
TCode WE20
Step 4: Implement the custom logic
- TCode CMOD create a project
- Assign Enhancement
Activate Component
- Build logic
Requirement to control output or not IDOC with Basic type GSVERF03
Step 1: TCode VOFM -> define a requirement
Step 2: build logic in Include RVCOMFZ2, Form Routine FORM USEREXIT_KOMKBMR_FILL
Step 3: build logic in Routine 900