cancel
Showing results for 
Search instead for 
Did you mean: 

Item category grey out and cannot change

Former Member
0 Kudos

I created an item category ZTAC with Structure scope= D. During sales order entry, the item category is grey out and cannot be changed.

Is there a way or any config to allow changes?

Regards

PSK

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member131745
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can check the changebility of the item category in program

MV45AFFE_FELDAUSWAHL_STATUS. SAP Note 208245 helps explain the logic.

In Form FELDAUSWAHL_VBAP-MATNR_SPEZ you encounter the following piece

of code that sets CH_SUBRC to 1, because of field TVAP-STRUM:

4 SAPMV45A FORM FELDAUSWAHL_VBAP-MATNR_SPEZ

3 SAPMV45A FORM FELDAUSWAHL_VBAP-MATNR

2 SAPMV45A FORM FELDAUSWAHL_STATUS

1 SAPMV45A MODULE (PBO) FELDAUSWAH

....

XVBAPF-VMENGE > 0 OR

XVBUP-FKSTA CA 'BC' OR

VBAP-PROSA EQ CHARC OR

TVAP-STRUM CN 'E ' OR <<<<< Here

start Revenue Recognition Project

no more changes after revenue is recognized

XVBUP-RRSTA CA 'BC' OR

end Revenue Recognition Project

VBAP-ANZSN > 0 OR

VBAP-VKGRU = VKGRU_DYN_POSTEN OR

VBAP-VKGRU = VKGRU_DYN_POSTEN_AG OR

( VBAP-KZVBR NE SPACE AND NOT

( VBAP-KZVBR EQ KZVBR_P AND VBAP-PS_PSP_PNR IS INITIAL ) AND

XVBUP-UPDKZ NE UPDKZ_NEW ) OR

( not VBAP-KALNR is initial AND

XVBUP-UPDKZ NE UPDKZ_NEW ).

CH_SUBRC = 1. <<<<< Here

EXIT.

....

Because TVAP-STRUM is equal to 'D' and CH_SUBRC = 1 is causing

SCREEN-INPUT = 0 (not changeable) in the following piece of code:

2 SAPMV45A FORM FELDAUSWAHL_STATUS

1 SAPMV45A MODULE (PBO) FELDAUSWAHL

Main Program SAPMV45A

Source code of MV45AFFE_FELDAUSWAHL_STATUS

.....

when 'MATNR'.

perform feldauswahl_vbap-matnr changing sy-subrc.

if sy-subrc > 0.

screen-input = 0. <<<< Here

endif.

....

You may use USEREXIT_FIELD_MODIFICATION in MV45AFZZ to open this field

if needed. If you set SCREEN-INPUT to 1 when SCREEN-NAME = 'VBAP-PSTYV',

etc you will be able to enter the item category.

I hope this helps.

Gerard

Edited by: Gerard Magorrian on Oct 15, 2010 10:07 PM

Former Member
0 Kudos

Hi Gerard,

I was just working on the same issue and found your answer on this!

Thanks a lot!

Best Regards,

Paolina

Lakshmipathi
Active Contributor
0 Kudos

Yes in standard, for your item category if the structure scope is D, then system will not allow you to edit the same in sale order. If you want, you have to try with sale order exit but not sure, how far, this would be successful.

thanks

G. Lakshmipathi