Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding new fields to FAGLL03 without changing the standard tcode

Former Member
0 Likes
21,823

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,

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
10,388

Use almost the same procedure as for FBL*N, check OSS [Note 984305 - Line item: Definition of special fields (T021S)|https://service.sap.com/sap/support/notes/984305]

You dont need to change or copy any standard report.

Regards,

Raymond

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,

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
10,389

Use almost the same procedure as for FBL*N, check OSS [Note 984305 - Line item: Definition of special fields (T021S)|https://service.sap.com/sap/support/notes/984305]

You dont need to change or copy any standard report.

Regards,

Raymond

Read only

0 Likes
10,388

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....

Read only

0 Likes
10,388

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

Read only

0 Likes
10,388

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

Read only

Former Member
0 Likes
10,388

After copying the standard code , some code adjustment is needed.

Also index regeneration is needed in some cases. Then it works fine.

Read only

Former Member
0 Likes
10,388

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.

Read only

0 Likes
10,388

Thanks Victor Your Answer Is Help Full.

Regards,

uday.