Permitting user to choose value for a field only from F4

Hi all,
   I have the following requirement in table maintenance generator.
   There is a custom field in the Z table for which table maintenance is generated to which a search help is attached.
   Now in the maintenance screen(SM30) i get a F4 value help for this field and also user can input values in this field. But the requirement is that the user should be able to select values only from F4 and should not be able to input any values.List box is not accepted.
Thanks & Regards,
Shafiq

Hi Jon,
   Thank you once again. The issue is solved using the 'DYNP_VALUES_UPDATE' function module.
I will put the code here for others to refer.
****ON THE SCREEN FLOW LOGIC*****
PROCESS ON VALUE-REQUEST.
  FIELD /rb05/wwr_cr_t-mvgr4 MODULE value.  "Field on which F4 is required
****MODULE IMPLEMENTATION********
*&  Include           /RB05/LYBW_WWRTTTI01
  DATA:
    l_fldval            LIKE help_info-fldvalue,
    l_repid             LIKE sy-repid,
    l_repid1            LIKE d020s-prog,
    l_dynnr             LIKE sy-dynnr,
    l_dynnr1            LIKE d020s-dnum,
    lt_return           LIKE ddshretval OCCURS 1,
    ls_return           LIKE ddshretval,
    ls_dynpread         LIKE dynpread,
    lt_dynpread         LIKE dynpread OCCURS 1,
    cnt                 TYPE i VALUE 0.
MODULE value INPUT
  MODULE value INPUT.
    GET CURSOR LINE cnt.
    l_repid = sy-repid.
    l_dynnr = sy-dynnr.
    l_repid1 = sy-repid.
    l_dynnr1 = sy-dynnr.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname           = space
        fieldname         = space
        searchhelp        = '/B05/OWWRW58'
        shlpparam         = '/B05/S_WWRW58'
        dynpprog          = l_repid
        dynpnr            = l_dynnr
        dynprofield       = '/RB05/WWR_CR_T-MVGR4'
        stepl             = 0
        value             = l_fldval
        display           = 'F'   "Force
      TABLES
        return_tab        = lt_return
      EXCEPTIONS
        field_not_found   = 1
        no_help_for_field = 2
        inconsistent_help = 3
        no_values_found   = 4
        OTHERS            = 5.
    IF NOT sy-subrc IS INITIAL.
      MESSAGE s398(00) WITH 'Call to Searchhelp failed'
        space space space.
      EXIT.
    ENDIF.
    CLEAR : ls_dynpread, lt_dynpread, ls_return.
    BREAK-POINT.
    READ TABLE lt_return INTO ls_return WITH KEY retfield = '/RB05/WWR_CR_T-MVGR4'.
    IF sy-subrc EQ 0.
      ls_dynpread-fieldname  = '/RB05/WWR_CR_T-MVGR4'.
      ls_dynpread-stepl      = cnt.
      ls_dynpread-fieldvalue = ls_return-fieldval.
      APPEND ls_dynpread TO lt_dynpread.
    ENDIF.
    READ TABLE lt_return INTO ls_return WITH KEY retfield = 'TXTSH'.   "Filling the related field
    IF sy-subrc EQ 0.
      ls_dynpread-fieldname  = '/RB05/WWR_CR_T-GB'.
      ls_dynpread-stepl      = cnt.
      ls_dynpread-fieldvalue = ls_return-fieldval.
      APPEND ls_dynpread TO lt_dynpread.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname               = l_repid1
          dynumb               = l_dynnr1
        TABLES
          dynpfields           = lt_dynpread
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          OTHERS               = 8.
    ENDIF.
  ENDMODULE.                    "value INPUT
P.S: Points alloted.
Message was edited by:
        Shafiq

Similar Messages

  • AUFGR (Order Group)- Which table has values for this field

    Hi Gurus,
    I am working on a report, which uses Key field- Order number AUFNR from table AUFK, and is similar to standard transaction KOK5 and S_ALR_87013019.
    havent been able to find where we get values for the field AUFGR from,
    If you have any table where this field gets values from/how to find that, Please do mail and help for this problem..
    Thanks,
    Regards,
    Krishna

    Hi Raman,
    Try this function module, when i execute it in transaction SE37, it show me the Order Group list, it can be helpful:
    CALL FUNCTION 'G_SET_SELECT'
    EXPORTING
       CLASS                   = '103'
       CRUSER                  = '*'
       DISPLAY_ONLY            = ' '
       DYNP_TITLE              = ' '
       ECCS_DIMEN              = '*'
       ECCS_ITCLG              = '*'
       ECCS_SITYP              = '*'
       FIELD_ENTRY             = '*'
       FIELD_NAME              = 'AUFNR'
       KOKRS                   = 'FSCO'
       KTOPL                   = '*'
       FIKRS                   = '*'
       LIB                     = ' '
       MULTIPLE_CHOICE         = ' '
       NO_CLASS_DISPLAY        = 'X'
       NO_DYNAMIC_SETS         = 'X'
       NO_MAINTENANCE          = 'X'
       NO_SUBSET_EXPAND        = 'X'
       NO_TABLE_DISPLAY        = ' '
       RNAME                   =
       SEARCHFLD               = '*'
       SET                     = '*'
       SET_USAGE               = '*'
       SET_WILDCARD_ONLY       = 'X'
       START_COLUMN            = 0
       START_ROW               = 0
       SUBCLASS                = '*'
       TABLE                   = 'CCSS'
       TITLE_STRING            = '*'
       TOP_NODES_ONLY          = ' '
       TYPELIST                = 'BSMD'
       UPDUSER                 = '*'
       VARIABLE                = '*'
    regards,
    Alejandro.

  • AdHoc Query - possible to choose text and value for a field

    Hi
    One of our infosets is based on the LDB for travel (PTRVP).
    For this infoset, PERNR is delivered from P0001.
    However, this field does not deliver a text, so the user cannot choose "value and text" as they can for PERNR in the LDB PNPCE.  The only difference seems to be that PNPCE fetches PERNR from P0000.
    Can anyone tell me how to provide text options for the field?
    I have tried the method described in IMG with no luck (probably doing something wrong).
    Should mention that I am no expert programmer.
    Thanks
    Kirsten

    The Text in PERNR is just the Employee Name (ename). The users can get that from IT0002 anyways. They can choose Last name, First name or ename.
    Sanghamitra

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Default value for a field in Purchase order

    I want that while creating purchase order system should suggest one value for the field ' prior vendor ' in retail tab. I don't want to use user exit. Can anybody help?

    Hi,
    if that button is clicked then give the values in the work area of  table control and then append it to the table control
      in pai of the screen.
      if r_rad eq 'X'.
        fs_tab = ur value.
    append fs_tab to it_tab.
    endif.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:39 PM

  • Variables used  as values for Security fields.

    Gurus,
    Since we are all friends, let me show my ignorance.
    There are variables that con be used instead of actual values in security fields, $USER being one of them.
    We use $USER as the value for field BTCUNAME for object S_BTCH_NAM, to indicate that the user ID of the person logged in, is the value to be used.
    Are there any more?
    If so, where can I find information about them?
    This would be for an ERP system, not BI.
    Thanks
    Juan

    > Since we are all friends, let me show my ignorance.
    We are all in the same boat
    > There are variables that con be used instead of actual values in security fields, $USER being one of them.
    > We use $USER as the value for field BTCUNAME for object S_BTCH_NAM, to indicate that the user ID of the person logged in, is the value to be used.
    This is not correct. Please see [SAP Note 101146|https://service.sap.com/sap/support/notes/101146]
    > Are there any more?
    Plenty..see [SAP Note 119147|https://service.sap.com/sap/support/notes/119147] for a tricky example.
    > If so, where can I find information about them?
    [SAP Note 323817|https://service.sap.com/sap/support/notes/323817] and the last paragraph of [SAP Note 410993|https://service.sap.com/sap/support/notes/410993].
    Cheers,
    Julius

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • HOW TO  SET A DEAFULT  VALUE  FOR A FIELD?

    hi friends
      i have doubt..how to  set a default  value for a field..say  like in  local printer field i always want  lp01 to  be displayed defaultly..when i  click  F1  in that  field i  get the parameter id ..i  know there is something  dealt with that  parameter id..how can i  set that  default value ..in the case of the default  printer value i made in  own data settings as lp01 but  how to  do it  normally  for other  field which has parameter id ??????
    thanks and regards
    prince

    Hi Prince,
    u can set the default value in abap as given below
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    or
    u can give the default value in INITIALIZATION also.
    vlue = '1000'.

  • Value for mandatory field is missing

    Hello again,
    I created an application how descripted in 95 Implementing Remote Persistency with CAF and RFCs (Service).
    The problem occurred when I try to search for an entry. I get the following error:
    german: "ERROR. Wert für Pflichtattribut ... fehlt:"
    english: "Value for mandatory field ... is missing"
    The option mandatory=true seems to be the problem. But I need this option to make these fields available for the mapping with the create method. After I while of tinkling I find out that the errormessage appears when I set more than to fields to mandatory.
    Do anybody know how to resolve this error?
    Thanks!

    Hi Martin,
    I reported this issue to development and they said that this is "by design".  Here is the recommendation.
    1.  set the "Mandatory" flag to false for each attribute that is not required by your external interface.
    2.  perform mappings for only the mandatory attributes in the create method.
    3.  perform mappings for mandatory and optional attributes in the update method.  The update method allows you to map optional attributes.
    4.  At runtime, first call the create method with only the required attributes, then call the update method to fill any optional attributes. 
    This should eliminate the error that you get in the Service Browser.
    Best Regards,
    Austin.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • Can we select Domain text instead of domain value for a field?

    Hi all,
    I have a requirement to display Domain text in the output. when I select a field from table, for example field ZZDIRECT from LFA1 table, it has domain value range as D and I with texts Direct/Indirect. is there any way to get these texts for displaying in the output.

    Hi,
    C the below code, it may guide u...
    DATA: int_domval TYPE dd07v OCCURS 0 WITH HEADER LINE.
    SELECT DOMNAME VALPOS DOMVALUE_L DOMVALUE_H
    into int_domval
    from dd07v
    where domname = Domain Name
    and ddlanguage = sy-langu.
    or use this FM.
    DATA : BEGIN OF int_orient OCCURS 10,
    domvalue_l LIKE dd07v-domvalue_l,
    ddtext LIKE dd07v-ddtext,
    END OF int_orient.
    DATA: ZPETS_PORTORIEN type dd07l-domname,
    int_values_table TYPE dd07v OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'GET_DOMAIN_VALUES'
    EXPORTING
    domname = 'ZPETS_PORTORIEN'
    text = 'X'
    TABLES
    values_tab = int_values_table
    EXCEPTIONS
    no_values_found = 1
    OTHERS = 2.
    LOOP AT int_values_table.
    int_orient-domvalue_l = int_values_table-domvalue_l.
    int_orient-ddtext = int_values_table-ddtext .
    append int_orient.
    ENDLOOP.
    Regards.

  • Value for customized fields didn't get copied to back end system

    Hi,
    We are in SRM 4.0 and using extended classic scenario.
    We have defined two customized fields in account assignment tab in shopping cart and SRM Po and also in back end PO.
    SRM POs are having values for the field but while transferring the Po details to back end system, for some of the line items of the Po the entries are missing in back end system.
    Problem is only with few line items of the PO.
    Have tried with FM like BBP_PD_PO_TRANSFER_EXEC  and BBP_PD_SC_RESUBMIT, but it is not transfering the values to back end.
    Is there any other way to push the missing values to back end system.
    Please advise.
    Thanks.

    Sk,
    Table adjustment has to be done accordingly. Get in touch with your Basis team.
    Thanks.

  • Values for a field in table

    Hi Experts
             Can you explain me that, in table some of the fields has predefined values, whether its a value table or what.
           Pls explain, how to set predefined values for particular fields to our own tables.
    Thank in advance.
    Regards
    Rajaram

    Hi,
    you can explicitly mention domain range as value table for the fields in the database table.
    Also the search help can be maintained for the fields in SE11 transcation where the value table can be specified.
    Reward appropriate points.
    Regards,
    Mansi.

  • Enter multiple values for a field in dialog programming

    I need to enter multiple values for some of the fields in screen , which screen element do i use for this or is there any other way of doing it?

    That would be a table control. In this you can enter multiple values for multiple fields.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
    Thanks,
    SKJ

Maybe you are looking for

  • Database Connector Error in Crystal Reports

    Hi, I have a report which has two sub reports. One of the sub reports use a view to fetch data while the other uses a SP. Now the problem that i am facing is as follows- The sub-report using the stored procedure fails when i execute the main report b

  • Gnome-documents 3.16 not displaying document when using shell search

    Hi. Upgrading gnome-documents to 3.16.0-1 broke the functionality of displaying documents straight from the shell search. File format doesn't matter (no pdfs or google documents are displayed), only "sad face" icon is shown instead. However, in prese

  • Most efficient way to import data from Excel to InDesign?

    Hi all, I'm designing a college prospectus which includes 400+ course listings. At the moment, these listings exist as a vast Excel sheet with fields like course type, course code, description etc. I'm familiar with importing Excel data into InDesign

  • How can i install Pages on my IPad air?

    I've downloaded Pages from the App-store on the IPad Air, but I can't get it installed! Anyone out there who can help me? What went wrong?

  • Re: soundfont synth. what actually does it do and how does it do it?

    ive got 100 sf2.s and love them. i save them as midi software instruments if i want them to become part of my armentarium. What is this soundfont synth i seem to lack? If it is an AU and placed in the same folder with my sf2's what is it going to ena