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: 

Retrigger Sales order output when delivery status completed.

shaktiprasad_dash
Participant
0 Kudos

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

5 REPLIES 5

Jelena
Active Contributor
0 Kudos

Please clarify what research / analysis has been completed prior to posting this question.

0 Kudos

This message was moderated.

0 Kudos

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

Jelena
Active Contributor
0 Kudos

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?

Former Member
0 Kudos

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