08-08-2008 7:11 PM
Hi
i have implemented vendor_add_data and vendor_add_data_cs and every thing is fine But i am not able to read the screen field created on my Custom program into BADI...
Pls help
08-08-2008 9:14 PM
The approach i follow in this i usually take a Function group, inside tha i create a screen, and two functions .
E_PROGRAM = 'SAPLZTESTFUN'.
E_SCREEN = '0100'.
one function getting the data from screen to BADI, and another one is setting the data i.e Transafering the data from BADI to screen.
so in the set_method i will call the set function and get_method i will call the get function, then transfer the content to SKNA1 etc sructures..
08-08-2008 9:14 PM
The approach i follow in this i usually take a Function group, inside tha i create a screen, and two functions .
E_PROGRAM = 'SAPLZTESTFUN'.
E_SCREEN = '0100'.
one function getting the data from screen to BADI, and another one is setting the data i.e Transafering the data from BADI to screen.
so in the set_method i will call the set function and get_method i will call the get function, then transfer the content to SKNA1 etc sructures..
08-09-2008 6:31 AM
Thanx for reply..
can u explain in detail...how to use function group in this...
08-09-2008 7:22 AM
in the method GET_TAXI_SCREEN, you have to pass the program name.
IF flt_val = 'ZY' "<----Fliter value
AND i_taxi_fcode = 'ZTEST'. "<-- Tab Function code
e_screen = '100'. "<----screen number
e_program = 'SAPLZTEST_CUST'. "<--Function Group (Main program name of the function group)
e_headerscreen_layout = 'B'.
ENDIF.
Go to SE80 , create the function group with name ex: ZTEST_CUST it is in my case.
now create a screen 100(subscreen type)
add the UI elements, then save it, Now create two functions one For ZZGET_DATA and one for ZZSET_DATA.
for ZZGET_DATA function exporting parameters for additional fields ,which get the data from screen fields to the standard structure SKNA1 to save it to DB.
for ZZSET_DATA function
have an importing parameter /s
for additional fields , to set the values to the screen fields from BADI
08-09-2008 7:57 AM
11-11-2008 12:29 PM
Hi,
I am trying to add extra custom field in MK01 and XK01 screens. I have added this field to table LFA1 using 'append structure'. There is already one subscreen added for another requirement. I would have to create a new subscreen for this field. I want to use BADI VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS. As mentioned above, I created a function group and includes for populating data to and from screen. In badi, you have used ->
IF flt_val = 'ZY' "<----Fliter value
AND i_taxi_fcode = 'ZTEST'. "<-- Tab Function code
What are above values? How to create them?
I am very new to BADI. Please help me out.
Thanks.
01-06-2009 2:01 PM
Hi
My scenario is bit different as described here. In my case the screen i had made have fields from customized table. The badi have interfaces of standard structure. But how to pass my value?
(as my is customised structure )
abhimanyu