Amount field in BDC giving error

Hi,
I am doing BDC for FB01, The field WRBTR (Amount) is not taking.
it is giving error Input field is longer than screen field.
i took as char.
data : amount1(13)  type c.
    AMOUNT1 = WA_HEADER-WRBTR.
    CONDENSE AMOUNT1.
    PERFORM bdc_field       USING 'BSEG-WRBTR'
                                  wa_header-wrbtr.      " wa_header-wrbtr
but it is giving error: Input field is not in this format __,__,__~
Pls give me the soluctions.
Regards,
Sri

Hi,
Use the below code
PERFORM bdc_field USING 'BSEG-WRBTR'
AMOUNT1. " Amount1   Char Field
instead of
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_header-wrbtr. " wa_header-wrbtr
Regards
Dillip

Similar Messages

  • Error in Report: Next to amount field i could see 'ERROR' word in report

    Guys,
    Problem in Report: Next to amount field i could see 'ERROR' word in report
    Eg: Invoice Amount  : "1200ERROR"  it should be like "$1200".
    Pls help where do i need to check.
    Thanks

    Ajeet wrote :
    Hi,
    It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
    Do a currency conversion for the key figures and make them all with same currency.
    See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
    Thanks
    AJeet
    Are you sure ???
    The mixed unit values will be displayed as * (by default unless its changed).
    ERR comes if unit is not maintained.

  • Non numeric value in numeric field giving error

    Hi All
    I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.
    Please Help.
    Thanks
    Raktim

    Hi Banerjee,
                 Create a String/int/long Context variable and point it to UI Input element.Do the validation  for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.
    Hope this might solve your problem .
    Thanks
    Madhan

  • Problem with quantity field in BDC

    hi experts,
                   i am trying to upload  data from internal table to SAP using BDC, but while uploading quantity fields it is giving error as "Input fields is longer than screen field", Is there any method to upload quantity fields to SAP.
                     thanks in adancae,

    Hi,
    Before passing the value to perform bdc_field, convert that value to char type
    For eg.
    DATA :        v_val(10)               TYPE c,
      v_val = wa_operation-std_value_01. CONDENSE v_val.
      CONCATENATE 'PLPOD-VGW01(' n_linecount1 ')' INTO v_para.
      PERFORM f_bdc_field       USING v_para           v_val.
    FORM f_bdc_field  USING fnam fval.
      CLEAR wa_bdctab.
      wa_bdctab-fnam = fnam.
      wa_bdctab-fval = fval.
      APPEND wa_bdctab TO it_bdctab.
    ENDFORM.                    " f_bdc_field
    check this it would be useful.

  • While posting cash journal giving error

    Hi friends,
    I have updated cash in hand balance through f-02.
    When i am posting payments to vendor through FBCJ,(amount is 10 Rs.) giving error as Payment amount is larger than Cash on hand. Change amount.
    I updated cash in had account by 1000 rs.
    Please suggest.
    Regards,
    Suresh

    Hai
    See Cash journal is a seperate interface..
    You should have posted this cash in hand 1000 rs thru cash journal itself as reciept business transaction u are getting error bcz if u see ur opening balance it will be zero thats why system is  giving amount is higher.
    So again post cash in hand account 1000 rs in recirpts business transaction.
    Before to that u have to create a business transaction with cas in hand gl account.
    Regards
    Raghavendra.M
    SAP-Practice

  • Error when displaying amount field in HTMLB Tableview

    Hi all,
       I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
    Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
    Thanks and Regards ,
    Harikrishna .

    Hi Hari,
    But reference(currency) field of that amount field is in other table . I know it gives the error.
    It will not give any error , you can use the currency key field of other table or structure .
    Alternatively you can use  predifined type DEC instaed of CURR  .
    Regards,
    Anubhav

  • Error entering amount field.

    Hi Friends,
    I am facing a strange issue while entring amount field in screen. The default setting for decimal notation is
    123.45
    While posting a document if I wrongly enter amount as
    123,45
    it is showing error message as Input should be in the form __,___,___,__~.__ which is alright. But when I correct the input value to correct format as 123.45 its still showing the same error.
    It seems some variable is not getting cleared. This issue is not specific to document posting but I am facing this issue for all transaction in SAP. What is the work around to get this issue corrected.
    Warm Regards,
    Praveen

    Hai Praveen,
                         You are right. The field to which you are entering the data, is not getting cleared. So the next time you try to enter the data, it is considering the previous data. So, consult your ABAP Consultant and the corrections done.

  • Making field input editable after giving error msg from table event 01

    Hi All,
    I have a requirement of giving error msg and making that row or the particular field input editable by writing code in table event 01 i.e before saving any record in a z-table i have to chk some condition for a column value and if that condition fails then i have to give error msg and make that column input editable.
    I have created a routine for event 01 and written the code to give error msg. But my problem is that column is not becoming input editable. Could you pls tell me how can i make that field editable?
    Thanks in advance.

    Hi Piyali,
    Use SET PARAMETER & GET PARAMETER ID  .
    You will get it.
    Best Regards,
    Pravin

  • Amount field of VK11 isnt fetching from flatfile when im performing it'sBDC

    Dear Guru,
    Here i have encountered a typical issue.
    Im Performing BDC for VK11 (Create Condition Record) with "Key Combination" --->> "Location, Material Code (Base Price for Longs)".
    While I am running this BDC ( source code attached below) in All screen mode every datas which are of type "CHAR" like--->>
    Condition type(kschl) ,
    Plant(werks) ,
    Material No(matnr),
    Valid From date(datab),
    Valid To date(datbi),
    Rate Unit(konwa) are coming properly from flatfile except
    Rate (condition amount - KBETR)  which is are of data type "CURR".
    So guru I want to know what code i should add into my below bdc prog to fetch data properly into  RATE - Condition amount field which is of type " CURR".
    Pls Help.
    Source Code:
    REPORT z_bdc_vk11_famd
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    *& DATA-DECLARATION
    TYPES: BEGIN OF t_cust,
                kschl LIKE rv13a-kschl,
                werks LIKE komg-werks,
                matnr LIKE komg-matnr,
                kbetr LIKE konp-kbetr,
    ***            konwa LIKE konp-konwa,
                datab LIKE rv13a-datab,
                datbi LIKE rv13a-datbi,
           END OF t_cust.
    TYPES: BEGIN OF t_sucrec,
             cnum TYPE komg-werks,
             cnam TYPE komg-matnr,
    END OF t_sucrec.
    TYPES: BEGIN OF t_errrec,
           lineno TYPE string,      "Line Number
          message TYPE string,      "Error Message
    END OF t_errrec.
    DATA:  v_file TYPE string,      "Variable for storing flat file
          it_cust TYPE STANDARD TABLE OF t_cust, "Internal table of Customer
          wa_cust LIKE LINE OF it_cust,  "Workarea of Internal table it_cust
        it_sucrec TYPE STANDARD TABLE OF t_sucrec,
                                          "Internal table of Success records
        wa_sucrec LIKE LINE OF it_sucrec,
                                       "Workarea of Internal table it_sucrec
        it_errrec TYPE STANDARD TABLE OF t_errrec,
                                       "Internal table of Error records
        wa_errrec LIKE LINE OF it_errrec,
                                       "Workarea of Internal table it_errrec
        it_bdctab LIKE bdcdata OCCURS 0 WITH HEADER LINE,
                                        "Internal table structure of BDCDATA
    it_messagetab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE,
                                        "Tracing Error Messages
           v_date LIKE sy-datum,  "Controlling of session date
          v_index LIKE sy-tabix,  "Index Number
         v_totrec TYPE i,         "Total Records
         v_errrec TYPE i,         "Error Records
         v_sucrec TYPE i,         "Success Records
        v_sesschk TYPE c.         "Session maintenance
    *& SELECTION-SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001 NO
    INTERVALS.
    PARAMETERS: p_file    TYPE rlgrap-filename.
    "rlgrap-filename is a predefined structure
    SELECTION-SCREEN: END OF BLOCK blk1.
    SELECTION-SCREEN: BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002 NO
    INTERVALS.
    PARAMETERS: p_mode    LIKE ctu_params-dismode DEFAULT 'N',
                p_update  LIKE ctu_params-updmode DEFAULT 'A'.
    SELECTION-SCREEN END OF BLOCK blk2.
    *& INITIALIZATION
    INITIALIZATION.
      v_date = sy-datum - 1.
    *& AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = p_file.
    *& START-OF-SELECTION
    START-OF-SELECTION.
      v_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = it_cust
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc = 0.
    ****MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    ****         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *& END-OF-SELECTION
    END-OF-SELECTION.
      LOOP AT it_cust INTO wa_cust.
        v_index = sy-tabix.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-KSCHL'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ANTA'.
        PERFORM bdc_field       USING 'RV13A-KSCHL'
                                      wa_cust-kschl.
        PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV130-SELKZ(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=WEIT'.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-DATBI(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'KOMG-WERKS'
                                      wa_cust-werks.
        PERFORM bdc_field       USING 'KOMG-MATNR(01)'
                                      wa_cust-matnr.
        PERFORM bdc_field       USING 'KONP-KBETR(01)'
                                      wa_cust-kbetr.
        PERFORM bdc_field       USING 'KONP-KONWA(01)'
                                      'INR'.
        PERFORM bdc_field       USING 'RV13A-DATAB(01)'
                                      wa_cust-datab.
        PERFORM bdc_field       USING 'RV13A-DATBI(01)'
                                      wa_cust-datbi.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'KOMG-MATNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
        CALL TRANSACTION 'VK11' USING it_bdctab
                                 MODE p_mode
                               UPDATE p_update
                        MESSAGES INTO it_messagetab.
        IF sy-subrc = 0.
    *& reading success records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'S'.
          IF sy-subrc = 0.
    *        wa_sucrec-cnum = it_messagetab-msgv1.
            wa_sucrec-cnum = wa_cust-werks.
            wa_sucrec-cnam = wa_cust-matnr.
            APPEND wa_sucrec TO it_sucrec.
            CLEAR wa_sucrec.
          ENDIF.
        ELSE.
    *& reading error records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'E'.
          IF sy-subrc = 0.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id  = sy-msgid
                no  = it_messagetab-msgnr
                v1  = it_messagetab-msgv1
                v2  = it_messagetab-msgv2
                v3  = it_messagetab-msgv3
                v4  = it_messagetab-msgv4
              IMPORTING
                msg = wa_errrec-message.
            wa_errrec-lineno = v_index.
            APPEND wa_errrec TO it_errrec.
            CLEAR wa_errrec.
          ENDIF.
        ENDIF.
        CLEAR : it_bdctab, it_messagetab.
        REFRESH: it_bdctab, it_messagetab.
      ENDLOOP.
      DESCRIBE TABLE it_cust LINES v_totrec.
      DESCRIBE TABLE it_errrec LINES v_errrec.
      DESCRIBE TABLE it_sucrec LINES v_sucrec.
      PERFORM disp_data.
      SKIP 2.
      IF v_sucrec > 0.
        PERFORM disp_success_data.
      ENDIF.
      SKIP 2.
      IF v_errrec > 0.
        PERFORM disp_error_data.
      ENDIF.
    *& Form bdc_dynpro
    *#  text
    *#  -->P_0104 text
    *#  -->P_0105 text
    FORM bdc_dynpro USING program dynpro.
      CLEAR it_bdctab.
      it_bdctab-program  = program.
      it_bdctab-dynpro   = dynpro.
      it_bdctab-dynbegin = 'X'.
      APPEND it_bdctab.
    ENDFORM. " bdc_dynpro
    *& Form bdc_field
    FORM bdc_field USING fnam fval.
      CLEAR it_bdctab.
      it_bdctab-fnam = fnam.
      it_bdctab-fval = fval.
      APPEND it_bdctab.
    ENDFORM. " bdc_field
    *& Form disp_data
    FORM disp_data .
      ULINE (45).
      WRITE : / sy-vline,
      4 'FAMD Price Master UPDATE SUMMARY'(004) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline,
      'Total Records Processed'(007),
      28 '=',
      30 v_totrec,
      45 sy-vline,
      / sy-vline,
      'Error Records'(005),
      28 '=',
      30 v_errrec,
      45 sy-vline,
      / sy-vline,
      'Successful Records'(006),
      28 '=',
      30 v_sucrec,
      45 sy-vline.
      ULINE /(45).
    ENDFORM. " disp_data
    *& Form disp_success_data
    FORM disp_success_data .
      ULINE (45).
      WRITE : / sy-vline,
      14 'Successful Records'(012) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline ,
      'Plant Number'(010) COLOR 2,
      17 sy-vline,
      25 'Material Number'(011) COLOR 2,
      45 sy-vline.
      ULINE /(45).
      LOOP AT it_sucrec INTO wa_sucrec.
        WRITE: / sy-vline ,
        wa_sucrec-cnum,
        17 sy-vline,
        19 wa_sucrec-cnam,
        45 sy-vline.
      ENDLOOP.
      ULINE /(45).
    ENDFORM. " disp_success_data
    *& Form disp_error_data
    FORM disp_error_data .
      ULINE (90).
      WRITE : / sy-vline,
      35 'Error Records'(013) COLOR 1,
      90 sy-vline.
      ULINE /(90).
      WRITE : / sy-vline,
      'Record Number'(008) COLOR 2,
      sy-vline,
      37 'Reason for error'(009) COLOR 2,
      90 sy-vline.
      ULINE /(90).
      LOOP AT it_errrec INTO wa_errrec.
        WRITE : / sy-vline,
        wa_errrec-lineno,
        17 sy-vline,
        wa_errrec-message,
        90 sy-vline.
      ENDLOOP.
      ULINE /(90).
    ENDFORM. " disp_error_data
    Flat file Sequence:
    Condition Type     Plant     Matrial No     Rate      Validity start date     Validity end date

    I worked out n i hav found the solution

  • Amount Field format problem

    Hi,
    I am uploading G/L entry using STD program RFBIBL00.
    In input excel file I am getting amount as 1000.1
    When i upload excel to Internal table field (Type C) it is 1000.1
    I am passing this value as it is to BBSEG-WRBTR.
    Program creates BDC Session. But when I execute BDC session in foreground/backgorund, the amount field show 1000,1
    and gives error "Input should be in the form __.___.___.__~,__"
    My current decimal notation at user level is 1,234,567.89
    I tried passing amount to BBSEG-WRBTR in all possible formats but no use.
    If i pass amount without decimal. i.e 1000, it works fine.
    BBSEG-WRBTR is char16 field.
    Any idea, what could be the problem?
    This is very urgent.
    Thanks &  regards,
    Umesh

    I am pasting code.
    Whatever commented, all tried.
    FORM convert_amount  USING    p_dcpfm   TYPE xudcpfm
                                  p_in_amt  TYPE c
                                  p_waers   TYPE waers
                         CHANGING p_out_amt TYPE wrbtr_bi.
    Input amount will be in 99999.99 format
      DATA: lv_amount TYPE wrbtr.
      lv_amount = p_in_amt.
      p_out_amt = lv_amount.
    CLEAR p_in_amt.
    WRITE: lv_amount CURRENCY p_waers TO p_out_amt.
    CONDENSE p_out_amt.
    WRITE p_out_amt TO p_out_amt LEFT-JUSTIFIED.
    CASE p_dcpfm.
       WHEN ''.    "1.234.567,89
         TRANSLATE p_out_amt USING '.#'.
         TRANSLATE p_out_amt USING ',.'.
         TRANSLATE p_out_amt USING '# '.
       WHEN 'X'.   "1,234,567.89
         TRANSLATE p_out_amt USING ', '.
         CONDENSE p_out_amt NO-GAPS.
       WHEN 'Y'.   "1 234 567,89
         TRANSLATE p_out_amt USING ',.'.
         CONDENSE p_out_amt NO-GAPS.
    ENDCASE.
    ENDFORM.                    " convert_amount

  • How to maintain the amount field format after GUI_DOWNLOAD

    Hi everyone.
    I have this problem on my object.
    The format of field ERFMG in table AUFM is 3.921,569.
    After I SELECT it INTO an internal table it becomes like this 3921.569
    I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
    However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
    How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
    The Decimal Notation in my User Profile is already set to 1.234.567,89
    Thank you in advance.

    Hi Cris,
    To get the output in the user format for the decimals, try the following code.
    data: wg_dec(7) type p decimals 2.
    data: wg_dcp type usr01-dcpfm.
    data: wg_dec_str(10) type c.
    wg_dec = '111135.67'.
    select single dcpfm from usr01
            into wg_dcp
           where bname = sy-uname.
    move wg_dec to wg_dec_str.
    if wg_dcp ne 'X'.
      replace all occurrences of '.' in wg_dec_str with ',' .
    endif .
    write:/ wg_dec, wg_dec_str.
    I dont feel there is any other option where you can change the decimals format as per the user profile.
    While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
    This code will help you to set the decimal value as '.' or ',' as per the user profile.
    Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
    Hope this proves of some help to you.
    Regards,
    Pulkit

  • BAPI  BAPI_PR_CHANGE  giving error message: Enter G/L Account

    Hi Folks,
    I am using bapi Enter G/L Account to add new item in existing PR number.
    In return table, bapi is giving error mesage that, 'Enter G/L Account' . But i don't know where to pass the G/L number to this bapi and from where i can get the G/L number for existing PR document.
    Regards
    PG

    Hi,
    Enter the G/L account in the structure PRACCOUNT field GL_ACCOUNT. Enter the Purchase requistion item no in the field PREQ_ITEM  in the structure PRACCOUNT.
    Also,
    Enter the Purchase requistion item no in the field PREQ_ITEM  in the structure PRACCOUNTX. Set update field to 'X'  in the structure PRACCOUNT field GL_ACCOUNT.
    Hope it helps.
    Sujay

  • BAPI_ALM_NOTIF_LIST_PARTNER working perfectly in R/3 giving error in XI

    Hi all,
    the above BAPI working fine in R/3. The Same inputs are passed but it is giving error. The input and output are given below in XML format as it is handled in XI:
    Input message
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:BAPI_ALM_NOTIF_LIST_PARTNER xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
      <COMPLETE>x</COMPLETE>
      <NOTIFICATION_DATE>2008-08-08</NOTIFICATION_DATE>
      <PARTNER>0000000001</PARTNER>
      <PARTNERFUNCTION>vw</PARTNERFUNCTION>
      <NOTIFICATION />
      </ns1:BAPI_ALM_NOTIF_LIST_PARTNER>
    output message
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <RETURN>
      <TYPE>E</TYPE>
      <CODE>IM718</CODE>
      <MESSAGE>E718 Only specify partner function together with partner number</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      </RETURN>
      <NOTIFICATION />
      </rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response>
    Can any body help in resolving this problem please.
    Regards,
    Venkat

    Thank you amrute for your reply. You are right we do faced similar issues in many other occations and sent exact data and could resolve the issues. In this case also we have given in exact format for all fields. Date format as given in this case is same as what was given in another working XI scenario. However I look at the data type of date to be sure.
    As you see the message is regarding partner and partner function. If you have any other point of view may please be indicated.
    Regards,
    Venkat

  • Validate/compare 2 amount fields

    Hi All,
    I am using oracle Forms 10G on windows.
    I need help on how to validate 2 amounts fields.
    I am comparing 2 amounts fields, if the amounts are equal then all is good. However, if the amounts are within 5 dollars that is fine but I would like to display a warning message to the user. And if the amounts are more than 5 dollars, then display another message and do not allow any further processing.
    Thanks for your help in advance,

    Hi,
    Assume you have a datablock named YOUR_BLOCK, and items named S1 and S2.
    You must to create an alert, it is easy, go to objet navigator palette, look for Alerts and then click Create button, give to alert a name, we named our alert CFG_ASK.
    Try this in a trigger or a button, I suggest you use when validate item trigger ...
    IF :YOUR_BLOCK.S1 IS NOT NULL AND :YOUR_BLOCK.S2 IS NOT NULL THEN
    IF :YOUR_BLOCK.S1 <> :YOUR_BLOCK.S2 THEN
         IF ABS(:YOUR_BLOCK.S1 - :YOUR_BLOCK.S2) <= 5 THEN
          ALERT_CALL('CFG_ASK','ALERT','THERE IS A LITTLE DIFFERENCE');
         ELSE           
              ALERT_CALL('CFG_ASK','ERROR','TOO MUCH DIFFERENCE!');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    END IF;
    END IF;Alert_call code (in Program Unit):
    PROCEDURE alert_call(alert_name varchar2, title_name varchar2, msg_name varchar2) IS
    AL_ID ALERT;
    AL_BUTTON NUMBER;
    BEGIN          
      AL_ID := FIND_ALERT(alert_name);
      IF ID_NULL(AL_ID) THEN
           MESSAGE('There is no alert window '||alert_name); -- you must to create an alert              
           RAISE FORM_TRIGGER_FAILURE;
      ELSE              
           Set_Alert_Property(AL_ID, TITLE, title_name);
           Set_Alert_Property(AL_ID, ALERT_MESSAGE_TEXT, msg_name);
        AL_BUTTON := SHOW_ALERT(AL_ID);          
        IF AL_BUTTON = ALERT_BUTTON1 THEN        
             NULL; 
        END IF;
      END IF;
    END;Hope it helps.
    Remember the points.

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

Maybe you are looking for

  • Customer Open item transfer between comapny codes

    Hi can any one experienced this, OBYA settings F-04 posting Thanks

  • Arabic text not showing properly (chat & presenter)

    Hi, We've two issues with Arabic text: 1- In the chat window when you type a sentence (say السلام عليكم ورحمة الله it appears backward الله ورحمة عليكم السلام) 2- When using Presenter in PowerPoint any Arabic word when exported appears in reverse and

  • Make use of the  invoice form available in the correspondence.

    Dear all, I want to make use of the invoice smart forms available under the IMG in Corresspondence -->forms -->RE_CN_120. but i am not able to under how to assign this. scine i want to crete invoice for rent . please note that i am working on 4.7.Exp

  • Developing an ipad application

    Hi, I have recently been asked to develop a presentaion using flash for the ipad. I have downloaded the trial of Flash CS5 and have played with the iPhone settings. I understand a certificate is needed before I can publish for the iphone - but what a

  • Oracle Drive"Remember Password" setting?

    Is there a setting for Oracle Drive to allow it to cache the password across sessions? If not, is there some way to use the existing Windows Credentials to authenticate to the Content Services DAV server rather than prompting for the password?