Application Development 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: 

Adding a tab subscreen in VA01/VA02/VA03

YayatiEkbote
Contributor
0 Kudos

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

13 REPLIES 13

lijisusan_mathews
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

Hi Yayati,

Good.

Regards,

Madhu.

0 Kudos

hi ,

i want validate the field value exits or not where i have to write the code .

thnaks .

0 Kudos

Hi ,

Yayati.. can you please let me know the procedure .

0 Kudos

Hi,

did it ask for any access key, while editing the screen-exit '8309' in ‘SAPMV45A’??

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 209278 - Display of customer-specific fields in sales doc and related notes.

Regards

Eduardo

madhu_vadlamani
Active Contributor
0 Kudos

Hi Yayati,

As Eduardo told just go through the note. You will get a clear picture.

Regards,

Madhu.

0 Kudos

... 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