Make my field as input not possible.....

Hi all...
in module pool screen.....
    How can i make one input field as "input not possible" for one perticuler condition met??
ex:   iam having one input field in my screen.... so i can enter the values for it.... similer ly iam also having another one... here if i enter value in the second one and push the pushbotton to do some caluclation part.
then my first input field has to appear but in no input possible mode...
Thank you,
Naveen

Hi,
You said you have two fields on your screen and a pushbutton...
So You can do like this....
if sy-datar = 'X'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
Or you can also do like this....
If sy-ucomm = 'PUSHBUTTON'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
here PUSHBUTTON is the Fcode for the Pushbutton and FIELD1 is the screen name of the field which has to get diabled.
Reward if helpful.
Regards,
Syed

Similar Messages

  • One of the field is disabled(input not possible) after upgrade in FPE1

    Hi ABAP Gurus,
      I am working on FPE1 Transaction Code and i just find out that after upgrade one of the field  on screen is not input possible but before upgrade we have that field as input/output  possible .
    so now we want same functionality what we have before . so which path do i need to follow because its standard screen .
    any suggestion is appreciated .
    Thanks,
    Jack
    Edited by: jack troy on Jun 24, 2009 7:36 PM

    Hi Ajay,
    Thanks for your reply . My question is can we enable field for input using transaction variant .because if i go to screen layout for FPE1 ,  i can see that this field is only output possible .
    Thanks,
    Jack

  • BP new field update is not possible

    Hi Experts,
    I work in CRM 4.0 which is connected to R/3. I have created a new BP field with EEWB. I would like to replicate this field into a standard R/3 field.
    Without any enhancement the new field is replicated in "Insert" mode but in "Update" the replication does not work.
    I discovered two problems in R/3. The exchange structure does not contain the new field and the BP does not exist in R/3 BUT000 after creation.
    In "Update" mode the system searches for BP in R/3 BUT000.
    Finally I extended the exchange structure in R/3 and if I create a new BP it will be created in R/3 even in R/3 BUT000 and during "Update" the new field value will be updated.
    My only problem is that I have 100.000 BP's in the systems which were created without the enhanced R/3 structure and the update of the new field content is not possible. The R/3 BUT000 does not contains these 100.000 BP's.
    Do you have any idea how to solve this issue?
    Thanks in advance!
    Regards,
    Tom

    Hi Thomas,
    I would have liked to reply you back earlier on, but  I was able to see my points only today.
    1 How to manipulate Bapi to load it. Please select your Bapi which refer to the proper object in trx CODE Bapi. Then talk to your developper to create the right program to load the missing data, supposedly able to manage files (better a txt file).
    Next monday if you wish I may send you documentation concerning Bapi, if you give me your e-mail
    2. How to upload to your backend the changes of Bps. There is an envent you need to associate to your object Bupa in administration CONSOLE - DATA EXCHANGE. It is explained in the Best practise manual called Replication.
    Please refer to my attached thread to find out the manual in the Best Practise Crm for your version:
    Re: Download Conditions from R3
    Then, if this doesn't work, check if the function module in charge of uploading the changes is working, by putting a Breakpoint in the FM associate to your object Bupa in Business object in administration console.
    <b>Please reward with points if it helps.</b>
    AndreA

  • Table Control: make a field editable or not based on another field value

    HI All,
    How to make a column field input enabled or disabled based on another field value in a Table Control.
    Here's the scenario:
    I have a table control with two columns, KTOKK and LIFNR. Now for certain KTOKK, the LIFNR field should be editable and for certain KTOKK it should not be editable.
    Eg.,  KTOKK = 0001 =>  LIFNR field is not editable.
            KTOKK = ZKTO => LIFNR field is editable.
    But these fields are in a table control.
    Please advice.
    Thanks in advance,
    RK.

    Hi RK,
    Go through the below link..
    how to make special field editable or diseditable in table control?
    the code mentioned in the link.. just add ur conditions in the module....
    Best Regards,
    Brijesh

  • Passing inputs not possible using JRA

    I am running SP14.
    I am unable pass input values to my remotely-callable function module using JRA.  However, I can invoke a different RFM successfully and its retrieve exports--IF it doesn't require inputs.  So it seems that only passing inputs is not possible.
    I have tried passing a simple field, as well as passing a structure.  Neither way works for me.
    <u>1. Here is how I tried to pass a simple field:</u>
    MappedRecord input =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    input.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>The RFM is invoked, but only a blank parameter is passed.</b>
    <u>2.  Here is how I tried to pass a field in a structure:</u>
    MappedRecord request =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    MappedRecord importstruct =
    (MappedRecord) request.get("RFCINPUT");
    importstruct.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>Field RFCINPUT not a member of Z_GET_EMPLOYEE</b>
    Any thoughts would be very much appreciated.
    Kevin

    Here is another piece of the puzzle.
    I found some coding examples and tried a few more things.
    Using the same JRA technique that I have been using,<b> I can run an existing sap-delivered rfm (STFC_STRUCTURE) successfully and pass in input parameters successfully</b> using its structure (IMPORTSTRUCT)!
    However, I added IMPORTSTRUCT to my new RFM, and I get the same error as before.
    Why can't I pass in parameters to my RFM?
    Kevin

  • SAP Smart Forms: Drag & Drop of fields into editor not possible

    Hi Guys,
    In the SAP Form Builder I can't move elements out of the field list into my editor by using drag & drop. Or I'm doing something wrong, no idea.
    It seems like to drag them is possible, but it's not possible to drop them. I can edit them manually, but that's a little circular.
    I know that's not a big problem, but I think the solution is very complex (I hope so).
    Hope you can help,
    best regards,
    tannat

    Thank you for this hint.
    Any idea which SP Level I have to reach?
    Currently there's SAP Basis Release 700, Level 16 installed.
    Regards,
    Tannat

  • How to make a field mendatory input in ALV grid

    Hi All,
    I am using   CALL METHOD g_alv_grid_0200->set_table_for_first_display for diplay in an ALV Grid.
    I have made few fields in the ALV grid as EDITABLE. Now I want to make them as MENDATORY FOR INPUT.
    Can somebody please suggest me how can I do it using any field of field catalogue or any other way !
    Timely inputs will be highly appreciated.
    Thanks in Advance!!
    Chandan

    hi
    we the option of making the field as not mandatory or making the field ready for input or edit
    but dont have the option to make the edited field as mandatory.
    types: begin of slis_fieldcat_alv_spec,
             key_sel(1)     type c,        " field not obligatory
             input(1)       type c,        " input
             edit(1)        type c,        " internal use only
           end of slis_fieldcat_alv_spec.
    Regards

  • Screen field char value not possible

    Hello,
    I have a text field in my screen. This field is associated with a table field of type CHAR with lowercase possible.
    The problem is that when the user starts the text for example with a ! the field gets erased. If the user writes a normal text it is accepted.
    Anyone knows how to prevent this?
    Thank you,
    Nuno Silva

    Hi ,
    For character fields, you can suppress this behavior by setting the 'Without template' attribute for the field.
    If you do this, the system does not interpret any characters of the input.
    The attribute is located in the Screen Painter (transaction SE51) among the attributes of the relevant field.

  • Recon account ready for Input-Not possible to change during MIRO

    Hello
    We are on ECC 6.0
    System does not allow users to change Vendor Recon A/c during invoice verification through MIRO. Recon A/c field is greyed out under Details tab in MIRO.
    Recon Account has been declared as Ready for Input and Alternative Recon A/c has been mapped wrt GL A/c by assigning it an ID.
    However, i am able to change recon A/c during invoice booking through FB60 or F-43 t codes.
    What am i missing?
    Does sytem allow change of Recon A/c in MIRO? If yes, how?
    Thanks.
    Vimal

    Hi, check vendor rec. account for this Company code, then check Accounts Receivable and Accounts Payable-Business Transactions-Postings with Alternative Reconciliation Account-Define Alternative Reconciliation Accounts
    If there exists such Defining, so check may be Alternative account just for Aut.posting, or forbided for posting in this Currency

  • Make Screen field non editable

    Hi All,
    We have following requirement in our project:
    When entering infotype 1 in any action a check should be made to set default values in Work Contract. If Employee Group =u2019 1u2019, Work Contract u2018ZFu2019 should be set and this value must not be changed. If Employee Group u20181u2019 the Work Contract could be all other values except u2018ZFu2019.
    We are using badi HRPAD00INFTY to handle the above requirement. But there is a problem. When we perform an action and go to infotype 1 screen the contract field is populated with correct value and is display only field. Once you press enter on the screen the field becomes an editable field and can be changed by the user. I debugged the program and found that PSYST-NSELC is set as NO (0) in the program MP000130 and is checked if it has a value YES in module p0001 called in PBO of screen 2000 include MP000120. If the value is YES only then BADI is called else not.
    Can someone suggest what could be the problem area or any other way to meet the requirement ?
    BR Jaideep,
    Duplicate Post. Continue here: Screen field not getting editable..
    Edited by: kishan P on Sep 9, 2010 2:20 PM

    Can you explain how a physical inventory is done in your company., and what problems come up if a wrong date is entered?
    In my company we create and print the inventory documents immediatly before counting, and we are making sure, that the volume can be counted, entered and difference posted on the same day.
    Further we are setting a posting block in SAP, and of course we make sure that no physical movement happens during the count.
    And of course we make sure that everyting what was received or issued prior to the count is already entered in sAP before we start creating the documents.
    SAP takes the book inventory in the moment the counted quantity is entered in this case. No matter if the user enters a count date of today or of last week.
    But if you close the field (which is not possible with customizing), then you have to make sure that you enter the count on the same day you have counted, because if you would enter the count on the next day, then your counting date would be wrong and you would not have a chance to enter the correct counting date.
    And as SAP stores everything what a user enters, it is easy to identy the user who has fooled the system, and then the HR guy should do his job, especially as the physical inventory is in most countries a legal requirement, which has to be done seriously.
    don't give authorization to the guys who dont follow your policies.

  • Use of Input Variables in SQL-Queries Sometimes Not Possible

    Only in simple SELECT-statements the use of input variables ([%0], [%1], etc.) work without problems.
    In more complex queries the use of these variables is not possible (e.g. SELECT-statements with sub-queries, sometimes when UNION is used - but I couldn't find any general rule when the problems will arise; sometimes two different queries with the same query-structure behave in different ways when these variables are used).
    In these cases the query is not executed - not even the input-window to enter values into the input variables is displayed. The query stops with some strange error-messages in the status line. These error-messages doesn't have any relation to the actual query - sometimes it refers to field-names never used in the query or refers to syntax error which do not exist.
    If the input variables are replaced by constant values there are no problems so there can't be any syntax errors - the only difference is the presence or absence of input variables.
    Example:
      provided that the queries have a certain complexity
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= [%0] ...
      does not work,
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= '1.1.2007' ...
      works!
    Does anybody have run into the same problem and now if it is a bug of SAP-BO or an error on behalf of the user? Does anybody know a way to correct the problem?
    Thanks in advance!
    Frank
    By the way: Are there any rules where exactly input variables can be used in a query?
    Only in SELECT-statements? Where there exactly?
    In statements outside of SELECT?

    Only SAP Partners Can access service.sap.com/notes, but I think it is possible to search in them from the customer portal as well.
    Here are summary of the two notes mentioned before this:
    730960:
    <i>
    The following query is an example for how to define variables in long
    queries rather than using "Fixed Declares".
    You need to use exactly the same template as follows, do not delete
    "comments" from this query.
    The only changes you need to do :
    1. In the first and in the fifth rows you need to select the table to which you would like to relate the variable e.g. in this example, the variable is related to the table VPM1 - 'Payments to Vendors - Rows'.
    2. In the fourth and in the eighth rows you need to select the field to which you would like to define the variables e.g. in this example, the variable is the field 'DueDate'.
    /SELECT FROM [dbo].[VPM1] T0/
    declare  @fromdate as datetime
    /* WHERE */
    set @fromdate = /* T0.DueDate */ '[%0]'
    /SELECT FROM [dbo].[VPM1] T1/
    declare  @tilldate as datetime
    /* WHERE */
    set @tilldate = /* T0.DueDate */ '[%1]'
    select  OVPM.docnum, VPM1.dueDate,VPM1.CheckNum, VPM1.Branch,
    VPM1.BankCode, VPM1.CheckSum, OVPM.CardName,
    case
    when OPCH.docnum is null then VPM2.docEntry
    else OPCH.docnum
    end as 'docnum'
    from OVPM INNER join VPM1 on OVPM.docnum = VPM1.docnum
    left join  VPM2 LEFT JOIN OPCH ON VPM2.DocEntry = OPCH.DocEntry
    on OVPM.docnum = VPM2.docnum
    where OVPM.Canceled = 'N' AND VPM1.DueDate >=@fromdate AND
    VPM1.DueDate <=@tilldate
    </i>
    955295:
    <i>
    Using SAP Business One Survey Variables (parameters) in a 'Set' SQL Statement can give an error in the Query Generator.
    For Example:
    Declare @Num as numeric(2)
    Set @Num = [%0]
    Select T0.DocNum
    From ORDR T0
    Where DocNum = @Num
    Other terms
    query, SQL, parameter, survey, variable, query generator, set, declare, [%0], table, error, SAP Business One
    Reason and Prerequisites
    FAQ
    Solution
    In such cases you need to put in an SQL remark statement a reference field in the DB for the Survey Variable (any field).
    For Example: (to make the above query work)
    Declare @Num as numeric(2)
    Set @Num = /* T0.DocNum */ [%0]
    Select T0.DocNum
    From ORDR T0
    Where docnum = @Num
    </i>

  • Is it not possible to give the select single field without an into clause

    Hi,
    i have to check whether my input value( only one filed) is available in the table.
    for eg i need to check whether company code is available in the table t001.
    then i will give .
    data lv_bukrs type t001-bukrs.
    lv_bukrs = 1010.
    select single bukrs from t001 where bukrs = lv_bukrs.
    here its asking for me to give a vaible to store the bukrs that is
    select single bukrs into dummyvalue from t001 where bukrs = lv_bukrs.
    Is it not possible to give the select single fieldname without an into clause

    Its Possible by declaring the tables statement
    <b>tables : AFKO.
    select single * from AFKO where <condition>.</b>
    If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used. The addition ORDER BY can also not be used.
    An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering.
    Notes
    When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key.
    If accessing tables for which SAP buffering is planned for single records, the SAP buffer is bypassed if the addition SINGLE is not specified. This behavior depends on the current implementation of the database interface and may change in future releases. In particular, it should not be used to bypass the SAP buffer. You should use the explicit addition BYPASSING BUFFER for this instead.
    The addition SINLGE is not permitted in a subquery.
    Regards
    - Gopi

  • Parking not possible during batch input

    Hello,
    Iu2019m facing a problem for creating a parked vendor invoice in background (Tcode FB60 / FV60) thru BDC or BAPI.
    I looked for a BAPI and I just found "BAPI_ACC_INVOICE_RECEIPT_POST", for posting FI invoice : it doesnu2019t correspond to our requirements (we need to park).
    Then I used "PRELIMINARY_POSTING_DOC_WRITE" for parking an invoice but when we see the parked invoice in FBV2, the displayed Tcode is like FBV1. The users want the vendor invoice header, I mean the same screen as FB60.
    Finally, I tried to use Batch Input to park but I got the following message :
    "Parking not possible during batch input"
    Message no. FP140
    Procedure
    In Customizing, you can control whether an error message is issued."
    I found nothing in IMG about control message
    And in sdn forums, some said that bdc doesnu2019t work for an enjoy transaction (MIRO, MIR7, FB60 ..) but we already created a BDC for MIR7 and it works.
    Thanks,

    You can use [CALL TRANSACTION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm] like BDC.
    via CALL TRANSACTION you may use [bdc options with NOBINPT |http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION_BDC_OPTIONS.htm] so the systeme field sy-binpt will be initial.
    You will need to manage the error messages in your program.(no SM35) one solution is to build the BDC for records with errors.
    There are many threads on [difference Between Batch Input and Call Transaction in BDC|https://forums.sdn.sap.com/search.jspa?threadID=&q=differenceBatchInputCallTransaction&objID=c42&dateRange=all&numResults=15&rankBy=10001]
    Regards,
    Raymond

  • In screen painter when field status 'NOT POSSIBLE'

    hi all,
    i have created a screen with few  fields and each one having search help.
    i want the fields to be filled only by selecting values from search help.
    I don't want users to enter data in the fields,.
    I have tried my keeping 'NOT POSSIBLE'  for the field.I am able to view values from search help but can't place values in the fields.
    Can any one help me out please.

    Hi Sudhir,
    Well, you can clear the history of the input fields and do some validations on those fields which will throw some custom error message if the user is trying to enter invalid values.
    For clearing the history, you can use the below snippet in PBO
    data: rc type i.
      call method cl_gui_frontend_services=>disablehistoryforfield
        exporting
          fieldname                     = 'GW_OBSHEAD-VBELN'
          bdisabled                     = abap_on
        changing
          rc                            = rc
        exceptions
          field_not_found               = 1
          disablehistoryforfield_failed = 2
          cntl_error                    = 3
          unable_to_disable_field       = 4
          others                        = 5.
      if sy-subrc <> 0.
      endif.

  • Is it possible to make a field required when a "sales stage" is chosen?

    Hi all.
    We use certain sales stages for our opportunites.
    The higher ups would like to make it required to choose a "Reason Lost" when the "Sales Stage" "closed/lost" is picked.
    These fields are picklists currently used by everyone. "Sales Stage" is required currently.
    We cannot pull this from Dynamic Layout because it is a field that is not "Opportunity Type" driven.
    Thanks in advance!!

    yes it is possible. In the sales process detail where u have defined the Sales stage. Drill down on the closed/lost sales stage. In this section u will see a section called "Additional Required Fields"
    you can specify the fields you want to make required for that particular sales stage

Maybe you are looking for

  • Loop Time Increasing as Program Progress

    My VI is a big state machine, all the states are taking couple of milli seconds when I start the program but after a while same states are taking lot of time (200 msec)I need a precision of atleast 10 msec going frmo loop to loop. Could any one tell

  • HT201263 ipad is disabled how to fix

    my ipad is disabled.  so frustrated.  how go I get it to work agian.  It said to connect to itunes but nothing happening.

  • Hasselblad 3FR and camera RAW/Lightroom

    I use CS3 and Lightroom for all of my work (Canon Raw) now very happily. Having recently purchased a Hasselblad HD3-31 it would make my day if I could directly import the 3FR files into Lightroom or Camera Raw. I did check before buying and was fully

  • ITunes closes when trying to delete content...any one know what to do?

    My iTunes shuts down whenever I try to delete anything: songs, podcasts, videos. I've restarted, reinstalled and it is still happening. Anyone have any suggestions?

  • All 3rd party plugins gone after update !!! HELP APPLE !!!!!!

    All my 3rd party plugins are gone after the new update from apple !! I am running lep and logic studio G5 dual 2.5 ppc 8 gigs of ram !!!! What happen ???? Can not get the AU manger to launch !!!!! Help dead in the water !!!!!!!