Supress screen group in transactio xd01 xd02 xd03 based on company code

All,
I have implemented the badi for additional screen group
CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CSworks well.
Only that this implementation needs to work only for one company code.
I can suppress the tab but not the screen group button.
Did someone ever had this problem before

Hi Pavan,
What you can do is, Define the screens & put them in different modification groups & based on the screen groups you can validate as follows :-
LOOP AT screen.
IF SCREEN-GROUP1 = 'ABC' and SCREEN-NAME = 'Account Group"  "ABC is group in which you have put the screen
   SCREEN-ACTIVE = '1' (Visible).
ENDIF.
ENDLOOP.
Regards
Abhii

Similar Messages

  • Can we give same Excise Group to two diff.  Plant within same company code

    Hi,
    Can anyone please tell that whether we can assign same Excise Group to two different plants within the same company code in SAP.
    Regards,

    Yes you can use but, you shouldn't use same excise group for two different plants in one company code, if their physical location is different.
    As many excise report are fetched on the basis of excise group, there it will show combined values for both plants, whcih may not be acceptable to exices authorities.
    Regards,
    Sachendra Singh

  • Defaulting value of Purchasing Group based on Company Code

    Hi All,
    Currently we have two company codes C1 and C2 each have one - one purchasing org(PO1 and PO2) and purchasing group(PG1 and PG2). So Now hierarchy is as below: -
    C1
      PO1
        PG1
    C2
      PO2
        PG2
    Now user of company code C1 can shop for C2 and vice versa but whenever he shops for C1 his Porg and Pgroup should be PO1 and PG1 only and same in the case for C2. Currently on shopping cart screen both company code C1 and C2 are appearing and like wise values of PO1 : PG1 and PO2 : PG2 is appearing in drop down list.
    Now client is asking that whenever he selects C1 as company code PO1 : PG1 should appear as default entry and for C2, PO2 : PG2.
    Can anyone tell me how this can be achieved and which BADI we are suppose to use to implement this solution?
    Thanks
    Siddarth

    Siddarth,
    You shouldn't require a badi, look into the users attributes and extended attributes to see if that is where the extra information is stored.

  • Customer Master Screen Enhancement XD02 / XD03 / XD01 in sales area data

    Hi,
    My requirement is to add custom fields for customer master enhancement XD01/ XD02 / XD03 in sales area data.
    There are 5 tabs in sales area data. I want to add fields in sales tab after subscreen Agency business.
    subscreen similar to Agency Business should be added.
    I tried to create Screen group in SPRO and implemented BADI as explained in link below, even then my custom program is not displayed in customer master
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=77005819
    Please help.

    Hi,
    Please don't mind but I want to know have you activated the implementation?
    regards,
    Sarbajit

  • Table  V_T500P- define different country grouping to the same company code

    Hello Gurus,
    When I try to update table  V_T500P with different country grouping to two personnel areas that have same company code I get the following message:
    "The country grpg of company code xxx has been changed. This company code is used in other pers. areas. The country grouping will also be changed. Make changes?"
    How can I define two different countries to the same company code in this table?
    For example-
    Personnel Area DE09 (Germany), Company Code 0234 (KPG EAMER)- country grouping 01
    Personnel Area DK05 (Denmark), Company Code 0234 (KPG EAMER)- country grouping 09
    when I try to change the country grouping of one of the countries it changes them both with the massage I wrote above.
    Thanks for your help,
    Ronit.

    Thanks for your answer!
    Actually, I know that there is a way because the initial definition in my system was: different country groupings to different company code (can I attach here a screen shot?)
    But when I try to change one of the country grouping it chnages all the countries from the same company code.
    Example:
    In the begining it was:
    Pers. Area SE01 Company code 0234, country grouping 06
    Pers. Area IL03 Company code 0234, country grouping IL
    Pers. Area DE03 Company code 0234, country grouping 01
    Now if I'm trying to chage the country grouping of Pers. Area IL03 from IL to 05 (for example), it changes everything. I know there is a way to change it without changing them all. I just don't know what is the way...
    I will appriciate if someone can help!
    Thanks,
    Ronit.

  • Vendor list by company code wise with Acoount group..?

    Dear all
      Can anybody expalin me how to get a report on vendors list by company codes wise with account group...
    1.List of vendors company codes wise
    2.List of vendors company codes wise with account group wise.
    Thanks
    sap-mm

    1.List of vendors company codes wise
    SAP Easy accessSAP Menu-accounting-financial accounting-vendors-information system-reports for account payable accounting-master data-S_ALR_87012086-VENDOR LIST
    2.List of vendors company codes wise with account group wise
    MKVZ
    Regards,
    Indranil

  • Additional field(company code) in purchase order screen layout

    Hi All experts,
    I have a requirement to set the company code in Purchase order as display field during PO creation or change.
    I have checked in IMG under screen layout for purchase order but  there is no company code field available.
    How can I add the additional field into the screen layout.
    Any inout will be highly appreciated.
    Thank you in advance
    Lost.

    Hi Chee Wan Ng,
    <b>Where</b> exactly you want to set the Company Code field in the Purchase order? Actually this field is already available under <b>Org.data</b> tab in the Purchase Order Creation transaction (ME21N), so you may not require to set the Company Code again.
    Which version of SAP R/3 you are using?
    Hope this helps you, if not, then give us more details to help you better.
    Good luck.

  • How to hide screen group tab based on account group in XD01/02

    Hi Folks,
    I have added two screen group( custom tabs like 'general data' ) in XD01 screen. Based on the input parameter 'account group' I want to hide(supress) one of the tab. How can I read the account group no?
    Thanks and Regards,
    Kawish.

    Hi,
    Can you try to access the field like below. Just try to access the account group from main program in the method.
    field-symbols: <lf_KTOKD>  type KTOKD,
       data:               L_KTOKD type KTOKD.
    assign ('(SAPFM02D)KNA1-KTOKD') to <LF_KTOKD>.
    if sy-subrc = 0.
         l_ktokd = <LF_KTOKD>.
    endif.

  • Screen exit in XD01/XD02

    Hi,
    I have a requirement to add 2 custom fields in the XD01/XD02 Transaction by adding tab button to the existing tab strip...
    can you let me know the process of doing that
    i mean how to attach the screen, where to write the coding.. and how to handle the new screen..
    Thanks in advance

    Hi
    Try to see Re: Screen exit for XD01
    Max

  • How to Pre fill the screen XD01/XD02, from the report program

    Hello,
    I have a requirment where i have to pass the screen values for the genral view of the tcode XD01/XD02,
    For example : In my report program i get the Name, City, Country, PIN etc.. now my requirement is that the First Screen(Genral view) of the XD01 is pre filled with all the values that are passed from the Program and the user can continue after that.
    Please suggest a way to achieve the mentioned functionality .
    Regards,
    Abhinav

    Thanks
    But the screen fields that i have to fill don't have parameter id's ..and i dont want to open the object by access key.
    also my requirement is to leave to the transaction with the filled  screen field .from the report prog...so when i use BDC i get the OK code , that i want to avoid.

  • Need to restrict access to XD02/XD03

    Hi All,
    I  need to restrict access to some acct group in the search screens for individuals who do not have access to this account group in transaction XD02/XD03.  Other than this group we should not allow to search the screens.
    Please guid me if any exit / badi....etc. where i can put this validation.
    Thanks.
    Raj.

    Hi,
    Try this link...
    Customer Master Maintenace - restriction general data tabs
    Regards,
    Guru

  • 'Screen Group' in Screen Painter,  & 'Search help Exit'

    Hii All,
    1. What is 'Screen Group' in Screen Painter
    attributes. In which Scenario we will go for it.
      2. What is 'Search help Exit'.
    Please post your messages and guide me in this topic,
    Thanks & Regards,
    John.

    Hi John,
    A Search help exit is something similar to a user exit. Every search help will have an option of attaching a search help exit under the definition tab( when you view the search help from se12).
    For example take a look at the search help VMVA - you will notice a search help exit  SD_F4_SHLP_EXIT_SUBSHLP_CHOOSE attached to it.
    Basically the serah help exit which is nothing but a function module with a predefined interface which gets triggered before a f4 help is displayed. The exit is used to supress or do any other related modification required.
    We have implemented many search help exits and the reason is that we have given a custom interface to our business partners to carry out some transaction on our SAP systems. Though we have given them access to our SAP system we also want to ensure that the business partner does not view any additional data in the system. We have controlled this via many ways like using z objects, using authorizations etc. Still once the user has authorizations to any transaction he or she can do a f4 help on any field and see the data which he should not be able to do. So we have implemented search help exits to supress the drop down only for the business partners. We control this based on the unique login id's we have given to them.
    So in short it is used to modify the behaviour of F4 help, mostly used to supress the drop down.
    It has to be defined in a specific format.
    Hope this helps.
    Cheers
    VJ

  • Updating partner function when creating customer XD01/XD02

    Hello all, I have the following requirement to do:
    When creating a customer for a certain account group in XD01/XD02, I need to update the partner functions associated to this customer.
    I have tried, the ENHACEMENT  SAPMF02D with function EXIT_SAPMF02D_001, but when changing table content T_KNVP, this content is not taken into account and the values are not stored in DB.
    I have tried too BADI's CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CS, but the content of T_KNVP in CUSTOMER_ADD_DATA cannot be changed.
    I would like to avoid BTE's for now.
    Can someone give me a hand on this?
    Thanks in advance!

    Solution: BAPI CUSTOMER_UPDATE

  • Making a field mandatory in additional data tab in sales area data in XD01/XD02

    Hi,
    Making fields in additional data tab in sales area data in XD01/XD02 as mandatory is not achievable through configuration. Also, user exit SAPMF02D was not helpful in achieving this. Kindly help me on this.

    Is this a new field you are creating or an existing field you want to mark as mandatory? My impression from your original post was that it was the second. If so then you don't need to create an implementation of CUSTOMER_ADD_DATA as there must already be one, instead you should be looking for the implementation that manages data for the screen you are interested in. This might be why you don't see your BADI get activated  when you go to  "area data -> extras -> additional data" as it isn't the right implementation.
    If you just want the field to be mandatory when the user goes into the additional data tab I would code this in the screen of the customer exit. If you want this field to be mandatory whether or not they enter other additional data then you should try the method of the badi Nabheet suggested but not in your own implementation.

  • Validate Street and House Number in the Customer Master Data (xd01/xd02)

    All.
    I need to validate if the fields street and house number are in blank in the Customer Master Data transaction (xd01/xd02). I found an user-exit (EXIT_SAPMF02D_001), which I can validate the customer data (KNA1, KNB1, etc) before to save. The problem is in the KNA1 structure, there aren't the fields street (STREET) and house number (NOUSE_NUM1), there is only the field STRAS, which street and house number values are concatenated.I solved this problem using field-symbol to catch these values in the screen, but I know it isn't a good solution. Is there another solution to solve this ? I had problem using this user-exit. It shows a message error type 'E' when either field street or field house number are in blank, after show this message if the user click in the tabs navigator button before press enter button, the transaction shows the error message "System error on reading table  DYNTAB, screen no. 0370". Does Somebody know this problem?
    Best regards,
    Alexandre
    ps: I'm coding in the ECC 6.

    Amit.
    Thanks for your suggestion, but I need to validate these values typed by the user. When I create a customer, I can't get these values in the ADRC table.
    Regards, Alexandre

Maybe you are looking for

  • Regarding datasource in app module

    Hi I am using jdev 11.1.1.5.0 I am creating an application using bounded task flow in which i want to use 2 datasource. In my use case..... I have 2 database user and both have same table with similar schema. I have created to datasource using both d

  • T.code: expiration date for a material

    Hi, I would like to know the expiration date for a material. Do you know the T.code? Thanks Dede

  • Export pdf in tiff folder

    ... Unless I go immediately to this: I created my book with openings and try to esprtarlo with PDF tiff in folder but most do not find this option, how can I do to find .... and the version 2.1.2

  • Contacts photo not updated in my organization

    a few days ago, I changed my photo with Lync and Outlook. And as refered, I updated it sucessfully in my Lync and Outlook. The problem is I found the photo is still displaying as the old one in my colleague's contacts... Is it possible to update it i

  • Best industry practise

    Hello all, I was in preparation of best practise document , can some one who is already using ODI or sunopsis provide me with a document if they have prepared , which they use for there team , to guide the developers of Do's and Don't and use of Gui