Application Development 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: 

user exit

Former Member
0 Kudos

The standard field KOMV-KSTEU tracks any manual changes to a line item (condition type) in the pricing screen. The program needs to loop through all the pricing conditions for a line item (table KOMV), if for one of the pricing conditions the field Condition Control (KOMV-KSTEU) has a value of ‘C’ then the user needs to be prompted to enter a ‘Price Adjustment Code’.

This Price Adjustment Code needs to be stored in a new field in table VBAP (ZZPRIADJ) and displayed on the ‘Additional Data B’ screen.

The possible values that the user can enter as a Price Adjustment Code needs to be stored in a ‘configuration’ table. The details of the fields in this configuration table are specified below.

can u tell me how to code for this

2 REPLIES 2

Former Member
0 Kudos

Hi

USe the Std exit Program SAPMV45A include MV45AFZZ of Sales order

to populate the custom field VBAP (ZZPRIADJ) after fetching the values from configuration table.

write the code in the form of the program:

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

To write the code related to pricing fields using KOMV etc

use the forms

FORM USEREXIT_PRICING_PREPARE_TKOMK.

FORM USEREXIT_PRICING_PREPARE_TKOMP.

Reward points if useful

Regards

Anji

former_member404244
Active Contributor
0 Kudos

Hi,

Firts of all u need the access key inorder to place the field in the additional data B screen.u need to add the field in the table VBAP by append structure method.

Now in the PAI of the sub screen u need to write the logic...

loop at i_komv.

if i_komv-ksteu = 'C'.

move the value to VBAP-ZZPRIADJ.

endif.

endloop.

Regards,

Nagaraj