2010 Aug 27 6:22 AM
Hello everyone,
I need to add new fields to FAGLL03. I have read threads regarding this but it didn't help .
My requirement is to add new fields in FAGLL03 but without changing standard tcode or structure.
So for that I need to create the Z structure of FAGLPOSX and need to copy the function module FAGL_ITEMS_DISPLAYin Z function module.
So I have copied the whole Function group (FAGL_ITEMS_DISPLAY) but while activating this function group I have come across different errors like :
1) Report statement missing
- I tried activating each Include in that particular function group but of no help
2) Field IS_U_VARIENT is unknown but there is field GS_FIELD
- For this I don't understand why it is giving this error as IS_U_VARIENT is there in the function module's interface.
3) In unicode programs, the - character cannot appear in names as it does here in name BUZTAB-ZEILE.
- I tried to uncheck the UNicode check active attribute of Function group but after that it gives error The program is not unicode compatible.
Please help.
thanks,
2010 Aug 27 7:25 AM
2010 Aug 27 7:25 AM
2010 Aug 27 9:26 AM
thanks Reymond for reply...
But I think I wasn't clear enough before....
I m not supposed to change anything in Standard structure and standard tcode also....
The requirement itself is to create a Z report for FAGLL03 ..
So in requirement itself they have mentioned to copy a FAGLL03's report and provide additional fiield (Department/Business unit ) in output(with all the functionalities of FAGLL03)
If I try to apply Note that u have mentioned then It will change the standard structure....
2010 Aug 27 10:18 AM
Yes but that wont be considered by SAP as a modification, so you keep the warranty
Duplicating a function group is not so easy
1) Report statement missing
- There should not be a REPORT header but a FUNCTION-POOL (in the TOP include)
- You have to change the name of the modified function modules or includes, and change it in every program that call them, resulting in copying more and more includes...
- The FM you do not copy and rename will use the global data of the original FG and not of the current one, so some data will be missing
- Copy of standard reports will generate work on migration/updating of system, even on OSS notes application relative to the original program/function group, they are better than wild modification of the standard, but in this case append to structure and use of BTE are allowed by SAP and should cost less in the future (Just optimize database access and memory usage to avoid performance problems)
Nevertheless, if your customer/boss wants it, AND if you advised him of costs and risks...
Regards,
Raymond
2010 Aug 27 11:47 AM
Hi,
well, I know append structure/BTE will be better solution. In fact i was gonna go with append structure solution. But they didn't agree. So now have to do all this copying n all.
thanks
2010 Aug 31 6:26 AM
After copying the standard code , some code adjustment is needed.
Also index regeneration is needed in some cases. Then it works fine.
2012 Dec 14 3:25 PM
Hi all,
take the OSS Note 984305 as baseline, as already mentioned. The report structure is FAGLPOSX.
Standard BKPF/BSEG fields: proceed according to the note (customizing only).
Custom fields: You can either make an .APPEND to the structure FAGLPOSE which is a part of FAGLPOSX, or define your fields directly in the structure CI_FAGLPOSX which is again a part of FAGLPOSX.
For filling the fields there is BAdi FAGL_ITEMS_CH_DATA which already has a standard implementation GLE_MCA_ITEMS_CH_DAT (unfortunately) and doesn't allow for multiple implementations.
You can either check "Multiple Use" in the BAdi definition and add your implementation (consult your ABAPer here!) or create an implicit enhancement in the existing implementation method IF_EX_FAGL_ITEMS_CH_DATA~CHANGE_ITEMS.
2013 Jul 15 10:53 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |