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

VOFM - transaction

Former Member
0 Likes
1,018

Hi friends,

I am new to ABAP Programing. I wanted to know about

What is VOFM?

where & when it is implemented?

& a small sample code to know the actual process which take palce.

Please i am really in need of that,please help me to know the basic stuff about this Transaction VOFM.

Thanks in Advance.

Thanks&Regards

Rinky123

1 ACCEPTED SOLUTION
Read only

ananjun1
Explorer
0 Likes
885

Rinky,

http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm

As you can see from the help link, VOFM is particularly useful for sales orders, deliveries, billing documents. You can create custom routines (which need to be configured to your pricing condition types or whatever the case may be). These routines could do a variety of different things, basically act like a user exit. When you save the routine entry in VOFM, it generates a program.

Here is a (highly toned down) sample of the code I did to change the pricing amount under certain business conditions:

(This was done for a sample routine# 910 for Billing. The condition value variable 'xkwert' is being changed which reflects the changed amount back in the billing transaction. The number 910 is what is configurable i.e. its just used as an example here)


form frm_kondi_wert_910.

* This is where you can write your custom code to change xkwert
  
  data: v_itemperc like gkomv-kwert.

  check komk-vbtyp ca vbtyp_fakt.

  v_itemperc = ( komp-mgame * konv-kwert ) / 20.

  xkwert     = v_itemperc.

endform.

The above code resided in a program RV64A910 which was generated automatically for the routine. As you can see, the routine number becomes part of the program name.

Let us know if this was useful..

Thanks,

Anand

Hi friends,

I am new to ABAP Programing. I wanted to know about

What is VOFM?

where & when it is implemented?

& a small sample code to know the actual process which take palce.

Please i am really in need of that,please help me to know the basic stuff about this Transaction VOFM.

Thanks in Advance.

Thanks&Regards

Rinky123

4 REPLIES 4
Read only

Former Member
0 Likes
885

Rinky,

VOFM transaction is used for storing all the routines that we can use in configuration of Sales and distribution module.

SAP supplies all the required routines as per the SAP standard Configuration, but if we need any changes as per the customer business requirements, we can copy these routines and modify them as per the requirements.

After modifying it we can use them in config.

Check the following link for more info.

http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm

Thanks

Giridhar

Read only

Former Member
0 Likes
885

Rinky,

Welcome to SDN!!!!!

VOFM is the transaction used to maintain requirements and Formulas in SD.

Regards,

Kam

Read only

ananjun1
Explorer
0 Likes
886

Rinky,

http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm

As you can see from the help link, VOFM is particularly useful for sales orders, deliveries, billing documents. You can create custom routines (which need to be configured to your pricing condition types or whatever the case may be). These routines could do a variety of different things, basically act like a user exit. When you save the routine entry in VOFM, it generates a program.

Here is a (highly toned down) sample of the code I did to change the pricing amount under certain business conditions:

(This was done for a sample routine# 910 for Billing. The condition value variable 'xkwert' is being changed which reflects the changed amount back in the billing transaction. The number 910 is what is configurable i.e. its just used as an example here)


form frm_kondi_wert_910.

* This is where you can write your custom code to change xkwert
  
  data: v_itemperc like gkomv-kwert.

  check komk-vbtyp ca vbtyp_fakt.

  v_itemperc = ( komp-mgame * konv-kwert ) / 20.

  xkwert     = v_itemperc.

endform.

The above code resided in a program RV64A910 which was generated automatically for the routine. As you can see, the routine number becomes part of the program name.

Let us know if this was useful..

Thanks,

Anand

Read only

Former Member
0 Likes
885

Hi Anand,

It was very helpful posting on Vofm. I have one problem when i tried to create a custom routine VOFM->DATA TRANSFER-> ORDERS-> when i tried to create a custom routine numbered 910, it is asking for access key , do we need to have access key to create custom routine(i think this is nothing but Modifying VOFM--Just like user-exit)....and also will appreciate if provide steps to configure a routine for orders..

***points wil be rewarded..

Thank you

Ajay