‎2006 Nov 30 9:47 AM
Hello Everyone,
I am excuting one userexit USEREXIT_MOVE_FIELD_TO_VBEP in std prog MV45AFZZ .
wherein i have written following code...
IF VBAK-BSARK = 'ZG01' AND VBAK-SUBMI = 'O_L_O2DL' .
VBEP-ETTYP = 'CN'.
ENDIF.
but still the value of CP field is not change to CN after execution of transaction VA01.
please suggest ur valuable suggestions!
points will be rewarded...
Thanks!
Sonal
‎2006 Nov 30 9:53 AM
Hello Sonal
Please check that the Scheule Line Category 'CN' is defined for the item category you are changing.
Item Category - VBAP-PSTYV.
Schedule Line Category - VBEP-ETTYP.
You can this via table: TVEPZ. or via transaction: VOV5.
Kind Regards
Eswar
‎2006 Nov 30 10:56 AM
Hi Eswar,
can you tell me solution for this in detail as i am not getting that how to code for this in user exit or do we need to do any customisation.
Thanks!
Sonal
‎2006 Nov 30 11:45 AM
Proceed as below:
1. In VA01 transaction after entering the item,check the item category(PSTYV).
2. Now with this item category value, check the corresponding entry in transaction VOV5 has value 'CN' for the permitted scheule line categories. If you do not have authorization, you can check the same in table TVEPZ.
Only if CN is available in this combination then you can change the schedule line category.
Alternatively, you can manually try to change the schedule line category in VA01 via menupath: Goto->Item->Schedule Lines. Here try to change the schedule line category to CN, if it permits then you can do the same via userexit. If not, you have to ask your functional consultant to assign scheule line category CN to the item category.
Kind Regards
Eswar