03-11-2009 11:30 AM
Please use a more informative subject in future
Hi,
I create a zsegment (ZE1EDP01) with 4 fields from VBDPR table.I enhanced Standard Idoc(Order05) and added this segment.Now I have to write a code in User Exit, in order make the flow data from VBDPR table to my zsegment fields using ED1DD-SDATA.
1. How to know the position in sdata?
2. As I am not an abapper, please let me know the basic steps to write this code?
Thanks & Regards,
Pragathi.
Edited by: Matt on Mar 11, 2009 1:22 PM
03-11-2009 12:00 PM
Hi ,
with in user-exit ,
deaclare workarea like Zsegment.
then move it to sdata .
data: w_sem type zsegment.
w_sem-f1 = 'xxxx'.
w_sem-f2 = 'sss'.
move w_sem to ED1DD-SDATA.
modify ED1DD.
Revert back if any issues,
Regards,
Naveen
03-11-2009 12:00 PM
Hi ,
with in user-exit ,
deaclare workarea like Zsegment.
then move it to sdata .
data: w_sem type zsegment.
w_sem-f1 = 'xxxx'.
w_sem-f2 = 'sss'.
move w_sem to ED1DD-SDATA.
modify ED1DD.
Revert back if any issues,
Regards,
Naveen
03-11-2009 12:07 PM
Hi Naveen,
Thank you for the response.
ED1DD ia a structure right, so it wont hold any values, then what is the need to move the values to SDATA?
Thanks & Regards,
Pragathi.
03-11-2009 12:15 PM
if u check at runtime in debug like this EDDID[] u'll see that this structure contains data too, just like an internal table.
кu03B1ятu03B9к
03-11-2009 12:25 PM
Hi Pragathi,
check in debug mode as Karthik said.
ED1DD will; be declared as internal table.
regards,
Naveen
03-11-2009 12:23 PM