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

Function Module to save Sales Order status changes in custom table

Former Member
0 Likes
1,193

Experts,

I need to create a Function Module to save Sales Order status changes (Order Type & Order Status) in custom table. Could someone pl. guide me how to go about it?

4 REPLIES 4
Read only

Former Member
0 Likes
768

when do u want to save that status

Read only

Former Member
0 Likes
768

hi,

use va450003 inthis EXIT_SAPMV45A_003

and function module

CALL FUNCTION 'ALM_ME_READ_USER_STATUS'

EXPORTING

OBJECT_NO = XVBAK-OBJNR

TABLES

USER_STATUS = I_USRSTAT

  • EXCEPTIONS

  • ERROR_READING_STATUS = 1

  • OTHERS = 2

.

u will get the status details...

rewrad points if useful..

Read only

Former Member
0 Likes
768

We want to capture:

AUGRU(Order reason (reason for the business transaction)

AUART(Sales Document Type)

for specific Order Types (web Orders) and generate output type which would trigger Z program to update the custom table when ever order status changes. Batch program would then read this Ztable and update external system using XI (ABAP proxy/ WSDL). Is this right approach? Can we configure Sales Oreder Output to trigger Z Program or FM?

Read only

Former Member
0 Likes
768

Duplicate post.

Rob