‎2011 Oct 03 9:52 AM
Hi experts,
My requirement is that to add customized field in the enjoy screen of FV50. Also, if the user double click the zfield, it will prompt a pop-up screen or direct it to a new screen where in the user will input data as well as saved it in ztable containing the breakdown info of the inputted G/L account per line item. So, the inputted data in the enjoy screen would be the summary of the data in the desire pop-up screen. This will prevent the multiple entry of same GL account that differs only in some fields (e.g. Amount, Cost Center, Profit Center, etc.). Now my question is that on what include/s in SAPMF05A do I find the way to capture the the data from the enjoy screen per line item to the deisire pop-up screen? Any idea regarding this will be much appreciated.
Thanks,
iostemax
‎2011 Oct 03 10:50 AM
Dear iostemax,
As per your question the solution is, I will tell u the clear procedure !!
Firstly, tell me, do u know how to enhance in the Standard program,, if not
 Go to ABAP editor i.e., SE38
 Give your program name i.e, SAPMF05A and click on the display button
 Opens the standard program, here you can the enhancements points which SAP has already provided.
 Now click on the spiral button or enhance or (shift + F4)
 Then go to Edit -> Enhancement operations -> show implicit enhancements, click on this
 Directly it shows the sections where enhancements can be done
 Now here in the Enhancement OIA_FI_SAPMF05A. you can find 3 includes as shown below.
ENHANCEMENT 2 OIA_FI_SAPMF05A. "active version
*Exchange Netting
INCLUDE MF05ATOI.
INCLUDE mf05aooi.
INCLUDE mf05afoi.
ENDENHANCEMENT. Now the top include i.e., INCLUDE MF05ATOI, double click it,
 Here you can declare the things, as per your requirement this is the declaration part. As example shown below.
 Remember this is only an example, as per that you can change.
TABLES: OIA10H,
OIA10L.
DATA: BEGIN OF G_XOIA10L OCCURS 50. "SO3K014840 DN
INCLUDE STRUCTURE OIA10L. "SO3K014840 DN
DATA: END OF G_XOIA10L. "SO3K014840 DN
DATA: BEGIN OF G_LOCTAB OCCURS 50, "SO3K014840 DN
BUKRS LIKE OIA10-BUKRS, "SODK000791 BL
KUNNR LIKE OIA10-KUNNR, "SODK000791 BL
LIFNR LIKE OIA10-LIFNR, "SODK000791 BL
* next lines deleted "SODK000791 BL
* KOART(1) TYPE C, "SO3K014840 DN
* KONTO LIKE OIA10-KUNNR, "SO3K014840 DN
* BUKRS LIKE OIA10-BUKRS, "SO3K014840 DN
* NETNUM LIKE OIA10-KUNNR, "SO3K014840 DN
* NJAHR LIKE OIA10-NJAHR, "SO3K014840 DN
* end of deletion "SODK000791 BL
END OF G_LOCTAB. "SO3K014840 DN
DATA BKPF_OINETNUM_ON_SCREEN(1).
 Save, Activate and back (F3).
 Now in the output include, i.e., INCLUDE mf05aooi,
 Double click on that.
 Here you can modify the screens.
 Then save activate and back(F3)
 Now in the form include, i.e., INCLUDE mf05afoi.
 Double click on that.
 Here you can code your logic as per the user requirement.
 Save, Activate and Back(F3)
 Then in the main screen also save and activate.
I hope this will probably help to you..
Warm Regards,
Zulfikhar Ali