Authorization check for select-options field - Company code.

Hi experts,
i have company code field on the report selection screen and i have to validate the authorization check for BUKRS.
How to do authorization check for a select-options field?
Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
Thanks.

>
RNB wrote:
> Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
Does it hurt to type a few lines of code? Why do you need an FM for this my friend?
Anyways can you please tell which SAP application area (viz. FI, SD etc.) do you want to run the report?
Suhas

Similar Messages

  • Freely Programed Help for select-option field

    Hi,
    how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    Please suggest where i am doing wrong??
    Edited by: kranthi kumar on Dec 29, 2010 6:19 PM

    >
    kranthi kumar wrote:
    > Hi,
    >
    > how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    >
    > i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    >
    > i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    >
    > View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    >
    > Please suggest where i am doing wrong??
    >
    > Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
    Hi Kranthi,
    Please help me to understand your design.
    Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ?

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • MANDATORY CHECK FOR SELECT OPTION.

    Hi gurus,
    How to do a mandatory check on select options..
    how do wegive messages in webdynpro..as in information, error as we do it in report programming..!
    Best Regards,
    Navin fernandes.
    Edited by: NAVIN FERNANDES on Dec 30, 2009 3:18 PM

    Hi,
    To make a selection field mandatory:
    wd_this->m_handle->add_selection_field(
                            i_description = 'Candidate Profit Center'
                            i_id = '/MRSS/T_RMOR_PROF_CENTER'
                             i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp
                            i_value_help_id = '/MRSS/SH_RM_PC_GROUP'
                            it_result = lt_range_table
                           *I_OBLIGATORY = ABAP_TRUE*
                            i_read_only = read_only ).
    MAKE THE PARAMETER ABAP_TRUE  TO MAKE IT MANDATORY.
    OR PUT THE PARAMETER AS ABAP_FALSE.
    Priya
    Edited by: Chaitanya Priya Puvvada on Dec 30, 2009 6:34 PM

  • Selection screen: no sequence check for select option

    Hello everyone,
    I am an SAP starter and this will is my first question:
    I am making a program that approves a stock demand over several levels. When a level approves, the demand goes to the next level.
    for example:
    level 1 = planning
    level 2 = management
    level 3 = buyer
    In an overview report i want to choose for which levels i want to see stock demands. But when I make a select option for the level, I cannot choose the range between management and buyer or planning and buyer for example, because it is alphabetically not in the right order. In this case the alfabet is not important but the order of the levels is, so can I prevent this check from happening?
    Thank you very much

    Hi vandersteen,
    1. There should be some CODE
       for each level.
    2. Each code will have some description.
      eg. planning, management, buyer
    3. So, make select-option
       for the FIELD of CODE
       (and not the description)
    regards,
    amit m.

  • AP - One Check for Vendor from two Company Codes

    Our Company would like to issue one check  for a vendor in two company codes.
    Configuration has the paying company code = sending company code.
    So the payment proposal will want to create two checks, one for each company code.
    Question --- Is there a way to generate one check for the one vendor in two company codes.
    Thank you,
    Jeffrey

    Dear Jeffrey,
    Let say there are two company codes 100 and 200, in the config, you will need to make paying company code for company code 100 = 100 and
    Paying company code for company code 200 = 100.
    you will need to set the Intercompany balancing account in Tcode OBYA.
    Once you do this, the other process remains the same. Should you have questions, let me know.
    Thanks
    Raghuram

  • Authorization check for Selection of Filter Values for Query Definition

    I am looking for a solution to the following problem:
    Assuming you have confidential master data in your development system.
    How can I protect a query developer to see only master data values, that he is allowed to see when e.g. creating a restricted key figure.
    I know that you can enable a setting in the "Business Explorer" tab that says "Query Def. Filter Value Selection". The help says:
    This field describes how the selection of filter values and the restriction of characteristics function when you define queries.
    The values from the master data table are normally displayed when you restrict characteristics. For characteristics without a master data table, the values from the SID table are displayed instead. In a number of cases, however, it could be better to display only the values that are in the InfoProvider. The setting "InfoProvider Values Only" is permitted for this reason.
    This would almost do it, but it can be overwritten in the BEx Query Designer.
    Is there a way of preventing Query Developers from seeing all InfoObject values when creating restricted key figures?
    Thanks for your replies.

    Hi,
    Thanks for the points. I am not too sure how you guys go about implementing SAP. Sorry I am not trying to be rude but you're not suppose to see any "real" data in DEV where all development takes place. You can't prevent query developers to see data. Without data there is no way they know their queries are right or wrong. Ask ECC guys to load dummy data to DEV environment that closely resemble those data currently in legacy e.g. real data. Sorry it was my mistake at the beginning when i thought it was preventing specific end users to see data that are not belong to them.

  • Value help for select-option not filling selection field

    I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
    I have the following call:
      wd_this->m_handler->add_selection_field(
                          i_id = 'SHORT_D'
                          i_description = 'Program'
                          it_result = lt_range_table
                          i_read_only = read_only
                          i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
                          i_value_help_id = 'ZPROGSTUDY' ).
    where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
    Any ideas ? Thanks.

    Hi Malcolm,
    The code you have is OK. I copied your code into a test program and it worked as expected.
    I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
    Does your SHLP work when you test it from SE11? Returns values?
    SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
    select-option fields > special cases > input helps > Non field-specific input help using search help
    Regards,
    George

  • Select Options field width?

    Hello,
    In my WD view i have many Select Options fields which are grouped into various blocks. Now when i see the output all the Select Option fields within its block look good with equal widths between the text and field, but between various block levels the width isn't the same. Is there anyway i can control the width for Select Option field elements? Thanks.
    Regards,
    Vasu

    Hi Vasu.
    AFAIK you do not have any chance to configure the layout of the select options.
    You can only use blocks as you already did.
    So why you do not use blocks for all your select options to avaoid this issue?
    Cheers,
    Sascha

  • Selection screen and authorization check for plant from 2 diff tables?

    Hi,
    Could anyone help me out?
    how to write code for  this?
    u2022   Fields for selection
    Plant : WERKS (one selection) - check authorization access u2013 Mandatory .
    Material code MATNR (one selection) - Mandatory
    and while doing the authorization check how should i check it ? here iam taking the table as t001w for werks and for selection screen iam taking it from another Z table......i should take 2 different tables here.....for selection and for authorization.
    my code is pasted below:
                     Data Declarations                                  *
    data: s_werks type t001w-werks.
                     Selection Screen                                    *
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-h01.
      PARAMETER : p_werks like Ztable-werks OBLIGATORY,
                  p_matnr like mara-matnr  OBLIGATORY.
      SELECTION-SCREEN END OF BLOCK b1.
                     Start-of-Selection                                  *
    START-OF-SELECTION.
    **-Get Plants for Authorization check.
       SELECT werks
              FROM t001w
              INTO TABLE it_werks
          WHERE werks IN s_werks.
        LOOP AT it_werks INTO x_werks.
           v_werks = x_werks.
    Regards,
    Reddy

    Plant : WERKS (one selection)
    That means only 1 plant value to be given? Then you can use PARAMETERS instead of SELECT-OPTIONS. And additionally, you'll only have to check that plant value.
    Using SELECT-OPTIONS you would indeed retrieve the plants and check each individual selected plant. Your code for that is good enough to start with.
    I wouldn't do the check in the START-OF-SELECTION event, but rather in the AT SELECTION_SCREEN event.
    To perform an authorisation check; try the ABAP help on AUTHORITY-CHECK. And you will need to know which authorisation object you need to use.
    Just noticed you're using PARAMETERS
    WHERE werks IN s_werks
    should be
    WHERE werks eq p_werks
    But actually you don't need to select T001W. Just use the value in p_werks.
    Edited by: Maen Anachronos on Oct 10, 2008 7:53 PM

  • F4 help FOR A SELECT OPTION FIELD

    Hi,
    Can anyone tell how to provide F4help for a select-option field?
    Regards,
    Hema

    Hello,
    If you created a search help in the DDIC...Then check the check box EXPORt parameter for one of the fields
    If you used the function module Make sure you pass the correct values..Also the field name in CAPITAL letters..
    Check this code..
    TABLES: T005T.
    DATA: BEGIN OF t_t005 OCCURS 0,
            land1 TYPE t005-land1,
          END OF t_t005.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
    PARAMETERS: p_land1  TYPE t005-land1.
    SELECTION-SCREEN COMMENT 13(35) v_text1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_text = 'Country'.
      v_text1 = ' '.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
      REFRESH: t_t005.
      SELECT land1
             INTO TABLE t_t005
             FROM t005.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
    *            DDIC_STRUCTURE   = 'T005'
                PVALKEY          = ' '
                retfield         = 'LAND1'
                dynpprog         = sy-repid
                DYNPNR           = sy-dynnr
                dynprofield      = 'P_LAND1'
                callback_program = sy-repid
                value_org        = 'S'
           TABLES
                value_tab        = t_t005
           EXCEPTIONS
                parameter_error  = 1
                no_values_found  = 2
                OTHERS           = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Deepu.K

  • Standard Match Code for Selection Options with Example

    Hi Guys,
                 Can anybody tell me Standard Match Code or Search help for Selection Options.
             ex: MBEW-MATNR , MBEW-BWKEY and MBEW-BWTAR. can anybody tell how to keep Search Help or Match Code for the Above Fields in ECC 6.0 with Example
              Very Urgent.
    Thanks,
    Gopi.

    Well Gopi.. as per your requirement no need to use collective search help.
    I guess you have three fields in selection-screen,out 3 fields you have two fields contains search help.
    Create your user defined search help BWTAR ..
    Check the below links for creation search help :
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Hope you got it.
    Thanks
    Seshu

  • Data model 0G: No authorization for entity type Account (Company Code) - activity Display

    Hello Expert,
    I have a problem with authorization in MDG-F.
    I want to create Account with Collective processing. After, entered Entity type, Edition and Chart of account,  Blocking message "Data model 0G: No authorization for entity type Account (Company Code) - activity Display" is displayed.
    But, i checked in PFCG transaction, for this user profil, activity are : create or generate, Change and display. So, for me , it is correct.
    Please, check screen shot below :
    Blocking message :
    and in PFCG transaction
    Could you help me to solve this point?
    Kind regards,
    Heri RAOELISON

    Hi Heri,
    the system behavior is correct. The account in company code consists of three entity types:
    1) COA - Chart of Accounts (Type 3)
    2) ACCOUNT - Account (A-Segment, related to ECC table SKA1, Type 1)
    3) ACCCCDET - Account in Company Code (B-Segment, releated to ECC table SKB1, Type 1).
    3) includes 1) and 2) whereas 2) includes 1). If you grant authorization only for 3) but not for 1) and 2), you cannot do anything.
    Best regards
    Michael

  • How to put Mandatory option for selection screen fields in ABAP Queries

    Hi Experts
    Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
    Manually I had written code in the At Selection Screen  option in infoset to display error message if that field is blank.
    But I need to display the selection fields with the tick mark (obligatory mark).
    How to do this?
    Appropriate answers will be awarded

    Hi
    For parameter option
    parameters : p_kunnr type kna1-kunnr  obligatory.
    For select option
    select-options: s_date for vbak-erdat obligatory.
    Plz rewards points ,
    Regards ,
    Ganesh.

  • "No amount authorization for customers/vendors in company code" error

    Hi gurus,
    When I try to post casj journal entry in FBCJ below mentioned Error showing please help
    I create Business Transactions ( Revenue and Expenses) in FBCJC2
    Defined no. range in FBCJC1
    Tolrance group for OBA3 created 1 entries blank
    and
    When I post a F-43 (purchase Invioce) same comment showing
    "No amount authorization for customers/vendors in company code "
    Thanks
    Srinath

    Hi Srinath,
    Check with the following thread can help you:
    No amount authorization for customers/vendors in company code 123..
    Also
    You might want to check the following:
    Configure Vendor-Specific Tolerances
    Define Tolerance Groups for Employees
    Define Tolerances (Customers)
    Search SPRO for these and you will find what you need.
    Kind Regards,
    Fernando Evangelista

Maybe you are looking for

  • Adobe Photoshop Elements 10 & Premiere Elements 10 for Windows 7 64 bit install

    I have Adobe Photoshop Elements 10 & Premiere Elements 10 for Windows & Mac - Full Bundle Version.  It comes with 5 disk, to install on win 7 64 bit you use disk 2, what is disk #4 used for?   No instuctions found with software and Adobe chat does no

  • How can i return a file as a Tranferable object

    This method bundles up the data to be exported into a Transferable object in preparation for the transfer.*My requirement is to transfer a file as a object.* Here in example it returns a string. So i would like to know how can we code to transfer a f

  • Statement error in for loop noobq

    Hi Could anyoe tell me why this wont work? Its supposed to count upp to tal in the first one and then count down from tal in the second and its the second one that dont work. I get a statement error for the text i put in between stars (supposed to be

  • Show dataTips on Chart

    Hi, I found some cool stuff in the internet. and I want to develop it. the code shows or draw a line while mouse are moving on the chart. Now I want to show the data tips/data points if the line get on the linechart. I already googling but I dont fou

  • Flashback in oracle 9i

    Dear all: I am careless to drop a table. Can I flashback the table use "SQL> FLASHBACK TABLE RECYCLETEST TO BEFORE DROP;" in Oracle 9i ? Regards Terry