‎2006 Aug 17 10:10 PM
Hi,
Added custom fields to idoc zdebmas02
and assign to message type debmas
now i want to populate values for this custom field, Please explain the process what function module should i do enhancement.
thhanks
‎2006 Aug 17 10:13 PM
In function MASTERIDOC_CREATE_DEBMAS you will find customer-function 001 after each segment is added to T_IDOC_DATA. Add your code in this exit.
‎2006 Aug 18 1:55 PM
i thought you copy DEBMAS02 into ZDEBMAS02 and add your segment. if did so, you can use standared functions.
use the customer exit '001' in MASTERIDOC_CREATE_DEBMAS.
this exit calls after each segment filled. example u add your Zsegment after E1KNBKM segment.
in your exit find out current processing segment, if it is E1KNBKM segmet add fill Zsegment and append t_idoc_data internal table.
if you donot use standard debmas02 idoc structure in ZDEBMAS02, you have to develop your own program.