I have copied the standard IDOC ORDERS05 to ZORDERS05 and enhanced it with two new custom segments with the fields from VA42 screen(table-VEDA, FBPA).
ORDERS message type is assigned with the FM IDOC_OUTPUT_ORDERS with BUS2032.
When I assign the output type KO00 in the Extras->Output->Header->Edit and save the transaction, an IDOC should be generated.
Actually, now the standard IDOC gets generated with the old segments, so I need to write the logic to assign the custom segments to the data record.
I tried using the user exit/BADI - MM06E001, V45B0001 etc.
I checked keeping the break-point in function module IDOC_OUTPUT_ORDERS assigned to the message type.
But it does not stop at the breaking point.
Could anyone sugest me which user exit or BADI should be used exactly to pass these custom segments.