How to verify when i change mode in form of standard?

To All
         I want to know that how to coding if I change mode on screen Incoming Payment from "Add" mode to "OK" mode. I develop it using vb.net to catch event. This post I want to insert button into standard screen by in first time I created button but I disable it but I click "Last Data Record" in menu bar system will change to "OK" immediately. I want to know coding catch changing mode. example code as below

Try
            If pVal.FormType = 170 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD And pVal.Before_Action = False Then
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = False Then
                 Then
                    oForm = SBO_Application.Forms.Item(FormUID)
                    oItem = oForm.Items.Add("btnPrint", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                    'Set Size and Location
                    oItem.Top = 432
                    oItem.Left = 160
                    oItem.Width = 60
                    oItem.Height = 22
                    oButton = oItem.Specific
                    oButton.Caption = "Print"
                    SBO_Application.MessageBox("Button was added")
                End If
            End If
        Catch ex As Exception
            MsgBox(Err.Description)
        End Try

Similar Messages

  • How can i effect a change in many forms simultaniously...?

    How can i effect a change in many forms simultaniously.......?

    I have done something with C API. I Got the following example from Oracle.com. I can compile this file But while Linking this there is a linking error. The error occurs while linking ifd2f60.LIB.
    #include <stdio.h>
    #include <iostream.h>
    #include <dir.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <math.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc,unsigned char *argv[])
    d2fctxa ctx_attr;
    d2fctx *ctx;
    d2ffmd *form;
    text *form_name;
    /* Check arguments */
    if ( argc != 2 )
    fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
    exit(1);
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = (ub4)0;
    if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context\n");
    exit(1);
    /* Load the form module into memory */
    if ( d2ffmdld_Load(ctx,&form, argv[1], FALSE) != D2FS_SUCCESS )
    fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
    exit(1);
    /* Get the name of the form module */
    if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    fprintf(stderr, "Error getting the name of the form module\n");
    else
    /* Print the name of the form, then free it */
    printf ("The name of the form is %s\n", form_name);
    free(form_name);
    /* Destroy the in-memory form */
    /*if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    fprintf(stderr, "Error destroying form module\n");
    /* Close the API and destroy context */
    d2fctxde_Destroy(ctx);
    return 0;
    }

  • How to realize WHEN-RADIO-CHANGED- Trigger in ADF

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    One of the existing modules is called "ORDER" and contains, among other things, radio buttons based on a database column(VARCHAR2) named PAYMENT_TYPE which contains the values CASH and CREDIT.
    Based on this Item a WHEN-RADIO-CHANGED- Trigger is called which shows an alert and reset the changes to a default value when the payment type is changed but the credit rating(database column from another table) is not equal to an according value.
    The code of the trigger is the following one:
    DECLARE
         n NUMBER;
         v_credit S_CUSTOMER.CREDIT_RATING%TYPE;
    BEGIN
         IF :S_ORD.payment_type = 'CREDIT' THEN
              SELECT credit_rating
              INTO v_credit
              FROM S_CUSTOMER
              WHERE :S_ORD.CUSTOMER_ID = ID;
         IF v_credit NOT IN ('GOOD', 'EXCELLENT') THEN
              :S_ORD.payment_type := 'CASH';
              n := SHOW_ALERT('PAYMENT_TYPE_ALERT');
         END IF;
         END IF;
    END;
    Now my questions are where to place the equivalent code(EO, VO, etc.?) and how to realize this.
    Further, is it possible to roll out the trigger code to the database and then call this stored unit from "the right place"?
    I´m using JDeveloper v10.1.3.1.0 and I´m pleased about any reply or solution.
    Best regards
    Chris

    The answer will depend on how you are storing the parameter in your ADF application and when do you actually need it to be set and based on what.
    This can be for example a property of a managed bean in your JSF application and you can initialize it either in the bean itself or in the faces-config.xml file as a managed property.
    http://www.oracle.com/technology/tech/java/newsletter/articles/jsf_pojo/index.html

  • How to check when MPD changes track?

    I want to log every time when MPD changes song, but I can't find out how. Anyone got any ideas?

    koper wrote:
    here is the code in C that prints out name of the song when mpd changes it.
    #include <unistd.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <libmpd.h>
    #include <debug_printf.h>
    #define RED "\x1b[31;01m"
    #define DARKRED "\x1b[31;06m"
    #define RESET "\x1b[0m"
    #define GREEN "\x1b[32;06m"
    #define YELLOW "\x1b[33;06m"
    void status_changed(MpdObj *mi, ChangedStatusType what)
    if(what&MPD_CST_SONGID)
    mpd_Song *song = mpd_playlist_get_current_song(mi);
    if(song)
    printf(GREEN"Song:"RESET" %s - %s\n", song->artist, song->title);
    int main()
    int run = 1, iport = 6600;
    char *hostname = getenv("MPD_HOST");
    char *port = getenv("MPD_PORT");
    char *password = getenv("MPD_PASSWORD");
    MpdObj *obj = NULL;
    if(!hostname) {
    hostname = "localhost";
    if(port){
    iport = atoi(port);
    obj = mpd_new(hostname, iport,password);
    mpd_signal_connect_status_changed(obj,(StatusChangedCallback)status_changed, NULL);
    mpd_set_connection_timeout(obj, 10);
    if(!mpd_connect(obj))
    mpd_send_password(obj);
    do{
    mpd_status_update(obj);
    }while(!usleep(100000) && run);
    return 1;
    to compile it:
    gcc source_code -o output_file -lmpd -I/usr/include/libmpd-1.0/libmpd/
    the code it's actually a modified example from libmpd site:
    https://svn.musicpd.org/MOVED/libmpd/tr … testcase.c
    So this wakes up every 0.1 seconds....?  there goes your battery life...

  • How do i "when the ACPI mode is enabled (by default) under Windows 2000. To fix the problem, replace the gpibpci.sy​s file on your machine" Where do i go to do this?

    I keep getting an error message on the blue screen of death. Beginning dump of physical memory. To fix it a messgae board said "when the ACPI mode is enabled (by default) under Windows 2000. To fix the problem, replace the gpibpci.sys file on your machine with the one that is attached below and then reboot the machine." Where do i go to add this file?

    I will get this error randomly, once when I was opening a file on another computer on my network, once when I was logging onto to my bank website on the internet, and another when I was searching through my d drive. Nothing to difficult, I do not even have other programs running when it happens sometimes. Thanks for any help!

  • How to change the submit form data - standard e-mail text?

    everytime, when submitting data of a form, in the e-mail appears a standard text like below:
    The attached file contains data that was entered into a form. It is not the form itself.
    The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 or later for more details.
    My experience shows, that this may confuse the user. I would like to write in a simple way, for example:
    Thanks for submitting form....
    My question: Is it possible to change this standard text, and if yes how?
    I would be grateful for any comment or advice!

    Dear Gilad,
    Thanks for your fast answer! Yes, mailDoc specifies the text for the email. This is working fine!
    But what about the form data as attachment? the attachemnt is missing.
    Best regards!

  • Why Module level trigger contains "WHEN-CHECKBOX-CHANGED" trigger in Forms 6i?

    Hi,
    Why Module level trigger contains triggers like "WHEN-CHECKBOX-CHANGED", "WHEN-BUTTON-PRESSED" etc.? "WHEN-CHECKBOX-CHANGED" trigger is present in CheckBox & "WHEN-BUTTON-PRESSED" trigger in Button. Then why these triggers are also presnt in Module?
    Can anyone please clarify my doubt?

    There's a lot of triggers that are present at different "scopes". Like they exist at the item level, the block level,
    the module level...
    The idea is if you have an action that should only occur at that one single item it can do in the item trigger. If
    it's for all of them on the block, in the block level trigger. If for all of them ever, at the module level.
    For example suppose you wanted it to do a next_item after the trigger executed you can put that logic in the module
    level trigger. A key thing to notice here is the trigger hierarchy. That is essential to know about.
    Right click on one of these triggers in the object navigator. The execution hierarchy is override, before and after.
    since each of these levels of the same trigger has this execution hierarchy this is, well, potentially not easy to
    understand what is going to happen. I would typically have a per-item trigger be before and a higher level trigger
    be after.
    And this execution hierarchy thing is something I'd love to see enhanced in the gui. I wish it was a lot easier to see
    what the execution hierarchy is when editing a trigger text. I wish one could see and modify the execution hierarchy on the
    same screen as the trigger text and what would be really great is some way to tell how the trigger hierarchy will sort out
    at run time. For example if one is looking at an item level trigger it would be fabulous to know that as is, that trigger will be
    overridden by a higher level trigger and so on. Or vice versa if one is looking at a block level or form level trigger that it is
    overridden by a lower level trigger, or it will execute before or after some other trigger. I don't know what is defined to happen
    with various levels of triggers that have the same execution hierarchy. Like suppose they are all override,before,after.. then
    what happens? It'd be good to know.

  • SPL Block when manually changing address detail form r3

    I have a strange situation:
    We have completed an upgrade to GTS 7.1 - SSLLEG SP 15
    We are using R3 4.7 - PI 2004_1_470  SP 0015   PI_BASIS 2005_1_620 SP 0014
    When we create a sales order with reference to another sales document - and manually change the address, the RFC sends the sales order inofrmation to GTS - and screens normally
    When we create a sales order without reference - and manually change the address to a partner -  the RFC sends teh sales order information to GTS - but the partner(s) changed are identified as blocked due to "Manual change - and found on boycott list"
    When I SPL screen this on the GTS side - it proposes release - without considering the blocked partner(s). It does not appear on the blocked documents list - but when you display doc - it shows these partner(s) blocked
    If I send this sales order over using the r3 push program (/SAPSLL/SD0A_DISTRIBUTE_R3) - the order screens properly
    The configuration is set to SYNCHRONOUS SCREENING for the document item category
    Any insight here would be helpful

    hello Sameer,
    1. Whether your Embargo service is activated for the Country of Plant from which your order is getting shipped. -- Yes I have activated the Country under Embargo list.
    2. Whether the partner function for which you changing the county detail has been added in into the Partner group which is assigned to Embargo services.( GTS)-- Assinged the Sold to Party ( AG) for PGEMB2- Partner group
    3. Whether the country which u putting as Embargo has been maintianed under Embargo country list,
    - yes
    What I am doing exactly is , I am creating sales order with US customer master , but I am chaning the Country Key as Embargo country ( Ex: CU, SY, IR) at VA01 , or VA02 level Sales order header Partner tab level for Sold to party address ( changing only country key as embargo country) , not to ship to party  ( ship to party still US country key only), at that time system not blocking the sales order as embargo.
    please let me know if any once come across this sistuation..
    Thanks in advance
    NVR

  • How to know who last changed a sapscript form

    Hello experts,
    Our QA server was recently refreshed and we are currently checking if our sapscript program is latest one. How can we know who last changed it? Also, can we also know if a certain DEVK has been transported to QAS? Thanks a lot!

    sapscript header have information regading changes..
    for request u  can check on stms in qa server.
    also check table for request.
    like E070,E071,E07*

  • How to use when-validate-item in the form personalization?

    Dear all,
    I want to use when-validate-item trigger in the form personalization on a specific item. while in the same time the when-validate-item is not included in the trigger event list.
    Please advice & Thanks in advance
    Ashraf Ashour

    Use condition. If you are validating a record, just out the desired check in the condition field for that specific item.
    Thanks
    Nagamohan

  • Functional Location field is Grayed out in change mode

    Dear Experts ,
    I have created an equipment automatically  through serial number managed material .
    But the equipment created has no functional location assigned to it .
    Also when in change mode of the equipment the functional location field is grayed out & there is no provision to dismantle & reassign the same .
    Pls tell me how can i assign a functional loaction to this automatically created equipment ??
    Regards
    Anis

    Hello Thyagrajan ,
    In IMG ...
       Equipments --> Equipment Uasge Period --> Define Installation at functional Location
    I have put a tick for the checkbox " Inst . at Func. Loc" against the said equipment category
    Is ther anywhere else in IMG that i need 2 assign/check .
    while trying 2 assign a functional location for this equipment the system give the error :
    No InstallLocation entered: Data transfer not possible
    Message no. IA036
    Regards
    Anis
    Edited by: anis bazmi on Oct 26, 2009 9:48 AM

  • How to verify the user information pass by the form with a stored procedure?

    Hi,
    I would like to know how to verify user information pass by the form with a stored procedure.
    I want make a portal which accepts to new user registration, but I want verify the new user's informations (like the name don't contain a number etc).
    Thanks for your help
    regards
    jla

    Hi Samson,
    You can use the UI API to do this. You can catch the form_ADD event and then validate the input from the users. You can even block the event from completing (and stop the document from being added) if your code finds some incorrect data using the bubbleEvent functionality.
    I don't have one specific example to show you, but if you look at some of the SDK samples (for example C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents) to see how to work with events, you can then create your own validation to ensure the users data is valid.
    Regards,
    Niall

  • Error when applying changes in Form

    I get the following error when saving changes in a form. The Form was created using the Report and Form application. If someone can pls help, I would greatly appreciate it!!
    ORA-20505: Error in DML: p_rowid=APL11163, p_alt_rowid=transcontrolnum, p_rowid2=, p_alt_rowid2=. ORA-06550: line 1, column 99: PLS-00201: identifier 'transcontrolnum' must be declared ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    Error Unable to process row of table APL_TRANSACTION
    OK

    You should check the source of your page items:
    P?_TRANSCONTROLNUM
    It looks like you don't have this column in your table or there is a typo in the source.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Found out when user change something

    Hi - Regarding our UI pattern button "Save" initially is disabled - and is activated only when user changes something in form view (change something in InputField or TextEdit UI)
    Is it possible in WD to find out this event?
    In InputField there is event OnEnter - but this not enough - user may pass the fields with TAB sequence and event is not triggered.

    Well, I guess it's impossible. You need some action to force propagating data from client to server. And in your case there is nothing -- focus traverse events are not supported.
    The only way is to enable "Save" action and skip unecessary updates in action handler.
    VS

  • Why can't I update any apps? When I hit update it gives me an old id. But in settings my new id is totally set and verified. How cam I make the change in App Store?

    Why can't I update any apps? When I hit update it gives me an old id. But in settings my new id is totally set and verified. How cam I make the change in App Store?

    App purchases are permanently tied to the ID with which they were purchased. They cannot be transferred to a new ID.
    You will have to enter the password for that ID or delete the apps and re-purchase them with the new one.
    ~Lyssa

Maybe you are looking for