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

Sending IDocs if a particular condition is fullfilled.

Former Member
0 Likes
499

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
Read only

Sm1tje
Active Contributor
0 Likes
482

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
Read only

Sm1tje
Active Contributor
0 Likes
483

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.

Read only

Former Member
0 Likes
482

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.

Read only

Former Member
0 Likes
482

Micky ....good idea...

100 points to you...

Read only

Sm1tje
Active Contributor
0 Likes
482

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.