‎2009 Apr 21 6:38 AM
I need to make some changes in VDH1N when maintain certain customer hieararchy type. I could not find any user exit or BADI in program RV_CUSTOMER_HIERARCHY.
To work around, I copied this program to a Zxxx program and copied some include files like RVCHF0006, RVCHF055 to the Zyyy1, zyyy2 and make changes in the Zxxx program to include zyyy1, zyyy2. I tested and it works but I wonder is this the correct way because it is a pain to deal with when we upgrade.
Also in the include files, when I click on Edit->enhancement operation->show implicit enhancement option it showed that I can make an enhancement there. But I do not know all the steps to create the enhancement. Any help or suggestion is greatly appreciated
Thanks,
‎2009 Apr 21 6:41 AM
‎2009 Apr 21 2:12 PM
Thanks. It works. However the place that I can make enhancement is not exactly where I wanted. It seems like I have only 2 choices: At the beginning of the include and at the end of the include. What I really want is something in the midle. I am going to try and test to make sure that nothing else is effected by the enhancement. The link of enhancement instructions is excellen.
‎2009 Apr 21 11:07 AM
Hi,
It is better to create an enhancement than to copy the programs alongwith the includes.
To view the places where we can implement the enhancements, go to the program and click on the Enhance button (before the Syntax Check button) or press Shift + F4
Then Navigate to Edit -> Enhancement Operations -> Show Implicit Enhancement Options
You will be shown the places where Implicit Enhancement Options are present
There will be two such spots in this particular program u2013 One at the end of the result table definition and the
other at the end of the program.
To implement an enhancement option, right click in the orange area -> Enhancement Implementation ->
Create
Choose an enhancement name , give it a description and if needed a Composite
Enhancement Implementation name and press enter.
Save it as a local object or in a package.
Add your code in this enhancement and Follow the usual procedure of Syntax Check, Save and Activate.
You will have to make sure that the place where you are adding your code is the place where you need it.
Test your enhancement thoroughly.
Hope these points help.
Regards,
Anusha
‎2009 Apr 21 2:14 PM
‎2009 Apr 21 10:05 PM
I was able to apply enhancement implementation to skip authorization check for hierarchy 'X' when I assign new customer in the hierarchy. However I run into problem that I cannot delete the assignment
in include RVCHF042, I found only 2 implicit enhancement point at the beginning and end of the include.
I want to skip authorization check for certain hierarchy but this was not in the implicit enhancement point. It was in the midle of the routine.
The program first do some authorization check. if it pass the authorization check it will delete the hierarchy assignment, if it does not pass it will stop the program. I want it to skip authorization check but able to delete the hierarchy assignment? Is there work around? Thanks