New Tabs in Sales Order Overview Screen – VAxx Transactions _ SCN

download New Tabs in Sales Order Overview Screen – VAxx Transactions _ SCN

of 5

Transcript of New Tabs in Sales Order Overview Screen – VAxx Transactions _ SCN

  • 8/10/2019 New Tabs in Sales Order Overview Screen VAxx Transactions _ SCN

    1/5

    Getting Started Newsletters Store

    Products Services & Support About SCN Downloads

    Industries Training & Education Partnership Developer Center

    Lines of Business University Alliances Events & Webinars Innovation

    Log On Join UsHi, Guest Search the Community

    Activity Communications Actions

    Browse

    ABAP Switching, Enhancing, and Adapting Standard Programs

    0 Tweet 2

    Quite often we come across instances where we require custom fields on the face of quotations,

    orders, etc. To achieve this, SAP has provided an Additional tab named Additional Data tab B at

    header and item level in VAxx transactions. However, over a period of time, these additional tabs

    get cluttered with many custom fields, especially in a matured project. Now if the business

    demands more custom fields on quotations, orders on a new tab altogether, what is the solution?

    Yes, youre right! We require more tabs; preferably next to Additional Data tab B.

    How do we go about achieving this functionality?

    Well, we firstneed to add custom fields to VBAK table using APPEND STRUCTURE. Its assumed we

    all know it already.

    Now, ifyoure using a system with Enhancement Pack 6installed, youd be delighted to know SAP

    has provided a BAdI named BADI_SLS_HEAD_SCR_CUS/BADI_SLS_ITEM_SCR_CUS. You can find

    this in SPRO

    All you need to do is just implement this BAdI. Use the methodsACTIVATE_TAB_PAGEto

    populate name of the Tab, custom program name and the dynpro number. Next, use

    TRANSFER_DATA_TO_SUBSCREENand TRANSFER_DATA_FROM_SUBSCREENmethods for

    passing the data to and fro from screen to workarea. More info here. And Voila! You can see the

    custom tab added next to Additional Data Tab B.

    HOWSOEVER! For a few unfortunate souls like me who come to know their SAP system is not yeton Enh Pack 6, adding a new tab to VAxx becomes a challenge because the aforementioned BAdIs

    are not available in the older systems.

    So, what needs to be done?

    Well, Im sure most of you have heard of this transaction named VFBS.

    New Tabs in Sales VAxx transactions

    Posted byAasim KhaninABAP Switching, Enhancing, and Adapting Standard Programson Sep 27, 2014

    11:06:59 PM

    Share 26 6Like

    http://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&text=New%20Tabs%20in%20Sales%20%E2%80%93%20VAxx%20transactions&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&via=SAPCommNethttp://scn.sap.com/people/aasim.khanhttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://scn.sap.com/people/aasim.khanhttp://help.sap.com/saphelp_crm700_ehp01/helpdata/en/c7/b9aa57cfeb402e911811a7507e8f09/content.htmhttp://scn.sap.com/servlet/JiveServlet/showImage/38-114100-551067/spro.jpghttp://twitter.com/search?q=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactionshttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&text=New%20Tabs%20in%20Sales%20%E2%80%93%20VAxx%20transactions&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&via=SAPCommNethttp://scn.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs/blog/2014/09/23/certifying-a-notification-without-credentialshttp://scn.sap.com/contenthttp://scn.sap.com/actionshttp://scn.sap.com/communicationshttp://scn.sap.com/activityhttp://scn.sap.com/login.jspahttp://scn.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs/blog/2014/09/27/login.jspahttp://scn.sap.com/community/uachttp://scn.sap.com/community/developer-centerhttp://scn.sap.com/community/downloadshttp://scn.sap.com/welcomehttp://www.sapstore.com/http://scn.sap.com/community/newslettershttp://scn.sap.com/community/getting-started
  • 8/10/2019 New Tabs in Sales Order Overview Screen VAxx Transactions _ SCN

    2/5

    Yes, were now going to add a new tab to sales transactions in SAP using this very transaction!

    Step1: Execute VFBS, enter program name as SAPMV45A

    Step2: Select Tab Controland click Changebutton and add below records for header and item

    tabs

    Program Name: SAPMV45A

    Screen Group: K0 (Screen Group for Header) and in case of item, the screen grp is P0

    Number: 131 or the number immediately after Additional Data Tab B

    Funct. Code: Any custom function code (eg. ZCM)

    Description: Any meaningful description you want on the tab

    Save and come back to the main screen

    Step3: Enter program name as SAPMV45B, select the first radio button Function Codesand click

    Change

    Create new entries as below

    TTyp- A, H and V are Create/Change/Display modes respectively

    FCode- ZCM and ZCM2 are function codes for Header and Item tabs

    Save the entries and back on the main screen of VFBS

    Step4: Select the second option Paths between process locations

  • 8/10/2019 New Tabs in Sales Order Overview Screen VAxx Transactions _ SCN

    3/5

    The idea behind creating entries in this step is to simply copy the standard SAP data already

    maintained for Additional Data Tab B

    The function code for Additional Data Tab B on Header Level is KZKU and PZKU is for item as

    shown below in the screenshot taken from step 3

    Now find the entries maintained for KZKUand PZKUfunction codes.

    Were going to clone these entries as is and change the FCcodeand Subsequent Panelto ZCM

    (Header) and ZCM2 (Item)

    Step5: Select the third radio button on the main screen and click on the Change button

  • 8/10/2019 New Tabs in Sales Order Overview Screen VAxx Transactions _ SCN

    4/5

    Now find for panel KZKU Header

    Clone it and rename Panelto ZCM. Change the Location descriptionto something meaningful

    K0as explained in step # 2, is the header group. Screen # 4002is the dynpro number for Header

    tab.

    Below screenshot taken using System->Statusin VA22onAdditional Data Tab B

    Detailed view of the record created in this step is as shown below

    Ive kept Screen module 2 as 8309. This can be changed to screen # 8310too. In that case, wed

    simply need to add a line of code on the flow logic of screen # 4312below this line.

  • 8/10/2019 New Tabs in Sales Order Overview Screen VAxx Transactions _ SCN

    5/5

    Average User Rating

    (4 ratings)

    0 Tweet 2

    CALL SUBSCREEN 8310 INCLUDING 'SAPMV45A' '8310'.

    Also, we need to add a subscreen of the same name in the screen Layout

    Below is the screenshot of Item details. Again, in this case, we can change Screen Module2 to

    8460

    Now execute any VAxx transactions like VA02, VA22, etc, youll get to see the newly added tab.

    To restrict visiblity of this tab to only a particular transaction, below is the code which needs to be

    added using an Enhancement Implementation in INCLUDE MV45AF0C_CUA_SETZEN - FORM

    CUA_SETZEN

    Hope you find this useful!

    426 Views Topics: abapTags: enhancement_spots

    Share 26 6Like

    4Comments

    Like (0)

    Sachin KulkarniSep 29, 2014 12:10 PM

    @Aasim: Very good and helpful documents.

    Like (0)

    Vimala SangisettiSep 29, 2014 1:58 PM

    AASIM, Indeed very Interesting and helpful way of adding the new TAB for Sales txn.

    Appreciate for sharing this !!

    Like (0)

    Jelena PerfiljevaSep 29, 2014 11:29 PM

    Thanks for sharing! We are upgrading one system right now, so BADIs will come in handy for sure.

    Finally some progress comes to the VAxx transactions. Now we never have to switch to HANA!

    http://twitter.com/search?q=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactionshttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&text=New%20Tabs%20in%20Sales%20%E2%80%93%20VAxx%20transactions&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fcommunity%2Fabap%2Fswitching-enhancing-and-adapting-standard-programs%2Fblog%2F2014%2F09%2F27%2Fnew-tabs-in-sales-vaxx-transactions&via=SAPCommNet