FM for complex selection of articles (MM)

Hi there,
I'm working on a transaction to display material information (MM), like in MM43 but with data of other tables. I am designing the whole thing using my own screens. Unlike MM43, the user must be able to select more than one article in the first screen.
Do you know any function module or class method to do a multiple selection or articles, as the one in MM13?
Something that I can call in my PAI and that returns the range of articles/ranges of articles included and excluded in the selection?
thanks

Found it:
Use function module COMPLEX_SELECTIONS_DIALOG, pass a range (internal table with sign, option, ...), optionally
indicate searchhelp. This can be used for any type of field.

Similar Messages

  • Function Module for complex selection of articles ?

    Hi there,
    I'm working on a transaction to display material information (MM), like in MM43 but with data of other tables. I am designing the whole thing using my own screens. Unlike MM43, the user must be able to select more than one article in the first screen.
    Do you know any function module or class method to do a multiple selection or articles, as the one in MM13?
    Something that I can call in my PAI and that returns the range of articles/ranges of articles included and excluded in the selection?
    thanks

    Found it:
    Use function module COMPLEX_SELECTIONS_DIALOG, pass a range (internal table with sign, option, ...), optionally
    indicate searchhelp. This can be used for any type of field.

  • Equivalent select statement for complex selection

    HI,
    What is the equivalent select statement for below mentioned condition.
    SELECT-OPTIONS : SALEDOCU FOR VBAK-VBELN OBLIGATORY,
                     DATE     FOR VBAK-ERDAT OBLIGATORY,
                     CHANEEL  FOR VBAK-VTWEG,
                     SALETYPE FOR VBAK-AUART OBLIGATORY DEFAULT 'QT'
                     NO INTERVALS NO-EXTENSION.
    Regards,
    John.

    hi,
    you can use following code.
    tables vbak.
    data : begin of t_vbak occurs 0.
             include structure vbak.
    data : end of t_vbak.
    select * from vbak into table t_vbak where
                            vbeln in saledocu and
                            erdat in date and
                            vtweg in chaneel and
                            auart in saletype.
    Hope this helps.
    Regards,
    Shashank

  • Nested SQL statements for complex, detailed queries.

    Is it  possible to write nested SQL statements for complex, detailed queries. A nested query
    has a WHERE clause that includes a SELECT statement ? Is it true or false ?

    Hi wahid,
    Here are pretty good examples: 
    http://www.databasejournal.com/features/mssql/article.php/3464481/Using-a-Subquery-in-a-T-SQL-Statement.htm
    http://technet.microsoft.com/en-us/library/aa213252(v=sql.80).aspx
    Regards Harsh

  • Using BEGIN TRAN for a SELECT statement

    I have inherited a number of stored procedures that are using explicit transactions and structured error handling. 
    I have had to review the procs due to deadlocks occurring and have found that many of them are SELECT statements. 
    The syntax is like this:
    BEGIN TRAN
       BEGIN TRY
    SELECT ####
     END TRY
      BEGIN CATCH
      IF @@TRANCOUNT >0
    BEGIN
    ROLLBACK TRAN
    INSERT ErrorLog
    XXXXXX
    END CATCH
    IF @@TRANCOUNT > 0
    BEGIN
    COMMIT TRAN
    END
    It is very obvious that there is no purpose for explicit transactions in the select, but I am wondering if this could be a factor in the deadlocks.  From what I tested using BEGIN TRAN for a select still only uses a shared lock. 
    Is it possible that this is a factor in the deadlocks?
    David Dye My Blog

    There is no need of explicit transaction in select statement what exactly would you want to rollback, nothing. Although you might use error handling depending on complexity of select involved.
    Plus drawbacks is locks would be held for longer duration which MIGHT provide some help in deadlock
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Complex select query read in Java

    I want to use a custom complex select query with join of multiple tables Explicitly to read the object which itself is associated with other object through one-to-many mapping. The objects have been generated through Toplink without Indirection.
    The scenario is like this:
    Table: Purchase_Order     Object:     PurchaseOrder
    2nd Table: Purchase_Order_Line     Object:     PurchaseOrderLine
    Relationship is one-to-many between Purchase_Order and Purchase_Order_Line. Corresponding to this, PurchaseOrder has the Collection of PurchaseOrderLine without indirection.
    I want to override the internal approach of Toplink by my custom select query to fetch a few attributes only. I tried it in some way but it does not return me PurchaseOrderLine collection.
    Please elaborate what should be the approach to run such query in Java using Toplink API?
    Thanks in advance!

    Could you include the query that you have currently tried.
    TopLink 9.0.4 did not support joining 1-m relationships, so this would not be possible, but TopLink 10.1.3 did add this support. You would need to add the 1-m joined attribute to the query to be able to use SQL that joins the 1-m relationship.
    In terms of only selecting partial objects, you would need to enable partial object reading on the query to only have some of the object's attributes built, but I believe that 1-m joins are not currently supported for partial object reading.
    You may also consider using batch reading on the 1-m in TopLink, as batch reading is more efficient at reading 1-m relationships than joining.

  • Field for file selection

    In Acrobat Text Fields have an option Field is used for file selection. With this Text Fields it is possible to select a File in the File Browser and to show the URL of the selected File in the Textfile with a script like var ft = this.getField("URL"); ft.browseForFileToSubmit(). Has someone found a similar possibility in Designer?

    getField does not work on XFA forms. Please have a look at the following document:
    http://www.adobe.com/devnet/livecycle/articles/AcroJS_DesignerJS.pdf

  • IMPLEMENTING PAGEWISE CONCEPT FOR COMPLEX QUERIES FOR WEB BASED TECHNOLOGIES

    Dear Friends
    how do i implement Page Wise concept for complex queries. Complex queries includes 'Group by', 'from selects'. Mere Rownum selection doesnt solve my problem. I have 3 buttons 'Previous', 'Next' and 'display of No. of records' . Kindly suggest me with a solution.

    The only widespread way is dynamically bild a SQL clause then parse and execute it using dynamic sql (package dbms_sql) or native dynamic sql (execute immediate clause).
    You can go through your already built cursor and display only those records you need (for example from 10th to 20th). I think there is no way to leave cursor open and reuse it another time. Every time You hit next, back or count button you need build new cursor (either selecting context columns to show some records or selecting count(*) to show number of records). You can generate this code with Oracle Designer, making webserver modules. Of course this will cost rather many $$$. Another tip - Designer makes this code for all situations and therefore it is somewhat difficult to understand it in the beginning. If you really need some example I can send something to you.

  • Complex selection in smartforms

    hi masters,
    in smartforms where is the options called "complex selection" i am creating the purchase order slip and in my navigation it says that
          Right click u201CMAIN Main Windowu201D in the Left Sub-tree and from the Menu option u201CCreateu201D à select the u201CComplex Sectionu201D.
    but i could not find the option, i am using the version ECC6.0
    will u pls help me out as it is very urget.
    thanks in advance.
    jacob

    thanks a lot for the quick reply
    can u pls tell me as to what is the use of the complex selection and why we use it?
    i dont hav much idea of it, since the navigation says i hav followed.
    if u can help me out with it, u r much appriciated.
    jacob

  • How do I print a contact report for a select group?

    How do I print a contact report for a select group?

    You should be able to select the group instead of all contacts. Older article.
    Contacts – Print Contact Information

  • Disabling complex selection button

    Hi Experts,
       In my select-options, based on the user ( sy-uname ), I am disabling the select-option-High value.
       i.e.      if screen-name = 'S_DATE-HIGH'.
                    screen-input = 0.
                 endif.
      But at the same time I need to disable the complex selection button also. It means that the user has to give only one input like parameter.
    How can I disable complex selection button.
    Thanks and regards,
    Venkat

    hi,
    please check this below code
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME  TITLE TEXT-027 .
    PARAMETERS: P_RADIO1 RADIOBUTTON GROUP RAD DEFAULT 'X' USER-COMMAND UCOM .
    PARAMETERS : P_KEY TYPE SYDATUM DEFAULT sy-datum MODIF ID MO1.
    PARAMETERS: P_RADIO2 RADIOBUTTON GROUP RAD.
    SELECT-OPTIONS: SO_BUDAT FOR BSIS-BUDAT MODIF ID MO2 .
    SELECTION-SCREEN END OF BLOCK B2.
    *--AT SELECTION-SCREEN OUTPUT STATMENTS--
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
         IF P_RADIO1 = 'X'.
           CHECK SCREEN-group1 = 'MO1'.
           SCREEN-INPUT = 1.
         ELSE.
           CHECK SCREEN-group1 = 'MO1'.
           SCREEN-INPUT = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
      LOOP AT SCREEN.
        if P_RADIO2 = 'X'.
          CHECK SCREEN-GROUP1 = 'MO2'.
          SCREEN-INPUT = 1.
        ELSE.
          CHECK SCREEN-GROUP1 = 'MO2'.
          SCREEN-INPUT = 0.
       endif.
           MODIFY SCREEN.
      ENDLOOP.

  • "SUIM User Users by Complex Selection Criteria by Role" question

    Hi all,
    Suppose the situation is:
    Composite role ZCR contains single role ZSR (profile T-001) . Composite role ZCR assigned to below two users with different expire date (both users are not locked and not expire):
    UserA - 01.01.2013
    UserB - 01.01.2024
    (Case 1) SUIM -> User -> Users by Complex Selection Criteria -> by Role (either specify ZCR or ZSR) the result is:
    UserA
    UserB
    (Case 2) SUIM -> User -> Users by Complex Selection Criteria -> by Profiles (T-001) the result is:
    UserB
    Is SUIM has error or other assumption on Case 1?   I expected the result is UserB only.
    I knew there is program PRGN_COMPRESS_TIMES to remove assignment which have already expire and all the related tables.  Please let me know if the result in case 1 is SAP standard or can be fixed by OSS notes?  Thanks.
    Regards,
    Donald

    Hi Donald,
    If the user having validity expired role in his user master SU01, then the expired role can be seen under 'Role' tab in SU01 with 'Valid to' date, but the role relevant profile will be removed from user at the time of role expiration date.
    So when you search for users based roles (Case 1), the SUIM lists all users who are assigned to that particular role, irrespective of expired role assignments. So in Case 1, please follow below step for accurate results.
    1.  (Case 1) SUIM -> User -> Users by Complex Selection Criteria -> by Role (either specify ZCR or ZSR) the result is:
    UserA
    UserB
    2. Then select all users in SUIM output (UserA & UserB), and click on 'In Accordance with Selection' button. So that you can see the users and the (ZCR) ZSR role 'Valid to' (End Date) date for each user.
    By doing second step here, you will get the accurate results. This is how the SUIM works.
    Thanks
    Sridhar
    >point begging removed by Moderator - last warning!<

  • Using REST for complex RSS expressions

    Hi
    I have being trying to use the REST connector to receive complex data from an RSS feed but I am not having much luck.
    I am looking to extract the url for the mp3 from the following rss feed
    http://www.nasa.gov/rss/dyn/TWAN_podcast.rss
    I am able to get some text items to display using different expressions but cannot get the mp3 url
    this is what I have so far
    Sort(First(TWAN_podcast_rss!channel)!channel!item,enclosure!'$attributes'!url)
    But I get the warning saying "The property cannot consume the type of values that this rule produces.
    could someone help me out if possible.
    Thanks
    Ronan

    Hi Terje,
    I was just providing Finley with screenshots for Anthony's examples from earlier in this thread. Since the URLs (in the second pic) point to the mp3 podcasts, you can bind them to an audio control to play the podcast for item selected in gallery:
    You can also bind an image control to the image URL (shown below). This feed only contains a single image. If it had images at channel!item level, you could bind those to image controls within the gallery as well.
    Thanks
    Robin

  • Max. no. for multiple selection

    Hi all,
    Is there any maximum limit for the no. of input parameters on selection screen?

    Technically there may or may not be a restriction, but more appropriate question would be why you want to hit that limit? Let us say I add 100 elements to the selection screen. Do you think the user will be comfortable working with such a complex selection screen?
    Coming to the number of entries, there are limitations on how big your SELECT statement can be which is more a limitation of the underlying database than SAP restriction. So if I add say 100000 single values on to a select option instead of a range, then there may be a dump. Again, it will be a design issue, whether it should be filled that way or is there a way to fill ranges instead of single values.
    It is more a ergonimical design issue than the real limits, unless you are experimenting to test the limits.

Maybe you are looking for

  • Transfering files from Windows machine freezes my wi-fi connection

    Guys, this is very weird, and it started to happen a week ago. I use finder to connect to my windows machine on my home network, and after typing my password, I get access to the folder in the windows machine that I want. The problem is: any file I t

  • Apple TV sound problem

    Does anyone have any suggestions on why I can get sound and picture when streaming from the clouds but picture only when using iplay from my pad?

  • GT80 SSD drive died, options ?

    my 5 month old GT80 had a SSD drive failure and it will no longer boot, the BIOS only sees 1 of the 2 SSD drives. was wondering if it would be possible to rebuild a new SSD array using RAID 1, so that if one drive fails again .. the other drive will

  • Label printing should be only once for a material doc number

    Hi, we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels, then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that num

  • EBS pages hangs and end with error

    Hi, I face an stopper issue that the EBS pages hang and retrun error: You have encountered an unexpected error. Please contact the System Administrator for assistance and this is the log: Exception Details.      'oracle.apps.fnd.framework.navigate.se