01-06-2015 8:22 AM
Hello all,
i want to put the breakpoint into the RV_INVOICE_CREATE function module.
i searched REGIO field in to this function module, so i got the position for include OI_LV60AFOI_OIH_LIPS_TO_VBRP at 38th line regio field is trigger in to the RV_INVOICE _CREATE function module.
when i am checking on that time i am getting the "No framework program was found for include OI_LV60AFOI_OIH_LIPS_TO_VBRP" status message.
Can anyone please tell me how to put the breakpoint in to the perticlular include.
01-06-2015 8:40 AM
Hi Santhosh,
The reason behind this is the Include OI_LV60AFOI_OIH_LIPS_TO_VBRP is within the include OI_LV60AFOI. This inlude is present within the Enhancement OI0_COMMON_SAPLV60A which is switched off.
To put the break point at this point this Enhancement needs to be switched-on.
Hope this helps.
Regards,
Sireesha Ch
01-06-2015 8:40 AM
Hi Santhosh,
The reason behind this is the Include OI_LV60AFOI_OIH_LIPS_TO_VBRP is within the include OI_LV60AFOI. This inlude is present within the Enhancement OI0_COMMON_SAPLV60A which is switched off.
To put the break point at this point this Enhancement needs to be switched-on.
Hope this helps.
Regards,
Sireesha Ch
01-06-2015 9:12 AM
Hi Sireesha,
Thanks for your quick reply.
Can you please let me know how to do enhancement switch-on.
Regards,
Santhosh G
01-06-2015 9:26 AM
Hi Santhosh,
You can do it in the transaction SFW1.
You can find more info in the below link.
http://scn.sap.com/docs/DOC-18522
Regards,
Sireesha Ch
01-06-2015 9:26 AM
Hi Santhosh,
Go to Switch framework - Transaction - SFW1.
Use "Find" button and choose the switch mentioned in Enhancement (OI0_COMMON_DS in Search term).
Use the button for "Changing Selected" rows.
A screen appears at the bottom.
Give the package name of the enhancement (OI0_COMMON) either through Deatials/Create button.
and make the "Version" as "Active".
01-06-2015 11:21 AM
Hi Archana/sireesha,
Thanks for your reply.
i would like to inform you, in SFW1 transaction find button is in deactive mode so please find the attached screen shot for your reference.
Regards,
Santhosh G
01-06-2015 11:26 AM
Hi Santhosh,
You don't have authorization to edit the same. Consult your basis/security consultant to get authorization.
01-06-2015 11:37 AM
Hi Archana,
I would like to ask you, this enhancement is related with this enhancement.
my requirement is:
currently invoice split occures cause of the region field.
for example two deliveries that contain different regions will split because the regions are copied to the invoice header(VBRK).
If the field is cleared for invoice(in case of consolidated invoices), the split will no longer occur.
we want to prevent an invoice split based on this field.
Billing documents are creating using function module RV_INVOICE_CREATE. this function module is called from the billing document create transaction (VF01/SAPMV60A)and the billing due list (VF04/SDBILLDL).
To prevent a split, the fields that cause a split to occur can be modified within a data transfer routine to contain the same value.
You can create collective invoices based on several deliveries or also different sales orders or mixed up.
If the field region deviates (cause region is an Invoice Split Criteria) – a invoice split occurs.
==> If the region has no value than no invoice split occure.(this is also actual logic).
==> If the region has the same value than no invoice split occure (this is also the actual logic)
==> If the region has divergent values (source documents) than an invoice split takes place.(this is also the actual logic)
Our wishes in the future/after
==> No invoice split occure. the region is no split criteria any more.
Can you please give me an idea to find out the split occure in this function module.
Regards,
Santhosh G
01-06-2015 11:40 AM
Hi Archana,
Thanks for your valuable help and suggestion.
Regards,
Santhosh G
01-06-2015 11:35 AM
01-06-2015 11:39 AM
Dear Sijin,
No,I want to put the breakpoint into this function module so i stucked in to this enhancement.
Regards,
Santhosh G
01-06-2015 12:10 PM
Hi Santhosh,
The switch is off for this enhancement that means the code where you wanted to keep break-point will not be executed at all when this FM is run.
Regards,
Sireesha Ch
01-06-2015 12:27 PM
Hi Sireesha,
Thanks for your reply.
Means, if the enhancement is swithced off the code will not execute the enhancement right.
Regards,
Santhosh G
01-06-2015 12:41 PM
Yes that's correct. The enhancement will not be executed when it is switched off.
As I mentioned in my first reply, the reason behind the error in question i.e. not able to set the BP is due to the enhancement is switched off.
Regards,
Sireesha Ch
01-07-2015 7:22 AM
Thanks sireesha/all.
As per my reqirement it is not executing the region field as this enhancement means enhancement is swithched off.
Thanks for all yor quick replys and valuable help.
Regards,
Santhosh G