Typedefs: Cluster Order with SubPanels Confusion

LV 2010
I'm new at using subpanels, but here's a situation where they solve my problem (since LV refuses to allow a TAB control within a cluster - arrgh).
I have a TypeDef.  It's a cluster with indicators and graphs, describing a page to be printed.
One section of that is an instance of another TypeDef. (call it "X")
Because this section changes, according to what kind of file I'm dealing with, I want to display one of about five sets of info here.
A tab control would do it, but I can't have one within a cluster.
According to the HELP about SubPanels:
you cannot create an array of subpanel controls, and you cannot create a type definition of a subpanel control. You can place a subpanel control in a cluster to group the subpanel control with other controls, but the cluster cannot contain only a subpanel control or controls.
--- So, I put a STRING and a STRING and a SUBPANEL in the X TypeDef.  I put an instance of X on a new front panel.
According to the HELP:
LabVIEW creates an Invoke Node on the block diagram with the Insert VI method selected.
Well, it doesn't do that if it's a TypeDef. Placing an instance of "X" on a panel doesn't do anything special.
So I get the CONTROLS[ ] property of the instance, select out item 2 (0, 1, 2), typecast it to a SubPanel reference, and then I can use the INSERT VI and it works.
But I want to have the subpanel be item #0, so that I can find it in multiple situations: In one case, I might have two strings and a subpanel, in another I might have three strings and a subpanel. If I adopted the convention that the subpanel was 0, then I could extract item 0 in either case and it would work.
But I can't do that. If I try to REORDER CONTROLS in CLUSTER for the TypeDef of X, the subpanel doesn't have a number. The strings are #0 and #1 - there is no #2.
So, is it a control, or isn't it?  If it is, why can't I re-order it?  If it isn't, why does it appear in the CONTROLS[ ] property of its parent?
Is it always going to be LAST in the CONTROLS[ ] array?  What if there are two subpanels in a cluster? Which one is more lastest?
What are the rules here?
If I make the TypeDef NON-STRICT, I can create a direct property node on the panel.  But I think that means I have to make the whole chain non-strict (A PAGE contains a BASIC PAGE + ADDITIONS, the ADDITIONS contains several SECTIONS, the SECTIONS contains X), and I don't want to do that.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

I've made a small test thing which showed up ANOTHER issue.
Open the top-level VI in the attached LLB.
Notice descriptions on diagram.
#1.  Run it out of the box, as it is.  Why are the displays BLANK?  I am clearly executing the VI BEFORE it's inserted into the SubPanel. If you flip the switch, the displays react appropriately, so it's not caching anything.
#2:  Make a change to the typedef and POOF! the INVOKE NODE disappears.
#3 is a request for clarification of the rules.  If it's not a control, why is it in the CONTROLS array?  If it IS a control, why can't I REORDER it in the Typedef?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Attachments:
SubPanel Issues.llb ‏36 KB

Similar Messages

  • Purchase Order with reference to Purchase Order

    Dear SAP Gurus,
    Can it be possible to have a purchase order with reference to purchase order.
    Regards
    Vinod Kakade

    Hi,
    there is an option to give document date in the Purchase order selection in Document overview, what you can do here is that you can get a TVARVC variable created with date range of today - Today - 179 Days, in the attributes of the variant enter the TVARVC variable so that when the user uses this variant, he will get PO's only for that date range, if you  have any confusion on this then please speak to your ABAP Consultant.
    Regards
    Chandra Shekhar

  • Why can't I create property nodes for item in STRICT typedef cluster?

    I've tried this in LV7.0/WIN2k and LV 7.1/OSX - both versions work the same.
    I have a TYPEDEF consisting of a cluster of items A, B, and C.
    I have a front-panel instance of this typedef.
    Under certain conditions, I want to disable and gray Item C, because it's not applicable.
    So I need a property node connected to item C.
    If the typedef is STRICT, then I cannot create such a property node - the menu item to create anything is just not there.
    If I change to NON-STRICT, then I can create the property node.
    I can change it back to STRICT, and the property node works just fine.
    The question is, if the nodes WORK normally, why can I not CREATE one?
    If there's some sense behind this, someone please point it out to me...
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    I agree with you, It would be nice to be able to keep the non strict typedef auto-update and extend it to properities which effect the look of a control. I am not sure why you can change the properities on a strict typedef. A strict typedef should have private properities (can only be changed from within the definition and no public other vi scope for writing these values. I have in the past used a custom control for presentation purposes and contained the structure of the data to be displayed within the typedef cluster. This is not all that automatic since we need vi's to convert between the definition and control. Seperating data structure from presentation is much like XML where the file only contains data structure and a reference to a style for presentation. It would be a very nice option to allow nonstrict typedefs to have an additional auto-update properities which could be toggled on and off. I would be curious to here others opinions on how to keep data structure and presentation consistant across an application without being tied down to a strict typedef (allowing the optional change of teh presentation at runtime).
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Subcontracting Order with Item Category L from Sales Order

    Hi ,
    I am looking for the way to create an Purchase requisition automatically from a sale order with Item Category "L" Subcontracting.
    I tried but it is creating a PR with Item category "S" Third Party.
    Can any body tell me where I am missing.
    Thanks ,
    Lekhram

    Hi,
    From the sales order look at your schedule lines to find which Schedule Line category is being called for your master data and document type of Sales Order.
    Go to config for schedule line category and change the item category assigned in its details.  This item category is not to be confused with your SD item category.  This one is of purchase requisition that gets generated from SO# in the case of Third party.
    IMG> Sales and Distribution>Sales>Schedule Lines>Define Schedule Line Categories
    It would be 5 - Third Party.  Change it to 3 - Subcontracting.
    Reward if helpful.
    Regards

  • Create sales order with reference via BAPI

    Hi all,
    I would like to know if is it possible to create a sales order with reference using BAPI, that is, I want to create an order from a contract, for example, referencing one or more contract itens. If so, what variable or table should I use?
    I think that the most suitable function is
    'BAPI_SALESORDER_CREATEFROMDAT2' or should I use another to do this?
    I am using release SAP ECC 6.0.
    Thanks for any help.
    Paulo

    yes, you are using right BAPI i.e. BAPI_SALESORDER_CREATEFROMDAT2
    You will have to provide ORDER_HEADER_IN in that, Others are optional, even then if you have data for them, Provide it for better performance.
    For any confusion related to chosing BAPI :  You may go to BAPI  transaction and find out the correct BAPI according to ur need. for example sales order relatd BAPI's are
    BAPI_SALESORDER_CHANGE :Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2: Create Sales Order
    BAPI_SALESDOCU_CREATEWITHDIA: Create Data Container with Dialog
    BAPI_SALESORDER_GETLIST:List of all Orders for Customer
    and so on.
    Reward if helpful..

  • Sales order with more than 9 items causing problem

    Hi,
    I have a situation here.
    A sales order is created in the system and since it is order related billing so its billing document is also generated. The billing document is not relevant for accounting. So, the only 2 documents are a sales order and its billing document.
    Due to some technical restrictions,if the number of lines is more than 9 the printout wont come.Henceforth,the user is unable to take a printout so I need to give him a solution.
    What shall I suggest him?

    Hi,
    >So, my question is that,should I ask the user to create a credit memo wrt the billing document and then split the sales order with 2 invoices(one with say 5 and the other invoice with the rest of the quantities)?
    So, if my undestanding is right then you want to create a credit memo after invoice ? If yes, then why are you splitting the sales order ? Also, this is something strange kind of ABAP logic which would not allow to print an invoice with more than 9 line items... Now, as you said if your sales order is having more than 9 line items then only print doesn't come.. right ? then in your case at this moment there are only 9 line items so ideally you'd be able to get a print.. right ?
    I think there is some confusion out here with your two posts.. kindly clarify...
    Hrishi

  • Using control refnums in srtict typedef cluster

    I'm having a small problem using control refnums. I've not used them much so this could just be me doing something wrong!
    I'm building an application with a GUI which will need updating with data from within various subVIs and a couple of parallel loops. So, what I wanted to do was "build" a strict typedef cluster of references to the front panel objects I want to update, then I can pass this cluster to any subvi or structure which may need to update a FP object. So far so good...
    The problem:
    On my main GUI I have a strict typedef'd tab control, which I want to be able to reference. When I build my cluster of refnum's I duly create one for this typedef'd tab control. The problem is, if I modify the tab control in anyway, the cluster of refnum's breaks.
    Anyone tell me why this is happening?
    I've attached an example VI I created which shows the problem. Basically, open the typedef to the tab control and change anything, you'll see the cluster of refnums break... you can see a video of it here:  Video
    Any thoughts would be gratefully appreciated!
    Thanks
    Paul
    Attachments:
    refnums.zip ‏15 KB

    Hai,
    Just went through the post
    The strict typd controls automatically gets updated when the parent control changes.  But the refnums that are created out of the strictly typed controls needs manual updation coz there is no linkage between refnum that was created and the strict type control.
    You just create a strict type refnum that carries the properties of a strict type control and in no way a linkage exists between these two.  Hopefully if there is an option to link the refnum and control with "Update from typedef" will solve the problems
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • Goods receipt for purchase order with account assignment 'K'

    Hello All,
    There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
    I understand that material has been directly consumed to the respective cost center.
    How do track the internal movement for these materials??
    I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
    All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
    Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
    Request your inputs.....
    Regards,
    Manoj Reddy

    Account assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
    Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
    201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
    Edited by: Afshad Irani on May 17, 2010 2:17 PM

  • A problem with return order with free goods

    Hello
    I am working on ECC 6.0
    I am facing a problem with the return order the case is I created an order of 1000 pc with inclusive free goods (w/o item generation) condition record that for every 10 pc over the 100 the customer will take  1 free pc
    1 pc = 10 $
    100 pcs = 900 $
    120 = 1080 $
    the problem when I am creating a return order with 30 pcs the system  calculate the price as if there are free goods the system returns the 30 pcs with 270 $ instead of 180 $ and it should not calculate the free goods because the remaining items are 90 pcs that should not take a free goods discount
    Regards
    Jacopo Francios

    hi ,
    Such scenerios can be tackled by different pricing procedure in return scenerio.
    See Pricing procedure Depends on sales area + customer pricing procedure + Document pricing procedure .
    So for Return document type please maintain different pricing than the normal scenerio this will solve ur problem.
    This is generally done also for tackling such scenerios.
    Thanks & Regards

  • Creation of service order with address data.

    Hello community,
    I have the following requirement: create maintenance orders with order address data, the creation of these orders will be triggered by an interface with a legacy system.
    For order creation I intend to use BAPI_ALM_ORDER_MAINTAIN but this function does not provide the possibility to enter address information.
    I would not like to have to create a partner and assign it to the order as this address will be used only once.
    Does anyone have suggestions how to do it ?.
    Thanks.
    Roberto.

    Roberto,
    Try this:
    *& Report  ZPJA_ADDR_TX
    report  zpja_addr_tx.
    data: lt_adrc  type  standard table of adrc with header line.
    data: lt_adrc1 type  standard table of addr1_data with header line.
    * get address from first object
    call function 'ADDR_SELECT_ADRC_SINGLE'
      exporting
        addrnumber        = '0000033071'
      tables
        et_adrc           = lt_adrc
      exceptions
        address_not_exist = 1
        parameter_error   = 2
        internal_error    = 3
        others            = 4.
    loop at lt_adrc.
      move-corresponding lt_adrc to lt_adrc1.
      lt_adrc1-name1 = sy-timlo.   " write current time for testing
      append lt_adrc1.
    endloop.
    * update second address
    call function 'ADDR_UPDATE'
      exporting
        address_data        = lt_adrc1
        address_number      = '0000033205'
        date_from           = '00010101'
        language            = sy-langu
        check_empty_address = ' '
        check_address       = ' '
      exceptions
        address_not_exist   = 1
        parameter_error     = 2
        version_not_exist   = 3
        internal_error      = 4
        others              = 5.
    call function 'ADDR_MEMORY_SAVE'.

  • How to find open orders with amount and open deliveries?

    Hi All,
    I want to find out the open orders with open amount and open deliveries for a particular customer.
    We need this for credit check purpose.
    Kindly guide us for this.
    Regards,
    Satish.

    Hi,
    To find out open order:
    data: c_bef_pgi(1) TYPE c VALUE 'A',
    RANGES: rg_wbstk FOR vbuk-wbstk."range for wbstk
      rg_wbstk-sign = 'I'.
      rg_wbstk-option = 'EQ'.
      rg_wbstk-low = 'C'.
      APPEND rg_wbstk.
      rg_wbstk-low = 'A'.
      APPEND rg_wbstk.
    1.first put query on vbak table
    2.Put query on vbuk table as
          SELECT vbeln bestk lfstk gbstk FROM vbuk
                  INTO TABLE it_vbuk_open
                  FOR ALL ENTRIES IN it_vbak
                  WHERE vbeln = it_vbak-vbeln AND
                        bestk IN rg_wbstk AND
                        lfstk = c_bef_pgi.
    so this wil give u open orders.
    3. Then according to vbuk, get the details from vbap.
    To find open delivery
    1. First put query on vbak table
    2. Put query on vbfa as
      SELECT vbelv posnv vbeln posnn vbtyp_n vbtyp_v FROM vbfa
                 INTO TABLE it_vbfa
                 FOR ALL ENTRIES IN it_vbak
                 WHERE vbelv = it_vbak-vbeln AND
                       vbtyp_n = 'J' AND
                       vbtyp_v = 'C'.
    3.Then from VBfa,get the details from LIkp
    4.Then put entry on vbuk as
    *entries from vbuk
          SELECT vbeln wbstk fkstk gbstk FROM vbuk
                 INTO TABLE it_vbuk_del
                 FOR ALL ENTRIES IN it_likp
                 WHERE vbeln = it_likp-vbeln AND
                       wbstk IN rg_wbstk AND
                       fkstk = c_bef_pgi.
    Thanks & Regards,
    Anagha Deshmukh

  • Report for sales orders with abnormal discounts

    Hi
    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Reg
    JJ

    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Select KNUMH where KONP-KSCHL EQ ZDIS ( Condition record number)
    Select KONV-KNUMV   Where KONV-KNUMH EQ KONP-KNUMH
    Select VBAK-KNUMV where VBAK-KNUMV EQ KONV-KNUMV
    Then with the help of ABAPER hard code the condition amount (KBERT>10%)
    Regards
    Rohit

  • Report for Production orders with name of Customers

    Dear Expert,
    Kindly suggest to view the production orders with customer numbers for which the sales orders is created.
    I tried in MB51 with layout settings but the customer number comes out be blank despite the sales order number is populated for an production order.
    Kindly suggst a way or any report in the system  to get the corresponding information of production order number and corresponding customer name mentioned in the sales order .
    Thanks in advance for your help and inputs..
    Best regards,
    Nitish jain

    Nitish,
    MB51 is a Material Document list.  Many production orders exist that have no entries in this report, so it would be an unlikely candidate to be a solution for your requirement..
    The standard production order reporting tool is COOIS.  The output for MTO orders can be configured to display Sales order and Item and Soldto.
    Obviously, displaying even the customer order number in COOIS is impossible in a MTS scenario.
    In addition, a user experienced in using SAP Query  (SQVI or SQ01/SQ02/SQ03) could also create a production order report without having to know ABAP, by properly linking tables AFKO, AUFK, AFPO (production order data) with VBAK (sales order header data) to get customer number, and KNA1 to get customer name..
    If you are not expert in SAP Query, I suggest you discuss this requirement with a local ABAPer.
    If you are feeling like educating yourself in the wonders of SAP query, try this doc.  Although old, SAP query hasn't changed very much since this document was written.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    Rgds,
    DB49
    Edited by: Dogboy49 on Apr 20, 2010 10:47 PM

Maybe you are looking for

  • Binding ADF data form fields with column of a table

    Hii All, I want to create ADF data form where fields will be in form according to the request parameter of a webservice and all that elemments should be bounded to a table .can any one please tell me how to do that in ADF .I have created the webservi

  • Please Help Get a Color from Pixel !!!!

    Is anybody know how to get a Color from pixel. My program is not Full Screen . So i think Robot.getPixelColor() don't suitable. Please Help me!

  • File-Proxy (Error while receiving by HTTP )

    Hi All, I have a problem in the scenario file to Proxy....which is that after placing a source file successfuly in the source directory.... it is showing an information message in the XML message monitoring(sxmb_moni) like below Error while receiving

  • Colour conversion on export - its a toughy

    Hi Sorry about the crosspost, but I had no joy in the indesign forum: this is a problem with a CMYK document, with CMYK images (mostly with no profile attached). I have a printer that will reject anything with colour density greater than 300%. Usuall

  • Dashboard Widgets for Mountain Lion

    Mountain Lion still gives us Dashboard. Many Widgets that I recently downloaded aren't accepted by the OS for security reasons. Are there any Widgets that pass the Security and are available to users? If so, it would be nice that they be identified a