CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

Hello Bhupinder
If the field is on a selection screen you can use the following coding:
AT-SCREEN OUTPUT.
  IF ( <condition is true> ).
    LOOP AT screen.
      IF ( screen-name = 'my field name' ).
        screen-required = '1'.
        MODIFY screen.
     ENDIF.
    ENDLOOP.
  ENDIF.
The same logic can be applied for dynpro fields (also code in a PBO module).
Regards
  Uwe

Similar Messages

  • DYNAMICALLY MAKE A parameter OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

    Hi,
    Here is the code.
    parameters : p_abc type i.
    at selection-screen on p_abc.
    if <condition1>.
      if p_abc is initial.
        message e001 .
      endif .
    endif.
    Regards,
    Richa

  • How can we make screen fields obligatory?

    hi, guru's
             how can we make screen fields obligatory while desiging a screen in screen painter (se51)?
    regards,
         satheesh.

    Hi,
    Go to attributes of the field in layout..
    go to program tab and check input field..
    and in drop downlist put required..
    Thats it..
    Reward points if it helps..
    Regards,
    Omkar.

  • Make Requisitioner Field OBLIGATORY in ME51N.

    Hi All,
    In Transaction ME51N and ME52N I want to make REQUISITIONER field Mandatory.
    for that I Chanegd the Attribute of the field AFNAM from screen 3328 of Function pool MEGUI to REQUIRED.
    In the preview of the screen its showing that field as Obligatory but in the Transaction ME51N and ME52N it is not reflected as mandatory.
    Can someone help on this please?
    Regards,
    Tejas

    I hope you are making mandatory in SE51 Layout ->doble click on field as keep as obligatory.
    but somewhere it is changed from mandatory to regular field ,look at code and somehwhere they written loop at screen.
    try to write down in PBO as
    loop at screen.
    if screen-name = ur field name.
    screen-input = '1'
    modify screen.
    endif.
    endloop.
    Reward Points if it is helpful
    Thanks
    Seshu

  • How can I dynamically change group field column?

    Hello!
    I need to group data and create group totals for that table. Is
    it possible to dynamically change group field column for
    specific table, depending on data retreived from parameter form?
    Thanks,
    Mario.

    quote:
    Originally posted by:
    ljonny18
    Hi,
    I am using a grid within a component in my Flex application.
    I have an XML dataProvider, and I want to change the row
    colour of my Grid depending on a value coming form my dataProvider
    – but I cant seem to get this to work :(
    can anyone help / advise me on how I can dynamically change the
    colour of my grid row depending on a value coming from my XML
    DataProvider????
    Thanks,
    Jon.
    Hi,
    a few hours ago I stumbled across this cookbook entry - it
    didn't solve MY problem, but maybe it provides a way to solve your
    problem?
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
    From the article:
    quote:
    Changing the background color of a DataGrid cell is not as
    simple as changing some style because the default renderer for a
    DataGrid cell does not have a backgroundColor. Therefore, to do
    this simple task, you have to create a custom itemRenderer where
    you draw your own background in the updateDisplayList function.
    HTH
    Uwe

  • Make a field obligatory by clicking on a check box

    SELECT-OPTIONS:
                so FOR ztable-so OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-b02.
    PARAMETERS: check1 TYPE char1 AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b2.
    here my requirement is that so should be obligatory only when checkbox is clicked ie check1 = 'X'.
    Plz help

    Hi,
    get off the obligatory addition from your select option and then write this.
    <b>
    At selection-screen output.
    IF check1 = 'X'.
    LOOP at screen.
       if screen-name = 'SO-LOW' OR
          screen-name = 'SO-HIGH'.
          screen-required = 1.
          modify screen.
       endif.
    ENDLOOP.
    ELSE.
    LOOP at screen.
       if screen-name = 'SO-LOW' OR
          screen-name = 'SO-HIGH'.
          screen-required = 0.
          modify screen.
       endif.
    ENDLOOP.
    ENDIF.
    </b>
    Regards,
    Wasim Ahmed
    Message was edited by: Wasim Ahmed

  • How to make a selection screen two fields obligatory

    Dear friends...
       I wish to know how i make two fields obligatory in the selection screen
    like
       select-options  Po_Num for  ekpo-ebeln obligatory.
       select-options  Po_Date for  ekko-aedat.
       select-options  Material for  mara-matnr.
    in the above example i am looking for po_num and po_date both obligatory but if i dont enter data in the po_num, po_dat becomes obligatory and po_dat has no data entererd po_num is obligatory. i wish to know how i achieve single field act as a obligatory in absence of another field. please help in this regards..
    thanking you,,,
    regards.
    Naim

    REPORT  ZMM_COMP_POS  no standard page heading line-size 225
    tables:  ekko, ekpo, mara.
    data: begin of i_ekko occurs 0,
          ebeln like ekko-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekko-aedat,
          waers like ekko-waers,
          ernam like ekko-ernam,
          end of i_ekko.
    data: begin of i_ekpo occurs 0,
          ebeln like ekpo-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekpo-aedat,
          waers like ekko-waers,
          menge like ekpo-menge,
          meins like ekpo-meins,
          ernam like ekko-ernam,
          lgort like ekpo-lgort,
          netwr like ekpo-netwr,
          recd(16) type p decimals 3,
          rec_val(16) type p decimals 3,
          end of i_ekpo.
    data: lines type i.
    data :itab_output like i_ekpo occurs 0 with header line.
    data: itab_output3 like standard table of itab_output .
    data  data.
    data  total like sy-dbcnt.
    data  recd(16) type p decimals 3.
    data  rec_val(16) type p decimals 3.
    data : it like i_ekpo occurs 0 with header line.
    selection-screen begin of block b1 with frame title text-010.
    select-options Po_Num for ekpo-ebeln .
    select-options Po_Date for ekko-aedat.
    select-options Material for mara-matnr.
    selection-screen end of block b1.
    at selection-screen.
    if po_num[] is initial
      and po_date[] is initial.
    message e001(00) with 'Make at least one entry'.
    endif.
    start-of-selection.
    if  PO_NUM is initial and
         Po_Date is initial or
         Material is initial.
             select ebeln ebelp matnr
                    menge meins netwr
                    aedat
                    from ekpo
                    into corresponding fields of table i_ekpo
                    where ebeln in Po_Num.
    endif.
            loop at i_ekpo.
                  select ebeln aedat waers ernam
                         from ekko
                         into corresponding fields of table i_ekko
                         where ebeln in Po_Num.
                  if sy-subrc = 0 .
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
                     modify i_ekpo transporting ebeln aedat waers
                                                ernam
                                                where ebeln = i_ekko-ebeln.
                     clear i_ekko.
                   endif.
               endloop.
               describe table i_ekpo lines lines.
               if lines le 0.
                  message e017(zk).
               endif.
          select ebeln ebelp matnr
                 menge meins netwr
                 werks
                 from ekpo
                 into corresponding fields of table i_ekpo
                 for all entries in i_ekko
                 where ebeln = i_ekko-ebeln .
          sort i_ekpo by ebeln ebelp.
          sort i_ekko by ebeln.
          loop at i_ekko.
            read table i_ekpo with key ebeln = i_ekko-ebeln.
            if sy-subrc = 0.
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
               modify i_ekpo transporting ebeln aedat waers
                                          ernam
                                          where ebeln = i_ekko-ebeln.
           endif.
        endloop.
      describe table i_ekpo lines lines.
      if lines le 0.
        message e017(zk).
      endif.
      loop at i_ekpo.
       write:/1 sy-vline,
           (5) i_ekpo-ebeln left-justified ,sy-vline,
           (10) i_ekpo-ebelp left-justified ,sy-vline,
           (15) i_ekpo-aedat left-justified ,sy-vline,
           (18) i_ekpo-ernam left-justified ,sy-vline,
           (23) i_ekpo-matnr left-justified , sy-vline,
           (27) i_ekpo-menge UNIT i_ekpo-meins left-justified , sy-vline,
           (29) i_ekpo-meins left-justified , sy-vline,
           (31) i_ekpo-netwr CURRENCY 'INR' left-justified ,sy-vline,
           (33) i_ekpo-waers left-justified ,sy-vline.
    endloop.
       write:/(743) sy-uline.
    top-of-page.
        write:/30  'ESSAR CONSTRUCTIONS LTD.' color 6 inverse.
        write:80 'DATE :' color 6 inverse, sy-datum  color 6 inverse.
        new-line no-scrolling.
        write:/30 'PO Details.' color 7 inverse.
         write: /(743) sy-uline.
      format color col_heading on.
         write:/1 sy-vline.
         write: (5) 'PO no.',sy-vline,
               (10) 'Item no.',sy-vline,
               (15) 'PO Date' color 1,sy-vline,
               (18) 'PO Created By.',sy-vline,
               (23) 'Material No.', sy-vline,
               (27) 'PO Quantity', sy-vline,
               (29) 'PO Unit', sy-vline,
               (31) 'PO Value',sy-vline,
               (33) 'Currency' , sy-vline.
        write:/(743) sy-uline.
        format reset.

  • How to Make one of 2 Selection Fields Obligatory

    Hi All,
    On my seletion screen, i have about 5 select-option input fields. The thing is I want to make the 'article' (s_matnr) and the 'merchandise category' (s_matkl) fields obligatory. The way it should be is that one of them should be obligatory at a time not the 2 at the same time. And 1 of them must be filled they can't be run wide open.
    So in Summary, the user must either provide an input for either the ariticle or the merchandize category, not the 2 at the same time and not neither.
    Thanks.

    hi basil
    how you did

  • Make (LDB)PNP Fields obligatory on selection-screen

    I am using LDB PNP.. I want to make some fields of PNP as obligatory. How Can I do that?
    So far I am doing the following...
    <b>Initialization.
    PNPABKRS-LOW = '?'.
    Append PNPABKRS.
    At selection-screen.
    if PNPABKRS-LOW is initial.
    PNPABKRS-LOW = '?'.
    Message e100(z01).
    endif.</b>
    What you suggest ?
    Thanks
    Message was edited by: Saquib Khan

    You have to do this way,
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'PNPABKRS-LOW '.
          SCREEN-REQUIRED = 1.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.

  • To make TEXT field in adobe forms dynamic

    Hi Experts,
    I have requirement in adobe forms where based on certain condition I want change the TEXT field accordingly.
    Example if material number in of gas type than text will be "GAS MATERIAL" and then populating corresponding material number.
    If itu2019s of hard goods type than text has be "HARD GOODS MATERIAL".
    Please let me how this requirement can be achieved ASAP.
    Thanks in advance.
    Regards,
    Aks.

    Hi,
    Yes you can definitely make a field dynamic. Bind the text fields with varibale of type Material Number and its description which will have to create in the context (Interface) of the adobe forms. These values you can pass from your driver program or Web-Dynpro.
    Regards,
    Runal.

  • How to make Required Fields in WDA  Dynamic Table

    Hello all,
    I have a WDA Dynamic Table and want to make some fields as mandatory fields.
    can you please show me how to do this?
    thank you very much

    Hi,
    Write the below code:
    DATA: lr_table          type ref to cl_wd_table,
          lr_table_column    type ref to  cl_wd_table_column,
          lr_input            type ref to cl_wd_input_field.
       lr_table ?= view->get_element( id = 'TABLE' ). " TABLE id ID of Table UI
    * Get column
       lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_COL' ). TABLE_COL is the ID of table Column
    *Get Cell Editor
       lr_input ?= lr_table_column->get_table_cell_editor( ).
    *Set Required
       lr_input->set_state( cl_wd_input_field=>e_state-required ).
    hope this helps u,
    Regards,
    Kiran

  • How can I make a field unfillable when a check box or radio box is selected?

    I'm looking to create a rule that makes selected fields un-fillable when one check box is selected, and fillable when another is selected. Is this possible in Adobe Acrobat?

    In that case they are mutually exclusive, or at least should be...
    You can use something like this as the custom MouseUp script for the check-boxes:
    if (event.target.value=="Yes") {
         this.getField("Field1").readonly = true;
         this.getField("Field2").readonly = true;
         this.getField("Field3").readonly = true;
         this.resetForm(["Field1", "Field2", "Field3"]); // this line will clear those fields as well
    } else if (event.target.value=="No") {
         this.getField("Field1").readonly = false;
         this.getField("Field2").readonly = false;
         this.getField("Field3").readonly = false;

  • How can we make a field confirm control compulsory field

    how can we make a field 'confirm control' compulsory field while creating a vendor code
    this field is under tab default data material tab while creating vendor code in purchasing org .part of vendor

    Hello,
    This can be done using the configuration..
    Go to Logistics - General >Business Partner>Vendors>Control>Define Account Groups and Field Selection (Vendor)--> and select the vendor group for which you want this field to be mandatory.
    Press details --> in the block "field status", double click Purchasing Plant and again double click Plant level purchasing data, in the second page (down), you can see the confirmation control key, that you have to make as req entry.
    If you want the conf control key to be mandatory for all the vendors groups, then you can do this by purchasing organisation level..that config node is just below this settings.
    Regards,
    Sakthi

  • How can i make reference field mandatory in MIRO?

    Hi Experts,
    How can i make reference field mandatory in MIRO screen.
    Reference field is not available in field status group.
    I have checkedthe reference number in RE document types in OBA7 .
    But still without entering anything in reference field in MIRO,the document is getting save.
    Any other solution??
    Regards,
    Sumeya offrin

    Hi
    Strange....what you did should work.
    Was an accounting document created for this MIRO? Was it RE type?
    Ofer

  • Can I make certain fields conditionally required?

    I am TOTALLY new to acrobat- just to put that out there first. I am wondering in acrobat (NOT formscentral or indesign) how to make certain fields required based off the answer of the previous required field.
    I.E  first required field- "is this a single application?" if so, do NOT make the next few fields required
    "is this a joint application?" if so, make the next rew fields required.
    Can I get some help with this?
    Thanks!

    What is commonly done is a button is used to initiate the email, using a "Submit a Form" action and specifying the email address of the recipient. The submit will fail if any fields that are marked as required are blank. In your case, you need to set the required property of certain fields conditionally, based on the sate of the form, and this will require a bit of scripting. It's not overly complicated though and you can get some help here.
    The Acrobat help document is a good place to start, though it won't help with JavaScript programming. A good resource is AcrobatUsers.com where there are a number of tutorials and other resources available about forms.
    Be aware that submitting form by email is often less reliable than expected, for many different reasons. A more reliable and secure approach is to set up the form to submit to a web server, but this involves even more expertise as it involves server-side programming and interacting with a PDF form. Emailing may seem sufficient for your needs, but be aware of the alternatives.

Maybe you are looking for

  • Using sub-report field in cross tab row #2

    I have a sub-report that pulls a product line description that need to be added to row #2 of a cross tab object. I am unable to drag and dropped and it does not appear in the list under the cross tabs expert.  Any assistance would be greatly apprecia

  • Populating XML file for form set

    Hi there, We have several forms that we need to fill out with the same information for each "case" we deal with. Its the usual stuff like names, dates and addresses. At present we fill out each form one at a time - very repetitive. I want to have a u

  • Uninstall program on remote machine -

    All, I am trying to uninstall an application on a WYSE 32bit Windows Embedded device.  I am unable to use WIn32_product and have to Win32Reg_AddRemovePrograms.  I can query the device remotely fine with the following command PS C:\> get-wmiobject -Cl

  • When I try to download my updates it keeps saying cannot connect to iTunes store please help I'm going mad!

    When I try to download my updates it keeps saying cannot connect to iTunes store please help I'm going mad!

  • Manipulating message queues

    Hi, I found the following command/line to manipulate message queue settings to display messages either in status bar or as alerts. But I am not sure how n where to use this. "qms$forms_errors.set_oracle_message_target" Can any one share more details