cancel
Showing results for 
Search instead for 
Did you mean: 

Change indicator for sales orders

Former Member
0 Kudos

Hi All,

I would like to know when a change is done to a sales order (in VA02), in order to automatically change its status to the default.

Does SAP stores a flag that indicates whether the order was changed?

Thanks!

Amit

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I'm familiar with CDHDR and CDPOS tables, however, as you said the changes are tracked there after changing and saving the sales order or any other object. Furthermore, these tables are huge and are not recommended to read from.

I'm going to compare between YVBAK and XVBAK internal structures in SAPMV45A in order to recognize if there was any change.

By the way, I also found the indicators I was looking for:

updkz_old(1) VALUE ' ',

updkz_new(1) VALUE 'I',

updkz_update(1) VALUE 'U',

updkz_mark_del(1) VALUE 'd',

updkz_delete(1) VALUE 'D',

Thanks anyway everyone!

Former Member
0 Kudos

Dear All,

Thank you for all your answers, I really appreciate it.

Maybe I didn't explain my question clear enough. What I meant is how to recognize whether the sales order was changed before saving it.

I am looking for a flag which changes its status in a moment a change is done to the sales order.

Thanks!

Amit

Former Member
0 Kudos

Hi Amit

No such flag is set when a sales document is changed. The only way to recognise if a sales document was changed before saving after the first time it was created is to search for entries in CDHDR table. If there are entries then that means the sales order was changed before saving.

Thanks

Indranil

Former Member
0 Kudos

Hi Amit,

As per my knowledge, there is no such flag exist.

Only way is to search entries in table CDHDR or VA03 >> Environment >> Changes.

Both the above ways look in the same table.

Regards,

Mohit

Former Member
0 Kudos

Hello,

For the The Change sales order we need to have specific User Exit , we can use the MV54AFZZ,Can be used.

Thanks,

venkataswamy.y

Former Member
0 Kudos

Hi Amit,

Whenever any changes done to any object(eg. Sales Order, Material Master, Customer Master,etc.) in SAP, it is recorded in change document table CDHDR. This table records following important fields,

Object Value

Old Value

New Value

Change date

Time

Transaction(By which changes are done)

So you can find all the changes done to your sales order in this table.

Just Run SE16 >> Table CDHDR >> put your sales order no in field OBJECT VALUE and execute.

I hope this answers your question.

Regards,

Mohit

Former Member
0 Kudos

Dear,

It is store in structure. So better you found this in structure.

Structure Name : RVSCDCOM_ALV_SD

Field Name : INDTEXT

Regards,

Sandip