How to split the particle analysis report in order to extract one particular information(for eg. orientation)??)

hi .. i need to extract the orientation and centroid information from the particle analysis report (image processing is done in NI Vision and then converted to labview vi) for further processing. However once processing is done in Vision ,after converting to labview vi the particle analysis report comes as 1D array of size 1 and thus am unable to extract one particular information from the report. Plz help!   

duplicate

Similar Messages

  • How to read the Variance Analysis report S_ALR_87013139,  Pdt cost by Order

    Hi,
    Could someone tell me how to read the variance analysis report, S_ALR_87013139 - Cumulative for product cost by order. The report has the following fields, Target (Debits),     Actual (Debits),     Scrap,     Var. Without Scrap,     Work in Process(WIP),     Control Costs.
    I am looking to find how the numbers add up.
    Thanks for your help.
    Ram
    Message was edited by:
            Ram R

    Thanks Sridhar,
    When I analyse the report S_ALR_87013139 - Cumulative , for a product for a period (with no scrap), I get the following
    Target (Deb) -   46,855.55
    Act (Deb) - 58,315.87
    Scrap - 0.00
    Var W/O- Scrap -  11,269
    WIP- 0
    Control Cost - 0
    Here Actual - Target is not equal to Variance. What could be the issue?
    Could you please tell me how SAP would update this report  with target & actual costs with respect to open production orders, carried over from previous periods.
    Thanks,
    Ram

  • AR - How to Combine the AR Aging Reports of 2 companies in one SQL?

    Hi!
    I just completed a query which mimics the Official Aged Analysis of Debtors in SAP B1 8.8, and it works well.
    Now I want to combine 2 companies in a single Query. Is this possible, and how can this be done?
    Why do I need this?
    I work for 2 related companies dealing with different product lines and each company maintains SAP B1 separately.
    The 2 companies have the same clients, and send their own separate invoices. But our clients do not recognize this internal division: They make a single order for their purchases and settle their debts by a single remittance.
    It would be useful to have an Aging which groups the results of both companies.
    I know the names of the 2 databases, say Comp1 and Comp2.
    I tried this clause: USE Comp1   GO, but query gives error message "Incorrect syntax near GO"
    My idea is group the 2 databases in a single query and use UNION ALL, for example:
    USE Comp1
    GO
    SELECT .....etc
    UNION ALL
    USE Comp2
    GO
    SELECT ... etc..
    Is this the correct way to proceed? If not, could you tell me what is the best way to develop the query?
    Here is a simplified version of my query
    SELECT
    T1.CardCode + '' AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    T0.RefDate,
    CASE
         WHEN T0.TransType = 13 THEN 'IN'
         WHEN T0.TransType = 14 THEN 'CN'
         WHEN T0.TransType = 30 THEN 'JE'
         WHEN T0.TransType = 24 THEN 'RC'
         WHEN T0.TransType = 46 THEN 'PS'
         ELSE 'Error ! ! !'
    END AS 'Doc Type',
    T0.Ref1 'Doc. Number',
    ISNULL(T0.FCCurrency, ' - ') AS 'Ccy',
    (T0.BalFcDeb - T0.BalFcCred) AS 'Bal. F. Ccy',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') <= -1)                     ,0) AS 'Future',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 0)                         ,0) AS 'Current Mth',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 1)                         ,0) AS '1 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 2)                         ,0) AS '2 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate ,'[%1]') = 3)                         ,0) AS '3 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') between 4 and 6)    ,0) AS '4 - 6 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') >= 7)                       ,0) AS '>7 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C' and Balance != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0

    Hi Gordon,
    Do you mean the following?
    Instead of writing:
    SELECT ...
    FROM JDT1 T0
    I should write
    SELECT...
    FROM Company1.dbo.JDT1 T0
    UNION
    SELECT...
    FROM Company2.dbo.JDT1 T5
    I shall try it tomorrow morning when I return to Office.
    Thanks a lot
    Leon Lai

  • How to store the particle analysis details in a file?

    I use NI vision builder AI2.5, to acquire the image(using  one camera). The image is analysed and I want the results of this particle anlysis results(like the center of mass x,y, orientation) to be stored in the file. and later call this value as input for my VB program.
    How to do it ? can anyone help me out
    Thank you

    Hey Indhu,
    You can use the data logging tool of VBAI to log data to a file. You can access this by going to Tools -> Configure Inputs/Outputs. You can read more about this in the VBAI User Manual, or you can check out the following KnowledgeBase document called How to Save Results from Vision Builder for Automated Inspection to File?
    One other option that you have is to upgrade to VBAI 2.6.1, which has an ActiveX component for the Vision Builder for Automated Inspection engine. With this component, you can pass that data back to your VB program while it is running, which is a powerful feature and would be worth the upgrade. You can download the current version of VBAI from the following link: Vision Drivers and Updates, and install it to test it out for a 30-day trial, then when you want to purchase it, all you would have to do is activate it.
    I hope this helps. Please let us know if you have further questions or concerns.
    Regards,
    DJ L.

  • HOW to download The Demo Version of Oracle JD Edwards Enterprise One 9.0,

    Dear Friends,
    Can any one tell me how to download The Demo Version of Oracle JD Edwards Enterprise One 9.0, for Practice purpose,
    if you have any links please tell me,
    and how much capacity of hard disk need to store the same.
    I am Learning the Oracle JD Edwards ERP, so that i want to Practice it in my home.
    Is it possible to work demo version with out Internet facilities?
    regards.
    AR

    user11690597 wrote:
    Thanks for the link, but not able to find JDE demo version for download.It's not quite as simple as 'click the download' button. You gotta get the infrastructure in place.
    As recommended, go to http://edelivery.oracle.com , click on Continue, fill the legal page, select JD Edwards for your OS, and start downloading. I would probably start and stop with the Installation document, since that likely has information such 'how much of the 60GB download is really required'.
    In the Oracle world, learning and practicing starts with reading.

  • How is the Sales Amount in the Sales Analysis Report calculated.

    Hi,
    I'm trying to develop a report similar to the sales analysis report of SAP.
    I want to know how does SAP calculate the the Sales Amount column. I was using LineTotal column of Invoices + A/R credit memos, but it's not correct. I know i'm getting all the records because my total quantity and Gross Profit is correct.

    Hi Vj Chris,
    Try This
    SELECT T0.[DocNum] as 'INV NO', T0.[DocDate] as 'INV DT', T0.[CardCode], T0.[CardName], T0.[DocTotal], T0.[GrosProfit], T1.[DocNum] as 'AR CR MEMO', T1.[DocDate] as' AR CR DT' , T1.[CardCode], T1.[CardName], T1.[DocTotal], T1.[GrosProfit], (T0.[DocTotal]-T1.[DocTotal]) as 'Final Amount', (T0.[GrosProfit]-T1.[GrosProfit]) as' Final GR Profit' FROM OINV T0 , ORIN T1 WHERE T0.[DocDate] >=[%0] and  T0.[DocDate] <=[%1]
    But this query better run when you are using in Crystal Report.
    Thanks,
    Srujal Patel

  • How to select the particles after using the Particle Analysis

    Can I select the particles after the particle analysis directly, like chosing #1, #2 ..., or should I run the particle filter using the measured parameter?

    Hello Ishi,
    I now have a much better idea on what you are trying to do.  If you run the IMAQ Particle Analysis Report VI on the thresholded image that contains particles, an array of clusters will be returned that will contain specific information for each particle including the area, number of holes, bounding rectangle coordinates, center of mass, orientation, and dimensions. 
    To find out which particle is which in the image, index the Particle Reports (Pixels) output of this VI, unbundle the cluster to extract the Bounding Rectangle cluster, and then pass it to the Rectangle input of an IMAQ Overlay Rectangle VI.  This VI will overlay a bounding rectangle onto the image to show where the particle is located.  You can specify which particle you want highlighted by changing the array index of the Index Array VI that is responsible for extracting a specific cluster of particle information from the Particle Reports output of the IMAQ Particle Analysis Report VI.
    Regards,
    Mike T
    National Instruments

  • How to split the report into different versions view 1 agent delivery

    Hello
    I have a scenario where I need to send a dashboard to multiple users. The user information are stored in the table like the following:
    USER    Day     Car                  Pay Type                    Cost   Email
    USER1
    -10
    -2
    Honda
    Customer Pay
    500
    [email protected]
    USER2
    -4
    -1
    AUDI
    Customer Pay + Warranty
    1000
    [email protected]
    USER2
    -4
    -1
    PORSCHE
    Customer Pay + Warranty
    1000
    [email protected]
    Now I have a dashboard call Car, on this dashboard I have prompts like Date, Car, Pay Type, Cost, pretty much the same name as the columns in the above table. I have also set up session variables to pick up users based on the log in.
    Now for user2, he is getting 1 email, which is the dashboard with both Audi and Porsche on there. Instead, he wants to 2 attachments, 1 for Audi and 1 more Porsche. Is there a way to achieve this using 1 agent?
    Please let me know how to split the result sets based on user records in the table
    Thank you

    Hello,
    Thank You very much for the useful hint.
    Regards
    Aloha

  • IMAQ Particle Analysis Reports VI

    Hello,
    I have written a programme that can take an image, resize it, theshold it and generate an array of particle locations using the IMAQ particle analysis VI. The programme works fine but I was wondering if anyone can answer some questions I have regarding some of the details of how this VI works:
    How does the IMAQ Particle Analysis Reports VI calculate the centre of mass of the particles? Naively I would assume it would be the same as the IMAQ Centroid VI which uses the formula x=Sum(x*PixelValue)/Sum(PixelValue), y=Sum(y*PixelValue)/Sum(PixelValue), however in this case it finds the centre of mass of the entire image and not of the individual particles. Does it therefore apply these formulas to automated regions of interest to generate the list of centroided coodinates for each particle or does it use an altogether different method?
    Is this the fastest and most computationally efficient way to generate these list of centroided coodinates given that it also calculates several other parameters that I do not need?
    Thanks so much! Any help would be greatly appreciated!
    Justin     

    Hi Justin,
    I haven't been able to obtain the formula / algorithm that the VI uses but I found that the particle analysis example in CVI offers some insight into what the function is performing. I've copied the C code for your convience but I found it on this white paper http://www.ni.com/example/26517/en/  - 
    Particle Analysis Examples. 
    int CVICALLBACK ParticleAnalysis (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    switch (event)
    case EVENT_COMMIT:
    /* Make sure the user has thresholded the image */
    if(!thresholdFlag) {
    MessagePopup ("Image must be thresholded",
    "You must threshold an image before performing the particle analysis.");
    return 0;
    /* This section of our code shows how to run a basic particle analysis.
    imaqGetParticleInfo is used with the parameter IMAQ_BASIC_INFO to get
    basic information on each particle in the image. It returns a pointer
    to a structure array which contains all of the information for each
    particle. Passing IMAQ_ALL_INFO instead of IMAQ_BASIC_INFO will run
    a more detailed report on the particles, but will take longer to execute.
    For more information on the report structure, see vision.h or the function
    panel for imaqGetParticleInfo. */
    /* Reset the max value for the control to (2^32)-1 so that consecutive runs
    are not limited by the number of objects found in previous runs */
    SetCtrlAttribute (panelHandle, PANEL_CURRENT_PARTICLE, ATTR_MAX_VALUE,
    4294967295);
    /* If we have already called imaqGetParticleInfo and thus created a particle report
    we should dispose that report before creating a new one. */
    if (particleRptExists)
    imaqDispose (particleRpt_Ptr);
    particleRpt_Ptr = imaqGetParticleInfo (thresholdImage, FALSE, IMAQ_BASIC_INFO, &particleCount);
    particleRptExists = TRUE;
    /* Simple user interface management - activate the particle report controls */
    SetCtrlAttribute (panelHandle, PANEL_PARTICLE_COUNT, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_CURRENT_PARTICLE, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_AREA, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_CAL_AREA, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_TOP, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_HEIGHT, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_LEFT, ATTR_DIMMED,
    FALSE);
    SetCtrlAttribute (panelHandle, PANEL_WIDTH, ATTR_DIMMED,
    FALSE);
    SetCtrlVal (panelHandle, PANEL_PARTICLE_COUNT, particleCount);
    /* Set the max value on the index control so that the user does
    not try to access particle info for particles that do not exist */
    SetCtrlAttribute (panelHandle, PANEL_CURRENT_PARTICLE, ATTR_MAX_VALUE,
    particleCount - 1);
    /* Simulate an event to immediately update report controls and reset the
    report index to zero */
    ViewReport (panelHandle, 0,EVENT_COMMIT,NULL,0,0);
    SetCtrlVal (panelHandle, PANEL_CURRENT_PARTICLE, 0);
    break;
    return 0;
    Kind Regards,
    Lucas
    Applications Engineer
    National Instruments

  • In the Account Analysis Report Payables, currency precissions are not refle

    Hi All,
    In the Account Analysis Report Payables, currency precissions are not reflected propely.
    The functional currency is KWD (Precission - 3). In the standard report (Account Analsyis Report) parables application, the output is shown in 2 decimals. The output should be shown in 3 precisions.
    Regards,
    Raju.

    Some how the rtf (XLAAAR01) is not looking at the currency precision.
    You may customize the rtf.
    By
    Vamsi

  • How to split the Multi Provider

    HI All,
    Please give me the steps How to split the Multi provider and also let me know how to find the multi provider is parellal or series?
    Thanks
    Vasu.

    Hi
    If you have huge volumes of data, logical partitioning (splitting into multiple data targets based on a time characteristic) is always recommendable. You can choose to so only for the cube (split into 3 cubes) and have the suitable code when loading from the ODS's.
    Else you can split the ODS's as well and have the code in the update rules from source system to the ODS's. Either ways, once you choose to split...you have no choice but to use a multi provider to report on these splits.
    During the execution, query is automatically multiple sub queries and these sub queries read the partitioned cubes in parallel. This would increase the performance of reports. Hope this helps!
    http://help.sap.com/saphelp_bw31/helpdata/en/de/bcb73d73a5f972e10000000a114084/content.htm
    santosh

  • Query to mimic the items tab of the Sales Analysis report.

    Hi there,
    I'm currently looking to create a query that mimics the behaviour of the Sales Analysis report in B1. The items tab of the Sales Analysis report provides all the data I require - the only issue is that I would like to merge this data with some other data regarding current on hand stock quantities etc. and therefore I would like to be able to pull out the query behind the Sales Analysis report.
    I'm assuming this cannot be done and therefore I'm attempting to build a query to replicate the results. The query needs to show Item No, Item Description, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for items within a given period.
    If this can be done relatively easily, can the query then be modified to show all items (including items that haven't sold in the date range) merely with '0' for Quantity Sold, Sales Amt etc. if the item hasn't been sold in the period, and the appropriate figures if each of these columns if the item has sold. I assume some kind of CASE statement can be used to generate this.
    So the query needs to show Item No, Item Description, Current quantity in stock, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for all items within a given date range.
    I hope you can assist me with this problem.
    Thanks
    Grant.

    Hi,
    Thanks Gordon that was exactly what I needed.
    I've been trying to add some additional columns to the query but I'm experiencing some errors and I can't quite tell why.
    Basically, here's the code from another working query I have which I wish to merge into the query you've suggested above:
    SELECT T0.[ItemCode],
    T0.[ItemName],
    T3.[ItmsGrpNam],
    T4.[Name] AS [Sub-Category],
    T5.[Name] AS [Sub-Sub-Category],
    T0.[CardCode] AS [Pref Supplier],
    T6.[FirmName] AS [Brand],
    T0.[U_Range],
    T0.[OnHand],
    CASE WHEN T0.[StockValue] = 0 THEN 0 ELSE T0.[StockValue] END AS [StockValue],
    T1.[Price] AS [PBK GBP Price],
    CASE WHEN T0.[OnHand] = 0 THEN T0.[LastPurPrc] ELSE T0.[StockValue]/T0.[OnHand] END AS [Ave Cost],
    CASE WHEN T0.[OnHand] = 0 THEN T1.[Price]-T0.[LastPurPrc] ELSE CASE WHEN T0.[OnHand] > 0 THEN T1.[Price]-T0.[StockValue]/T0.[OnHand] END END AS [Margin],
    CASE WHEN T0.[OnHand] = 0 AND T0.[LastPurPrc] = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] > 0 AND (T0.[StockValue]/T0.[OnHand]) = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] = 0 THEN (T1.[Price]-T0.[LastPurPrc])/T1.[Price]*100 ELSE CASE WHEN T0.[OnHand] > 0 THEN (T1.[Price]-T0.[StockValue]/T0.[OnHand])/T1.[Price]*100 END END END END AS [Margin %],
    T0.[LastPurPrc]
    FROM [dbo].[OITM]  T0 INNER JOIN [dbo].[ITM1]  T1 ON T0.ItemCode = T1.ItemCode INNER JOIN [dbo].[OITB]  T3 ON T0.ItmsGrpCod = T3.ItmsGrpCod LEFT OUTER JOIN [dbo].[@U_SUBCATEGORY]  T4 ON T0.U_Subcategory = T4.Code LEFT OUTER JOIN [dbo].[@U_SUBSUBCATEGORY]  T5 ON T0.U_SubSubCategory = T5.Code INNER JOIN OMRC T6 ON T0.FirmCode = T6.FirmCode
    WHERE T0.[OnHand] >= 0 and T0.U_Range not in ('E','X')  
    ORDER BY T0.[ItemCode]
    Essentially I just wish to add the fields which are specified in the query above, but not in the query you've already suggested:
    SELECT T0.ItemCode,
    Max(T0.ItemName),
    Max(IsNull(T0.OnHand,0)) 'In Stock',
    SUM(IsNull(T1.Quantity,0)) 'Quantity',
    Sum(IsNull(T1.LineTotal,0)) 'Sales Amt',
    SUM(IsNull(T1.GrssProfit,0)) 'Gross Profit',
    Case WHEN Sum(Isnull(T1.LineTotal,0)) = 0 THEN 0 ELSE
    SUM(IsNUll(T1.GrssProfit,0))/Sum(Isnull(T1.LineTotal,0)) * 100 END 'Gross Profit %'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode=T0.ItemCode
    LEFT JOIN dbo.OINV T2 ON T2.DocEntry=T1.DocEntry AND T2.DocDate Between [%0] AND [%1]
    GROUP BY T0.ItemCode
    I was hoping it would be fairly straight forward but so far I've had limited success.
    What am I missing here?
    Thanks in advance!

  • How to restrict the display of report variants

    Hello All,
    I want t know how to restrict the display of report variants.
    I mean, when a user saves a variant for his/her purpuse on some report program, only he/she can refer the variant while other users cannot.
    I know that by setting the attribute of the variant ("Protect Variant ", "Only Display in Catalog"), this would be possible, but I want to know another way, without this setting.
    Thank you for your help in advance.
    Regards,

    Hi,
    Can you just try this
    DATA:it_varid TYPE TABLE OF varid.
    DATA:wa_varid TYPE varid.
    INITIALIZATION.
      SELECT * FROM varid INTO TABLE it_varid
          WHERE report = sy-repid
          and ename = sy-uname.
      IF sy-subrc = 0.
        LOOP AT it_varid INTO wa_varid .
          CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
            EXPORTING
              report               = sy-repid
              variant              = wa_varid-variant
            EXCEPTIONS
              variant_not_existent = 1
              variant_obsolete     = 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.
        ENDLOOP.
      ENDIF.

  • How to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    You have to connect via ODBC, then use code along the lines of what is described here:
    http://scn.sap.com/thread/3526924
    by me on March 28 and Jan on March 29.
    Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to do the Validations in Report Programming?

    How to do the Validations in Report Programming?
    how to do screen Validations and Field Validations if posssible can any one send the code regarding the Validation ....
    Tks
    Durusoju

    AT SELECTION-SCREEN - selscreen_event
    Syntax
      | { ON {para|selcrit} }
      | { ON END OF selcrit }
      | { ON BLOCK block }
      | { ON RADIOBUTTON GROUP radi }
      | { }
      | { ON {HELP-REQUEST|VALUE-REQUEST}
      |   FOR {para|selcrit-low|selcrit-high} }
      | { ON EXIT-COMMAND }.
    Alternatives:
    1. ... OUTPUT
    2. ... ON {para|selcrit}
    3. ... ON END OF selcrit
    4. ... ON BLOCK block
    5. ... ON RADIOBUTTON GROUP radi
    6. ... { }
    7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
          {para|selcrit-low|selcrit-high} }
    8. ... ON EXIT-COMMAND
    Effect
    These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
    Alternative 1
    ... OUTPUT
    Effect
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    Note
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    Alternative 2
    ... ON {para|selcrit}
    Effect
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    Note
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    Alternative 3
    ... ON END OF selcrit
    Effect
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    Alternative 4
    ... ON BLOCK block
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    Alternative 5
    ... ON RADIOBUTTON GROUP radi
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    Note
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    Alternative 6
    Effect
    The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
    Alternative 7
    ... ON { HELP-REQUEST | VALUE-REQUEST } FOR
        {para|selcrit-low|selcrit-high} }
    Effect
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    Notes
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    Alternative 8
    ... ON EXIT-COMMAND
    Effect
    This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
    Example
    In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
          sflight_wa  LIKE LINE  OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
      SELECT-OPTIONS s_conn FOR sflight_wa-connid.
      DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE 'No authorization for carrier' TYPE 'E'.
      ELSEIF sy-subrc <> 0.
        MESSAGE 'Error in authority check' TYPE 'A'.
      ELSE.
        IF sy-ucomm = 'ONLI'.
          CALL SELECTION-SCREEN '0500'.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-dynnr = '0500'.
        IF s_conn IS INITIAL.
          MESSAGE 'Please enter values' TYPE 'W'.
        ELSE.
          SELECT *
                 FROM sflight
                 INTO TABLE sflight_tab
                 WHERE carrid = p_carrid AND
                       connid IN s_conn.
          IF sy-subrc <> 0.
            MESSAGE 'No flights found' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.
    Main program
    START-OF-SELECTION.

Maybe you are looking for

  • Open Letter to Tim Buntel

    Sorry for the "spammy" post, but I am hoping someone from Adobe will notice: http://techfeed.net/blog/index.cfm/2007/8/22/Open-Letter-to-Tim-Buntel The basic idea of the letter, is that I feel Adobe could do a LOT more to market ColdFusion, and I giv

  • Quicktime Image IO and JPEG Chroma Subsampling

    This is more of a developer question than a user question, but hopefully someone here will be able to answer it. I'll use the example of using Quicktime Image IO to save JPEGs in an application. There will be a scale of "Least, Low, Medium, High, Bes

  • LR4.3 w/ NIK filters - Image previews keep reloading Constantly until Catalog Optimization

    Just bought the NIK filters on Googles big sale - problem is everytime I add a NIK filter - so far only tried Color Efex Pro - via the External Editor in LR4.3, Save, and then go back into LR4.3 the Image Preview keeps reloading while I try to make f

  • Roadmaps

    Hi experts, in fist step of road road map we have  one table and two buttons (back , print buttons). when we select required row in table and press print button , the rows selected in table should get printed in next page (in explorer ). but its gvin

  • Buttons behave differently

    I have a page process doing some DML, which is supposed to execute after submit and when button P_X is pressed. When creating a button P_X in a region position the page process is NOT triggered when creating the button P_X displayed among this region