on 10-14-2010 3:11 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
109 | |
15 | |
10 | |
5 | |
4 | |
3 | |
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.