05-08-2007 1:08 PM
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
05-08-2007 1:16 PM
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
05-08-2007 1:21 PM
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