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: 

Not able to view extended segment in user exit-CREMAS05

Former Member
0 Kudos

Hi all,

I have extended existing CREMAS05 idoc .When am trying to fill the data into this extended segment

using user_exit-EXIT_SAPLKD01_001 the segment ZE1LFA1M is not visible during debugging.

I will be thankful if somebody point out the error.

Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The segment is not pre-populated in the idoc when the user exit is hit, you have to explicitly append your Z segment to the idoc.

move wa_ZE1LFA1M to wa_edidd-sdata.
move 'ZE1LFA1M' to wa_edidd-segnam.
append wa_edidd to edidd.

Also remember, before you append, to check the CIMTYP ( Extension name ) is the same as the extension that you have created for the IDoc in T-code WE30.

regards,

Advait

2 REPLIES 2

Jelena
Active Contributor
0 Kudos

You need to activate your extension and you need to use the extended (Z...) IDoc type, not the standard one.

Former Member
0 Kudos

Hi,

The segment is not pre-populated in the idoc when the user exit is hit, you have to explicitly append your Z segment to the idoc.

move wa_ZE1LFA1M to wa_edidd-sdata.
move 'ZE1LFA1M' to wa_edidd-segnam.
append wa_edidd to edidd.

Also remember, before you append, to check the CIMTYP ( Extension name ) is the same as the extension that you have created for the IDoc in T-code WE30.

regards,

Advait