Hi All,
As we know that’s business is growing up, so sometimes user request some information to be revealed within the reports. Somehow this case needs to add info object within Info Provider, but the info provider has already had huge data, so it needs a lot of time and resource to update/extract filling the new field.
The solutions for it, we can use virtual characteristic/key figure. Virtual characteristic itself means that the info object is within info provider, but it’s not filled up the data. even thought it’s not filled up the data, but report sill can show the corresponding data, due it will process to extract the data for that info object when query running.
Right now, i’m gonna deliver this virtual characteristic using BADI. Using BADI, we don’t have to care about transport request. Means, if our colleague is creating the virtual characteristic, we can also create our own virtual characteristic without must wait until he/she finish their job.
My case is:
For this case, I’m gonna map between Inquiry type and pocket.
Inquiry type => Pocket
TI => DP (Dopod)
PT => ET (Eten)
OT => HTC (HTC)
BT => KJ (K-Jam)
OL => OT (O2)
The Pocket is Virtual Characteristic
How to make it:
1. Prepare the Pocket IO (info-object) with master data (In order to fill the description).
2. Maintain it’s master data text.
3. Insert the IO Pocket to corresponding Info Provider.
4. Make it blank in the update rules.
5. Go tcode: se18
6. Choose for create for new, change for modification.
7. Define the info-provider, name, and description.
8. SAP has already had the template for it. You can use it.
9. There are 2 methods need to be modified, for initialize don’t have to be modified.
10. You need to add all info-object needed from corresponding info provider to it’s attributes.
11. Modify the define method, for definition area. .
*** Like zactvtyp ,,, the mode is read, because you only read the value from ODS. <point A>
*** zactvmpk,,, the mode is no selection (writting), because you’ll store some value on it <point B>
12. Modify compute method, for logic area.
13. Add the virtual characteristic in Query Designer.
14. Generate report for in tcode: RSRT.
*** If you tap on that button, the system will run the code in define method area.
15. Execute it, you’ll get the result.
Well, these all are the steps that i can deliver here.
Hope it can help you .
Leave a comment