Default to plant

Hi
I have a report which is used by 50 plants. In the selection variable screen, 0PLANT is to be entered when executing the query.
I have 50 user names created like PL001, PL002, PL003...PL050.
When PL001 user executes the query, by default S001 (plant) should be displayed by default. But the users are not restricted to view only that plants, later they can change and view the data for other plants
If i use the authorization object i can only authorize to particular store but we want users to view all the stores but by default only their particular store to be displayed in selection screen.
Thanks
Annie

Hi
Thanks for the code.
I have written the following code
when 'DEFSITE'.
if i_step = 1.
select single PLANT into l_DEFSITE from ZTABLE where bname eq sy-uname.
      CLEAR L_S_RANGE.
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT  = 'EQ'.
        L_S_RANGE-LOW  = l_DEFSITE.
         APPEND L_S_RANGE TO E_T_RANGE.
Its working fine but the problem is in all my reports my 0plant is restriced to the variable of type authorization, lets say "SITEAUTH" and now my variable DEFSITE is of type customer exit. Now if i remove the the SITEAUTH from my report and put DEFSITE, and when the user executes the report he will be seeing his site name by default in selection screen.
But my requirement is by default the store number should be displayed and later on the user can change to other store to view the report for other store.
What implication do i face if i remove the SITEAUTH and put DEFSITE in query.
and
After incorporating DEFSITE in the query designer and execute the report in analyzer, i am getting the msg that user is not authorized to but when i click on execute the report, it displays the data
and
when i execute the same report in the portal, it doesnt give me any msg, it just executes and gives the result. Why the msg is appearing in analyzer?
REgards
Annie

Similar Messages

  • Default SC Plant Company code and Storage location Based on Position

    Hi All,
    We are on version SRM 7.02.
    We are using SAP ECC R/3 EHP7 based system as a back end FI and HR system.
    Org structure in SRM is replicated fromm HR system.
    We have case of concurrent employment in the HR org structure , which means one USER can be assigned to multiple Positions in an org structure.
    We have a user A , who is created in Two different org units say O1 , O2 occupying positions P1 and P2, belonging to company code C1 and C2.
    Whenever a SC is created a custom enhancement shows all the user positions to him and he has to choose one from the list of positions.
    Now based on the selected position(P1) , i have to default plant(PL1), storage location(SL1) and Company code(C1).
    Even after defaulting attributes based on the position, user gets an error "company code C1 is not valid for user"
    This error (Message class : /SAPSRM/CLL ; # 135) is thrown from method : /SAPSRM/CL_CH_WD_DODM_SC_I_BD /SAPSRM/IF_CLL_MAPPER~UPDATE
    after getting user's Company code using following method.
    /sapsrm/cl_pdo_shared_user=>/sapsrm/if_pdo_shared_user~get_company_code
    This gets Company code as C2 ; Based on Users Attributes and not based on User Position attributes.
    If i overwrite values fetched by this method in Implicit enhancement, then plant(PL1), storage location(SL1) are not getting fetched.
    Does anyone have any solution for this problem?
    Regards,
    Ashish Shah

    Hi MURUGESAN !
          Can you give me some information more in Special Procument Configure in plant 2000 like:
              -  Procurement type (maybe F)
              -  Special procurement (Maybe U)
              -  Plant (Maybe 1000).
              - Issuing plant (maybe 2000)
           We will check together.
           Regards,
          Tony

  • PO Tax Jurisdiction Code defaulted from Plant but then overwritten by CC

    Hello everyone!
    I had a question regarding defaulting the tax jurisdiction code.  When using ME21N the tax jurisdiction code is defaulting from the value we have in the plant which is what we want.  When I go and fill in the additional information that the PO needs to be saved (such as GL, Cost Center, etc.) it is overwriting the defaulted plant tax jurisdiction code and changing it to the Company Codes default jurisdiciton code.  Is there a way to NOT have the company code value enter?  I just want it to remain as the plant Tax jurisdcition code.
    Thank you,
    Rob

    please read the OSS Note 501054 - FAQ: Taxes in purchasing
    How is the tax jurisdiction code (tax jurisdiction code) determined in purchase orders?
    Answer:
    You activate the tax handling with tax jurisdiction codes in FI Customizing (transaction OBCO). In the standard system during the creation of a purchase order, the system consideres the following sources for the tax jurisdiction code: Reference item, request for quotation, contract, plant, the account assignment object. During this process, the system overwrites the respective preceding value in this list. If, for example, you have maintained a tax jurisdiction code with the account assignment object for a purchase order item, this entry "wins" as opposed to the entry in the plant table. Besides this, the tax jurisdiction code can be entered manually.
    If you use the function from Note 493515, also the tax jurisdiction code from the delivery address can be taken into account (see below.).
    There is more useful info in this note, as well for jurisdiction code

  • How to make plant default on the line item along with the item category

    Hi All,
    I want to default Plant on the line item along with the item category.In order to meet the following scnario.
    1. I have two plants,first plant is maintained for the valuated item and the second plant is maintained for the non valuated item (Free Goods).
    Whenever user is entering an item in the sales order for which corresponding free goods item is maintained in the master record.System is proposing two lines items in the sales order.
    First line item is the main item which appears along with the Plant 1 which contains valuated items
    Second line item is for the Free of charge item which is being proposed from Plant 2, which contains the non valuated items.
    I want that the system should always propose Plant 1 with main item and Plant 2 with the Free of Charge item by default. (Along with the item category TAN and TANN)
    Rahul

    Delivering Plant is determined in the following order
    1. Customer material info record.
    2. Customer master
    3. Material master.
    Use one of them an default your plant.
    I think in your case you can use the materila master which will give an item level plant different. The other two will default the plant at the header level.
    regards
    jude

  • Default Plant and storage location for components in MFBF

    Hi,
    I have 2 plants 1000-procurement plant and 2000- production plant. I am using special procurement key 70( Withdrawal from alternative plant from 1000 to 2000) for components in Plant 2000. The requirements for the components are transferred from 2000 plant to 1000 plant. The 1000 plant run MRP for the dependent requirements and procure the materials and transferred to the production storage location in Plant 2000.The raw materials are purchased in plant 1000 and transferred to Plant 2000 production storage location based on the manual reservations created with movement type 301. This is fine.
    But when I do backflush in MFBF the plant and storage location for the components issue are displayed as plant 1000 which is the procurement plant  and the production storage location in plant 2000-production plant location. In the BOM the production storage location is production storage location of plant 2000. Since we use the special procurement key system defaults the plant as 1000(procurement  plant) insteadd of 2000(production plant). can we make this plant default to the production plant 2000 as default in the MFBF goods issue screen.
    thanks and regards
    Murugesan

    Hi MURUGESAN !
          Can you give me some information more in Special Procument Configure in plant 2000 like:
              -  Procurement type (maybe F)
              -  Special procurement (Maybe U)
              -  Plant (Maybe 1000).
              - Issuing plant (maybe 2000)
           We will check together.
           Regards,
          Tony

  • Plant info on goods receipt

    Hi gurus
    We have a situation where a purchase order is created automatically for intercompany stock transfer deliveries.
    On the PO when we default the plant to be P001. But  the plant on FI doc, created by the goods receipt,  is different than the one on PO. Can you please let me know where in the configuration I can find the related settings.
    Please advise.
    Thanks in advance
    MSJ

    Hi Suzy
    I checked the MM02, the field you mentioned is blank.
    Any other idea as where I can check in configuration to find out what plant is being defaulted in FI doe for Goods receipt.
    Thank You
    MSJ

  • Plant on goods receipt document

    Hi gurus
    We have a situation where a purchase order is created automatically for intercompany stock transfer deliveries.
    On the PO when we default the plant to be P001. But  the plant on FI doc, created by the goods receipt,  is different than the one on PO. Can you please let me know where in the configuration I can find the related settings.
    Please advise.
    Thanks in advance
    MSJ

    Hi,
    In the intercompany stock transfers there will be two parties involved.One is supplying plant and another one is receiving plant.
    Supplying plant issue the material through a delivery and PGI.The material document created by this contains the supplying plant.
    Receiving plant receives the goods with 101, and this material document contains receiving plant.
    If yours is a intra company PO, in the field supplying plant there will be plant other than the plant by which PO is created. and the FI document created for both PGI and GR will have the same company code
    If yours is a intercompany PO in the place of vendor there will be a venor assigned to supplying plant.the fi documents created for both PGI and GR will have two company codes.
    Please double click on the doc info in the header tab of the material document and take the accounting documents.
    Regards,

  • Goods receipt FI doc- wrong plant

    Hi gurus
    We have a situation where a purchase order is created automatically for intercompany stock transfer deliveries.
    On the PO when we default the plant to be P001. But  the plant on FI doc, created by the goods receipt,  is different than the one on PO. Can you please let me know where in the configuration I can find the related settings.
    Please advise.
    Thanks in advance
    MSJ

    check the Po , item level. Po historyt tab. click on the mat doc  for mvt type 101..ie the gr doc number.
    Click on the accounting entries. plzz see it.
    he plant wont be diffrent.

  • How to get automatic plant and shipping point and storage location

    hi,
    sap gurus,
    how to get automatic plant and shipping point and storage location automatically into the sales order
    i have done all the config settings for that
    but its not appearing automatically.
    regards,
    balaji.t

    Hi
    Balaji...
    U can get the plant in sales order,  by doing the default the same in customer master or in  material master. In customer master -- sales are data--shipping tab delivering plant there u can assign and get the same in order for that customer. it is better to do in customer master rather than in material master.
    Shipping point is getting determine in sales order and u can not make it default like plant. Shipping point is determine in the basis of Shipping condition of customer ( ship to party)+ loading group of material + Deliverying plant there u have to assing the shipping point and it will flow in the sales order. Tcode OVL2
    For S loc u have to enter manually in the sales order u can not get it automatically.
    Hope this will help you.
    Thx.

  • Default a value based on the selection in the pop up

    Hi Experts,
    My requirement goes like this:
    We have a custom pop-up to display plant fields for a component at the item level. If the user selects the plant in the pop-up, then the plant should get defaulted at the item level plant field. The plant field is also a custom field.
    While creating the pop-up component, the binding has already been established between the two components.
    My question is:
    The pop-up component is different from the item view component. SO how to capture the event from the pop-up and code it to default the plant at the item level. How the code will be to call the value of one component from another.
    How to default the plant value at the item block.
    Thanks,
    Sangeeta.

    Sangeetha,
    Incase of pop ups, we need to specify a CLOSE EVENT HANDLER at the
    very same place where we call the pop up.
    gref_popup = me->comp_controller->window_manager->create_popup(
                          iv_interface_view_name = 'xxx/MainWindow'
                             iv_usage_name          = 'Cuxxxx'
                             iv_title = lv_popup_title ). 
        gref_ppg_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      ENDIF.
    * Set the callback event on the imported controller
      gref_ppg_popup->set_on_close_event(  iv_view = me
                                          iv_event_name = 'POP_CLOSED' ).
    In this event handler(it will be created in the source component itself) , you need to capture the outbound plug information and the data on the pop up
    ASSIGN me->context->('AGREEMENT') TO <pointer>.           "#EC NOTEXT
      lr_target_node ?= <pointer>.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_bsp_wd_incorrect_implement.
      ENDIF.
      CHECK lr_target_node IS BOUND.
      IF   account_popup IS BOUND.
    * get the result (list) from the search
        lv_fired_outbound =   gref_popup->get_fired_outbound_plug( ).
        CHECK lv_fired_outbound IS NOT INITIAL.
        lr_node =   gref_popup->get_context_node( 'PARTNER' )."#EC NOTEXT
        You can refer to any standard UI F4 value help and understand the logic behind.
      Regards,
      Masood Imrani S.

  • Plant disappears in extended attributes

    Hello SRM Experts,
    Systems: SRM-Server 550, ERP2005
    scenario: classic
    After a Upgrade from SRM 3.5 to SRM 5.0 I like to enter a plant in PPOMA_BBP extended Attributes. I can select the backend system and the plant but when I save it, the whole entry will disappear. The message "Data has been saved" 5A 497 appears but the entry is gone.
    I have already used the report BBP_LOCATION_GET_ALL.
    Has anybody an idea why this problem occurs?
    Thank you very much for your answers.
    Kind regards
    Axel

    Hi
    Ensure that you are not making settings from SRM Web user and only using SRM  Logon user in GUI.
    Please refer to the OSS notes.
    <b>Note 110909 - Composite SAP note on generic attributes
    Note 512660 - EBP: Defaults for plant and storage location disappear
    1012805 - 'Settings' - Input search for Plant / WRK is not working
    672275 - EBP4.0: Performance during start of 'Shop' (shopping cart)
    Note 864221 - EBP 4.0+: Performance location</b>
    Please detail your steps, how to re-produce the error.
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Auto determination of plant in Order-Critical Issue

    Dear Experts,
    In my project i am having an requirement, that in sales order the plant for the material has to be determined automatically, but the issue is
    1. I cannot maintain Customer Material Info Record, as the Material, and customer data are very huge. i. e. more then 1000 material and and lacks of customer.
    2. I cannot maintain plant in customer master, as material is from different plants, and different company codes,
    3. I cannot maintain in Material Master as one material is assigned to different plants.
    Business process..
    I have 2 company codes, 125 plants, out of this 25 are selling plant.
    This is a business critical situation for me, So please suggest any solution, in customizing/development. Suitable points will be awarded.
    its urgent. thanking you in anticipation.
    Regards
    Bidhu Bhusan Samantaray
    9820917582

    Hi
    You can maintain plant details only in MMRs since you have to extend them for all the required sales org and DC combinations.
    As we configure the Delivering Plants in IMG-Enterprise structure-Assignments, relevant for that sales org and dist channel, the number of plants that sell material in that sales area will come down drastically.
    In the sales order depending on the sales area of that customer, the corresponding MMR will default a plant and availability check happens in that. If you wish to change the plant, you can change it at item level using F4 functionality, which will display only the list of Delivering plants.
    Thanks,
    Ravi

  • Get plant from sales org and distribution channel

    Hi expert,
    how to get default delivery plant from sales organization and distribution
    channel.
    thanks,
    neo

    thanks for your quick reply,
    i saw table tvkov which has field vkorg,vtweg
    but in tvko i found vkorg only .
    i don't get vtweg in tvko table,
    can u tell me which two condition i need to use ofr join,
    one is vkorg and the other one (?) i don't get it.
    thanks,
    neo

  • Plant Maintenance - Maintenance Order

    While executing the Maintenance Order,
    is it possible at Components Tab for default existing of Item Category 'L'

    hi
    you have option to ,ake default item category against the materila type and plant.
    follow the path to make default values
    Plant Maintenance and Customer Service>Maintenance and Service Processing>Maintenance and Service Orders>General Data>Define Default Values for Component Item Categories-->New entries
    pl try
    ashok

  • Plant editable in MIGO GR or VL31N

    Hi,
    I was wondering if we can edit the Plant upon MIGO GR 101 or VL31N (movt 101).  As per our testing. Plant is required during Purchase Order and inspite configuration (SPRO-MM-PO-Define Screen layout at doc level) leaving plant option or un-ticked, the plant is still copied. Perhaps there is another way where the user can have the liberty to change the plant upon Goods Receipt.
    Thanks.

    Hi!
    Sorry, but there is no option to do this.
    In a goods receipt for a purchase order (via MIGO or VL31N) the key data from the purchase order item defaults (material, plant) and it is not possible to change it.
    The field selection for the movement type 101 (or any other movement that you create as a copy of 101) does not have any influence.
    Best regards,
    Esther.

Maybe you are looking for