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: 

idoc function module problem

Former Member
0 Kudos

Hi all,

I have a idoc. In this Idoc i need to populate a segment which is not populated previously if it satisfies the selection criteria.

For this i have to write a function module and this function module should check theselction and populate this field in Idoc.

Can anyone help me in doing this.

<REMOVED BY MODERATOR>

Regards,

Saroja.

Edited by: Alvaro Tejada Galindo on Jan 31, 2008 11:28 AM

3 REPLIES 3

former_member589029
Active Contributor
0 Kudos

You can hook into a user exit in the IDOC and directly populate the segments at the time the IDOC is created or processed.

The process and user exit to use depends on:

- what IDOC are you using

- is it inbound or outbound

- what are the criteria for the population of the segment

Hope that helps,

Michael

Former Member
0 Kudos

In case you are using SAP standard FM to populate IDOC segments

then you've to write your code in userexit...

If you are already at this stage and ready to write code to populate extra segment depending up on selection criteria then let us know where you struck by that we can guide you further..

0 Kudos

This is FI related.

and the function module I have created should be attached to a BTE process.

This is a outbound idoc