cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with KOMP field in Billing for Pricing

Former Member
0 Kudos

Dear Gurus,

I am using the field MVKE-MTPOS (Item Cat Group) as part of my access sequence to determine the price.

During the creation of the sales order the value is getting populated and the correct condition record is picked.

However during the Invoice creation the field KOMP-MTPOS is blank and the condition record is not being picked.

On Analysis I see the message "Field is not initialized".

Do I need to change / populate this field in the RV60AFZZ program during the invoice generation.

Pl. advice.

Thanks,

Sunny

Accepted Solutions (1)

Accepted Solutions (1)

jpfriends079
Active Contributor
0 Kudos

As per my understanding Item Cat group is not field that is part of std KOMP field catalog. And seems like you have append that same to pricing item structure. But, to fetch value you have to write code with desired logic in userexit USEREXIT_PRICING_PREPARE_TKOMP for the relevant include.

Thanks, JP

Former Member
0 Kudos

Thanks JP for your inputs..

My scenario is such that there are Goods / Services that are being offered by the client and they have different Tax Code for the VAT / CST conditions.. For me to be able to identify which type of material is being used in the order I have used the Item Cat Group in my Access Seq..

Pls. advice if this is the right approach.

former_member182805
Active Participant
0 Kudos

Why not use material group or material number as a key field? These fields are already part of the standard field catalog.

Anyways, after adding the field Item category group, you have to create a condition table with this field.

Then create an access sequence with this new condition table. Double click on the condition table and go to fields. Once you go into the fields of the condition table, go back and save. This will initialize the field.

In the copy controls from delivery to billing, check the pricing field. Ensure that no new pricing is carries out and prices and taxes are copied unchanged. (assuming that this is your requirement)

Let me know if it works

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks All.. I have written the code in "USEREXIT_PRICING_PREPARE_TKOMP " and it is not working.

jpfriends079
Active Contributor
0 Kudos

Can you share the code written to fetch the relevant value?

Thanks, JP

Former Member
0 Kudos

Hi Sunny,

In KOMP Structure,

Material Number - MATNR and Plant - WERKS are availble,

Check VBRK has any enteries...like VKORG and VTWEG.if not available fetch AUBEL (Sales Document) From KOMP at the Time of invoice creation, with that from VBAK fetch VKORG and VTWEG.

Pass MATNR,VKORG and VTWEG to MVKE and fetch MTPOS. and store it in KOMP-MTPOS(or to MTPOS...which you added)....Just try this.

if it works...then ok...

Regards,

Vairavan.

Former Member
0 Kudos

Thanks Vairavan. I will try this out.

Can you advice if this approach of identifying the different type of materials is the correct approach. Is there any other way to differentiate between service and goods being sold.

My intention is to reduce the maintenance activity in the later run.

Former Member
0 Kudos

Hi Sunny,

If you would like to have different G/L for Services and goods...then try this...

Include ITEM Category into field catalog and with that you can determine G/L....for TAN 1 G/L and for TAS 1 G/L.....

Hope it helps.

Regards,

Vairavan.

former_member182805
Active Participant
0 Kudos

You can use material type - services and goods have different material types. Also, material type is a standard SAP field - you will not have to add another field to the field catalog

Former Member
0 Kudos

refer to Thread:  http://scn.sap.com/thread/1912691