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

xd01 additional data

former_member188827
Active Contributor
0 Likes
1,297

hi

I have implemented badis: CUSTOMER_ADD_DATA_CS, CUSTOMER_ADD_DATA.Iam getting the additional field in xd01 but iam unable to save the data which user enters.kindly let me know the process.

expecting your answer

Message was edited by:

abapuser

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,097

Hi,

Refer to this Thread.

http://www.saptechnical.com/Tutorials/ABAP/XD01/XD01.htm

Thanks,

Anitha

8 REPLIES 8
Read only

Former Member
0 Likes
1,097

Hi,

Try like this i have developed same kind of reqirement.

The function code for Sales rep screen is configured under the screen group ‘ZS’.

1) Go to SPRO -> Logistics – General -> Business Partner -> Customers -> Adoption of

Customer's Own Master Data Fields and execute it. “Maintain customer screen

groups “ will appear. Add the new function code under the screen group ‘ZS’ and save it.

2) Inside the method SET_USER_INPUTS, code the logic.

EXPORT L_EXE FROM L_EXE TO MEMORY ID 'ZSALES'. “EXPORTED TO MEMORY

C. BADI: CUSTOMER_ADD_DATA_CS

This BADI used to include the custom screen and to deactivate the sales rep tab

regards

Read only

0 Likes
1,097

hi

i tried ur code but getting error "l_exe" is unknown. temme how and where to declare it.

expecting ur answer...

points 'll b rewarded.

Read only

Former Member
0 Likes
1,098

Hi,

Refer to this Thread.

http://www.saptechnical.com/Tutorials/ABAP/XD01/XD01.htm

Thanks,

Anitha

Read only

0 Likes
1,097

HI

I FOLLOWED THE TUTORIAL IN SAP TECHNICAL.

BUT THE DATA IS NOT GETTING SAVED IN THE CUSTOMER FIELD(ZFIELD).

PLZ SUGGEST WAT TO DO?

Read only

Former Member
0 Likes
1,097

Hi,

code is like this.

1) implement the implementation yyy_CUS_ADD_DATA_CS.

2) Inside the method SET_DATA, code the logic. Export the SAP activity to the memory id ZACT

EXPORT I_ACTIVITY FROM I_ACTIVITY TO MEMORY ID 'ZSALES'.

3) Inside the method SUPPRESS_TAXI_TABSTRIPS, code the logic. If the account group does not exist in table ZA01, the Sales rep tab is deactivated.

IMPORT L_EXE TO L_EXE FROM MEMORY ID 'ACC'.

IF L_EXE NE 'X'.

APPEND 'ZS2' TO E_NOT_USED_TAXI_FCODES.

ENDIF.

4) Inside the method GET_TAXI_SCREEN, code the logic. The custom screen is included here.

CASE I_TAXI_FCODE.

WHEN 'ZS1'.

E_PROGRAM = ''.

E_SCREEN = '9001'.

E_HEADERSCREEN_LAYOUT = 'V'.

A module pool screen is needed to display the sales rep screen. The screen consists of sales group,

Basic Code:

PROCESS BEFORE OUTPUT.

MODULE DATABASE_FETCH.

MODULE SCREEN_VALIDATION.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9001.

PROCESS ON VALUE-REQUEST.

FIELD VKGRP MODULE HELP_VKGRP.

<b>*reward points</b>

regards

Read only

0 Likes
1,097

HI

IVE ADDED FIELD ZZFIELD1 IN KNA1(TYPE CHAR 40).

ITS GETTING DISPLAYED IN XD01 AND LETS ME INPUT DATA BUT WHEN I CLICK ON SAVE IT SAYS:"NO CHANGES WERE MADE" AND HENCE NOT GETTING SAVED IN KNA1 AND SO ALSO Z FIELD IS BLANK IN XD02 AND XD03.

ive given screen group 'ZK' in the badi "Prepare Modification-Free Enhancement of Customer Master Rec".

and given the same in screen group in my screen.

PLEASE SUGGEST WAT TO DO INORDER TO SAVE THE DATA.

THANX AND RGDS

Message was edited by:

abapuser

Read only

0 Likes
1,097

Hi Abapuser,

I am also having the exact requirement.

Even i created the extra field in the kna1 table and added in the xd03 screen.

but i am not getting the field value when i am giving xd03 tcode. and also i need to save the changes (using xd02) to the kna1 table. By this time you might solved the problem. Please let me know how to do? please give me the code sample so that it is easy to solve my problem.

appriciate your ealry response.

thanks in advance

kp

Read only

0 Likes
1,097

Hi kiran,

I am working on the same requirement.

can you please explain me wht to write in the below modules.

appricate your early response.

Basic Code:

PROCESS BEFORE OUTPUT.

MODULE DATABASE_FETCH.

MODULE SCREEN_VALIDATION.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9001.

PROCESS ON VALUE-REQUEST.

FIELD VKGRP MODULE HELP_VKGRP.

thanks in advance

kp