Dynamic Yield/Srap

Dear all,
I found this forum while searching for a solution of a problem we encounter in my company.
We're a production facility and I'm planning one of the production lines. In practice we struggle to properly load this production line. We're not using a scrap% right now because of the fact that the products we lose during production can be externally reworked and re-used. However, this takes several weeks.
I'm searching for a solution in PP where I can use a scrap % , so I 'overload' my production line to ensure better output for further processing, without this % causing an explosion and increase in purchasing. We cannot order more products with a LT with +/- 4 months, where we know that we can re-use the scrap in the near future (in +/- 4 weeks we can re-use the raw materials).
Is there  a way where we can put a scrap % in SAP for say 4 weeks and let MRP calculate with 0% scrap for the remaining weeks in MRP?
You would get a schedule like below:
Period     0     1     2     3     4     5     6     7     8     9     10     11     12
Demand          100     100     100     100     100     100     100     100     100     100     100     100
Production output          100     100     100     100     100     100     100     100     100     100     100     100
Scrap %          10%     10%     10%     10%     0%     0%     0%     0%     0%     0%     0%     0%
Raw Material Demand          110     110     110     110     100     100     100     100     100     100     100     100
Hope somebody can help me.

Is there a way where we can put a scrap % in SAP for say 4 weeks and let MRP calculate with 0% scrap for the remaining weeks in MRP
IF you maintain Scrap %, It will applicable for entire period
Better while entering PIR
Enter 10 % more in MD61( demand itself) in Case of MTS
Period 0 1 2 3 4 5 6 7 8 9 10 11 12
Demand 110 110 110 110 100 100 100 100 100 100 100 100
Production output 110 110 110 110 100 100 100 100 100 100 100 100
Raw Material Demand 110 110 110 110 100 100 100 100 100 100 100 100

Similar Messages

  • Dynamic SQL yielding a '911:0: ORA-00911: invalid character ORA-06512:

    Hi folks
    I'm getting the above error when I run the sql command using EXECUTE IMMEDIATE command with the following query. The query is attached as follows.
    UPDATE ACTIVE_ORDERS AC set AC.STATUS = 'CANCEL' WHERE AC.REQ_NUM IN (SELECT P.REQ_NUM FROM PROC_TIMES P WHERE AC.REQ_NUM = P.REQ_NUM AND AC.REQ_SUFFIX = P.REQ_SUFFIX AND P.NEW_TIME <= (TRUNC(sysdate-30)) AND (AC.STATUS='NEW' or AC.STATUS='IMPORTERROR') AND AC.ORDER_ORIGIN_NUM IN (1,2) AND AC.ORIGIN_RIC = 'RAM');
    any suggestions?
    thanks
    SS

    Hello,
    Two suggestions:
    - Make sure all quotes are escaped properly in your query string when passing to EXECUTE IMMEDIATE.
    - Don't include the semicolon at the end of the query.
    You could also post the exact string you are passing to EXECUTE IMMEDIATE so we can have a look at it...
    cheers,
    Anthony

  • Adobe Media Encoder CC Fails To Dynamically Link Embedded AE Comps Within PR.

    When launching a PR project in Media Encoder to kick off a render.  The dynamic link engine loads the PR sequence just fine but during the render it fails to read any clips that were "relaced with AE comp", instead inserting an "offline media" plate.  Launching the PR project and reviewing as well as rendering from within PR works fine.  Please note that this worked fine in Adobe Media Encoder CS6.
    *****Edit
    In doing some tests to consistently replicate the problem, it turns out that AE CC has to be open WITH the replaced clip comps loaded at the time PR OR Media Encoder is running with projects that contain the "replaced with AE comps" footage.  Repeating the test with AE CC closed at the time yields the "offline media" result.  This is definitely a bug I'd say.  AE should not have to be launched with the project files loaded up in order for any dynamically linked comps to work.
    ****Edit 
    Please note the entire product chain is CC.  Thank you.

    Update.....
    Problem solved.
    It turns out that any dynamically linked CC apps must be run by the same user on the same machine in order to work properly.  In this case, PR and AME were being run as a standard user on the workstation while AE was being run as administrator via the shortcut launch properties.  The latter being necessary to have certain plugins function properly in AE CC.  Modifying the AE shortcut to not run as administrator resolves dynamic linking issues.
    Although it can be argued that logically all Adobe apps should be run by the "same user" on the workstation, it would be nice for the dynamic link engine to be more "real world" about linking projects on the same workstation in the case where a particular resource needs to be launched as an administrator.  Security considerations in towe, this ain't top secret government or banking data risk management folks.  Lighten up.  Maybe a little warning box that pops up and says "such and such needs to be run as administrator....do you allow?".....after all this is EXACTLY what the OS does anyway when you launch as anyone other than the administrator from a shortcut.  Quite reasonable for you (Adobe) to simply cascade the behavior.

  • Demlo - A dynamic and extensible music library organizer (in pure Lua)

    Demlo organizes your music library automatically and dynamically. It runs a chain of user-defined scripts using variables such as tags and file properties. This way it yields virtually unlimited customization power to the user.
    Use case
    As an example, consider a music library that is a a perfect definition of chaos:
    No folder structure.
    Tags are not homogeneous, some entries are filled, other not, it varies from file to file.
    Some files have bad audio quality.
    Audio codecs are not always the same. Some file are CBR/VBR, lossless/lossy, ...
    mp3's ID3 tags are a nightmare.
    Covers are sometimes embedded in tags, others are of terrible quality.
    Features
    A few scripts are already provided and they give a good example of what you can do. You can choose to use them, to rewrite them, or to write a new script from scratch. You can preview changes, and once you are done you call the program over you music library, it will process everything in one single run!
    Scripts can be chained: this feature makes Demlo extremely flexible and powerful!
    Move all files according to a unique, yet dynamic folder hierarchy. For
    instance, setting
    output.filename = table.concat {library, '/', o.artist, '/',
                     not empty (o.album) and (empty (o.date) and o.album .. '/' or o.date .. ' - ' .. o.album .. '/') or '',
                     empty (track_padded) and '' or track_padded .. ' - ',
                     o.title}
    will move "john doe - 1. intro.ogg" to
    "/home/$USER/music/John Doe/2013 - Great Album/01 - Intro.ogg" if there is an album and a date,
    "/home/$USER/music/John Doe/Great Album/01 - Intro.ogg" if there is an album and no date,
    "/home/$USER/music/John Doe/01 - Intro.ogg" if there is no album.
    Case checking: a powerful script that will turn everything to title case. It supports special cases such as Roman numerals, McDonald, etc. It also supports a list of exceptions (e.g. AC-DC, DJ, feat., etc.).
    Encoding: you can conditionally re-encode you files, so you can choose to only re-encode files with some particular encoding settings. You can set the desired bitrate, etc.
    Covers: automatically remove embedded covers, remove duplicates, remove files beyond/below a quality threshold, etc.
    Different kinds of music: classical, OST, and band songs have usually different kinds of tags and folder structures. You can manage different audio libraries easily by setting the corresponding "library" variables.
    Edit tags of a file set with your favorite text editor.
    Support for cue sheets. (Both external and embedded.)
    Demlo can be interfaced with any other program, both ways. (X calls Demlo or Demlo calls X.)
    MusicBrainz support for online tagging and cover fetching.
    Technical characteristics
    This program is completely written in Lua. Its only major dependency is FFmpeg. A few Lua modules are required, which should not eat more than a few KiB on your drive. This leads to a lightweight codebase for a portable and extensible program.
    Dependencies
    ffmpeg
    lua (>= 5.1)
    lua-dkjson
    lua-filesystem
    lua-llthreads2
    lua-penlight
    lua-socket
    slnunicode
    chromaprint (optional)
    History
    This program is based on Musish by the same author.
    The original program was written in POSIX shell but suffured from many limitations as well as performance issues. It was rewritten in Lua to circumvent all those issues while applying minor changes to the CLI options and to the variable names. The syntax of the script changed to Lua as well. Here follows a list of major changes:
    Traversing folders recursively is no longer a security issue.
    Overall performance got boosted by a factor of approx. 2.
    Scripts and configuration files are sandboxed, which means they can no longer contain harmful code. However it is no longer possible to chain scripts.
    All tags are processed dynamically, no more hard-coded tags.
    Links
    Official web page
    Arch Wiki
    AUR package
    Issue tracker: Please file bug reports there thanks!
    Last edited by Ambrevar (2015-02-20 09:22:22)

     I hoped the structure I presented was clear enough. No, all/majority of tags would be a little too much, but genre, different release types, file types and some other basic distinctions, yes and tagsfs will probably help with that. There are special folders like [Compilation], [High Voltage SID Collection] and probably others in the future, maybe with help of tagsfs. Compilations and Artists are prepended by the leading letter of 'sorted artists/albums' level. Then albums/artists are sorted/presented in the manner visible in the Picard script:
    $if($eq(%compilation%,1),
    %COMPILATION%///%FIRSTLETTER%///$if2(%ALBUM%,%NONALBUMTRACKS%,[Other]) - $if(%DATE%,[%DATE%],),
    %FIRSTLETTER%///$trim($if2(%ALBUMARTIST%,%ARTIST%),.)///$if(%DATE%,%DATE% - ,)$if2(%ALBUM%,%NONALBUMTRACKS%,[Other]) )
    $if(%RELEASETYPE%,[%RELEASETYPE%],)%BARCODE%$if(%INCOMPLETE%,[%INCOMPLETE%],)[%EXT%]///
    $if(%DISCNUMBER%,%DISCNUMBER%-,)%TRACKNUMBER%. %ARTIST% - %TITLE%
     Picard has preview examples, so copying the whole script into file naming script under options should make this definitely clear.
    Ambrevar wrote:Thinking about it, a similar feature is provided by most library managers where you can choose filters and tree structure and so on. It remains virtual though, it does not touch the filesystem. Is it really necessary to you to have that sort of view directly on your filesystem? The problem of the filesystem view seems very complex to me.
    Not all devices provide that capability. It is more pleasant to work with that approach than previous structures I used, remember that I can restructure the whole library at any time and probably copy the local one elsewhere using the new structure, but I have not looked into that yet.
     We probably have very different experiences, I see this as very comfortable and convenient. Before that I had been using folders for different file types in the main directory, but it ended up with so many entries for FLAC and MP3, that parsing that directories in a player or any maintenance using a file browser/terminal was too troublesome/slow. So I reduced the number of files, by using the alphabet and additional characters as sorting mechanism. And since that was one step away from separating compilations from albums/single releases, I did that also. Now I can access the whole library very quickly, even when one or two additional characters need to be typed.
    Ambrevar wrote:Furthermore, would you consider this to be an automated task or a manual one? Using your example, how can a program know that Lauge & Baba Gnohm is both Lauge and Baba Gnohm if no tags says so?
     Both, I want as always full control. MusicBrainz [database] relations.
    Ambrevar wrote:Hard links do not work for folders.
    Symlinks cause problems with most file browsers that do not follow them during copying.
     I do not recall writing they should link folders, the directory structure would have to be [re]build and then files [hard/sym]linked, which might pose a maintenance issue, although deleting links and empty directories not really, but "leftovers" like covers could block cleaning. *The only file browser* I would recommend is Proto from a very friendly Polish programmer named Mieszko Lassota, but it is, or at least was last time I checked, Windows only and slowly further developed, although still kills every mc, mucommander and ranger on sight, that is how I remember it. SpaceFM is bearable, but I still only use rsync to copy files and see no point using anything else.
    Ambrevar wrote:Can you elaborate on this? What are the limitations of Picard beyond symlinking? It could be interesting to know what feature you would like.
     The recursive/linking aspect it the main point here. I hope this is not too big of a disappointment. Having too long names has also been a problem in few cases, classical music if I recall correctly, but those are limitations of the file system, however even that could be overcome with Picard, but the code would not be as easily readable as it is now. The question would be what should be abbreviated/priorities, what to do when after abbreviation the directory/file names are still too long and so on. I had to do it by hand these few times. Picard does not handle covers/images well in my experience, but I used something else for that, puddletag I think. I would have to continue to organize the library to remember.
     Furthermore, not all media players/organizers do have the capability to get exactly this structure with formatting, leading letters and distinction between compilations and albums being two examples. Browsing this robust file structure with ncmpcpp is very efficient, I almost never use the library view. As long as a media player has the browsing capability, I have the same view/behavior. And other hardware also works without issues. Yes, it basically comes down to having the file system do, what media players should, however with a few exceptions I had only positive results for more than almost two years now. Do you now see benefits of having that file structure?
     Again I will take a look at your tool, when I find some time and what progandy suggested also of course. How do you save your music on the file system?
    Edit: Style. Clarification.
    Last edited by emeres (2014-09-12 13:02:34)

  • Musish - a dynamic and extensible music library organizer (in CLI!)

    Note: this program is deprecated and has been superseeded by Demlo.
    Musish organizes your music library automatically and dynamically. It runs a user-defined script using variable such as tags and file properties. This way it yields virtually unlimited customization power to the user.
    Example: your music library is a a perfect definition of "chaos".
    No folder structure.
    Tags are not homogeneous, some entries are filled, other not, it varies from file to file.
    Some files have bad audio quality.
    Audio codecs are not always the same. Some file are CBR/VBR, lossless/lossy, ...
    mp3's ID3 tags is a nightmare.
    Covers are sometimes embedded in tags, you have a lot of bad quality covers.
    A few scripts are already provided and they give a good example of what you can do. You can choose to use them, to rewrite them, or to write a new script from scratch. You can preview the changes, and once you are done you call the program over you music library, it will process everything in one single run!
    Move all files according to a unique, yet dynamic folder hierarchy. For instance, setting
      filename="$library/$artist/${album:+${date:+$date - }$album/}${track:+$track - }$title.$ext"
    will move the "john doe - 1. intro.mp3" to "/home/$USER/musics/John Doe/2013 - Great Album/01 - Intro.ogg".
    Case checking: a powerful gawk script that will turn everything to title case. It supports special cases such as Roman numerals, McDonald, etc. It also supports a list of exceptions (e.g. AC-DC).
    Encoding: you can conditionally re-encode you files. For instance, if the input is lossless, you can encode to FLAC, if it is lossy, you can encode to OGG. You can choose to only re-encode files with some particular encoding settings. You can set the desired bitrate, etc.
    Covers: automatically remove embedded covers, remove duplicates, remove files beyond/below a quality threshold, etc.
    Different kinds of music: classic, OST, and band musics have usually different kings of tags and folder structure. You can manage different audio libraries easily by setting the corresponding "library" variables.
    This program is completely written in POSIX Shell + gawk. This leads to a lightweight codebase (less than 1000 lines), and near universal portability.
    Dependencies:
    ffmpeg
    POSIX awk
    POSIX shell
    Optional:
    cuetools
    jshon
    AUR package: git version
    Official web page: https://bitbucket.org/ambrevar/musish
    Please file bug reports on the issue tracker, not on this forum, thanks!
    Warning: this program has been tested for a while, but some bugs might still be floating around. Make sure to backup your data before proceeding.
    Last edited by Ambrevar (2014-09-11 09:32:49)

    FFmpeg is always run, at least for the metadata editing part (i.e. tags). It does not necessarily means that the audio track will be changed.
    If no script is provided, the file is not reencoded. Actually it is not modified at all. This is the 'raw default' behaviour with -s "".
    However the default configuration file sets a "default" script that is run by default. This script does always transcode. This is a debatable choice: maybe I should remove the default script and let the user choose his/her own default script. What do you think?
    Regarding the lossy trancoding, the rules are as follows: if the output format is the same as the input and bitrate is still the same, we do not transcode. But for some reasons you may want to lower the bitrate (e.g. smaller file size), in which case we do transcode.
    Another major reason for lossy transcoding: switching from mp3 to a decent format (ogg, aac...). An mp3 music library is a nightmare to maintain (different ID3 version, CBR/VBR, etc.).
    The man page definitely needs some clarifications. Feel free to comment!
    Last edited by Ambrevar (2013-12-09 14:49:52)

  • Sending a dynamic query to DB adapter

    Hi,
    I am using jdeveloper 10.1.3.4. As per the requirements, I am supposed to have only one DB adapter which will handle all the operations on the database tables. The SQL is created at the runtime depending on the input. Is there any option for DB adapter where I can pass this dynamic query?
    Thanks
    Taru

    Taru,
    I assume you're talking about the ESB/SOA Suite DB adapter - in which case, the SOA Suite forum would probably yield you better results.
    John

  • Passing dynamic query to DB adapter

    Hi,
    I am using jdeveloper 10.1.3.4 for configuring a BPEL flow. As per the requirements, I am supposed to have only one DB adapter which will handle all the operations on the database tables. The SQL is created at the runtime depending on the input. Is there any option for DB adapter where I can pass this dynamic query? Is there another way to implement this, if not this way?
    Thanks
    Taru

    Taru,
    I assume you're talking about the ESB/SOA Suite DB adapter - in which case, the SOA Suite forum would probably yield you better results.
    John

  • Workaround for opening a strongly typed cursor using native dynamic SQL

    Hi All,
    In reading the PL/SQL documentation for Oracle 9i, I noted that the OPEN-FOR
    statement with a dynamic SQL string only allows the use of weakly typed cursors.
    I have verified this limitation with my own experimentation as follows:
    DECLARE
    type rec_type is record(
    str     varchar2(40),
    num     number(22)
    type cur_type is ref cursor return rec_type;
    my_cur     cur_type;
    que     varchar2(100);
    tab     varchar2(40);
    BEGIN
    tab := 'dynamic_table_name';
    que := 'select key_name, key_value from ' || tab || ' where key_name like ''01%''';
    open my_cur for que;
    loop
    if my_cur%found then
    dbms_output.put_line('source_name: ' || my_cur.str || ', page_sn: ' || my_cur.num);
    exit;
    end if;
    end loop;
    close my_cur;
    END;
    Running the above trivial example in an anonymous sql block yields the following
    errors as expected:
    ORA-06550: line 10, column 8:
    PLS-00455: cursor 'MY_CUR' cannot be used in dynamic SQL OPEN statement
    ORA-06550: line 10, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 13, column 54:
    PLS-00487: Invalid reference to variable 'MY_CUR'
    ORA-06550: line 13, column 7:
    PL/SQL: Statement ignored
    Is there a workaround to the situation? Since I do not know the table name at run
    time, I must use Native Dynamic SQL. I have a long and complex record type
    that I wish to return through JDBC using the REFCURSOR Oracle type in order to
    avoid having to register an inordinate number of OUT parameters. Moreover, I
    would like to return potentially one or more results in a ResultSet. Using the
    standard method of registering native SQL types for the IN and OUT bindings
    can only return one result. Hence the reason I would like to return a strong
    cursor type. Also, the type of query I am doing is complex, and needs to be
    executed in a PL/SQL procedure for performance reasons. Therefore simply
    executing a SELECT query dynamically built up on the the JDBC client won't
    do the trick.
    If anybody has experience with a similar problem and would like to volunteer
    information on their workaround, I would really appreciate it.
    Best Regards,
    J. Metcalf

    We can use strongly-typed REF CURSORs in DNS, but the typing derives from a table e.g.
    TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
    so the problem is your use of "return rec_type" bit.
    Forgive my bluntness but I think you have misunderstood strong and weak typing. You actually want to be using weakly-typed cursors. I mean this:
    Moreover, I would like to return potentially one or more results in a ResultSet. suggests that the structure of your resultset may vary, which is precisely what a weakly-typed ref cursor allows us to do. Then we can use the JDBC metadata methods to interrogate the structure of the resultset, innit.
    so try this:
    DECLARE
    type cur_type is ref cursor;
    my_cur cur_type;
    que varchar2(100);
    tab varchar2(40);
    BEGIN
    tab := 'dynamic_table_name';
    que := 'select key_name, key_value from ' || tab || ' where key_name like ''01%''';
    open my_cur for que;
    loop
    if my_cur%found then
    dbms_output.put_line('source_name: ' || my_cur.str || ', page_sn: ' || my_cur.num);
    exit;
    end if;
    end loop;
    close my_cur;
    END;
    ras malai, APC
    Cheers, APC

  • How to create dynamic links in one page with div panels

    HI
    I am using Dreamweaver CS3 with developer toolbox.
    I have a PHP page where I have two separated tabbed div
    panels.
    I want to show dynamic summary of data from database in one
    panel.
    In the other panel I have a table with dynamic text.
    I want to click on a link in the first panel with the summary
    data and see the whole record in the other panel table.
    How do I tell the dynamic link to send the wuery and show the
    data in the detailed panel without having to reload the whole page.
    I hope I am clear enough....
    Idan Agmon

    I asked something similar to this last week and was told by
    others much more experienced that it couldn't be done. Hopefully
    your quest will yield something.

  • Issue while Passing Values to Variable Dynamically in ODI

    Hi All,
    We are trying to pass values to ODI variable dynamically. The value passed is File path. We are successfully able to achieve this when we are passing the relative path i.e. ‘..\demo\xml’ but while we are trying to pass the absolute path i.e. ‘D:\ODI\oracledi\demo\xml\’ we are getting the below given error in the Load step of the interface..
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
    at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
    at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
    at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.g.y(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    Googling for the same has yielded the following results :-
    •     if the file name has : in it then ODI will consider it as a binding variable rather path. .. So try relative path. – Relative Path is working but we need to achieve this by giving absolute path.
    •     make sure you are using LKM File to SQL rather SQL to SQL. – We have tried by 3 different LKMS—File to SQL, SQL to SQL and SQL to Oracle but the error is same in all.
    Any pointers regarding the same will be very helpful.
    Thanks In Advance.
    Regards,
    Abhishek Sharma

    Hi Cezar,
    Thanks for the response. The issue here is we are picking this path from a table. We have FILE_PATH column in one database table and in ODI variable we have given SQL query as 'Select FILE_PATH from tablename'. Then we are taking the refresh value of this variable and passing it on to our interface.
    If the Path in table is given as relative path it works , else for absolute path it doesnt work. How can we achieve the solution recommended by you in this case. The FILE_PATH value in table may change, so we need to pick the file from whatever path it fetches from the select statement. Hence we cannot hard code it here.
    Please suggest.
    Thanks Again.
    Regards,
    Abhishek Sharma

  • Dynamic insertion of elements based on dynamic condition

    I need to achieve the following:
    Input:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
    <Customer>     
    Output:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
         <Addresses>
              <Address>add1</Address>
              <Address>add1</Address>
              <Address>add1</Address>
         </Addresses>
    <Customer>
    Based on the number of Addresses that exist for the customer, multiple <Address> elements should be added.
    I can't determine number of Addresses at the beginning. It is deterrmined dynamically based on certain condition.
    So each time when the condition is met, I need to get the count of <Address> elements that exist and insert the new one last.
    My logic:
         Switch (case)     ==> Add <Address> only if condition is met
              count ==> count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses')) ==> 0 first time
              <Addresses>
                   <Address>add1</Address> ===> Now I need to insert this.
              </Addresses>
    I have the following in my bpel:
    <assign name="AssignInsertAfterExisting">
    <copy>
    <from expression="count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses'))"/>
    <to variable="NumberOfAds"/>
    </copy>
    <copy>
    <from expression="'123 street'"/>
    <to variable="nextAddress"/>
    </copy>
    <bpelx:insertAfter>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload"
    query="/ns1:Customer/ns1:Addresses/ns1:Address squareBrakets NumberOfAds squareBrakets"/>
    </bpelx:insertAfter>
    </assign>
    But with the above I am receiving the folllowing error:
         Assign Operation Misuse.
         The to-spec does not yield any data; insertAfter operation cannot be performed.
    Please check the BPEL source at line number ..
    I can I insert dynamically insert elements into array. I have seen the example provided in samples, but my problem is little different than that.
    Edited by: user10367892 on Aug 4, 2009 3:16 AM

    append is appending value of variable to existing element, instead of creating a new element in the array:
    For Eg:
    Input:
    <bpelx:append>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload" query="/ns1:Customer/ns1:Addresses/ns1:Address"/>
    </bpelx:append>
    Output if nextAddress = Address2 and if <Address>Address1</Address> already exists
    <Customer>
         <Addresses>
              <Address>Address1Address2</Address>
         </Addresses>
    </Customer>

  • Dynamic proxy, several instances, same name, diff ids?

    I'm using a dynamic proxy with a simple invocation handler. Using the proxy for several instances of the target object should yield multiple instances of the proxy. In the debugger, each proxy instance is named $proxy0 with different ids. Can someone please elaborate on this? Specifically, the Proxy instance is created using the target object. Thus, how can each proxy instance have the same name, when different target objects (of the same type though) are used to construct the Proxy object? Is the Proxy instance the same regardless of the target object?
    I : interface
    T: target class
    pseudo thing:
    <code>
    T t1, t2, t3 ... new ...
    I i1 = (I) Proxy.newInst...(..., ..., t1)
    I i2 = (I) Proxy.newInst...(..., ..., t2)
    I i3 = (I) Proxy.newInst...(..., ..., t3)
    Each i has name $proxy0 with different id. For instance: i1-> $proxy0 id=68, i2 ->$proxy0 id= 32, etc.
    </code>
    Insight is appreciated!

    is it the same proxy that is instantiated three times (obviously)?It is the same proxy class that is instantiated three times. Obviously. Because that is the only meaning for 'instantiate' in Java.
    But how can that be when the target object for each Proxy instance is different?Because they are three different instances of the same class, each with a different target object.
    What's the problem here?

  • Dynamic hyperlink runs executable with parameter

    Hi
    I have created a BI template for the Final Payment Register report in EBS Payables. We have a requirement to provide a link in the report next to each invoice so that users can view a scan of the invoice stored in a LONG RAW column from a third-party application.
    I can view source and hack the HTM output with the following:
    <script type="text/vbscript" language="vbscript">
    sub inv_link
    Set wshShell = CreateObject ("WSCript.shell")
    wshshell.run "\\amcmfs01\applications$\PRODOCI\StartViewFacturen.exe 70065 1A"
    set wshshell = nothing
    end sub
    </script>
    <*a href="javascript:void(0)" onclick="inv_link">View Scan<*/a>
    (Asterisks added so that HTML is visible.) 70065 is the ID of the scan. Is there a way to dynamically do this or something similar in the BI template? Thanks in advance.
    Regards
    Paul

    The control is in the exe, but if you only have your plugin vi without the control, then the vi is not executable.
    --- I don't understand what you're saying.  The control does exist in the EXE, it's used in lots of other places in the EXE.  So I was expecting the plugin to be able to find it. 
    Every vi, you want to load dynamically, has to be executable independently from the exe which calls them.
    --- That's not exactly true, specifically the "independently" part. 
    More testing with lots of these plugins has yielded the following rules for my case:
    The plugin itself does NOT have to be in the ALWAYS INCLUDE list.  That's obvious, or it wouldn't truly be a dynamic VI.
    If the plugin uses a typedef control, then that control must be in the ALWAYS INCLUDE list.  It doesn't matter if it's used in the main already, even 800+ times.  It simply has to be in the list.
    Any subVIs that the plugin calls have to either A) be already used in the main, so that they're in the EXE, or B) in  the ALWAYS INCLUDE list.
    My confusion comes from the difference between 2 and 3.  Controls are fundamentally different from VIs in this treatment, and I didn't (don't) understand why. 
    I said that your "independently" comment was not true because of #3.  These plugins are capable of finding subVIs in the parent EXE.  They're dependent on the EXE, but they can still work if that dependency is resolvable.  
    For some reason, they're not capable of finding typedef controls in the parent. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Dynamic Range Increase

    Hi,
    I have been reading how by AutoBracketing you can get a dynamic range increase using Photoshop CS. It this possible with Lightroom 2?

    I like LR/enfuse by far the best as it doesn't give the super ugly fake looking results, but the Photoshop route works too. Another one that many people seem to like is called Photomatix Pro. They provide a Lightroom export plugin. Both the Photoshop and the Photomatix contrast reduction technique tend to yield really ugly results if you don't tune them from their defaults. Strangely enough this seems to be in vogue currently. You can however tune them to give OK results.

  • Is dynamic date now() possible in sitemap .xml

    Hello,
    Can yea have a dynamic date in a sitemap, something like
    <%= now() %> in
    asp.
    if so what would I have to do to my xml page to be able to do
    it.
    thanks very much
    k

    On 06 Jan 2009 in macromedia.dreamweaver, Twocans wrote:
    > Can yea have a dynamic date in a sitemap, something like
    <%= now()
    > %> in asp.
    >
    > if so what would I have to do to my xml page to be able
    to do it.
    http://www.google.com/search?q=xslt+date
    yields:
    http://www.exslt.org/date/functions/date-time/date.date-time.html
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

Maybe you are looking for

  • Question about capturing ProRes HQ from D5

    I routinely capture 10bit uncompressed video from HDSR or D5 to FCP thru a Kona 3. Yesterday, I captured from the D5 (1920x1080 23.976psf) directly to ProRes HQ using the AJA Kona 1020x1080 23.98sf capture preset. The captured ProRes HQ format came i

  • Export in vcf-format

    I have bought a smartphone and want to export my addresses, which has to be made in vcf format. How can I do that?

  • Acrobat Pro v7

    This may be a simple fix. I 've invested 8+hours in it. When I edit a document such as using the Arrow tool or Typewriter there is a number posted w/ each edit. It overlays my comment put in with the typewriter tool. How do I get rid of that number?

  • Need Oracle EBS 11.5.10 download??

    Hi All, I am trying to install Oracle EBS 11.5.10 on my laptop. I don't want to go with R12. I went to http://edelivery.oracle.com but didn't see this version but didn't find any downloads. where can I get the downloads for the above version?? Thanks

  • Why does a gray screen display whenever I try to open a pdf (or any file) using the updated version of adobe

    Why does a gray screen display whenever I try to open a pdf (or any file) using the updated version of adobe