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: 

Sending IDocs if a particular condition is fullfilled.

Former Member
0 Kudos
124

Dear Friends,

I hav a requirement where i need to send a IDoc a system whenever there ia SalesOrder generated with a the NET VALUE greater then 10,000.

Dear friends.....Pls help me in solving this issue ,and pls give me a detail step by step procedure to do this...

Waiting for ur replies,

Simraan.

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos
107

Maybe it would be best for you to create a report which can be scheduled in background. Basically, this reports runs every day and checks all salesorders generated that day which have a Net Value >10,000.

Put all your sales orders in an internal table and create an Idoc for it. There is a standard function module 'MASTER_IDOC_DISTRIBUTE' which you can use to send IDocs. However, there will also be a function module specifically for sending sales orders. Look for something like: MASTER_IDOCSALESDISTRIBUTE* or at least something like it.

Find out what the basic idoc type is for a sales order in transaction WE30, use F4 help (else search SDN).

Displaying the basic type will give you the exact structure of the Idoc to be filled.

Search on SDN for some reports for filling the IDoc, loads of stuff around on SDN.

Good luck.

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos
108

Maybe it would be best for you to create a report which can be scheduled in background. Basically, this reports runs every day and checks all salesorders generated that day which have a Net Value >10,000.

Put all your sales orders in an internal table and create an Idoc for it. There is a standard function module 'MASTER_IDOC_DISTRIBUTE' which you can use to send IDocs. However, there will also be a function module specifically for sending sales orders. Look for something like: MASTER_IDOCSALESDISTRIBUTE* or at least something like it.

Find out what the basic idoc type is for a sales order in transaction WE30, use F4 help (else search SDN).

Displaying the basic type will give you the exact structure of the Idoc to be filled.

Search on SDN for some reports for filling the IDoc, loads of stuff around on SDN.

Good luck.

Former Member
0 Kudos
107

thx a lot micky,,

i was waiting for this reply from along......

......if u have some stuff with u...pls provide me here...

thx alot...

waiting for ur replies....

simraan.

Former Member
0 Kudos
107

Micky ....good idea...

100 points to you...

Sm1tje
Active Contributor
0 Kudos
107

Well, unfortunately I don't have an SAP system I can access right now, or else I would have given you some sample code. Sorry, and the way it looks right now, I will have access to a system at the earliest on monday. So I'm not quite sure if this is too late for you or not??

But as I said before, there are a lot of sample programs around on SDN, this will probably be faster.

Anyway, as soon as I have access to a system I'll try and provide you with some code and post it.