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

BTE - Pricing Condition maintenance

Former Member
0 Likes
2,989

Hi All,

I need to add a warning message in VK12 whenever the user tries to use VK12 to change a particular condition type. I could not find any exits/BADI's for this and was hoping to use BTE. How do I find the event that get triggered when a user tries to enter the change transaction. I think it is one of the following that I need to use:

00503301 Update conditions (usage A)

00503302 Update conditions (general)

00503303 Maintain conditions: Transfers

00503305 Maintain conditions: Field check

00503306 Maintain conditions: Text determination

00503307 Maintain conditions: Default condition

00503308 Maintain conditions: Default condition

00503309 Update Conditions (usage N)

00503310 Update Agreements

00503311 Update Conditions (Usage D)

Is there a method to find which event is triggered due to a particular action. Also once I find a event I guess I need to use FIBF to assign the FM to the event. In FIBF when I am not able to find the component SD-MD-CM from the "Identification menu". Do I need to add this?

Thanks in advance.

Hari.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,638

Hi,

You can use BTE to validate in VK12. We have used 00503305 for this purpose. The actual logic in implemented in a Z function module, which is a copy of the sample FM - in this case SAMPLE_INTERFACE_00503305.

The new Z-function module is added to transaction FIBF in :

Settings - P/S function modules - of an SAP application. Enter a new record with 00503305 and your new FM.

The FM imports condition data in e.g. KOMG_I and KONP_I which you can check and issue normal messages.

E.g. :

if konp_i-kschl = 'ZXXXX' and

fieldname = 'ZYYYYY'.

message w022(zXXX). "

exit.

endif.

See even OSS note 184510 for general advise regarding BTE

Hi All,

I need to add a warning message in VK12 whenever the user tries to use VK12 to change a particular condition type. I could not find any exits/BADI's for this and was hoping to use BTE. How do I find the event that get triggered when a user tries to enter the change transaction. I think it is one of the following that I need to use:

00503301 Update conditions (usage A)

00503302 Update conditions (general)

00503303 Maintain conditions: Transfers

00503305 Maintain conditions: Field check

00503306 Maintain conditions: Text determination

00503307 Maintain conditions: Default condition

00503308 Maintain conditions: Default condition

00503309 Update Conditions (usage N)

00503310 Update Agreements

00503311 Update Conditions (Usage D)

Is there a method to find which event is triggered due to a particular action. Also once I find a event I guess I need to use FIBF to assign the FM to the event. In FIBF when I am not able to find the component SD-MD-CM from the "Identification menu". Do I need to add this?

Thanks in advance.

Hari.

3 REPLIES 3
Read only

Former Member
0 Likes
1,639

Hi,

You can use BTE to validate in VK12. We have used 00503305 for this purpose. The actual logic in implemented in a Z function module, which is a copy of the sample FM - in this case SAMPLE_INTERFACE_00503305.

The new Z-function module is added to transaction FIBF in :

Settings - P/S function modules - of an SAP application. Enter a new record with 00503305 and your new FM.

The FM imports condition data in e.g. KOMG_I and KONP_I which you can check and issue normal messages.

E.g. :

if konp_i-kschl = 'ZXXXX' and

fieldname = 'ZYYYYY'.

message w022(zXXX). "

exit.

endif.

See even OSS note 184510 for general advise regarding BTE

Read only

0 Likes
1,638

Hi ,

Thanks for the reply. I tried using this but I am getting the message each time any field is changed. I could control it to some extent by specifying a condition like if field name = 'Headerfield name' but still I get a mesage each time I press an "enter" on the first screen. Is there any way around this?

Regards,

Hari.

Read only

0 Likes
1,638

Hi,

I think you can ensure that the message is handled by the standard handler like this :

if konp_i-kschl = 'Zxxx'

and fieldname = 'Zxxxxxx'.

returncode = 4.

message i000(38) with 'This is my message' .

endif.

If you need to ensure that it only appears on some screen I guess SY-DYNNR could be helpful. Even consider checking for SY-UCOMM