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

Enhancements & Modifications

Former Member
0 Likes
540

PROGRAM :MV45AFZZ .

IF IT IS HEADER CONDITION.

FORM USEREXIT_PRICING_PREPARE_TKOMK

MOVE ( CREATED FIELD NAME ) TO TKOMK-( CREATED FIELD NAME)

FOR LINE ITEM USE

FORM USEREXIT_PRICING_PREPARE_TKOMP.

MOVE (CREATED FIELD NAME ) TO TKOMP-(CREATED FIELD NAME)

ABOVE IS THE USER EXIT REQUIREMENT.

I HAD CREATED FIELD MAGRV.

HOW I WILL ADD MAGRV FIELD FOR MY REQUIREMENT.

SPECIFY ME THE WAY.

PROGRAM :MV45AFZZ .

IF IT IS HEADER CONDITION.

FORM USEREXIT_PRICING_PREPARE_TKOMK

MOVE ( CREATED FIELD NAME ) TO TKOMK-( CREATED FIELD NAME)

FOR LINE ITEM USE

FORM USEREXIT_PRICING_PREPARE_TKOMP.

MOVE (CREATED FIELD NAME ) TO TKOMP-(CREATED FIELD NAME)

ABOVE IS THE USER EXIT REQUIREMENT.

I HAD CREATED FIELD MAGRV.

HOW I WILL ADD MAGRV FIELD FOR MY REQUIREMENT.

SPECIFY ME THE WAY.

2 REPLIES 2
Read only

Former Member
0 Likes
502

Hi ,

For header code in :

FORM USEREXIT_MOVE_FIELD_TO_VBAK.

For item code in:

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

Both in include MV45AFZZ

Reward points if usefull......

Read only

Former Member
0 Likes
502

Hi Venkat,

First thing is for first form....

FORM <b>USEREXIT_PRICING_PREPARE_TKOMK</b>

Structure TKOMK has been declared in the program refering to structure KOMK....

For creating any field you have to append your field in KOMK structure.....

<b>for eg</b>... If you want to add "Commission Agent" and pass value in that through the above user exit then first you have to create "<b>APPEND STRUCTURE</b>" for commission agent.... in the structure <b>KOMK</b>.....

once you have done this then you can get data by select query to pass in the field which you have appended in <b>KOMK</b> structure as ....

Move (appended field in the structure) to <b>TKOMK</b>-( appended field in the structure)

Take for example if you append your specified field (<b>MAGRV)</b> in structure then you can move as above.. the field should available in <b>KOMK</b> structure then only you can pass value in that....

<b><u>Note</u> : appended field should be strart with ZZ....name...</b>

For Second form.....

FORM <b>USEREXIT_PRICING_PREPARE_TKOMP</b>.

here the structure to append field is <b>KOMP</b>....

Every thing is same as above userexit for this user exit.

If <b>any other query please let me know</b>......

Reward points.....this will resolve your query......

Cheers,

Sagun Desai....