07-12-2011 7:01 AM
Hello guys,
I searched for screen exits in VA package using SMOD. But i am unable to understand how to do it. I want to add a tab in line item tabs, in which i want to add new custom fields. Is there any screen exit for screen number 4003 where i can add one more tab and custom fields in that tab. Thanking you,
Regards,
Yayati EKbote
07-12-2011 7:31 AM
Some screen exits i found for VA01/VA02/VA03 are :
4309 4.0: Subscreen: Header - Additional data A
4312 4.0: Subscreen: Header - Additional data B
8309 Sales Document Header User Exit Header
8310 Sales Document Header User Exit Header
8459 Sales doc. Item User exit item (Additional data A)
8460 Sales Document Item User Exit Item (Additional data B)
Hope it comes in useful to you..
To add new fields , you might have to add the addition fields in VBAK, VBAP tables and then include them in the screen exits.
Suzie
07-12-2011 8:30 AM
Hi Suzie,
Thanks for the immediate answer. I saw the screens 8459 and 8460 which i think are useful to me. But there is no module given to enhance. Where can i find the enhancement spot to write the code into it, for these screens?
Regards,
Yayati Ekbote
07-12-2011 8:34 AM
Hi yayati,
You can go with this exits else create a sub screen in that it will display directly in va01. If it is header level . No need of any enhance because inside the screen (Move corresponding default).
Regards,
Madhu
07-12-2011 8:43 AM
Hello Madhu,
I have created a screen 100(Normal Screen) with program zmsaed. I added the custom fields from VBAP which i appended using append structure, in the screen. Saved, Checked and activated. Now i want to add this screen in VA01/VA02/VA03 line item data. I want to add one more tab in which i will be adding these custom fields.
So my question is - where do i add Module PBO_100 and Module PAI_100 in the standard program? Do i need to create a subscreen or normal screen?
Regards
Yayati Ekbote
07-12-2011 8:49 AM
Hi Yayati,
You don't have to create a new tab for custom order fields. Already a screen has been provided both at header and item level for custom fields. To add a custom field at
Header level:
Add the custom field in VBAK through append structure
Modify the screen 8309 of SAPMV45A to add your custom fields
Write the logic in subroutine 'USEREXIT_MOVE_FIELD_TO_VBAK' of include MV45AFZZ to populate the value.
Item l:
Add the custom field in VBAP through append structure
Modify the screen 8459 of SAPMV45A to add your custom fields
Write the logic in subroutine 'USEREXIT_MOVE_FIELD_TO_VBAP' of include MV45AFZZ to populate the value.
In both of subroutine global internal table and structures are available,where you can pass the values.
Check the OSS note 302497 .
Post if need help.
Regards,
Madhu.
08-16-2011 9:29 AM
Thanks to all. Problem solved. I added zzfields in VBAP table using append structure. and using screen 8459 for program SAPMV45A, i added custom fields. And then i wrote my code in exit MV45AFZZ. Thansk again.
08-16-2011 9:33 AM
11-18-2011 10:11 AM
hi ,
i want validate the field value exits or not where i have to write the code .
thnaks .
03-06-2012 4:01 PM
07-24-2013 12:26 PM
Hi,
did it ask for any access key, while editing the screen-exit '8309' in ‘SAPMV45A’??
07-12-2011 8:07 AM
Hi
See SAP Note 209278 - Display of customer-specific fields in sales doc and related notes.
Regards
Eduardo
07-12-2011 8:12 AM
Hi Yayati,
As Eduardo told just go through the note. You will get a clear picture.
Regards,
Madhu.
06-24-2012 5:26 PM
... or have a look at the BADI_SD_TAB_CUST_I implementation WB2_SOGUI_LAYOUT_I which has been created by SAP for Global Trade Components.
Regards
Clemens