Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit.

vijay_b4
Active Contributor
0 Likes
612

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

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

5 REPLIES 5
Read only

Former Member
0 Likes
564

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

Read only

0 Likes
563

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.

Read only

0 Likes
563

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к

Read only

0 Likes
563

Hi Pragathi,

check in debug mode as Karthik said.

ED1DD will; be declared as internal table.

regards,

Naveen

Read only

matt
Active Contributor
0 Likes
563

Please use a more informative subject in future