How to make the field as mandatory in module pool program.

Hi Experts,
Could you please advice me in making a screen field as mandatory input field in module pool programming.
Thanks in advance.

Or you could add a check in a PAI module to check if there is some value, if not give error message.
module check_value.
  if lv_value is initial.
    message e001(00) with 'Enter a value'.
  endif.
endmodule
In the PAI screen flow logic...
Process after input.
field lv_value module check_value.
Regards,
Rich Heilman

Similar Messages

  • How to access screen field value in a module pool programming?

    Hi Experts,
       I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.
       The first screen contains Employee_ID field. This field is not a dictionary field.
       In the second screen 200, I want to access the value of Employee_ID field from first screen.
       For this I created a global variable v_empid in TOP include.
       Then in the PAI of the screen 100 I have assigned the screen field value to global variable.
       v_empid = Employee_ID.
       But this gives an error saying " Field  Employee_ID not defined".
       What am I doing wrong? How can I access the screen field value?
    Thanks
    Gopal

    Hi,
    Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.
    regards,
    muralii

  • How to remove the print popup screen from module pool program

    Hi,
    In my project i am having one module pool program in which 7-8 screens are there.
    In the initial screen after entering the equipment number when i am executing the program then after loading second screen
    it is showing one screen is coming which is asking to print the content of the page.
    I want to remove this screen (printing popup) but i am not able to get the code or setting for it.
    Please help me to solve this problem.
    Thanks and regards.

    I think this is more to do with ABAP than EP so, the corresponding sections of forum could prove more helpful on this...
    Thanks,
    H

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

  • How to make the Infotype as mandatory

    Hi All,
             I need to make the Infotype as mandatory. E.g., In PA40,  the user should not skip the screen without entering the data in the infotype. How can i make it.
    Thanks
    Yogesh

    Not sure bout making an infotype mandatory in PA40. but i give below some info i know..maybe u can dig further in there and see how to make use of that info.
    Ignore if u know this already.
    SE37 >  RS_SCREEN_IMPORT  > DYNNR (Screen number) and Module Program name – MPxxxxxxx etc (this u get from F1 on infotype field)
    then execute>Go to F_G  table in there Flag 1  refers to I/O field and Flag3 refers to Mandatory /Obligatory.
    Also have you explored if any possibilities are there from screen painter???

  • How to make PAN field as mandatory in vendor master

    Hi,
    In second screen of xk01one application toolbar named CIN details is there. In CIN details->withholding tax tab PAN filed is there. I want to make this field as mandatory. How can i do that. please please help me.

    Hi,
    SPRO -> Logistic - General -> Business Partner -> Vendor -> Control -> Define Account Groups and Field Selection (Vendor)
    In this Screen select your acount group(Vendor) and double click, sysyem will takes to a new screen
    and click select Field Status(like General,Compnay Code & Purcahsing data) and then click select groups(1 by 1) and double click and make the following fields mandatory and save.
    1.PAN No.
    2.Excise No. and Range (for applicable casses)
    3.Service tax No.(for applicable casses)
    4.TIN No(LST)
    5.CST No.
    Hope this will help yo.
    Regards,

  • How to make input field as mandatory field in sub screen

    Hi All,
           I need to display the input selection parameters in tab strip sub screen. The input screen is not giving an error while processing with blank values, but I made the input field as required in sub screen input filed settings. Can some one please help me how to make the input field as mandatory field in sub screen.
    Thanks in advance.
    Regards,
    Kannan

    Hi Kannan,
        Try this out.
    1. Goto screen painter
    2. Enter the program name and screen number ( screen # 1000 -  in case if its  a custom report prg)
    3. Double click on the field which u`ve got to make mandatory.You`ll get Screen painter attributes window.
    4. U`ll find three tabs here - Dict, Program, Display
    5. Go to Program tab, and change the first attribute - Input field`s input value as "Required".
    6. Save and activate it.
    7. Now execute ur program and this should make ur field as mandatory on the screen.
    This works with input fields, but I`m not sure about the input field in tab strip control.
    Hope this helps
    Regards,
    Farhana

  • Want to Make the field as Mandatory in Forms

    Hi All
    I need to make the field "Task Number" of Project ->Events screen as mandatory.
    Please advice me how i can achive this custom.pll ?
    Regards
    Rajkumar

    Since we are using 11.5.9 , we cannot do the personalization.So i would like to do this thru custom.pll
    So i am going to try this code
    IF form_name = '<name of form>'
    THEN
    IF event_name = 'WHEN-NEW-FORM-INSTANCE'
    THEN
    app_item_property2.set_property(
    '<name of block>.<name of item>'
    , REQUIRED
    , PROPERTY_ON
    END IF;
    END IF;
    But i couldnt open the custom.pll from the client machine where forms installed thru 'apps user".
    It says "PDE - PLI018 Couldnot find library SCSFIN". So i copied the SCSFIN and FNDSQF files in client machine and opened the FNDSQF FIle successfully.
    After i tried to open the SCSFIN.pll, it is saying "PDE - PLI018 Couldnot find library FNDSQF"
    Please help me with this error.
    Regards
    Rajkumar

  • How to make amount field as mandatory in portal

    Hi experts,
          We are working on EHP5 , Ecc 6.0. I am working on claims and reimbursements module . We have already done the configurations and in the portal i need to make an amount field as mandatory . I have gone to content administration - Portal Content - Content provided by SAP- End user content - Employee self Service - I views- Benefits and payments - India- Claim Advance request . Here i have selected an iview then Right click on that we can see the properties. there i have made the field as mandatory . It is getting applicable. But when i close the particular screen and click on that iview the same screen comes across with the field not getting mandatory . Wat are the other steps which i need to make this field as mandatory and gets applicalble to all claim types. So please reply .
    . So please respond experts.
    Thank you
    Lokesh

    Hello Lokesh,
    For all specific claim types while configuring customized header fields in view V_T77WWW_CLHLDC
    & configuring customized multiple line fields in view V_T77WWW_CLMLDC there is an option in the form of checkbox to make those fields mandatory.
    The mandatory checkbox can be seen inside the box generic properties.
    I trust this clarifies.
    Regards,
    Pankaj

  • How to make a field as mandatory in database table

    i created one itab table in data base. i would like to insert data from module pool programming . the first field of table field must be mandatory...
    thanks in advance..
    Anitha.D

    Hi,
    Double click the field in screen painter, at the bottom of the dialog, there is a checkbox on one of the tabs, something like 'Required", check this checkbox.
    Regards,
    Omkar.

  • How to make a fld mandatory in module pool program?

    I need help on following 2 things
    I have module pool program created, in that many screen subscreens created.
    1.I want to make a field mandatory
    second one  is, I have a general tab and  data tab.
    General tab screen - 2101
    Data tab = 2102
    In general tab, I have edited the values (change mode), when change the values and try to save it,
    It is holding old value.but If i exucute the transaction once again, it is showing the changed value(new value)
    For ex: there is a date field  value is 03/08/2009
    If I change this to 03/09/2009 and press on Save button from the standard menu, still it is showing the  value 03/08/2009. but I execute this transaction once again it is showing the value as 03/09/2009
    I will be thankful if someone helps me here

    Hi Chitra,
    Go to the properties of the filed select program tab and say input required.
    then you will get the problem solved.
    For second one actually its saving but not displaying the saved value at the same time ,
    for this you write the select statement after saving , so that once save is execute m, select statement also will execute  and it will display the newly saved value.
    so after saving imdeatly u write the select statement.
    like case sy-ucomm.
    when 'SAVE'.
    insert ztable.
    select filed from z table.
    endcase.
    let me know if ur problem solved.
    Regards
    Rajendra

  • How to make the fields of the table mandatory while creating new entries..?

    Hi,
    I have created a new Z table which has 6 fields. All the 6 fields are KEY fields and all are of CHAR type. I have generated the table maintenance generator for the same. My requirement is all the fields should be MANDATORY while creating the entries. No field should be BLANK.
    When creating the new entries in the table, even if I don't give any values to some of the fields, it is saving the entry. But, it shouldn't happen like that. If any of the field is kept blank, it should not allow the user to save the entry. Can someone tell me how to approach this. Will there be any settings while creating the table which takes care of this.
    I read somewhere that this can be done using the Table EVENTS. Can someone tell me what is the code that we should write there in the Events which prevents the user from saving the blank fields. While writing the logic in the events, how to check whether the particular field is BLANK or not. Will the values be stored in any internal table kind of thing..?
    My table name is ZCRF_TAB and the fields are FLD!, FLD2, FLD3, FLD4, FLD5 & FLD6. Can someone provide me sample code for my requirement. Thanks in advance.
    Best regards,
    Paddu.

    Hi,I think u have generated Table Maintainance Generator, goto Environment->Modifications->Events
    Select appropriate option by using F4,I think value 05 is appropriate for u r requirement.Enter From routine name.Dbl click on the routine.
    Write the appropriate code like:
    If ZTABLE-FIELD1 is initial.
    Message (E000) with "Fill all the manadatory fields".
    Thats it.Just look at the following docu with screenshots,by this understand how u can use Table Events:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    Regards,
    Rock.

  • How to make Recipient field as mandatory in MB21 transaction ?

    I ve got  a requirement to make the Recipient Field in MB21 transaction as mandatory...
    pls suggest how to do...
    thks in advance...
    Edited by: mythili on May 5, 2009 12:30 PM

    Hello,
    it's a question of customizing the movement type. You can find it in transaction OMJJ,
    select the respective movement type(s) and then customize the field selection.
    Regards Wolfgang

  • How to make Requistioner field as mandatory in Plant order

    Hi,
    Can anyone say how can i make the Requistioner(AFNAM) field as mandatory in Plant order creation (iw31).
    Regards,
    thanigai

    You can check that in a USER EXIT.
    Try this User Exit.
    EXIT_SAPLCOIH_012
    ENHANCEMENT: IWO10012
    Regards,
    Vimal.
    Edited by: Vimal V on Jul 23, 2009 12:36 PM

  • How to Make the fields Delta enabled or Change pointer enabled in R/3

    Hi ,
    I have a scenario, in which we are using the DS 0CUSTOMER_ATTR to load the master data.There are some fields added to this data source but this fields are not delta enabled i.e. when these fields change in R3 it does not write to Change Pointers ( and hence no delta ). For this reason every week we have to do a full load which takes very long.
    Can any one suggest how to make this fileds delta enabled or how to know weather these fields are writing the Change pointers or not in R/3 when they change?
    Regards,
    Vishnu

    Hi Vishnu,
    In your case you need to build the logic for your custom fields as you have enhanced the Business Content DS..
    The way you can build the logic would be using the CDHDR and CDPOS tables if the changes are recorded in those tables.
    The above tables contain any changes done to any documents..
    Let me know if it helps..
    Best Regards
    Avinash

Maybe you are looking for

  • Quality of dvd on a computer monitor

    Is there any way to use idvd to author a dvd that will look good played on a computer monitor? All other projects I have done look pretty good on the TV but when I put my disk into computer to play with the dvd player it looks really bad.Can anyone e

  • Cable to connect Z3 tablet to TV through HDMI?

    Hi guys, Just bought one of these Z3 tablets, just wondering if there are any MHL cable adapters available so I can view my tablet on an external display though HDMI. Are there any of these cables that simultaneously charge the device whilst in use?

  • Use of BADI's in enhancement

    Hi Can some one help me in undestanding what is BADI, how it can be used in enchancements? how it is different from userexit?

  • Is Java Server Page slower than ASP?

    I wonder If I use web page with database then JSP, ASP - which one is slower than?

  • Background VI question

    I need to have a VI running on the background constantly monitoring a value measured by DAQ. I want to put the value on top of the screen, and some other VI need to pull the value from this background VI from time to time. I guess I can use a backgro