Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in user exit

Former Member
0 Likes
584

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

3 REPLIES 3
Read only

Former Member
0 Likes
457

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

Read only

0 Likes
457

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

Read only

0 Likes
457

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