cancel
Showing results for 
Search instead for 
Did you mean: 

Object Status (STAT) in run time environment for VA01and VA02

Former Member
0 Kudos

Hi Guru's,

I need to find the object status(STAT) in run time environment (active/inactive) for the respective Object number at item levels(OBJNR) in a user exit for transaction VA01 and VA02 to get the result of legal check as u201CCompliantu201D or u201CNon-compliantu201D sales order.

Tnanx

Sanjit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try to use SAP FM to retrieve current object status (all statuses, then you can check if inactive flag is set for your status)

NOTE: status text is stored in tj30t, field TXT04. (you may also select from jest table, but I would try to get it from buffer first)

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'.

Former Member
0 Kudos

Problem Solved.

Answers (0)