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

bdc programming

Former Member
0 Likes
559

hai , im in bdc progrmming,in the present scenario i need to ad some more screens to xd01 transaction to upload data ,how can i join the new screens to tha present transaction and how the data is going to be stored into tha database when recording is done help me in this,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
534

Hi

Use the user exit enhancement SAPMF02D for this

Create a Transaction/screen with the required fields and attach a tcode

and call that transaction in the User exit

that screen will be displayed and update the data in the table structures.

Reward points if useful

Regards

Anji

4 REPLIES 4
Read only

Former Member
0 Likes
535

Hi

Use the user exit enhancement SAPMF02D for this

Create a Transaction/screen with the required fields and attach a tcode

and call that transaction in the User exit

that screen will be displayed and update the data in the table structures.

Reward points if useful

Regards

Anji

Read only

hymavathi_oruganti
Active Contributor
0 Likes
534

i think ur requirement is not to add some more screens but to selct some more tabs right?

if that is s, do recording with the old tabs and with the new tabs.

and compare new recording and old programming and see where to exactly add the coding of new.

Read only

Former Member
0 Likes
534

Hi Raj for adding any new fields in the standard transaction then you have to go for enhancements , you can find whether there are some screen varinats present for the transaction

Refer SAP NOTE Number: 577502

https://websmp106.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=577502&_NLANG...

OR Follow these steps:

1)How to create a screen group.

Go to spro.

Search for:

“Prepare Modification-Free Enhancement in Customer Master Rec”

Then define a new screen grOup say Z1.

2)To start with, you have to implement 'CUSTOMER_ADD_DATA' also.

In the method CHECK_ADD_ON_ACTIVE, you should do this:

IF I_SCREEN_GROUP = 'Z1'. “ Screen group defined in SPRO

E_ADD_ON_ACTIVE = 'X'.

ENDIF.

3)In badi implementation for badi 'CUSTOMER_ADD_DATA_CS' method 'GET_TAXI_SCREEN' do this

e_screen = <Screen number>.

e_program = <Screen Program name>. :This should be the main program for the function group of the function modules you create

e_headerscreen_layout = space.

In set data method do something like this:

CALL FUNCTION 'Z_SET_DATA' “Create a new fm

EXPORTING

I_KUNNR = S_KNA1-KUNNR

I_<ZFIELD name> = S_KNA1-<zfield name>

I_ACTIVITY = I_ACTIVITY.

The code inside the z_set_data should be something like this:

V_KUNNR = I_KUNNR.

V_<zfield name> = I_<zfield name>.

V_ACTIVITY = I_ACTIVITY.

Use this fields v_<zfield name> in the screen.

In get data method:

CALL FUNCTION 'Z_SET_DATA' “Create a new fm

IMPORTING

E_KUNNR = S_KNA1-KUNNR

E_<zfielD NAME> = S_KNA1-<ZFIELD NAME>.

CODE INSIDE THE FM.

E_KUNNR = V_KUNNR.

E_ZZSITEID = V_<ZFIELD NAME>.

Regards,

Jayant

Read only

Former Member
0 Likes
534

yahh up to some extent i got satisfied