on 12-06-2006 1:29 PM
Hi,
How can a user status be controlled when a sales order is created??
Rgds
depending what is really required here.
I hope you define dstatus profile and assigned it properly in IMG.
If you want to set status in any of userexits - you can do it using the following code :
read status :
call function 'STATUS_BUFFER_EXPORT_TO_MEMORY'
exporting
i_memory_id = 'BSVA_VBK_STATUS'
exceptions
others = 1.
No need to check the return code
Retrieve the user status internal table from memory
import jest_buf to jest_mem
from memory id 'BSVA_VBK_STATUS'.
free memory id 'BSVA_VBK_STATUS'.
Check that the internal table jest_mem is filled
if not jest_mem[] is initial.
....
change stauts here,
then call FM
call function 'STATUS_CHANGE_EXTERN'
exporting
client = sy-mandt
objnr = vbak-objnr
user_status = tj30t-estat. <<< the status you want to change.
table tj30t contains a link between status number - tj30t-estat & status description tj30t-txt04, like 'FINR' shown in VA01,...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.