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

Adding own fields in customer master

former_member308418
Participant
0 Likes
1,097

Hi All,

Good day,

I have some fields to add in Customer master (XD01/XD02/XD03). I have not that much knowledge how to do this. Following some tutorials I have added a new button in Customer master. In this button i have added a tab. Now I am trying to add my fields in that tab using BADIs CUSTOMER_ADD_DATA_CS AND CUSTOMER_ADD_DATA. In CUSTOMER_ADD_DATA_CS there is a method GET_TAXI_SCREEN & in that method i put the following code.

IF sy-tcode = 'XD01' OR sy-tcode = 'XD02' OR sy-tcode = 'XD03'.

IF i_taxi_fcode = 'FCODE''. ///// FCODE is the function code of my screen group that i created using SPRO

e_screen = '1000'. ///// 1000 is my dynproscreen number

e_program = 'ZTEST_SCREEN''. ///// ZTEST_SCREEN is my ABAP code which runs properly

e_headerscreen_layout = 'V'.

ENDIF.

ENDIF.

I also wrote some code in method CHECK_ADD_ON_ACTIVE of BADI CUSTOMER_ADD_DATA to activate my screen group.

Now prob is when i am trying to run that new tab it shows a dump which says " Incorrect screen type: Screen is incorrectly defined or used."

But when i run my program in se38 it's fine working!!!!!!

Can anybody help me please to show fields in my new tab?

N. B - It would be good for me if anybody can provide me some tutorials or documents to achieve the task

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,017

Hi,

In the attributes of the screen ....... select the screen type as Subscreen ....

Thanks,

Shailaja Ainala.

3 REPLIES 3
Read only

Former Member
0 Likes
1,018

Hi,

In the attributes of the screen ....... select the screen type as Subscreen ....

Thanks,

Shailaja Ainala.

Read only

0 Likes
1,017

Hi,

Thanks Shailaja Ainala.

The fields are now showing in XD01 / XD02 / XD03.

Now please tell me how can I insert data from my additional fields into database table KNA1 for a customer ?

Edited by: Tripod on Jan 9, 2010 2:55 PM

Read only

0 Likes
1,017

Hi,

In your ....exit you wil find strcutures ....XVBAK ....XVBAP....try to fill those and check out in debug...

Thanks

Shailaja Ainala.