Application Development 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: 

Changing the data in IDOC segment

Former Member
0 Kudos

HI Guru's,

I am working on an user exit, through which I need to change the data in segment data.

The segment name is E1IDKU2. In this I am having three fields. I want to change the second

field data. the exit function module name is EXIT_SAPLIEDP_001. Can any body help me how to

do this.

IF SEGMENT_NAME = 'E1IDKU2'.

IF THE FIELD NAME IS 'BUSFUN' THEN I WANT TO CHANGE THE DATA of this field.

can any body help me with some sample data for this

Thanks,

Deepak.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Deepak

Do following:

data: wa_E1IDKU2 type E1IDKU2.

loop at EDIDD_TABLE where segnam = 'E1IDKU2'.

wa_E1IDKU2 = EDIDD_TABLE-SDATA.

modify data in wa_E1IDKU2 as per ur requirement.

EDIDD_TABLE-SDATA = wa_E1IDKU2.

modify EDIDD_TABLE.

endloop.

Thanks

Amol Lohade

Edited by: Amol Lohade on Sep 5, 2008 10:28 AM

Edited by: Amol Lohade on Sep 5, 2008 10:29 AM

2 REPLIES 2

Former Member
0 Kudos

Deepak

Do following:

data: wa_E1IDKU2 type E1IDKU2.

loop at EDIDD_TABLE where segnam = 'E1IDKU2'.

wa_E1IDKU2 = EDIDD_TABLE-SDATA.

modify data in wa_E1IDKU2 as per ur requirement.

EDIDD_TABLE-SDATA = wa_E1IDKU2.

modify EDIDD_TABLE.

endloop.

Thanks

Amol Lohade

Edited by: Amol Lohade on Sep 5, 2008 10:28 AM

Edited by: Amol Lohade on Sep 5, 2008 10:29 AM

Former Member
0 Kudos

DATA: WA_E1IDKU2 TYPE E1IDKU2.

IF SEGMENT_NAME = 'E1IDKU2'.

MOVE SEGMENT_DATA-SDATA TO WA_E1IDKU2.
*Change the value E1IDKU2-BUSFUN.

ENDIF.