2010 Jul 12 8:25 AM
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
2010 Jul 12 9:01 AM
Check BADI : VENDOR_ADD_DATA
Thanks,
Abhijit
2010 Jul 12 9:01 AM
2010 Jul 12 9:21 AM
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
2010 Jul 12 9:40 AM
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
2010 Jul 12 9:53 AM
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
2010 Jul 12 10:00 AM
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
2010 Jul 12 10:12 AM
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
2010 Jul 12 10:20 AM
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
2010 Jul 12 10:23 AM
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
2010 Jul 12 10:23 AM
sory i think i cant define taxi_fcode........how to define that...whats the procedure......plzz explain step by step....
thankx & regards
Arijit
2010 Jul 12 10:46 AM
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
2010 Jul 12 10:57 AM
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
2010 Jul 12 11:19 AM
>
> 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
2010 Jul 12 11:10 AM
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
2010 Jul 12 11:16 AM
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 ®ards
Arijit
2010 Jul 12 11:27 AM
ya the custom tab is visible in Xk02......but when i click on it it cant show that custom fields....
thanx & regards
Arijit
2010 Jul 12 12:01 PM
>
> 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
2010 Jul 12 12:06 PM
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
2010 Jul 14 5:50 AM
hi...
...thanx for ur support ......the problem is solved.....
Thanx & regards
Arijit
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |