2008 Apr 08 10:07 AM
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.
2008 Apr 08 12:24 PM
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.
2008 Apr 08 12:24 PM
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.
2008 Apr 08 1:10 PM
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.
2008 Apr 08 1:28 PM
2008 Apr 08 2:42 PM
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.