cancel
Showing results for 
Search instead for 
Did you mean: 

code for adding a new tab

Former Member
0 Kudos

may i know how to write a code in the method area to add a new tab in va01??

Accepted Solutions (1)

Accepted Solutions (1)

Shiva_Ram
Active Contributor
0 Kudos

You can refer the WIKI link at http://wiki.sdn.sap.com/wiki/display/HOME/Enhancement

This explains adding tab in VF01, however you can replace the program name with SAPMV45A instead of SAPMV60A. Discuss with an ABAP'er for further input.

Regards,

Answers (4)

Answers (4)

prasanna_kumar4
Active Contributor
0 Kudos

HI

Check the Below Link which explains the How to add the New tab in VF01

[Adding custom tab to the transaction VF01|http://www.saptechnical.com/Tutorials/ExitsBADIs/VF01/Header.htm]

Take the reference and do it for VA01

Regards,

Prasanna

Former Member
0 Kudos

HI,

For adding a new tab in VA01 transaction you have to create entries in the tables specified in VFBS transaction.

Then create a subscreen in SAPMV45A and design the table control . Then you will have to write the whole logic into PBO and PAI modules in SAPMV45A

Thanks,

Raviteja

former_member765905
Contributor
0 Kudos

Moderator message

Response copied from http://www.saptechnical.com/Tutorials/ExitsBADIs/VF01/Header1.htm http://www.saptechnical.com/Tutorials/ExitsBADIs/VF01/Header2.htm http://www.saptechnical.com/Tutorials/ExitsBADIs/VF01/Header3.htm

This member of the forum has already been warned not to copy and paste other people's work. Action will now be taken.

Hi Expert,

You can add custom tab to the transaction VF01 by going to T-Code: VF02

Provide the parameters and then Go to Menu -- Goto -- Header -- Header

Step by step how can we add custom tab to the billing header detail;

In order to fulfill the requirement we need a custom sub-screen with some custom fields in that screen.

Steps for creating the custom fields and adding them to the custom sub screen.

1. Creating the Custom fields

a) Create the Z fields to the Table - VBRK, by appending the structure.

Click on Append Structure Button

b) Give a name to the structure for example provide u2018ZZVBRK_APPENDu2019. Enter the fields name which will you need.

Note: the added fields should follow the naming convention that they should start with u2018ZZxxxxxu2019 or u2018YYxxxxxu2019.

c) Save and activate.

2. Creating the z* program and its screen and adding the Z fields on layout.

a) Create a z*program using transaction SE38

Give a name for example ZZBILLHEADER .

b) Create a screen using the transaction SE51.

Program - ZZBILLHEADER

Screen number - 0001

Select Flow logic(Radio Button) and Click on Create Button.

Go to screen layout and get the fields from dictionary on Table - VBRK

The screen in T-Code: VF03 before which is in changeable mode. If you write screen pbo module below code it will be read only.

*Coding

Module status_0001 output.

If sy-tcode = 'VF03'.

loop at screen.

screen-input = '0'.

modify screen.

endloop.

endif.

endmodule.

Save and activate program and screen.

Go to T-Code: VF02,

Provide Billing document and Go to Menu -- System -- Status

Double click Program name - SAPMV60A

Select Screen Folder -- Select Screen - 6001 and

In the u2018cust_head_activateu2019 subroutine(double click), we have to activate - TABSTRIP_TAB06 for customer header tab screen.

3. Steps to write the code in the enhancement spots.

a. First to find the enhancement spots click on the spiral icon in the menu bar, and next click on the Menu -- Edit -- Enhancement operations -- Show implicit enhancement options.

You will see the arrows . On the 5th Line - Right click on the arrow line and click Enhancement Implementation -- Create

4. Give a name for Enhancement point, for example ZZBILLHEADER_ACTIVATE_TAB

Click on Create an Enhancement Button

Click enter and save in a package.

To make use of this logic use enhancement frame work. We have enhancement spots at the begin/end of the subroutine.

5. Steps to write the code in the enhancement spots.

GS_CUST_TAB-HEAD_CAPTION = 'ihracat Ek veriler'.u201Dcustom tab name

GS_CUST_TAB-HEAD_PROGRAM = 'ZZBILLHEADER'.u201Dcustom z* program

GS_CUST_TAB-HEAD_DYNPRO = '0001'u201D custom z* program screen

Activate the enhancement and check in the VF01/ VF02/ VF03 you can find the custom tab with the custom fields. The Data automatically populates to the database table when the data is entered into the Z fields.

Regards,

GK

SAP

Edited by: Matt on Feb 6, 2012 10:40 AM

Former Member
0 Kudos

Hi Experts,

thank you gopi but i need to add a tab in VA01 and not VF01. so for that i need to knw the table, the sceen and the code to be used for it.

Regards,

Mandar Nageshkar

prasanna_kumar4
Active Contributor
0 Kudos

Hi

Mr.Shiva Ram & Me already stated that take the reference of VF01 adding new tab and try to do it for VA01

Take the Help of ABAPers

and also check the 2 links which we provided , so you and your ABAPers will get an Idea how to do it in VA01

Regards,

Prasanna

former_member765905
Contributor
0 Kudos

Hi Expert,

As per my knowledge, we cannot add a new tab in SAP Standard Program.

Regards,

GK

SAP

Former Member
0 Kudos

hi

check in the customization setting whether any possibility to add new tab without any code.