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

badi on T-code XK02

Former Member
0 Likes
3,350

My requirement is i hav to add 4 custom fields in transaction XK02.....i hav find the exact badi where i write the code and made a screen ....this screen individually works properly..but when i call this screen in my badi.....then no error will shown...i made a button on toolbar to call that subscreen.... But in output when i click on that button it doesn't show any thing....

Thankx & regards...

Arijit

1 ACCEPTED SOLUTION
Read only

Abhijit74
Active Contributor
0 Likes
3,022

Check BADI : VENDOR_ADD_DATA

Thanks,

Abhijit

My requirement is i hav to add 4 custom fields in transaction XK02.....i hav find the exact badi where i write the code and made a screen ....this screen individually works properly..but when i call this screen in my badi.....then no error will shown...i made a button on toolbar to call that subscreen.... But in output when i click on that button it doesn't show any thing....

Thankx & regards...

Arijit

18 REPLIES 18
Read only

Abhijit74
Active Contributor
0 Likes
3,023

Check BADI : VENDOR_ADD_DATA

Thanks,

Abhijit

Read only

Former Member
0 Likes
3,022

hi...thankx..for ur suggestion...but i hav already check vendor_add_data & vendor_add_data_cs. there is no error in badi.but the problem is still there....

plzzz i m waiting for ur suggestion.

thankx & regards.

Arijit

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

I hope you have defined the subscreen & the program.

Did you define the screen group & the associated function codes in SPRO ? After defining this you have to use the CHECK_ADD_ON_ACTIVE of BAdI VENDOR_ADD_DATA to activate the add-on screen.

Have you done these steps ?

BR,

Suhas

Read only

Former Member
0 Likes
3,022

hi....thankx for suggestion...but i hav followed all that steps....but i cant get output.....i think i made a very simple mistake which cant noticed......so plzzz help me...

thankx & regards...

Arijit

Read only

Former Member
0 Likes
3,022

hi...in VENDOR_ADD_DATA....i write the code....in " check_add_on_active.".....

if i_screen_group EQ 'Z1'.

e_add_on_active = 'X'.

endif.

and in vendor_add_data_cs...i write the code in "get_taxi_screen".

CHECK flt_val = 'Z1'.

CASE i_taxi_fcode.

WHEN 'ZAIR_TAB1'.

e_screen = '5000'. "<--- Set dynpro

e_program = 'SAPMZADD_VENDOR'. "<--- Set dynpro program

e_headerscreen_layout = ' '.

  • WHEN OTHERS.

ENDCASE.

is there any mistake in above code.....plzzz mention......

thankx & regards

Arijit

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

Did you define the function code (I_TAXI_FCODE) for the screen group ?

You can define this in 2 ways:

1. SM34 --> VC_VENDOR_EXP.

2. SPRO --> Financial Accounting --> Accounts Receivable and Accounts Payable --> Vendor Accounts --> Master Data --> Preparations for Creating Vendor Master Data --> Adoption of Customer's Own Master Data fields --> Prepare Modification-Free Enhancement in Vendor Master Record.

Revert back with your comments.

BR,

Suhas

Read only

Former Member
0 Likes
3,022

hi...thankx for ur rply....

i hav follow the second procedure....and create 'Z1' as a screen group. then i select that one and double click on "lable tab page"

there i give the NUMBER= 1

FUNCTION_CODE = ZAIR_TAB1

thats all .now i save that then go back and again save.....is there any mistakes happend in those steps...

thankx & regards

Arijit

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

Don't think so. Try putting break-points in your BAdI code & debug. Should be fine.

Read the documentation maintained for this SPRO node. It is explained in detail.

BR,

Suhas

Read only

Former Member
0 Likes
3,022

sory i think i cant define taxi_fcode........how to define that...whats the procedure......plzz explain step by step....

thankx & regards

Arijit

Read only

Former Member
0 Likes
3,022

hi...i set a break point in get_taxi_screen method.....but when i run the t-code....the subscreen cant enter in debugger mode.....just simply show the screen.....with out my custom fields....now what i hav to do...plz help....

Thanx & regards

Arijit

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

Have you defined any filter for the implementation of VENDOR_ADD_DATA_CS ?

CHECK flt_val = 'Z1'.
CASE i_taxi_fcode.
WHEN 'ZAIR_TAB1'.
e_screen = '5000'. "<--- Set dynpro
e_program = 'SAPMZADD_VENDOR'. "<--- Set dynpro program
e_headerscreen_layout = ' '.

Have you defined the screen '5000' as a subscreen ?

Edited by: Suhas Saha on Jul 12, 2010 3:28 PM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

>

> hi...i set a break point in get_taxi_screen method.....but when i run the t-code....the subscreen cant enter in debugger mode.....just simply show the screen.....with out my custom fields....

Your BAdI VENDOR_ADD_DATA_CS will not trigger when you run the tcode XK02. Are you able to see the custom tab defined for screen group Z1 ?

When you click on that custom tab GET_TAXI_SCREEN will be triggered.

BR,

Suhas

Read only

Former Member
0 Likes
3,022

ya definitly.....5000 is defined as subscreen.....and Z1 is defined in spro-logistics-business partner-vendor-control-adoption os customer's own master data fields - prepare modification -free enhancement of vendor master data....

but my question to define Z1 there is any option to write a code for Z1...if it is then where ANd how to write the codes....

Thanx & regards

Arijit

Read only

Former Member
0 Likes
3,022

sory to ask u another question ..that is ...is this screen group and filter is same...or both are different.....if it then i think i cant define filter ....but in Vendor_add_data_cs....i define in attributes.....the filter = Z1.......becas when i want to give a input i press f4 help then those Z1 is visible in that list.......

thanx &regards

Arijit

Read only

Former Member
0 Likes
3,022

ya the custom tab is visible in Xk02......but when i click on it it cant show that custom fields....

thanx & regards

Arijit

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,022

>

> ya the custom tab is visible in Xk02......

This means that the BAdI implementation for VENDOR_ADD_DATA is working correctly.

but when i click on it it cant show that custom fields....

When you click on the tab, the method GET_TAXI_SCREEN should get triggered. Put a break-point & check if the code is being executed.

BR,

Suhas

Read only

Former Member
0 Likes
3,022

thanx for ur suggestion.....sir...but i told u before.....that i put a breakpoint on get_taxi_screen.......but when i run that t-code & press that custom tab......insted to enter debugger mode.....its only shown the screen with out fields....

thanx & regards

Arijit

Read only

Former Member
0 Likes
3,022

hi...

...thanx for ur support ......the problem is solved.....

Thanx & regards

Arijit