07-03-2008 4:59 PM
Hi,
I need to add fields in the tab (Additional data B) of tcode VA02. i have searched in forum but i couldnot get clear picture. Please tell me the steps how i can add fields in that tab and how can i made save the save in the table.
sure will reward...
Thanks in advance
07-03-2008 5:17 PM
Hi,
Following Screen no are available in Sales order for additional tab for program SAPMV45A.
Screen no Description
8309 - Sales Document Header User Exit Header
8310 - Sales Document Header User Exit Header
8459 - Sales doc. Item User exit item
8460 - Sales Document Item User Exit Item
07-04-2008 6:20 AM
am new to this screen exit can u breif me the procedure how to proceed with the same.
Thanks
07-05-2008 3:44 PM
Hi,
To Edit these screens you will need access key. Then you can add your fields to these screens.
Also in PBO you need to control the display and change mode.
You can use USEREXIT_SAVE_DOCUMENT in MV45AFZZ include to update values entered in the screen.
You can declare global variables required for that screen in user exit MV45ATZZ.
07-06-2008 12:05 PM
Hi Karthikeyan,
Just to add in to the above points...
If you are planning to bring in fields that needs to be updated in table VBAK(header sales) or Vbap (item sales) then
(1) first add the required fields as an append include in se11
go to se11 -> table -> click on "Append Structure" ..in the new pop up..create a new include by clicking on "create" or using an existing include if any..give the description and you will get a structure where you can enter the fields required
follow this for vbak/vbap
(2) Go to SAPMV45A program in Se38 and take screen
8459 for screen to add fields at (additional dataB -> item)
take the screen layout and select the fields
VBAP-ZZ fields or the newly added fields or the ones you need on additional data B -> item details,put in on this screen, save and activate
Code can be written in PBO/PAI like a normal screen..
Repeat the same procedure but with screen number 8310 of program SAPMV45A (VBAK-ZZ fields) to obtain fields on additional dataB of header
Please note that the program SAPMV45A is common for other transactions like sales contract VA41/42/43..so whenever we write code ..please put check for VA01/Va02/Va03
if sy-tcode = Va01..etc
endif...Also pls note that access key is required for screen modifications
Also if you are showing fields from tables VBAK/VBAP in the screen of additional data B , no separate code needs to be writtn while saving and whatever checks that needs to be done for the fields,it can be done in 2 places
(a) in PAI/PBO of the screen itself
(b) go to se38 -> MV45AFZZ -> userexit_save_document or
userexit_save_document_prepare and write the code to check the conditions and give messages accordingly
here VBAK/VBAP data are available in XVBAK/XVBAP
If you are using Ztable fields on additional data B screen then we need to write code in PBO of the corresponding screen to fetch data in case of VA02/Va03 since data comes from a Ztable and not standard table VBAK/VBAP and also do validations here itself
Adding append structures to standard table VBAK/VBAP with required fields and using those fields on screen is advisable to avoid complications
Pls check,revert and reward if helpful
Regards
Byju
07-10-2008 8:11 AM
05-18-2014 10:28 AM
Dear Karthikeyan,
How to approach. Did you place fields without access key? Please suggest.
Regards,
Abbas.
02-06-2014 7:04 AM
hello,
Can u please explain me how to place fields in additional data B in va01 header data, without using access key
02-06-2014 7:21 AM
Hi Karri,
Please go through my blog
It will be useful
Thanks,
Satish
02-06-2014 7:23 AM
02-06-2014 8:43 AM
Thanks for your replay Satish, I can place the tabs and fields in item data by looking at your article before, Thanks for the article .My problem is that creating the same in header data I am not getting it, I am using BADI_SLS_HEAD_SCR_CUS (Additional Detail Screens on Header). So could u help me out in this.
Message was edited by: Karri Manikanta Sai Kumar
02-06-2014 8:57 AM
Hi karri,
If you look at the badi definitions you will be having a seperate BADI for item level please check
Thanks,
Satish.
02-06-2014 10:42 AM
Thank's for your help, I have cleared the query . To place fields in additional data B in va01 header data, without using access key, by debugging we came to know that fields should be placed in screen 4312 ..... It may helpfull for u
02-06-2014 10:48 AM
Thanks for the info
Did you place fields without the access key??
04-11-2014 9:51 AM
Hi,
I have added the fields in va02 additional tab but on production it comes out with half screen. it does not show all fields at the bottom
04-14-2014 6:25 AM
Hi,
Check the screen parameters .Compare both the systems.
Regards,
Madhu.
05-18-2014 10:31 AM
Dear Karri Manikanta,
How to approach. Did you place fields without access key? Please suggest steps.
Regards,
Abbas.