Hi Sri Ram
Have you checked exit EXIT_SAPLV56K_002 in enhancement V56K0001? This corresponds to customer function 002 in function module IDOC_OUTPUT_SHPMNT.
You can code logic based on which segment you are interested in, retrieve the ZZ fields and pass it to the unused fields in the segment, then modify the IDoc data table.
Rgds
Eng Swee