Alert-fields should not be empty

Hi,
I am using Oracle forms 10g,
My question is...
in form.. If i left some required items empty... when I press submit button then it should display alert message these fields(like empno,ename,sal,..) are empty....
please  fill these items....
help me...
Thanks,
Shankar

I tried this on EMP table.... Is it correct???????????
I write this code in WHEN-BUTTON-PRESSED
declare
  alrt varchar2(20);
  alrt2 varchar2(120);
begin
  alrt2:='Enter These items'||chr(13)||chr(10);
  if :emp.deptno is null then
  alrt2:='Department number'||chr(13)||chr(10);
  end if;
  if :emp.ename is null then
  alrt2:=alrt2||'ename'||chr(13)||chr(10);
  end if;
  if :emp.sal is null then
  alrt2:=alrt2||'salary'||chr(13)||chr(10);
  end if;
  if :dept.deptno is not null and :emp.ename is not null and :emp.sal is not null then
  commit;
  else
  set_alert_property('NULL',alert_message_text,alrt2);
  alrt:= show_alert('NULL');
  end if;
  end;
# Chr(10) returns a linefeed character
# Chr(13) returns a carriage return character
Other wise help me try to reduce the code.....
Thanks & Regards,
Shankar.

Similar Messages

  • Error - Server file should not be empty- while uploading Text files in RAR

    Hi,
    We are uploading SU24 text files but we are getting the error "Server file should not be empty" while uploading the Description files in RAR 5.3
    We followed the same naming covention and also used UTF-8 format for the text files. We placed the file in our Desktop as well and tried uploading into RAR - but still the same error is being thrown?
    Are we missing something here?
    Thanks and Best Regards,
    Srihari.K

    Hi and thanks to the answers so far.
    I forgot to mention some points :
    - I'm using forground import
    - we are trying to use RAR to run risk analysis on non-sap systems as well as SAP (single or cross-systems).
    So the file I'm trying to upload does not come from a SAP backen, but was created from scratch.
    However the data in the files are coherent (and I compared with a SAP extraction, the format is the same)
    here is a sample of the file I try to upload : (an that is actually what I'm trying to import as a test file)
    sap_auth.txt:
    OEITIAC     GTIAC     SEL     1     
    OEITIAC     GTIAC     MOD     1     
    OEITIAC     GTIAC     INS     1     
    OEITIAC     GTIAC     SUP     1     
    each element (ACT/PRM/FLD/VAL) is defined in the sap_desc.txt file that I loaded first (without error).
    note that each column is separated by a single TAB (with an empty column at the end of each line).
    each line is terminated by a CR/LF
    I tried UTF-8 with and W/O BOM
    Regards,

  • Forwarding agent should not hold empty value

    Hi all,
    In Vt02n transaction while doing shipment completion i need to check if the forwarding agent field is empty or not .
    If it is so i need to raise a error message. After that the forwarding agent field should be opened for input.
    In the include ZXV56U16 (in the exit EXIT_SAPLV56F_011) i wrote a logic for this field check and raised a error message.
    When i tested it the error message was dipalyed but the field is not opeing for inout again.
    Can anyone pls help me on resolving this issue.

    Instead of writing abap code in user exit, you can create an activity profile for the shipment type and status where the validation is required.
    SPRO-Logistics Execution-Transportation-Shipments-Define and Assign Activity Profiles
    In the profile you choose to display a popup window and mark the forwarding agent (VTTK-TDLNR) as mandatory field. As a result, when updating the status in the shipment document the system will ask for a forwarding agent.
    Hope this helps

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • SOME FIELDS SHOULD NOT SHOWN IN THE REPORT

    Hi,
    this is to inform you that,  there is a requriment in reporting perspective (ALV),
    Requriment:
    i have to generate a ALV report which is viewed by our CFO with one t.code, in that report suppose there are 10 fields. 
    That is a specific report if some body apart from my CFO uses the same tcode to generate the same report than it has to display only 5 fields.
    if my CFO uses the same t.code all the 10 fields must be visible.
    please help me how to do it.
    regards,
    balajia.

    There are couple of ways to achieve this,
    1) - Create 2 variants, 1 variant for CFO with all the fields  & 2nd variant with only relevant fields. Then use the authorization concept, where basis can restrict the access / execution of the report with specific variants.
    From the basis view, they create role & assign this variants in one of the object ( not sure). Basis assistance required
    2) - When developing report, write the validation for the respective fields such as maintain Customize table in which maintain userID's & fields which they can access. Display only those fields to the userID who executes this report. It should check this customize table for this UserID & only those fields listed should get displayed. ( for all the fields, instead maintaining each field, you can enter "ALL",
    Eg: UserID -
    Fields
           CFO -
    ALL ( report should display all the fields)
         NONCFO-------Field1 | Field2 | Field3 | Field4 | Field5 ( only these fields should get displayed)
    Note: In Customize table either you can maintain with User ID or Role. It will be more convinient in future as well.
    Regards,
    Reazuddin MD

  • Net price field should not be edited in PO, when created reff. to contract

    Dear friends,
    I have a requirement like this.....
    User referring the contract in creating the purchase order, details of the contracts are copied in to the purchase order. the price field is in edit mode....
    requirement is that user should not edit this field, the price carried from the contract should be not edit mode. this is to be hapen only when purchase order is created referrence of contract.
    here we are using only the standard document type is used for creating Purchase orders with and without the referrence of contract.   
    Thanks in advance...
    Shashidhar

    What I did for a client was implementing enhancement (user exit) MM06E005 to perform checking during PO creation.
    OSS note 310154 explains how to issue error messages from ME21N from the user exit.

  • Query..for Field should not accept the manual entry

    i wann query for remarks Field in JE It should Not accept the manual entry it should accept only sys drop data.
    Thanks & Regards
    yogi

    For this field level authorization, you may only use SDK or SP to reach your goal.  SP would be difficult to use in this case.
    Thanks,
    Gordon

  • GR invoice verification field should not be mandatory in PO

    Dear Experts,
    When we are creating Service PO, at that time we require the GR invoice verification field (Under Invoice Tab) should not be mandatory but other POu2019s it should be mandatory.
    Please suggest solution for the same.
    Thanks & Regards,
    Shatrughan

    Guys!
    Please correct me if I am wrong, but I thought external service purchasing with GR (service entry acceptance) but without GR-based IV was impossible. This is a standard SAP check that can't be overridden in any BAdI. So either you give up SES and enter the invoices without any reference or make the invoices refer to the SES!
    I see that there's some option to allow ESM orders without the GR flag, but then at least the service-based IV flag shall be set. The option is in IMG for MM -> External Services Management -> Source Determination and Default Values -> for Client.  Look at the bottom of the screen for the flag "Service item: IR before GR allowed". Unfortunately this flag is not visible in my 6.0 system, but in a EhP4 system it is.
    But still - some kind of reference in the IR you will need anyway - SES in this case. Or give-up entering SES at all (remove the flag "GR" in the PO).
    BR
    Raf

  • Field should not display when it is null

    Hi,
    I am creating a xml report,I dont want to display row when its value is 0.
    eg column1 column2 column3 column4 column4
    1 ABC BCA 0 0 0
    2 XYZ YXZ 0 1 0
    So if 1 is not having any value then that row should not display,it should dispaly only row with values as in 2.
    Thanks in Advance....

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Business Area field should not get translate while doing allocations in co

    Dear All,
    In ecc 6.0 when we will be allocating expenses through assessment and Distribution the system credits sender cost center and debits receiver cost center,the same will be applicable for Business Area also.
    But my client is having plant =business area for which they are making financial statements business area wise.
    The client wants its business area not to get affected by above allocations ,Is there any method of restricting costs to remain in same business area and not getting translated to another business area.
    Example :                    cost center           profit center           business area
    expenses                      1011                   1001                     101
    allocation from cctr to cctr 1012 which is having pctr 1002 and business area 102
    expenses                      1012                   1002                       102
    So my requirement is the system should not update business area 102
    Thanks and regards
    vijay

    Hi Vijay,
    Profit Center is derived basing on Assignments. If you have assigned a Profit Center in the Cost Center Master
    Data, obviously for whatever the postings that take place in that Cost Center, will be posted to Profit Center also
    (Statistical).
    In your case, Cost Center 1011 and 1012 have been assigned to different Profit Centers 1001 and 1002. So,
    conceptually what the system is doing is correct.
    You want to restrict the postings to happen to Business Areas. I suggest you, this is not problem of
    stopping/restricting the transaction postings but You have to restructre your Cost Centers and Profit Centers.
    It's rather a Business Process / Structure change required than technical requirement in the system by restricting
    the postings.
    Pls revert back for further discussion...
    Srikanth Munnaluri

  • Input field should not be case sensitive

    experts help
    1)I have declared selection field in module pool as maktx of type maktx.
    when ever the user enter the data into into , it is comming in caps but i want as it is the data entered by user in the program I dont want it to convert it caps by default .Please tell how to handle
    2) I have a 2 radio buttons declared  and made it as a group,
    When user selects one radio button then that particular filed input should be allowed to enter if he selects another radio button then field 2 should be allowed to input.
    I am displaying as
    radiobutton1 field1 inputbox1
    radiobutton2 field2 inputbox2
    By default one shoule be active . is using screen modify statement will help . Should it be coded in PBO and PAI.
    3)IN intial screen i will have a push button and when i press it then it will call another screen and there i will have another push button say back.
    Rigth now when the user press back button in second screen i have writeen leave program.
    But I want it to go back to previous screen.
    call screen 'earlier screen' should be used or leave to screen 'earlier screen'.
    or any other best method.
    Thank you for the replies

    1) in screen painter maintain the input field attributes "Upper/lower case entry" (or use a correct DDIC reference)
    2) in PBO you will have a LOOK AT SCREEN/MODIFY/ENDLOOP, also i suggest add a Function Code so checking/un-checking the radio-buttons will trigger PAI immediately, but in PAI ignore this function code to stay on current dynpro.
    3) To go back to previous dynpro, use a LEAVE TO SCREEN 0, so program closes the current dynpro and continues with the statement following the CALL SCREEN. (Another CALL SCREEN will add one screen to the stack, til maximum number reached, when program will dump out.)
    NB: Try to use the search tool, most of those questions have already been answered (many times)
    Regards,
    Raymond

  • Vendor field should not display when GI is done in MB1A?

    Hi  guys ,
    i have  a  report programe here i am pulling  all the material data  and purhasing order info  in the background using the BADIO MB_DOCUMENT BADI.  here i am writing my logic. this BADI is triggering  once material Documnet is created  in MIGO MB1A,MB1B,MB1C . when i am trying to excute the MIGO tranasaction all the data shoulb be displayed . when I am trying to excute MB1A  Here i dont need one field like Vendor Number ? can  any one please help me on these ?
    Thanks In Advance.

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Work order should not update the fields in PR

    Hi  Gurus
    My requirements is that workorder should not updates the purchasing data fields in PR  do not go to the shoping cart. How can make it possible.
    Thanks in Advance

    Hi,
          I am not sure of your requirement clearly but check up the below user exits :-
    COZF0001 Change purchase req. for externally processed operation
    COZF0002 Change purchase req. for externally procured component
    or BADI :- IWO1_PREQ_BADI BAdI for Manipulation of P.Reqs from Orders + Networks ,SE18
    regrds
    pushpa

  • HOW WE CAN VALIDATE A FIELD THAT SHOULD NOT BE SPECIAL CHARACTER?

    HOW WE CAN VALIDATE A FIELD THAT SHOULD NOT BE SPECIAL CHARACTER?

    data : v_abcde like sy-abcde,
             v_num like '0123456789',
              v_data(60) type c.
    start-of-selection.
    v_abcde = sy-abcde.
    concatenate v_abcde v_num into v_data.
    if ur field co v_data
    else.
    message.
    endif.

  • By default one field should be greyed out( not input field)

    hi all,
    My requirement is
    By default one field should be greyed out( not input field)
    when i click on a check box and press enter this field should be open to put input values.
    can some somebody please give me sample code for both PBO and PAI

    Hi Ram
    In flow logic.
    PBO
    module screen_modify.
    IN main program
    module screen_modify.
    loop at screen.
    if p_cb = space.
    if screen-name = <Name of your screen field>.
    screen-input = 0.
    screen-output = 0.
    modify screen.
    endif.
    endif.
    endloop.
    endmodule.
    P_cb is the checkbox.

Maybe you are looking for