Hi RK,
Please check , did you maintain the Message Number with Message Type in Customs Management >Communication Process > Classify Foreign Trade Documents. and then also check the Print Control for Foreign Trade documents.
hope that the issue pertains here with a wrong assignment , as i assume.
Thanks,
Srinivas Yellampalli