Validation For UDO Screens

Hi All,
I am working on UDO Concepts. I created one UDO With One  Document Table and Two Document line tables. It's Working fine. i created Addon and Run On Server machine and client machine it's working fine  the main problem is I Stop The addon But My Form is in Open  when i enter the values in that open form the values are added in the database without my validations. how to restrict  this type of problems.
Thanks & Regards
Naresh.K

Hi Naresh,
You cannot block the UDOs for working alone.
You have developed your UDO form or you are using the default one?
If you are using the default one it will be more dificult to block as the menu is automatically created by B1 and the only way to block it is from your addon. If your addon is not working then the UDO form can be open from the Tools -> Default Forms menu.
If you have develop your own form then you need to close your UDO forms before you stop your addon and also remove the menus allowing to open your form. This way the user will not be able to use your UDO form to add/modify your UDOs.
If you cannot assure to close the UDO forms before your addon is stopped then the user can continue using it without your permission.
Another possibility is to develop a C++ implementation dll that will be registered when you define your UDO. This dll will be then run by B1 even if your addon is not running. For more information on the UDO implementation dll just check the SDK help file: Customization Tools -> User Defined Objects -> Extending Business Logic.
Hope it helps
Trinidad.

Similar Messages

  • Validation for selection screen

    hi all,
       can anyone help me on the particular issue for adding f4 functionality based on selection criteris.i am using the code below but i am not able to get the selection.
      SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
         PARAMETERS:     P_MBLNR LIKE MKPF-MBLNR OBLIGATORY, "Customer Number
                         P_WERKS LIKE MSEG-WERKS OBLIGATORY.
      SELECTION-SCREEN:SKIP 2.
             SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
                PARAMETERS:    RAD1 RADIOBUTTON GROUP RAD DEFAULT 'X',
                               RAD2 RADIOBUTTON GROUP RAD.
             SELECTION-SCREEN END OF BLOCK B2.
      SELECTION-SCREEN END OF BLOCK B1.
      AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
      DATA: BEGIN OF I_MBLNR OCCURS 0,
              V_MBLNR LIKE MSEG-MBLNR,
              V_BWART LIKE MSEG-BWART,
            END OF I_MBLNR.
    IF NOT P_MBLNR IS INITIAL.
       IF RAD1 = 'X'.
        SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
                WHERE BWART = '541'.
    ELSEIF RAD2 = 'X'.
        SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
                WHERE BWART = '551'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
        DDIC_STRUCTURE         = MSEG-MBLNR
         RETFIELD               = IT_HEADER-MBLNR
       PVALKEY                = ' '
       DYNPPROG               = ' '
       DYNPNR                 = ' '
       DYNPROFIELD            = ' '
       STEPL                  = 0
       WINDOW_TITLE           =
       VALUE                  = ' '
       VALUE_ORG              = 'C'
       MULTIPLE_CHOICE        = ' '
       DISPLAY                = ' '
       CALLBACK_PROGRAM       = ' '
       CALLBACK_FORM          = ' '
       MARK_TAB               =
    IMPORTING
       USER_RESET             =
       TABLES
         VALUE_TAB              = IT_HEADER.
       FIELD_TAB              =
       RETURN_TAB             =
       DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    ENDIF.

    HI NAVNEET ,
       thanks for replying actuallty i have n internal table it_header which i have used it for my program but this interna table i have used only for selection criteria. can you plz see the portion of my code which i have used for selection criteria.please find below
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
      DATA: BEGIN OF I_MBLNR OCCURS 0,
              MBLNR LIKE MSEG-MBLNR,
            END OF I_MBLNR.
    IF NOT ( P_MBLNR IS INITIAL ).
       refresh i_mblnr.
       clear i_mblnr.
      IF ( RAD1 = 'X' ).
         SELECT  MBLNR INTO I_MBLNR FROM MSEG
                WHERE BWART = '541'.
            ENDSELECT.
      ELSEIF ( RAD2 = 'X' ).
         SELECT MBLNR INTO I_MBLNR FROM MSEG
                WHERE BWART = '551'.
            ENDSELECT.
      ENDIF.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
       DDIC_STRUCTURE         = 'MSEG'
         RETFIELD               = 'MBLNR'
       PVALKEY                = ' '
        DYNPPROG               = SY-REPID
        DYNPNR                 = SY-DYNNR
        DYNPROFIELD            = 'P_MBLNR'
        VALUE_ORG              = 'S'
        CALLBACK_FORM          = SY-REPID
       TABLES
         VALUE_TAB              = I_MBLNR
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.

  • Save As Draft  for UDO

    Hai ...
       I have using SAP Business One 2005 . PL-39.  I Need to Create the Document Draft for UDO Screen. Is it able to Create ???
    How to Use the     Save As Draft Menu( File->Save as Draft)  for our UDO Screen. ???
    Thanks & Regards
          Madhu ..

    You can not save a draft of a UDO document using the standard SBO "Save as Draft"mechanism.
    I'f you want to achieve this - you'll have to create "Draft Tables" for your UDO, save it to the "Draft Tables" and reload it using your own search mechanism. It will be a lot of work, but it's the only way you will be able to create draft UDO documents...
    Hai ,
           How to create Draft Table for UDO Screen.?
    How to Reload from Draft Table to UDO Table. ? Our SAP Given any Option? Give the Sample Code for that.
    Thanks & Regards
    Madhu..

  • Export to Word  for UDO's

    Hello Everyone
    Primary Question:
    Is it possible to activate Export-to-WORD for UDO Screens and can we achieve the same functionality as Exporting Invoices and ToDoLetters for our User Screens. Can we design a template and push data into the word document.I want to know if this has been done before and if so how.Can anyone share the code and methodology of pushing line items into a dynamically growing table in Word. I'm sure that this can be achieved easily by Crystal Reports but the client doesn't want CR so i have to achieve this one way or another through MS Word.
    Secondary Question:
    Does printing through SAP utilise the fast printing of Dot-Matrix printers as printed by dos?
    Thanks and Regards
    Raghu
    Edited by: Raghu Ram on Mar 13, 2009 6:24 AM

    Hi .
    fast printinting is there, you have to change the printer settings and select low pixcels per inch.
    rgds,
    Premraj

  • When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation. --- " cache File Read error"

    When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation.
    Also during installation screens an error window is displayed saying "cache File Read error -- Could not read ProductKey entry from the cache file "

    Hi,
    I also get the following message:
    "Could not read ProductKey entry from the cache file"
    I have no idea how to provide the installation software with the key. I also tried "keycheck.exe"
    Do you have a solution for this problem? Did you finish the installation?
    Christian

  • Needed  selection screen validation for all entries in the range

    Hi all,
    I'm using the below code for Material validation in selection-screen.
    SELECT SINGLE MATNR FROM MARC INTO MARC-MATNR
      WHERE MATNR IN S_MATNR.
      IF sy-subrc NE 0.
        MESSAGE e000(su) WITH text-035.     "Invalid Material Number
      ENDIF.
    This validation is working only for one record in the range.
    If I give multiple material numbers in the range having a record which doesn't exist in MARC, its not throwing the error.
    Seems like loop should be placed at s_matnr. Is that correct procedure or any pointers on the same would be of great help.
    Regards,
    Vamsee Priya.

    Hi priya
    Use this way,
    REFRESH IT_LIPS. CLEAR IT_LIPS.
      SELECT VBELN
             POSNR
             MATNR
             WERKS
             LFIMG
             ARKTX
             VGBEL
             VGPOS
             BWART
             FROM LIPS INTO TABLE IT_LIPS
             WHERE PSTYV IN
       ('ZZTC', 'ZTAD', 'ZMVN', 'ZCVA', 'ZCVB', 'ZCVC') AND "ASR 18721
                   WERKS IN ('1140', '1143', '1149').
      IF IT_LIPS[] IS INITIAL.
        MESSAGE E000 WITH TEXT-005.
    endif.
    revert back if you need any help..
    Help us to help you, Manas

  • Selection Screen Validation for Character

    Hi All
    My query is regarding the selection screen validation for character.
    I am using a Select-option: S_ORDER FOR VBAK-VBELN OBLIGATORY.
    and S_order should be only having the numeric field.
    Please help how to validate it for character field.

    Hi,
    Do as below :
    at selection-screen.
    if not s_order[] is initial.
       if s_order-low CA 'ABCDEF.............Z'.
         message 'Enter only numerics only' type 'E'.
      endif.
    "similarly for s_order-high also.
    endif.
    Thanks,
    Sriram Ponna.

  • HT1933 I bought a song for my wife in Mexico and she couldn't download the song i sent because it reads on her screen ... Code only valid for US customers.... How can i retrieve the song if i live in the US? Thanks

    I bought a song for my wife in Mexico and she couldn't download the song because it reads on her screen... Code only valid for US Customers... How can i retrive the song i bought? Thank You Guys

    you have a ps cs4 license for mac and you have some way of finding your serial number.
    if yes, download an install the installation file.  if you already have the installation file, what is its name and file extension?  (eg, if it's one file, it should be a dmg file.)
    if you need the installation file,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • OB28 Validation for screen FB60 problem

    Hi,
    I have created validation for OB28 and prerequiste, check and message maintained and nessage class also activated but still system is not showing any error message if not filled the business class and section code in FB60 transaction. can any one guide me on this.
    govind.

    Hi,
    What exactly you want to do in FB60.Please give details.
    Regards,
    Greeshma

  • Multiple select options validation at selection screen

    Hi,
    I have the requirement to create a selection screen with 3 select options. Two of them are cross-dependent. It is mandatory to fill one of them and it is not allowed to fill both. The third one is optional. I tried the validation at selection-screen on block... and I have a problem that search help buttons for select options react like execution buttons, when I press any of them I am getting one of errors instead of search help.
    Any help on this issue would be appreciated.
    Here is my code:
    DATA:
          so_rbkp TYPE rbkp,
          so_mseg TYPE mseg.
    SELECTION-SCREEN BEGIN OF BLOCK blok WITH FRAME.
      SELECT-OPTIONS:
            s_fakt   FOR so_rbkp-belnr,
            s_matdok FOR so_mseg-mblnr,
            s_god FOR so_mseg-gjahr.
    SELECTION-SCREEN END OF BLOCK blok.
    INITIALIZATION.
    SET TITLEBAR '0100'.
    START-OF-SELECTION.
      AT SELECTION-SCREEN on block blok.
          if s_fakt <> space and s_matdok <> space.
            MESSAGE 'Message1' TYPE 'E'.
          elseif s_fakt = space and s_matdok = space.
            MESSAGE 'Message2' TYPE 'E'.
          endif.
        ENDIF.

    Only perform the check when user wants to execute or submit the program, not when pressing F4 or even Enter, but in a selection-screen event, before START-OF-SELECTION which were program would terminate in error :
    TABLES: SSCRFIELDS.
    AT SELECTION-SCREEN OB BLOCK b01.
        IF sscrfields-ucomm EQ 'ONLI'
        OR sscrfields-ucomm EQ 'PRIN'
        OR sscrfields-ucomm EQ 'SJOB'.
          IF s_fakt[] IS NOT INITIAL AND s_matdok IS NOT INITIAL.
            MESSAGE 'Message1' TYPE 'E'.
          ELSEIF s_fakt[] IS INITIAL and s_matdok[] IS INITIAL.
            MESSAGE 'Message2' TYPE 'E'.
          ENDIF.
        ENDIF.
    (You could also always send the message, but using type 'E' for those function code and 'S' status for any other value.)
    Regards,
    Raymond

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • Wage Type  is not valid for allowance grouping

    Gurus
        When i am Executing PC00_M40_TERM and entered Details then in very next screen it is with error
       ''Wage Type  is not valid for allowance grouping ''
    The Issue is showing generic and No specific Wage type shown in error.
    ABAP Team also Debuged and could not get the Issue.
    Kindly Let me know from your Experience what could be the Issue.

    Your wage type is missing in allowance grouping configuration against RAP indicator R,Reimbursement
    Check table V_T7INA9 , check  the wage type is configured for the allowance grouping of that employee with RAP Indicator R, Reimbursement

  • JS Validation for Drop down List is not working in Oracle PL/SQL Package

    Hi All,
    I am facing an issue with JavaScript validation done in Oracle PL SQL package.
    System Requirement:
    There is one screen which contains two fields viz. FLD 1 & FLD 2 and one 'Submit' button.
    FLD 1 and FLD 2 fields are drop down list boxes.These are mandatory fields.
    The screen is developed in Oracle Mod PL SQL package.
    The html coding and java scripting are embedded in the respective Oracle PL SQL Package procedure which generates this screen,takes the input values provided by user,does the
    field validations and submits the form.
    Issue:
    The javascript validation for FLD 2 dropdown is working successfully.
    When the user leaves this field as blank,the embedded javascript pops up an error message 'Selection of FLD 2 is manadatory before submitting the form!'.
    As FLD 1 is also a mandatory field,the javascripting validation should pop up the similar error message 'Selection of FLD 1 is manadatory before submitting the form!'.
    But,this first field validation is not at all working.
    The system allows to submit the form even if the 'FLD 1' is left blank.
    The javascript code sysntax for validation of FLD 1 & FLD 2 drop down list boxes as follows:
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    I am viewing the screen from the web browser IE version 8.0.
    Your timely help will really be appreciated.
    Regards & Thanking in advance,
    Alka

    Hi,
    1. Your problem is actually related to JavaScript, not SQL and PL/SQL. So, this is the wrong forum to post. The closest to JS is the Application Express forum {forum:id=137}. Clearly state that it is not an Apex issue and that you are looking for JS help.
    2. Your JS code, the way you has posted it, is syntactically incorrect, so if you post on Apex forum put the correct code and in tags as described in the FAQ
    {quote}
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    {quote}
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to write HTML code in Web Template for selection screen

    Hello All,
    Is it possible to write a html code in the web template html tag so that the output of the html is displayed in the selection screen, i.e before the execution of query.
    I know that we can write html, which will be displayed once the query has been executed, but can it be done for selection screen.
    if so, how.
    My exact requirement is : to display a 2-3 lines of text in the selection criteria screen - sort of, various options available to user for entering values in the selection screen.  I was thinking of putting this text using HTML code in the selection screen.
    Regards,
    Nagendra.

    Hi Erick,
    No, unfortunately nobody replied to this thread. So i assumed it is not possible to modify the selection screen thru html code.
    Btw, as my requirement was to provide user with multiple answers on the selection screen. I did the validations on customer exit and popped an errror dialog when applicable.
    Regards,
    Nagendra.

  • How to do validations for select-options

    Hi gurus,
    can you suggest me
    how to do validations for select-options
    Thanks&ragards,
    Kals.

    HI,
    TABLES: BKPF.
    TYPES: BEGIN OF TY_BKPF,
           BUKRS TYPE BUKRS,   "COMPANY CODE
           GJAHR TYPE GJAHR,   "FISCAL YEAR
           MONAT TYPE MONAT,   "FISCAL PERIOD
    DATA: T_BKPF TYPE TABLE OF TY_BKPF,
          W_BKPF TYPE TY_BKPF.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_CODE   FOR BKPF-BUKRS,
                    S_YEAR   FOR BKPF-GJAHR,
                    S_PERIOD FOR BKPF-MONAT.
    SELECTION-SCREEN: END OF BLOCK B1.
                        AT SELECTION-SCREEN                           *
    IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
      MESSAGE E000(0) WITH 'ENTER VLAUES'.
    ENDIF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
      IF SY-SUBRC <> 0.
      MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
      ENDIF.
    reward if useful
    thanks and regards

Maybe you are looking for

  • Satellite 1900-303: saving on CD is not possible

    My 1900-303 doesnt let me save to CD. It appears to work then comes up with an error message asking me to "...change disk or update firmware..." I went to the Toshiba download pages and downloaded the firmware stuff and then extracted it and uploaded

  • No cursor in text box

    Hi, I can create a text box in InDesign CS4, but cannot get a cursor inside it to type text. This just happened because it worked before. It seems that InDesign works sometimes and at other times the same procedures do not work. I have windows XP Svc

  • Re: Enable Save ,Delete buttons in Form

    Hi All, I using Jdeveloper 11.1.2.3 , My scnerio is i am taking 2 panel tabs  One tab contain table i.e List, second tab contain the Form i.e Details , I am taking Save,Delete,CreateNew buttons, Whenever i am in List Only CreateNew buttons should ena

  • Format of flat file!!!

    hello friends!!! We are uploading opportunities in our system from a flat file. I am using LSMW with CRMXIF_ORDER_save for that. All has been the test data is working fine. But the problem i am facing is in which format the file should be for?? in re

  • Thunderbolt - hdmi issue

    I used to run my late 2009 15" macbookpro with a mini displayport -->hdmi convertor on a dreamcolor monitor. Running this same cable on a new 15 inch with thunderbolt port to the same monitor produces a far inferior result. The display looks interpol