04-09-2013 11:22 AM
Hi Gurus,
I have a requirement to retrigger a preceding sales order output type when subsequent delivery status field is completed so please suggest any BAPIs, Programmes or Routines to retriger the order output ?
Thanks & Regards,
Shaktiprasad Dash
04-09-2013 7:17 PM
Please clarify what research / analysis has been completed prior to posting this question.
04-10-2013 9:56 AM
04-10-2013 10:41 AM
Hi,
I wanted to give the field name ( Overall status = Completed ) available in staus tab of order header to ABAPer to write custom code in Output routine which can trigger an output once the order status changed from open to completed.
But it is a structure VBSTT not a transperent table & client does not agree to fetch field values from VBUK table & field GBSTK (Over all status) as it has only value like Completely processed, Not yet processed, Partially processed, instead of open, being processed and completed.
So is there any difference between these 2 values & please suggest the table field to be given to RICEFW for creating a custom routine ?
Regards,
Shakti
04-10-2013 3:28 PM
Not sure what VBSTT has to do with anything... Status value for "completed" is C, the client must have been misinformed on this.
This is not the issue here though. How would you trigger the order output if it's the delivery updated, not the order? More importantly - why can't this be a delivery output?
04-10-2013 4:31 PM
Hi Shakti,
We can trigger the output type of a preceding sales order output type from a delivery document. This can be done using FM RV_MESSAGE_UPDATE_SINGLE and WFMC_MESSAGES_PROCESS. Please go through the below mentioned wiki link for the code snippet.
http://wiki.sdn.sap.com/wiki/display/ABAP/Process+Output+types+through+program
Use this code in a custom function module and call this custom function from the delivery user exit or BADI LE_SHP_DELIVERY_PROC.
Note:-FM "WFMC_MESSAGES_PROCESS" is having a inbuilt commit, so its better to use the custom function in update task in background.
Cheers
~Niranjan