To get plant field in my selection screen based on user profile maintained

Hi All,
I have plant (WERKS) field in my selection screen. Now I need to get the plant value maintained in the user profile for that user. So how to get the plant value based on the user profile.
Please let me know if anyone having idea on this. I will reward to you with the valid points.
Regards
raghu.

Hi Raghu,
I have searched and found this information, check it may help you
Check the SY-UNAME with the the name of the Plant
User Plant user data take it from T001W table
and All logon User data will be in USR02 table
take the data from corresponding tables and check.
If you are working in SRM
Use FM BBP_READ_ATTRIBUTES to get the User plant after passing the User ID to the FM.
in SUIM go to Users by Complex Selection criterion.
In that there would be the Authorization Object..select an object which has the value plant in it and enter the value inthat....
Also u can enter WERKS value as 1120 in the object field and get the list,
Regards,
Satish

Similar Messages

  • How to gray out certain fields on the selection screen based on the radio b

    HI All,
      I have an ALV report. On the selection screen I have 2 radio buttons ..for eg..A and B.
    When radio button A(its on by default) is on..certain fields not relevant to this should be grayed out. Similarly when radio button B is on, certain fields should be grayed out.
    I did the AT SELECTION SCREEN OUTPUT and also did the
    LOOP AT SCREEN....ENDLOOP logic. The logic works but when I click the radio button B...the screen fields automatically does not gray out. I have to press ENTER and then its grays out.
    I know a USER_COMMAND needs to be attached.
    Can anyone give me a step by step details of how to do this. I truly appreciate it. if a screen painter thing is required..please give me the tcode and step by step detail to do this.
    Thanks

    Try this one too:
    REPORT ztest.
    TABLES: mara,
            bkpf.
    CONSTANTS:
                  c_pos(3) TYPE c VALUE 'POS',
                  c_acc(3) TYPE c VALUE 'ACC',
                  c_all(3) TYPE c VALUE 'ALL',
                  c_x TYPE c VALUE 'X'.
    The Selection Screen Definition
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: s_mara FOR mara-matnr.
    SELECTION-SCREEN END OF BLOCK b_0.
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-037.
    PARAMETER: rb_all RADIOBUTTON GROUP rb1 USER-COMMAND rad default 'X',
               rb_acc RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN END OF BLOCK b_1.
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc1 FOR bkpf-blart MODIF ID acc,
                      s_blrti1 FOR bkpf-blart MODIF ID acc.
    SELECTION-SCREEN END OF BLOCK b_2.
    SELECTION-SCREEN BEGIN OF BLOCK b_3 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc2 FOR bkpf-blart MODIF ID all,
                      s_blrti2 FOR bkpf-blart MODIF ID all,
                      s_blrtv2 FOR bkpf-blart MODIF ID all.
    SELECTION-SCREEN END OF BLOCK b_3.
    AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      PERFORM f0200_screenfield_hide_logic.
    initialization.
      PERFORM f0200_screenfield_hide_logic.
          FORM f0200_screenfield_hide_logic                             *
    FORM f0200_screenfield_hide_logic.
      LOOP AT SCREEN.
        IF rb_acc = c_x.
          IF screen-group1 = c_all.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
        IF rb_all = c_x.
          IF screen-group1 = c_acc.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDFORM.                    " F0200_SCREENFIELD_HIDE_LOGIC

  • How to get required fields in the selection screen while filling a set tabl

    hai,
    i was filling the set up table for 2lis_13_vditm.but while filling the set up table in the selection conditions in the tcode OLI9BW.
    I would like to have the a field added in the selection condition which is not existing in the OLI9BW.
    kindly help me out of ths.
    with regards
    soumya.

    As far as I know, you're just limited to whatever fields are in the transaction... That applies for any of the setup tables processes.
    If you need to limit the data that goes to BW, you can do so by putting the logic in CMOD, EXIT_SAPLRSAP_001, Include ZXRSAU01 for the specific extractor.

  • Can I get field name of Selection screen ?

    Hi, experts.
    I'd like to manage PGM's screens & fields of screens. I need to know field names of selection screen in  external PGMs to manage input values of those fields.
    For values, I'll use 'Dynp_values_read', but what should I use for getting field names of selection screen?
    Is there any functions, classes or tables for PGM's fields of selection screen?
    I've found tables&functions for this and I found D020S, D020T, D021T for PGM's screen. But I counld't see proper field names that shows on a selection screen when I excuted PGM. I guess there's a conversion routine between data that saved in repository and field name on screen.
    Please let me know what should I use a function, tables or else.
    Thanks.

    Hi
    Use Read text pool syntax
    READ TEXTPOOL program name
    INTO T_TPOOL
    LANGUAGE 'NL'.
    within TB_TPOOL all select option field namees will be stored under field ID with type S
    Edited by: Lavanya K on Apr 22, 2009 10:02 AM

  • I need to get an icon on the selection screen as well as selection text .

    HI ,
           Can anybody please tell me how to get an icon in the selection-screen along with the selection texts written for select-options or parameters.
    For Example:
                        Select-Options: S_WERKS  For  T001w-werks,
                                                S_AUART   For  TVAKT-AUART,
                                                S_ERDAT   For  LIKP-ERDAT.
    IN THE SELECTION TEXTS: 
                     FOR S_WERKS  i write (WareHouse)
                     FOR S_AUART   i write (OrderType)
                     FOR S_ERDAT  i write  (PlantDate)
              I need to get the icons for this fields as well as selection texts written for these fields.
    I will reward full points to the solution.
    Mohan.

    Hi mohan,
    <b>Run the below code</b>
    Report zex33.
    tables : t001w,
             tvakt,
             likp.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    select-options: S_WERKS For T001w-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    select-options :S_AUART For TVAKT-AUART.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    select-options : S_ERDAT For LIKP-ERDAT.
    selection-screen end of line.
    initialization.
      write ICON_WAREHOUSE  as icon to text_001.
      concatenate text_001 text-001 into text_001 separated by space.
      write ICON_ORDER  as icon to text_002.
      concatenate text_002 text-002 into text_002 separated by space.
      write ICON_PLANT  as icon to text_003.
      concatenate text_003 text-003 into text_003 separated by space.
    *In text-001 -> Warehouse
    *In text-002 -> Order Type
    *In text-003 -> Plant Date

  • Getting parameter id in the selection screen parameter

    Hi,
    There are few fields in my selection screen. I need to set the parameter id of warehouse number such that the value in the user profile should get displayed by default when the user executes the report.. The parameter id is /scwm/lgn . How do I get it? Please advise.
    I have my parameter as follows:
    parameter: p_lgnum   TYPE  /sapapo/matio_wm-lgnum obligatory.
    Moderator message: please read F1-help for "parameters", section "value options".
    Edited by: Thomas Zloch on Jan 19, 2012

    not enough research..
    Parameter: p_lgnum TYPE /sapapo/matio_wm-lgnum MEMORY ID /scwm/lgn .
    press F1 and see how it works

  • How to Add a new fields in the selection screen of LDB.

    Hi All,
    I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
    So could you please tell me for that where i need to add the code for selecting the data.
    Thanks
    Roli

    Hi
    welcome to SDN forum
    If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
    if you wants to modify the std LDB of SAp means take the access key and to modify that code
    if you add the extra field you have to modify the where conditions in the code also
    see the doc
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    Regards
    anji

  • Field in the Selection Screen.

    Hello Experts,
    I need some info to list all the reports which uses a field in the selection screen.
    For example the field SAKNR (G/L Account). If this field used in the 10 reports selection screen, then I need to display all the 10 reports.
    Is it possible to get the fields used in the Sel. screen of a report.
    Please give some suggestion.
    Regards,
    Vasanth

    Hello Narendra,
    Thanks for the reply.
    See In a program I declared the field like this:
    PARAMETERS: P_SAKNR LIKE EKKN-SAKTO.
    So in this case I have to list this report name.
    Hope you understand my requirement.
    Thanks !!!
    Vasanth

  • Possibele entries are not populating for the fields on the selection screen

    Hi,
    Possible entries are not populating for the fields on the selection screen for the query.But its working fine in Development and Quality Systems.
    Can any body help me out
    Regards,
    Amit.

    Hi,
    In the Selection screen,go to Settings->Value Restrictions tab->Read Mode Settings->Custom radio button and select the options Values in Master Data or Only Values in InfoProv or Only Posted values for navigation.
    After this setting,check whether you are getting the data or not.
    Rgds,
    Murali

  • Validate plant and material on selection screen with select-options

    Hi all,
    I want to validate plant and material on selection screen. More over I need to validate the combination of that also (i.e plant based materials). Individually I made the validations, but combination I didn’t get it.
    For your information both are select-options, please reply me if you have an idea. The table to get the relationship is KEKO. <b>I have the below code for parameters, but I require code for select options.</b>
    SELECT MATNR WERKS FROM KEKO UP TO 1 ROWS
    INTO (KEKO-MATNR, KEKO-WERKS)
    WHERE MATNR = P_MATNR AND
    WERKS = P_WERKS.
    IF SY-SUBRC <> 0.
    MESSAGE E023 WITH 'COST ESTIMATE NOT FOUND FOR '
    P_MATNR P_WERKS 'COMBINATION'.
    ENDIF.
    ENDSELECT.
    Surely I will reward you.
    Thanks in Advance,
    Raghu.

    Raghu,
    You can't validate on select-options, MARC will have N to 1 relation between Material and plant.
    You can do one thing, keep material as select-option and plant as parameter, now you can validate the materials on plant level.
    Reward if this helps,
    Satish

  • Validate plant and material on selection screen

    Hi all,
    I want to validate plant and material on selection screen. More over I need to validate the combination of that also (i.e plant based materials). Individually I made the validations, but combination I didn’t get it.
    For your information both are select-options, please reply me if you have an idea. The table to get the relationship is KEKO. I have the below code for parameters, but I require code for select options.
    SELECT MATNR WERKS FROM KEKO UP TO 1 ROWS
    INTO (KEKO-MATNR, KEKO-WERKS)
    WHERE MATNR = P_MATNR AND
    WERKS = P_WERKS.
    IF SY-SUBRC <> 0.
    MESSAGE E023 WITH 'COST ESTIMATE NOT FOUND FOR '
    P_MATNR P_WERKS 'COMBINATION'.
    ENDIF.
    ENDSELECT.
    <b>Note: I need to calidate on KEKO only..</b>
    Surely I will reward you.
    Thanks in Advance,
    Raghu.

    Hi rag ,
    The following code will works .... i have practically used in my report.
    Local data declaration
      DATA: l_material TYPE matnr.
    Validation check for material
      IF s_matnr IS NOT INITIAL.
        SELECT matnr          "material
          FROM mara
            UP TO 1 ROWS
          INTO l_material
         WHERE matnr IN s_matnr.
        ENDSELECT.
        IF l_material IS INITIAL .
        Invalid material entered .
          MESSAGE e136.
        ELSEIF s_mawerk IS NOT INITIAL.
          CLEAR l_material .
        Validation check for material exists in plant
          SELECT  matnr        "material
            FROM marc
            UP TO 1 ROWS
            INTO l_material
           WHERE matnr  IN s_matnr
             AND werks IN s_mawerk.
          ENDSELECT.
          IF sy-subrc NE 0 .
          Invalid material entered for the plant.
            MESSAGE e130.
          ENDIF .
        ENDIF.
      ENDIF.

  • Name of the field on teh Selection Screen

    We execute a report program and we get a Selection Screen .
    The requirement is can we  catch the field names of the fields on the selection screen.(We can get the field name by pressing F1 and looking into the Technical Information)...But how can we fetch the value of the field name dynamically.
    Any information/Pointers in that direction will be very helpful.

    Hi,
    This is a part of code from SAP standard code to get the technical field info. Probably you can explore on this ...
    DATA epss TYPE REF TO CL_EPSS_GENERIC.
    DATA w_appl        TYPE epssappl.
    DATA l_info_object TYPE sdokobject.
    DATA l_infodoc     TYPE epssdoc.
    CALL METHOD epss->give_applications
    EXPORTING
    applid  = 'EPSSHTML'
    IMPORTING
    control = w_appl-ref.
    CALL METHOD w_appl-ref->('GIVE_ACTUAL_DOCUMENT_INFO')
    IMPORTING
    infodoc = l_infodoc.
    Here the l_infodoc contains the techical field info.
    Regards,
    Wenceslaus.

  • Adding field in the selection-screen of a zprogram

    hi gurus,
    i have to add field in the selection-screen of oppurtunities. in database i have a field salesvalues, some of oppurtunity guids have this field value. first i need to add in selection-screen in this alv report. and fetch the data from ztable into required field . if the input fields of the salesvalues field id filled, then filter the global  guids(from global table which had the guid values already) with this guids related to salesvalues. and if one single guid mathes to 2 values of salesvalues then concatenate 2 values with comma and display in single field. if select-options are blank then fetch all opportunity guids which have salesvalues. pls give solution.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Functional area(FKBER( field in the selection screen))

    Hi,
       I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
    Regards,
    Palani

    Hi,
    How you have filled the values?
    It is 16 CHAR long.

  • Functional area(FKBER field in the selection screen of the report painter))

    Hi,
    I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
    Regards,
    Palani

    1. Call GR22 and click "Characteristics".
    2. Check FKBER and assign a position number to it.
    3. Save and close the library.
    4. Call your report in GRR2 and you should now see FKBER as an available characteristic.
    5. Use it in the General Data Selection or as a Lead Column, as per requirement.
    Or,
    1. Call GR21 and create a custom library. Provide a name and description and also provide a library you can copy from (scan for the best-fit library).
    2. Now follow the steps 2 through 5 above to achieve your result.
    Hope this helps.
    Cheers.

Maybe you are looking for

  • Someone please help me Design the database of bill of materials with 1 item can have mutiple parent

    I got this sample from  Uri Dimant (MCC, MVP) , The problem is i want 1 item to have multiple parent  but this example don t   let 1  item to have multiple parents. this is not suit for my objective.  CREATE TABLE Employees   empid   int         NOT

  • Separating 1st name and last name in contact name in a component

    Hi, I have a requirement as follows: "while creating opportunity and after selecting the account, a pop up window prompted to choose the contact person.The form of the name has the Contactu2019s Lastname and Firstname concatenated into a field labele

  • Assistance in specialising in HANA for career options

    I'm Anirudh.I recently joined SAP HANA training and have questions regarding my career choices. I'm planning to do my MBA in US.I want assistance in choosing the specialization in my masters in which HANA is related to and my career options with MBA

  • OracleConnection.createARRAY: Unable to resolve type

    Hi All, for some good reasons (don't ask ...) I need to implement a solution where a directory listing, on the DB server machine, can be gotten via an sql query. I have to say I am not very experienced with Java in Oracle, please forgive the newbie m

  • Disabling user from resizing window?

    Hello. How do I stop users from being able to resize the window? Also, how can I set the default size of my window? Heres a sample... import javax.swing.*; import java.awt.event.*; import java.awt.*; public class gui extends JFrame      public gui()