12-03-2009 5:32 PM
I need to change an include program for condition gropu field the value as "chargeable repairs" with item category 9100 and it will trigger the item category to determine the chargeable item category.
I coded the program but my problem is that i need to test it with some test data given by client but i really don't know how to proceed further to test it.
Pleae help me solving this issue. Po1nts will be rewarded.
Total Questions: 25 (21 unresolved)
Moderator message - it doesn't seem likely, does it?
Thanks,
Sirisha
Edited by: Rob Burbank on Dec 3, 2009 4:01 PM
12-03-2009 5:49 PM
Hi,
You need to find out the process that triggers your include program. Is that a sales order creation or delivery or billing document?
Run the transaction accordingly.
Regards
Prasenjit
12-03-2009 5:49 PM
Hi,
You need to find out the process that triggers your include program. Is that a sales order creation or delivery or billing document?
Run the transaction accordingly.
Regards
Prasenjit
12-03-2009 6:02 PM
It is sales order.Please suggest me step by step how to see the triggering of the item category.
Thank you,
Sirisha
12-03-2009 6:11 PM
Hi,
Go to VA01, enter the order type, sales org data, customer, item details and you should see the changes.
I believe you already have all these data. If not you'd have to ask your client for that.
Regards
Prasenjit
12-03-2009 6:24 PM
You mean we need to create a sales order using these data so that this include program will get triggered..
Thanks,
Sirisha
12-03-2009 6:42 PM
Yes, Item category gets determined when you enter an item to a sales order. It can be create or change. Did you try it?
Regards
Prasenjit
12-03-2009 6:59 PM
Client has given me the order as 5027118 which is already created one and told me to have a look.
When i checked in va03 - display sales order, it already exists.
Is it necessary that i need to create an order for this include program to get triggered?
I don't have any of thoes data which you told me but i have sales order that too created one given by client.
Thank you,
Sirisha
12-03-2009 7:03 PM
When i'm trying to change the order - 5027118 i am getting an error message : Process the original document in the CRM system
--Sirisha
12-03-2009 7:15 PM
Well, that means the order was created in CRM and then was replicated to ECC. You cannot change the order is ECC after it is replicated. Its standard SAP.
I guess you need to talk to your client about it. Find out under what circumstances the order can be changed. Or ask them to give an SO that can be changed in ECC.
Regards
Prasenjit
12-03-2009 7:39 PM
Also when i'm trying to create the order with all the details in VA03 with order 5027118, i'm getting an error message that :
Copying from sales doc. type ZSD to ZSD is not supported.
12-03-2009 7:46 PM
Hi,
Are you creating the order with reference to your order 5027118? You directly enter the values on screen, if thats permitted. I guess you do not have copy control settings for ZSD to ZSD.
Or you may use order type as OR, the standard order type.
Regards
Prasenjit
12-03-2009 8:40 PM
Yes, i was trying to create an order with reference to the order 5027118 given by client , but it is not allowing me to create new order nor allowing me to copy the existing one as you know.
So, as per your suggestion , i have created an order with order type 'OR'.
It asked me the order type , sales org.,distribution channel, division then sold-to-party,ship-to-party,purchase order no.
I gave all these details and saved and now where to see whether the program is triggered or not?
I didn't find any changes or is it i need to give some data?
Plz help..
--Sirisha
12-03-2009 8:48 PM
Try to set a break-point in your include program to see if that is getting triggered.
Regards
Prasenjit
12-04-2009 8:11 PM
Hi,
I can able to set the break point but when i'm trying to debug it i'm getting info that it is not executable program.
As per your suggestion i also send an email to my client for SO that can be changed in ECC becoz its been replicated from CRM System.
So once i get the correct SO from client then plz let me know how to know item category is triggered by this include program.
Means the process of triggering the include program.
Thanks
--Sirisha
12-04-2009 8:22 PM
Sirisha,
You cannot execute an include program (TYPE I), you can only execute an executable report program (TYPE 1). If you want the break-point to get triggered you need to follow the process to change the sales order item details like add/update/delete items. Then the break-point gets triggered and you can see the debugger.
Now if the break-point does not get triggered then you need to re-check your process if this is the correct include you are changing/enhancing.
Regards
Prasenjit
12-04-2009 8:32 PM
So shall we wait and see till the clinet gives the correct test data(so) and then proceed further.
12-07-2009 1:40 PM
Hi Prasanjith,
He is saying that there is a table entry that needs to be made in both CRM and ECC that will allow him to change certain documents that were created in the other system. The only problem is that he can't make the change.
In CRM the table is SMOFPARSFA and the key is R3A_SALES. The sale parameters need to be set up just like the KN entry, except the new entry will use ZSD instead of KN.
In ECC the table is CRMPAROLTP and the key is CRM_SCENARIO.
He says that he already have this set up in QAS. He is not sure who actually maintained the tale. And he is hoping a developer can do that.
Here is the link where I found the information:
http://help.sap.com/saphelp_crm70/helpdata/EN/fe/8de7ed622e114794e21f79892b7e85/frameset.htm
Thanks,
Sirisha.
12-07-2009 5:32 PM
Hi,
Did you check the table entries yourself in your ECC system? I also checked the link that you sent. It says if you change your sales order in ECC then it is not transfered back to CRM again. Is that a valid scenario for your case?
You also need to check the entries in the table CRMPAROLTP as per the link.
However, I do not understand what functionality you are trying to achieve by modifying the standard include. Does it get triggered when the Sales Order is replicated to ECC? Or do you want to update the order in ECC and redetermine the item category?
Regards
Prasenjit
12-07-2009 8:56 PM
I don't know whether it is triggered or not becoz when i'm trying to create a sales order its not allowing me to create the new one nor its allowing me to change the existing one.
I don't know what to do with those tables and entries.
But the requirement is When variant configuration is used, you cannot change the item category of the main line item. This poses an issue for them as they do pricing at the main line item. To combat this for their DSView software Include ZZ_USEREXIT_MOVE_FIELD_TO_VBKD was created to allow them to use the Condition 1 field on the order to trigger a change to a different item category which made the product free of charge. They now need to do this for chargeable repairs.
The current code for DSView allows them to change Condition Group 1 to F for Free Goods. This changes the Item Category Usage to value 9100. Item category determination then takes over and determines the free of charge item category. If the Condition Group 1 field is changed back to Not Applicable, then the item category changes back to what it was.
What they need is for the same type of thing to happen when the Condition Group 1 field is change to vale CR. The Item Category Usage will change to 9100 which will trigger the item category to determine the chargeable item category.
This should be accomplished by amending the current include ZZ_USEREXIT_MOVE_FIELD_TO_VBKD.
This is the requirement
Please help me in solving this issue.
12-08-2009 12:04 AM
Hi Prasanjith,
In ECC the table is CRMPAROLTP and the key is CRM_SCENARIO.
The sale parameters need to be set up just like the KN entry, except the new entry will use ZSD instead of KN.
So i checked the the table CRMPAROLTP and the key(Parameter Name) is there as CRM_SCENARIO with parameter name3 as KN.
I think we need to change that entry from KN to ZSD.
Then we can process the order that will trigger this INCLUDE program.
Is my assumption right.Please let me know.
Thanks,
Sirisha
12-08-2009 12:29 AM
Hi,
I think you can create a new entry to that table. Create an entry and then try to change the order.
Regards
Prasenjit
12-10-2009 10:45 AM
Hi Prasnjith,
As per the discussions long back regarding Chargeable repairs for user exit , client has given me the SO : 5027118 which is now processing in ECC system as well.
Now i want to process this order by changing some data in this order.
As per the functional spec the current code for DSView allows them to change Condition Group 1 to F for Free Goods. This changes the Item Category Usage to value 9100. Item category determination then takes over and determines the free of charge item category. If the Condition Group 1 field is changed back to Not Applicable, then the item category changes back to what it was.
What they need is for the same type of thing to happen when the Condition Group 1 field is change to vale CR. The Item Category Usage will change to 9100 which will trigger the item category to determine the chargeable item category.
Currentyl they have items has 10, 11, 12, 13, 14 and item category for each item as ZLKL, ZCKL, ZCKL, ZCKL, ZCKL
and condition group 1 as Not applicable for all the items.
So i changed the condition group1 value from Not applicable to Free goods and saved.
As you told it immediately triggered the useexit and it is changed to Free goods.
Now i have to change the condition group1 value back to Not applicable and when i'm trying to change it it is not changing back.
Plz help me and also plz help me in solving this issue.
Thank you,
Sirisha
12-10-2009 2:45 PM
Prasnjith,,
Now the processing of SO is working fine after the settings in the tables.
One more doubt?
In the transaction(VA02) i can see that the value for condition group 1 field as :
F Free Goods
Not applicable
02 Renewal cap 15%
04 Renewal cap 17.5%
03 VSOE Doc Override.
but i didn't find the value for CR Chargeable Repairs in Dev.
Is it to be configured in the Dev?
Please let me know.
Thank you,
Suman