cancel
Showing results for 
Search instead for 
Did you mean: 

Reading runtime header data (status) in VA02

Former Member
0 Kudos

Hi all,

I'm currently working in MV45AFZZ, attempting to pick up changes to statuses in VA02 (sales order header).

In this instance, some Sales Orders may be changed from 'Created' to 'QA To View'.

This data is easy to pick up once the changes are saved, but I'd like to get the new/selected status before the document is saved. I can pick up other data from global tables in the debugger, such as XVBAK and XKOMV, but I can't seem to find where status selection is stored.

All I need is to detect the newly selected status field when/before the user hits Save.

I've attempted to pick this up in both USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT.

Thanks in advance,

Sam

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor

If your requirement is 'pick up changes', you should call STATUS_CHANGES_GET to get a list of status that actually change.

Former Member
0 Kudos

Cheers Raymond - this gave me exactly what I was looking for!

Sam

Answers (1)

Answers (1)

Former Member

Hi Sam,

Use function module "STATUS_READ".

Regards,

Alex