‎2011 Feb 19 12:36 PM
Hello
I implemented the badi's
VENDOR_ADD_DATA
VENDOR_ADD_DATA_CS
In Table LFM1 I have 2 customer fields (i.e. ZZFIELD1, ZZFIELD2)
I created in a function group a subscreen with this 2 fields
In transaction XK02/XK03 I can see this 2 fields
BUT
I can't save the new value - or show the value from db on the subscreen
I can't understand how my function group and the badi's can work together
Thanks for any help
Daniel
‎2011 Feb 20 9:00 AM
Hi Daniel,
If you have implemented a screen exit. Find out the enhancement name for the screen exit.
This enhancement name should have couple of other enhancements for PAI and PBO event.
Implement the Function exit in PAI to fetch the data and in PBO to populate the data for the new fields.
Incase you have used Badi for enhancing your screen you might have two methods for populating these fields or retrieving data for these fields.
you can use these methods.
Hope this helps
Thanks
‎2011 Feb 20 9:36 AM
Hello again
Now I solved my request
I didn't understand how the badi interface and the function group comunicate together
Now I find out:
create 2 function modules in the function group
one for GET_DATA and one for SET_DATA
I call in the badi method GET_DATA my function module
and move the data to the fields in the function group,
witch are defined in the topinclude
The same processure in SET_DATA
Greetings Daniel
‎2011 Feb 20 10:09 AM
hi ,
Daniel will you explain what you have done actually .
which function group you have used .
Regards
Deepak.
‎2011 Feb 20 10:26 AM
Hi Deepak
I created a new function group, called ZFG
In the function group ZFG I created a dynpro 0100, type subscreen
On this dynpro I placed the Z-FIELDS i.e. LFM1-ZZFIELD1
In the topinclude of the function group is the statment:
tables: lfm1
In the next step, I created 2 function modules in the function group ZFG:
Z_GET_DATA
import parameter I_LFM1
Z_SET_DATA
export parameter E_LFM1
In the badi method GET_DATA I call the function module Z_GET_DATA
with the parameter I_LFM1 = I_LFM1 from badi (standard programm XK02)
Coding in the function module: LFM1 = I_LFM1
(move the value from standard programm (XK02) to the filed in the function group)
Now the function group know the values and you can display them on the dynpro 100
The same precedure with SET_DATA, just opposite way
I hope I explained in a clear way and it helps you
Greetings Daniel