Resting Posting Inventory if the Detail field is empty

Hi Expert,
I would like to restrict the users to Post/Reconcile  the Inventory Posting, how could i do this on StoredProcedure-TransactionNotification, I have tried the script below but still i cant fixed the problem.
Please help me on this.
-- RESTRICT POSTING INVENTORY POSTING LIST (Inventory Posting) --
If @transaction_type in ('A','U') AND @Object_type = '58'
BEGIN
IF EXISTS (SELECT T0.Transnum FROM OINM T0 WHERE T0.Comments IS NULL AND T0.Transnum = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Please enter the detail field first! '
END
END
Thanks,
John

Hi,
you can try this:
If @transaction_type in ('A','U') AND @Object_type = '10000044'
BEGIN
IF EXISTS (SELECT T0.Comments FROM OIQR T0 WHERE T0.Comments IS NULL AND T0.Transnum = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'Please enter the detail field first! '
END
END
thanks
H2
Edited by: Hoe Pham Huy on Feb 25, 2011 10:44 AM

Similar Messages

  • How can I resize the 'detail' field in shipping transactions form.

    Hi,
    I am using the shipping transactions form to query our 'Lines and LPNs' for a given order.
    But our LPNs are large numbers and it pops up in the 'detail' field of the form.
    Now, I would like to see the whole LPN (detail) and I am trying to 'widen the field' from the menu.
    The message:
    This field cannot be resized.
    Please help.

    Hi,
    I would suggest you log a SR and keep watching this thread for any update from others.
    Regards,
    Hussein

  • Drop Column Field and Drop Row Fields in the Details Field area in the Cube Browser of BIDS/SSDT 2012

    Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
    area with the message "Drag levels or measures here to add to the query".
    How do I include the  "Drop Row Fields" area and the  "Drop Column Fields" area in this Details area so it can be like 2008? 

    I am using MDX query to build SSRS report.
    How do i get MDX query from Excel ?
    Hi Vishal,
    We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
    http://olappivottableextend.codeplex.com/
    In addition, I would suggest you open a new case if you have any more questiosn.
    Regards,
    Elvis Long
    TechNet Community Support

  • Pressing clear recent history i get the following i get an error you will find all about in in the details field.

    when i press clear recent history button in the tools menu i get the following error i wanted to report that issue the message is "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://browser/content/sanitize.js:136"

    Why are you using a usb ethernet adaptor? Just plug the modem into the usb port.

  • Hide a table row if the data field is empty

    I know this sounds easy and it would be if I were doing it with my own data.
    But I'm writing html that is being copied into an online form processor call "Absolute Form Processor" to be used to generate a report within in the software.
    It works great if I create every row in the table but I'd like to hide the rows that don't have a field value so that the report is more concise.  I hope that makes sense.
    The data accessed by surrounding the field name with "$$".  For example:  $$ed2_1$$.
    What kind of script do I need to write to hide a row if there's no data?
    Here's the code:
    <table width="95%" border="1" cellspacing="0" cellpadding="5">
                    <tr>
                        <th colspan="2">Education and Experience Information</th>
                        </tr>
                    <tr>
                        <td width="18%">School/Experience:  </td>
                        <td width="82%">$$ed1_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed1_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed1_3$$</td>
                        </tr>
                    <tr>
                        <td width="18%">School/Experience:  </td>
                        <td width="82%">$$ed2_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed2_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed2_3$$</td>
                        </tr>
                    <tr>
                        <td>School/Experience:  </td>
                        <td>$$ed3_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed3_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed3_3$$</td>
                        </tr>
                    <tr>
                        <td>School/Experience:  </td>
                        <td>$$ed4_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed4_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed4_3$$</td>
                        </tr>
                    </table>
    Any help would be most graciously accepted.
    Kim

    Hi
    try this
    <%
    'Check a variable isn't "empty"
    Function IsBlank(ByRef TempVar)
         'by default, assume it's not blank
         IsBlank = False
         'now check by variable type
         Select Case VarType(TempVar)
             'Empty & Null
             Case 0, 1
                 IsBlank = True
             'String
             Case 8
                 If Len(TempVar) = 0 Then
                     IsBlank = True
                 End If
             'Object
             Case 9
                 tmpType = TypeName(TempVar)
                 If (tmpType = "Nothing") Or (tmpType = "Empty") Then
                     IsBlank = True
                 End If
             'Array
             Case 8192, 8204, 8209
                 'does it have at least one element?
                 If UBound(TempVar) = -1 Then
                     IsBlank = True
                 End If
         End Select
    End Function
    %>
    Example usage
    <%
    If IsBlank("Degree/Position:")Then
         Response.Write "the default text or nothing goes here"
    End If
    %>
    You could also use "if ¦IsBlank" to only include the item if it has content, to do what you require.
    PZ
    Message was edited by: pziecina

  • Hiding some level of grouping when the custom field is empty at Project Center

    Hi:
    I group some custom fields at the Project Center (portfolio/programs/subprograms), but some on this are empty (see the image). I want to eliminate this fields (subprograms; subprogramas in the image), but next level (the projects) must continue to be visible.
    Is it possible?
    Thanks 
    Pablo

    Your interpretation is right. But in real life is usual that exists projects  part of a program but that don't have a subprogram assigned (see for example the PMBOK  for the concept, i.e. unbalanced tree of programs/subprograms/projects). Again,
    it seems to me that MS PPM 2013 is a project server tool enhanced but not a REAL portfolio tool.  I wonder why Gartner put it in it's first magic quadrant ?
    Thanks again for you kindness.
    Pablo
    Montevideo, Uruguay
    South America

  • Why is the FROM field in Task Details not always populated on in-flight BPs

    On a BP, the Task Details section contains a "From:" and a "To:" field.
    1. If I am the assignee, the From and To fields are populated.
    2. If I am NOT the assignee, the From field is empty, but the To field is populated. The behavior is the same whether the assignee accepted the task or not.
    This becomes inconvenient, for example, on a coordination step with multiple inflows and outflows. If the From field were always populated, I could readily get a sense of the context of the current step without fishing through the timestamps of the Process Details, particularly if this step is revisited multiple times.
    Granted, it's minor, but our users have noticed. Is there any reason for this?

    Thank you for your reply.  I changed the error handling as you suggested on the 2nd lookup to redirect to unmatched rows.  Now I get all greet.  I don't have the conditional split as in your diagram.  But also, nothing appears to have
    happened in the DB.  Aren't the rows in my text file supposed to be added to the FactCurrencyRate table?
    How do I get a conditional split?
    Rich P
    OK, sorry I forgot to reply you back.
    Conditional Split was just dummy task. Ignore it.
    Manipulate the data in such way that you get matching records.
    Inside Source, for first 2 rows I put the dates which are available in DimDate.
    1.00010001,ARS,7/1/2005 0:00,0.99960016
    1.00010001,ARS,2/5/2006 0:00,1.001001001
    1.00020004,ARS,9/5/2001 0:00,0.99990001
    1.00020004,ARS,9/6/2001 0:00,1.00040016
    1.00050025,ARS,9/7/2001 0:00,0.99990001
    1.00050025,ARS,9/8/2001 0:00,1.001001001
    Then in OLE DB Destination, I loaded the rows to TestFactTable.
    (Now, you don't even need NO MATCH OUTPUT as there are matching records here)
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • More than 5 rows in the detail table for a Master Detail Portlet

    I have a Master Detail Portlet.   I originally had 5 fields in the detail portlet.  I have added a column to the detail portlet and now the last column is wrapped around in the portlet.  I do not see a way to force it to be on the same line as the rest of the columns for the detail table.
    Do I need to just delete it and re-create the portlet?
    Below is the from the browser when executing the portlet.
    function show_context_help(h) {   newWindow = window.open(h,"Help", "menubar=1,toolbar=1,scrollbars=1,resizable=1,width=700, height=500"); }  
    Master action:
    [None]
    Insert
    Update
    Delete
    Carrier
    Carname
    Line Haul Carrier?
    Detail actions
    Warehouse
    Carrier
    Service
    Ship To
    Country Code
    Hold for
    Pickup
    Service?
    Associate LPN
    Required?
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete

    Easy, The default on the detail field had the Begin on New Line flag set to on.   By unchecking it I got the desired behavior.

  • Master-detail: detail field not displayed after changed by master field

    I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
    In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
    How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.

    Wouter,
    I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
    So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
    Steven Davelaar,
    JHeadstart team

  • Opening a new tab in Firefox 16.0.1 the focus is on the address bar but then moves to the search field

    When I open a new tab in Firefox 16.0.1 the focus is on the address bar for a second or so then the focus moves to the search input field. If I start typing something the first character fills in the address bar then the rest is typed into the search field.
    How do I get the focus to remain in the address bar as per previous versions please?
    MacBook Pro OS X 10.8.2
    Firefox 16.0.1
    Thanks.

    Hello surfersteve1970,
    check it in [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Safe Mode], select "''Start in Safe Mode''" and see if this happen again, if not see: [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How can I customize the Description field in calendar events to include a default message/template every time I create a new event?

    I use Thunderbird Calendar to schedule events for my business, and it invokes entering the same pieces of information. Is there a way to customize the Details field to already have the headings I need for the details I input?

    It assumes that you have this file available in your jdev
    ${jdeveloper.install.home.directory}/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar
    Add ant-contrib.jar into jdeveloper\modules\net.sf.antcontrib_1.0.0.0_1-0b2\lib directory. You can download it from http://ant-contrib.sourceforge.net/.
    Other useful advice:
    http://jwebcenter.blogspot.com/2011/05/how-configure-webcenter-space.html

  • Process for posting inventory difference

    Dear sir,
    Can i know the process and transactions for posting differences of inventory in SAP

    Hi,
    You can Post Inventory Difference through Physical Inventory Count.
    Tcode MI01 - Create PI Document
    MI04 - Enter Count - This is where you actually enter the Counted Inventory(Stock)
    MI07 - Post Inventory Document - The Qty you enter gets posted in the system.
    This is for matching the actual Inventory viz a viz the Inventory in the system.
    e.g.
    You have a material # 100XXXXXX lying in a Plant XXX SLoc YYY and the Qty in system is 100 Nos.
    The Actual Physical Stock in Plant XXXX SLoc YYY is 104 Nos.
    You would need to match the System Stock with the Actual Stock, and therefore you will Create the PI document, Enter the actual count (104 Nos.) and Post it . The Books are matched with the Physical Stock of that Item.
    Check the Stock in Report MB52 or MB5B
    Hope this helps,
    Amit Bakshi

  • Populating the detail block

    Hi Gurus,
    I have a master block and a detail block. the detail block should be always disabled for user entry.
    Master block is based on table X and detail block on Table Y.
    In the master block there is a field A . When this filed is entered with a value, when it is in insert mode, I have to execute a procedure which populates the detail block (the expected data has to be derived from another table based on the value of field A. But if Block A is in query mode the detail block is populated throu relationship.
    Now having the detail block as insert not allowed and update not allowed, my procedure is not able to populate the block. But if I changed insert allowed yes and update allowed =yes, the procedure populates the block. But I make the user enter values on the block which is not entertained. Please help me how can I achieve this?
    Thanks and Regards,

    try setting INSERT/UPDATE allowed = 'NO' for the all the detail fields, rather than
    block. should work.

  • Cannot set the default value of an item in the detailed table

    Hi,
    I have Master-Detail group, both are Table formats.
    I need to set the default value of an item in the details row to the value of an item in the selected row in the Master table.
    I tried Default Display Value=#{row.MasterItem}, but it seems it is trying to access current details row instead of the Master.
    I tried #{bindings.MasterGroupColumnName.inputValue}, but it does not work.
    Any ideas
    Thanks in advance
    Mohamed

    I think I now what I'm doing differently, I had the "New Rows" JHS property of the detailed table group "empty" instead of the default "2" value.
    It seems that "Default Display Value" expression works only for the new records specified in the "New Rows" property. But when I try to "Add" new record using the "Add Row" button, the new record inserted does not have the default values generated, only has values populated for the items of the FK (in the view link) but not the ones set through the property.
    I guess in a nutshell, how I can get the details item to behave like the FK columns?
    Thanks much
    Mohamed

  • The DATEPICKER field keeps disappearing

    I am trying to use the "DatePicker" Display Class in my User Form
    *<Display class = 'DatePicker'>*
    However, when I select the date there, then SAVE the form, and then try to View it again, the Date vanishes!
    The Date-Field is empty!
    I've been racking my brain for a possible solution. At first I thought it had to do with the Attribute Configuration (in IDM Schema). But, I specifically selected DATE as the data-type there.
    And then it occured to me that, maybe, the date I enter in the field is a "String" value, and, therefore, needs to be somehow PARSED (or transformed) into a DATE-value, so that it can remain in the data field, and not vanish!
    *(Or, is the situation supposed to be vice-versa?)*

    I am trying to use the "DatePicker" Display Class in my User Form
    *<Display class = 'DatePicker'>*
    However, when I select the date there, then SAVE the form, and then try to View it again, the Date vanishes!
    The Date-Field is empty!
    I've been racking my brain for a possible solution. At first I thought it had to do with the Attribute Configuration (in IDM Schema). But, I specifically selected DATE as the data-type there.
    And then it occured to me that, maybe, the date I enter in the field is a "String" value, and, therefore, needs to be somehow PARSED (or transformed) into a DATE-value, so that it can remain in the data field, and not vanish!
    (Or, is the situation supposed to be vice-versa?)

Maybe you are looking for

  • How does one set a password for a document or otherwise protect it?

    i need to email a pdf document. how do i set a password to protect it?

  • Issue with Package ??

    hello experts i have to face a evalutaion . there i have to do a screen programming where there i will save data in a ztable but when i will save data then it will ask for a package and a requset number as like it ask when we create a report by se38

  • Where I can download the bundle of "Java Plug-in 1.4 Developer Guide"

    I want to download all the doc of "Java Plug-in 1.4 Developer Guide" on http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/contents.html

  • Lspci does not recognise my 11g card

    I've started a new Arch install on my laptop, in a separate partition form the existing Debian and Windoze. I'm using arch-0.7-beta2-base. The base install is complete, and I have network access via a PC Card wired NIC. However, I generally use this

  • Convergence and messaging server http access

    Hi, Sun Java(tm) System Messaging Server 7.0-0.04 32bit (built Jun 20 2008) libimta.so 7.0-0.04 32bit (built 01:01:00, Jun 20 2008) Using /opt/sun/comms/messaging/config/imta.cnf # /opt/sun/comms/iwc/sbin/iwcadmin -V Sun Convergence 1.0-0.44 (built J