How TP/VS can pick up weight and volume from MATKEY table or MARM table

Based on Base Unit of Measure, we want the TPVS optimizer to pick up the weight and volume from MATKEY table in some cases and from the MARM table in some other cases.
For instance, in products where Base Unit of Measure is Litre, the system is picking up the volume from SI Unit of Conversion as 1 M3 and taking 0.001M3 per quantity and multiplying with the actual quantity to arrive at the volume in M3 which is incorrect, whereas TPVS should take the actual volume maintained by us in material master Basic Data.
How to configure this requirement?
Regards........Sunil

BufferedReader br = null;
int x = 0 ;
FacesContext ctx = FacesContext.getCurrentInstance();
//HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
HttpServletRequest request = (HttpServletRequest) ctx.getExternalContext().getRequest();
Date currentDatetime = new Date(System.currentTimeMillis());
String StartTime = formatter.format(currentDatetime);
int maxMemSize = 900000;
long maxReqSize = 1000000000;
//String fileDir = "/home/working/tmp/";
boolean writeToFile = true;
//String fileName = "deals.txt";
String from = "";
String files = "";
String tmpStr = "";
String comment = "";
int num = 0;
// CHECK THAT WE HAVE A FILE UPLAOD REQUEST
boolean isMultipart = FileUpload.isMultipartContent((HttpServletRequest) request);
ServletOutputStream out = null;
// OPEN FILE TO DO PROCESSING
fileName = fileName.replaceAll("\"", "\\") ;
// added code for export pc_
File inputFile = new File( fileName );
try{
in = new FileReader(inputFile);
br = new BufferedReader(in);
} catch (FileNotFoundException ex ) {
ex.printStackTrace();
genUtils.displayError("Invalid file name or file does not exists");
return "-1";
JSP file
<f:view>
<h:form id="TradeAdjustmentImportForm" >
<table width="900" class="tableform" >
<caption class="searchcaption" > Production Credits Deals File Import : <h:messages id="Messages" errorClass="errors" globalOnly="false"/> </caption>
<tbody>
<tr class="formtr" >
<td class="td" style="color: red"><strong>Enter File to Import</strong></td>
</tr>
<tr class="formtr">
<td nowrap align="left">
<h:outputText id="fileImportTxt" value="File Name : " />
<h:inputText id="fileName" value="#{ProdCreditUtilities.fileName}" styleClass="field-value" />
</td>
Can you help me change this code to work with <input type="file">
I am not that familiar with JSP and HTML . I am a database coder trying to get this fixed.
Your help is greatly appreciated.
Thanks
Ricky

Similar Messages

  • I have an iphone 4, when I plug in headphones I can pick up music and only background sounds, but no voices. It happens on every video or movie I see, but music works perfectly fine. Did anyone else have this problem or was it just me?

    I have an iphone 4, when I plug in headphones I can pick up music and only background sounds, but no voices. It happens on every video or movie I see, but music works perfectly fine. Did anyone else have this problem or was it just me? If not can anyone help me?

    Hey there Srkupo,
    It sounds like your vocal audio is not working with your headphones connected to your iPhone. I would start with the troubleshooting from the following article to help troubleshoot them named:
    Resolve issues with iPhone, iPad, and iPod touch accessories
    http://support.apple.com/kb/ts2634
    Update your software
    Install the latest version of iOS. You can see which version is on your iPhone by going to the About screen.
    If the device doesn't update successfully, the issue might be with your device and not the accessory. Learn how to check your iPhone, iPad, or iPod touch.
    Disconnect and inspect the accessory, then restart your device
    Disconnect the accessory and turn it off, if possible.
    Inspect the connection between the accessory and device and make sure that no debris or other damage is present.
    Restart your iOS device by turning it off, then back on. When the Home screen appears, reconnect the accessory.
    Try a different device
    Make sure the issue is with the accessory, if possible. Always use an identical or similar, compatible device with the accessory you're troubleshooting.
    If there's static coming from the left audio channel when you use headphones, try connecting the headphones to a similar device.
    If the device isn't syncing when connected to the dock, connect it directly to the computer using the Apple 30-pin to USB Cable or try another USB port.
    If you're using Lightning to 30-pin Adapter in a connection chain, try using the same adapter on a similar or identical device.
    Restore iPhone, iPad, or iPod touch
    Restore your iOS device. You should rarely need to use this step with an accessory issue. If the issue only affects a third-party accessory, contact the manufacturer before restoring the device.
    If this does not resolve the issue could you elaborate on where you are listening to this content from to help isolate the issue?
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How can i stream video and audio from macbook air to my tv?

    how can i stream video and audio from macbook air to my tv?

    Wirelessly: you need an AirPlay - enabled device such as an AppleTV.
    Wired: if your TV has an HDMI port, you need a Thunderbolt to HDMI adapter such as this one:
    Mini DisplayPort to HDMI® Adapter w/ Audio Support
    If your TV does not have an HDMI port you will need a converter that will convert HDMI input to whatever input your TV requires.

  • How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance

    How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance downloading it again, especially because (believe it or not) I added it to my phone because that's precisely where I wanted it!! Any help much appreciated

    FYI I had to put this link into firefox to reply - because **** back safari just wouldn't register my clicks to any of the links on the post... Despite reloadeing and even restarting my computer. Totally annoying and a massive pain in the ***.
    But in terms of my initial query; thanks for responding. But no, this is NOT the cause of the problem. I have auto sync and sync over wifi activated, but have also selected manually manage music and videos. Plus, all of my music and videos are on my macbook, absolutely all of it, so if it my phone was syncing with my macbook everything would still be on the phone. Life would be peachy if my phone jsut copied everything that was on my macbook, but unfortuantely it keeps deleting tracks for no apparent reason.
    Any thoughts greatly welcomed, because at the moment i can only conclude that my iphone is crap.

  • How can I watch video and pictures from my mac book to Apple TV?

    How can I stream pictures and video from my Mac to Apple TV?

    Use home sharing or airplay.
    http://support.apple.com/kb/HT5922?viewlocale=en_US&locale=en_US
    http://support.apple.com/kb/ht3819

  • How many times can I install Photoshop and Premiere Elements 13?

    How many times can I install Photoshop and Premiere Elements 13?

    mbuenger
    Are you referring to how many times can I install, uninstall, reinstall Photoshop Elements 13 or Premiere Elements 13 on the same computer?
    Or, how many of your computers can have a same purchased activated serial number at the same time for either of these products?
    If the former, I know of no limit.
    If the latter, the answer would be as John as mentioned.
    ATR

  • How can I transfer text and format from a Word Doc to a new Pages Doc?

    How can I transfer text and format from a Word Doc to a new Pages Doc?

    Select, and Copy in the Word doc and Paste in the Pages doc. It may not be perfect. Importing (Opening) the Word doc is probably better than using Copy/Paste for large amounts of content.
    Jerry

  • How best we can use the Rollback and RollbackAlways mechanism in Visual Studio Release Management Template

    Hello All,
    We need a clarification on Rollback and RollbackAlways in Release template.
    We checked a scenario for Rollback and RollbackAlways:
    In Release Template, we have the first activity as “Configure Application Pool” and then followed by a rollback action of “Create Application Pool”
    and “Create Web Site” then followed by "Code Deployment" via TFS build.
    We tested with 2 scenario’s:
    With App Pool and Web Site already existing: when triggered the build, configure
    app pool succeeded, then Rollback action was skipped (as previous action was successful), finally deploy the code executed (code deployed) and build got succeeded.
    Deleted App Pool and Web Site: when triggered the build, configure app pool failed (as no app pool existed), Rollback action executed (as previous action failed) – created app pool and web site then finally
    deploy the code executed (code deployed)
    But build failed (Error: Configure app pool action failed).
    Ideally the build should succeed as the roll back action got executed and code deployed successfully.
    Please correct us if our understanding is wrong.
    Also, Kindly let us know how best we can use the Rollback and RollbackAlways mechanism in Release Management
    Looking forward for your positive response.
    Thanks in advance.
    Regards,

    Hi Shashank,
    Rollback Always runs if any of the actions in the template failed. Rollback will run if action just above rollback fails or if any of the actions below the Rollback fails.
    Article here (http://www.incyclesoftware.com/2014/03/understanding-rollbacks-release-management/) clearly explains how Rollback and Rollback
    Always work.
    I think you come across this issue since you are using build to do the "code deployment" action. You should use the release template to do that. 
    As far as I know you cannot use Rollback to achieve condition check (App pool exist in your case) action.
    For this you can create your own Power Shell component (which checks if the app pool exist and is not create it) and add it as a tool in RM server (RM Server Inventory).
    Another option is you can follow the workaround in below thread "Answer" quoted below. That is execute Remove app pool regardless if it exist or not (which does not fail) and then create app pool.
    I was able to get it working by removing the app pool which does not fail if it doesn't exist. Removing then creating seems the long way around but it works.
    Flow:
    Remove Application Pool
    Create Application Pool
    https://social.msdn.microsoft.com/Forums/en-US/43bf21c8-e233-4e58-a5a8-2592b78bc466/vs-2013-release-management-create-application-pool-fails-if-it-already-exists?forum=tfsbuild
    Cheers!
    Chaminda

  • How can I get pictures and music from an ipod touch to an iphone

    how can I get music and pictures from an ipod touch to a iphone 4s, tried alot of things but not having any luck

    Use this to get the items in your iTunes library and then sync to the other device
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • How can I switch back and forth from Classic to Tiger

    How can I switch back and forth from OS9.2.2 to Tiger without restarting? I want Classic as my startup system.

    I think that the number of clicks to open a file is a rather shortsighted way to compare two operating systems.<<</div>
    Well excuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuse ME!
    I happen to think it's a pain to click twice on files when I'm used to clicking just once.
    But Tiger is a nice operating system. I enjoy that it has much more capabilities than the OS9. I mean, Tiger keeps up with the advancing internet. My beef is really against OS9. I can open OS9 in Tiger but not Tiger in OS9.

  • How can I transfer photos and videos from iPad to HTC one X using wi fi?

    How can I transfer photos and videos from iPad to HTC one X using wi fi?

    There are apps that will do this as well.
    http://www.wirelesstransferapp.com

  • I have an iMac 5,1 with an Intel Core 2 Duo. I'd like to be able to use iCloud, but need Lion which is too big. How much memory can I add? And will this upgrade allow me to install Lion?

    I have an iMac 5,1 with an Intel Core 2 Duo. I'd like to Lion, in order to use iCloud, but the specs indicate I don't have enough memory. How much memory can I add? And will this upgrade allow me to install Lion?

    I believe your model iMac can address 3 GB RAM; the minimum for Lion is 2 GB - however, that is an absolute minimum for very light use. You would be much happier with a minimum of 4 GB.
    http://www.everymac.com/systems/apple/imac/stats/imac-core-2-duo-2.16-20-inch-sp ecs.html
    (You can install 4 GB, but it will only be able to address about 3.1 - 3.2 GB)

  • How can I transfer files and settings from a PC to a mac

    How can I transfer data and settings from PC to mac via cable as the method via the network seems excessively slow. What cables do I need Ethernet USB?

    This Apple Article may help.

  • How can I get contacts and calendar from outlook on my desktop to my new ipad 4

    How can I get contacts and calendar from outlook on my desktop to my new ipad 4

    Move the cursor over the icon and click the X that appears.

  • My I pad 1 sometimes while watching working switches off and go back to home page ... Why ? Also I need to know how I can upload my photos and pictures from laptop to my I pad.  I tried thru I tunes but not work.

    My I pad 1 sometimes while watching working switches off and go back to home page ... Why ? Also I need to know how I can upload my photos and pictures from laptop to my I pad.  I tried thru I tunes but not work.

    Satmar wrote:
    My I pad 1 sometimes while watching working switches off and go back to home page ...
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Note:
    Also consider Deleting any Apps you have Purchased / Downloaded but you now never use...
    Satmar wrote:
    Also I need to know how I can upload my photos and pictures from laptop to my I pad.
    See Syncing photos to devices
    Here  >  http://support.apple.com/kb/HT4236

Maybe you are looking for

  • Web Services Not Working because wwv_flow_collections view is empty

    Hello, I followed this example to try and get a web service running in my Application: http://apex.oracle.com/i/doc/advnc_rest_web_eg_2.htm When I run the page and enter the zip code 43221 they recommend with a radius of 5, I get no results. When deb

  • How to open multiple files on one layer

    hi there, I have a fairly simple problem and I browsed through all the different FAQs to find it but nothing came up. In any case, my question is how do you select multiple files (in this case PNGs) and open them as individual layers on one file inst

  • AS3 swf loaded as AVM1Movie

    I have an as3 proj in flex. I have a custom class Screen which is complied into a swf (by flex) I'm loading this file via a Loader..., then passing data up to it on INIT. fine that works great for the first time, second time, then on the third time n

  • Iphoto has stopped letting me upload photos to FB how do I fix?

    Help iphoto will not let me share pictures on Facebook how can I fix?

  • Adobe Creative Suite 4 in Japan?

    Hi!! Actually living in Japan I'd like to buy the last "Adobe Creative Suite 4". When I go on the adobe.com website and select the product for buying it, it automaticly send me bck on the Japanese Store and replace the version 4.0 with the 3.3 versio