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

VENDOR_ADD_DATA

dmi
Participant
0 Likes
977

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

4 REPLIES 4
Read only

former_member193284
Active Participant
0 Likes
791

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

Read only

dmi
Participant
0 Likes
791

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

Read only

deepak_dhamat
Active Contributor
0 Likes
791

hi ,

Daniel will you explain what you have done actually .

which function group you have used .

Regards

Deepak.

Read only

dmi
Participant
0 Likes
791

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