Mapping and the context issue

Hi All
I m facing a problem for mapping ATMAS IDOC to a flat file:
As you know, each line from E1BPE1MATHEAD (Retail Data Transfer: Header Segment with Control Info) there is many in E1BPE1MARMRT (Retail Data Transfer: Units of Measure). The business logic for mapping requires creating on recordSet in the flat file but I need to do same math using all corresponding lines from E1BPE1MARMRT recrdSet.
Ex:
E1BPE1MATHEAD
MATERIAL
1223456
E1BPE1MARMRT
MATERIAL      NUMERATOR     UNIT
1223456          23          PC
1223456          54          EA
1223456          67          PAL
BL for the out put file:
MATERIAL               Value
1223456                    235467
Thanks,
P.C

Hi Point Cube,
UDF ( User defined function ) is graphical mapping ! ( ok, advanced graphical mapping )
I'm no java guru but I did find it relatively easy to use it . I guess yours should look something like :
public void ResultType(String[] a,ResultList result,Container container)
  //write your code here
  int j = 0;
  int total = 1 ;
  for( int i=0;i<a.length;i++){
   total = total*a<i>
  result.addValue(total);
You might need some additional conversion to/from string here and there.
rgds
Dirk
Message was edited by: Dirk Deberlanger
Message was edited by: Dirk Deberlanger : Some code doesn't seem to copy/past right : total = total*a<i>

Similar Messages

  • TS4611 I have just received my second MacBook Air 11" the Wifi connection keeps dropping. Also after 3 meters away it keeps searching for network! It is the second try and the same issue. Will Apple ever come up with a solution?

    I have just received my second MacBook Air 11" the Wifi connection keeps dropping. Also, after 3 meters away from the rooter it keeps searching for network! It is the second try and the same issues. Will Apple ever come up with a solution? There is a program pack for the connection issue but I cannot believe that this computer wifi keeps connected only while nearby the rooter!

    Applied this update?
    http://support.apple.com/kb/TS4611?viewlocale=en_US&locale=en_US
    If the update is installed aready, you may have to wait until OS X 10.8.5
    update if and when it is relased.
    Best.

  • External Context Mapping and "The Mapping to Node...Has Not Been Completed"

    Hi there,
    I've got 2 components: A, B where A consumes the data provided by B.
    I'm calling the component B which includes a view provided by A. This view (provided by A) needs data inputted by the user in a view in B.
    The context of B contains a node called MULTIVALUES flagged as Interface + Input Element Ext.
    The component A uses the component B, in the component usage interface controller of the component A I've referenced the component controller of A. I have then created a node in A's component controller and done the mapping from the component usage interface controller of A to A's component controller.
    The manually created component controller node in A is NOT an interface.
    Now when I invoke B I'm getting an error:
    The Mapping to Node COMPONENTCONTROLLER.1.MULTIVALUES Has Not Been Completed.
    What's still missing?
    Thank you!

    it is indeed much more complex and you need lot of understanding about the component instances and their life time.
    What i do normally for such complex cyclic dependency , i try to split the common part which is needed in bot component_a and component_b and create a new super component_s.
    Component_s is used in both components. You can even go further that you create view component which has nothing but the viewContainer UI elements to embed the views from component_a and Component_b.
    The view component has to create all the used components (comp_s,comp_a,comp_b) and after creating call the interface method in comp_a and comp_b to set the component usage of comp_s (use the if_wd_comp_usage=>entering-referencemode).
    In this way the comp_a,comp_b share the same instance of comp_s.
    What i am saying is to look for a solution in application architecture and not with in the exiting components coding.

  • How do you extract data from ArrayList of Maps and the classical Iterator?

    Hello guys.
    I ran into this great doozie when I was coding this project I am working on. I have created a randomized question pool for a test so that no two tests with the same ID are alike. I grab a resultset from the DB and push the values through a randomizer. After that, then I stick a Map of the entire object into an ArrayList. Each object is then one complete question. So I have X objects (questions) in the ArrayList then (this is determined by a value in the DB in the test table).
    I have the following code setup:
    Map m = (Map)i.next();
              Iterator keys = m.keySet().iterator();
              while (keys.hasNext())
                   key = keys.next();
                   value = (String)m.get(key);
    The key - data pair always comes out in the same order. What I am trying to do is populate a test (form values) for this. Is there a way that I can do this in JSP? The key map is 100% new to me.
    I want to put the test into a table layout. the typical HTML boiler plate stuff is a cinch, but how would I get the information into a textfield? I can print out the key value pairs, but I guess I get lost in the logic when trying to get these to print in a specific order. Any help you can provide would be highly appreciated.
    Kind Regards,
    Josh

    You can use the JSTL c:forEach tag for that.

  • How to map when the Context node has more than one element

    Dear SDN Community,
      I am develping a WebDynpro java application with Adobe forms. My goal is to present a user a screen with 10 records of customer details and submit. I have created a context element for the customer(Cust#, address details etc) and mentioned the cardinality as 1..n. Now How do I bind these 10 records in my data view to first element, second element... 10th element of the context. Once the user submits, I need to write the 10 record values to Z table. Can you please advice me here.
    Thanks!
    Surya.

    solved this problem by going through the Interactive forms tutorial.

  • Chromium and the clipboard issue

    I don't know how many of you guys are using pwsafe as password manager. It is a CLI application that stores usernames and passwords which are protected by a master password.
    Basically the command pwsafe -up puts first username and then password in the X clipboard.
    This works very well with firefox. If I go, for instance, on gmail and I use pwsafe -up the first middleclick on the username field pastes my gmail username and the second middleclick pastes the password.
    It doesn't work with chromium though. When I try I only get the second paste. The first clipboard content gets skipped. So basically instead of the username the first middleclick pastes the password. If I try only with username (pwsafe -u) and I paste in the username field it doesn't paste anything. So for some obscure reason chromium pastes only the second content in the clipboard and not the first.
    Any suggestion on how could I solve this problem?
    Last edited by ArchArael (2010-03-04 20:54:34)

    Searching the Chromium issues list for clipboard gets a lot of results:
    http://code.google.com/p/chromium/issues/list
    You can just post the bug there and if its a duplicate, the devs will merge it.

  • Logic Mics, Aggregate Devices and The Input Issue

    There is a lot of discussion about Logic's inability to accept simple microphone inputs, and I ran into this for two frustrating DAYS of trying all the things in the Logic Express 8 Docs to fix it—to no avail.
    But now it is solved, so I'm trying to create a DEFINITIVE list of steps and principles here so others may quickly blast past this issue.
    The equipment I have seems to be emblematic to the problem. The Blue Snowball is one of those USB mics that simply doesn't automatically show up in Logic's Preferences > Devices > Core Audio >Device list. The fix for this is never mentioned in the Logic manual or Getting Started docs that I can find. There is a passing reference on page 100 that is virtually zero help, and does not bother to mention how this Prime Gotcha can bring you to your knees.
    Principle #1: Logic uses the Preferences > Devices > Core Audio >Device (list) process to identify which microphone you can record with. The list has to have in it an entry that makes sense for both the incoming audio and the playback path that Logic uses to feed earphones or an external monitor.
    Normal items on that list look like this:
    Built-in Output/Line Input
    Built-in Output/Digital Input
    Built-in Line Output/Input
    Built-in Line Output/Digital Input
    Built-in Digital Output/Line Input
    Built-in Digital Output/Input
    The Built-in Output is the computer’s inner speaker or headphones. The Built-in Line Output is the computers stereo jack for feeding to an amplifier. The Built-in Digital Output is the fiber optic feed that can also feed an amp with up to six parallel audio channels (okay, 5.1 channels).
    Nothing on that list will show a fully functional USB microphone that is being viewed on the computer’s System Prefs > Sound > Input page, even though the metering dots there show that the computer sees a live, active microphone.
    Selecting the Mic in the Sound prefs page does nothing to pass it on to the Logic > Preferences > Devices > Core Audio >Device list of selectable items. This is frustrating, since GarageBand sees the live mic without any problem, but GB is a simpler program that has fewer options while Logic has many other potentials, so a one-size-fits-all solution may not be its best default setting.
    To get the mic into Logic, you have to go into the Audio MIDI Setup utility program where a peculiar option appears that is called “Aggregate Device”.
    This keyword is not found in the Mac docs, and understanding it seems to be a big secret. Even the Audio MIDI Setup help page will show you how to find it, but not how it works or how to use it for Logic. Ahem.
    You open Audio MIDI Setup and under its header bar Audio is only one item, sure enough, Open Aggregate Device Editor. That opens a window that has two sections, an upper window with Aggregate Devices / In / Out across its top, and a lower window that shows all the options that the computer is aware of. The lower window is called “Structure:” and columns show Clock / Use / Audio Device / In / Out / Resample.
    A default item “Aggregate Device” shows in the top panel, and you can add others and double click on one to change its name. You can make many variations here.
    By default these will be present:
    Built-in Line Input
    Built-in Digital Input
    Built-in Output
    Built-in Line Output
    Built in Digital Output
    At the bottom of this list any other audio input devices that are plugged into the computer should show up. If they can be seen in the System Prefs > Sound > Input page, they’ll be here, too.
    When I plug my Blue Snowball USB mic into the computer, it shows up here as Blue Snowball.
    You create an Aggregate Device by clicking on your sound source, in my case, the Blue Snowball, then adding one or more other options.
    When you click the Use check box for any entry, it pops to the top of the list.
    Principle #2: An Aggregate Device is used by Logic to “see” both an audio input and an audio output path at the same time. The Device you’re creating at this point must include an input Audio Device AND at least one Output item to be fully functional for Logic. A Help page in Audio MIDI Devices called “Combining multiple audio devices” explains this in bare bones, but you can’t see that help page unless the Audio MIDI Devices utility is open.
    In my case, I’ve checked the Blue Snowball and Built-In Line Output, so I can use that combo in Logic to define where the mic is coming from and where the Logic audio output should go to my line-input amp and speakers.
    In the Audio MIDI Setup utility, simply selecting the Blue Snowball as the “Default Input:” device and/or the “Properties For:” options shows that the Audio Output area of the page has this cryptic message: “Output is not supported.”
    At this point, you’re almost ready to go, and you can close the Audio MIDI Setup utility. But there is at least one more “gotcha” to conquer.
    Principle #3: Logic ONLY looks for its list of usable Core Audio Devices when it starts up. If you have it open right now, all the choices made for Aggregate Device will not show up as selectable. Save any work in Logic, shut it down, then boot it up again.
    Now you can use Logic's Preferences > Devices > Core Audio >Device list to see your Aggregate Device. I’ve named mine “Snowy Line Out” to trigger my recognition of what it contains. Another one is called “Snowball + Line + Digital” and it has both line and digital outputs aggregated to the Snowball mic input.
    You can make one in the Aggregate Device Editor that combines a microphone plus earphones (Built-in Output) plus Line and/or Digital Outs, too. You'll have to switch among them in Logic as you work, but each will carry the live mic direct to recording.
    I hope this gets you through the frustration of not knowing what to do when confronted with the lack of clear docs and complete steps to get a USB mic or other seemingly opaque input issue. Feel free to add to this so others in my former state of bewilderment can gain understandings.
    If Steve Jobs were to encounter the level of opacity, ambiguousness and frustration that setting up a simple USB microphone can create in Logic, you can bet that the several programs and their intimate interdependency would be either automated or fully explained in the documentations that followed his fiery analysis of the issue.

    I don't know of another way to get the Blue Snowball USB mic to show up in Logic. If you can do it without having to go through the Aggregate Device route, feel free to post here how to get that to happen.
    I didn't have a different mic available when I started trying to do what seemed to be the simplest of things -- record and play back an audio track -- and nothing else seemed to work.
    There are a lot of Aggregate Device threads around here, many associated with Blue Snowball, Blue Snowflake and other things, but none of them laid out the principles of how Aggregate Device Setup needs to work or what to do to force it into compliance.
    As I said, the clues in the Logic docs and in-mac docs are minimalist, at best, none of them bringing instant head slaps of success readily.

  • Mac Pro 2007 and the Bootloader issues with EFI

    So, I've been working to get Arch on an old mac pro that I'm currently using for work.  This is the oldest of the old Mac Pros ever made, and uses 32-bit EFI and has 32GB of ram.  This means that I need to use a 64-bit OS, but am having immense difficulty getting it to boot.
    I am installing to /dev/sdb, and /dev/sda contains the EFI partition and Mac OSX.
    I'm currently using rEFInd liveCD to find and boot the .efi files.  I can select and boot into grub2 (which is stored completely on the EFI partition on /dev/sda), and have been able configure it so that it can find the vmlinuz-linux and initrd successfully (both stored on /dev/sdb2), but whenever I try to boot it, I get the following message:
    "No suitable video mode found.
    Booting in blind mode"
    At which time no keyboard input is accepted, and I have to reboot and try again.  I know that the system uses UGA, and I tried adding that to grub.conf, but no results. Even with grub-mkconfig, I cannot get it to boot without receiving that error message. 
    How can I get my system to boot correctly?  I've been working on this for about a week, so all help is appreciated.
    Here was my process.
    Steps:
    1. Tried to install from new arch linux media.  The media would not boot, no matter what I tried. Changed to 64-bit Archbang live-cd. Booted fine. 
    2. Created a GPT disk with a protective MBR on /dev/sdb (/dev/sda contains the EFI fat32 partition and the macintosh OS).
    3. Installed Archbang onto GPT disk on /dev/sdb3, as /root /dev/sdb4 as /home, /dev/sdb2 as /boot and /dev/sda1 as /boot/efi
    4. Chrooted from the LiveCD into the disk, updated pacman, installed grub-efi-i386, built the sysimage and kernel (stored in /boot on /dev/sdb2), and grub mkconfig storing all of it to the EFI partition at /boot/efi/EFI/grub
    Gdisk prints the following for /dev/sdb
    Disk /dev/sdb: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 43A3E85A-F473-468C-B361-6B3383AA65C5
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 4077 sectors (2.0 MiB)
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            4096          413695   200.0 MiB   AF00  Apple HFS/HFS+           
       2          413696          618495   100.0 MiB   8300  Linux filesystem         /boot
       3          618496       164458495   78.1 GiB    8300  Linux filesystem       /
       4       164458496       976773119   387.3 GiB   8300  Linux filesystem   /home

    bsilbaugh wrote:In regards to the step 1 you described in your post, you mentioned difficulty booting "arch linux media". What did you mean by "arch linux media"? Is this a CD you burned containing the latest Arch Linux ISO? If so, did you verify the checksum of the iso image you downloaded, and that it burned correctly to CD?
    Yes. I verified that the 2012.09.07 official Arch Linux installation iso burned correctly and that the checksum was correct.  What happened was that the disc would attempt to load after selecting it in the Mac bootloader, and then I would get a black screen with the following
    " 1.
      2.
    Please select an option:
    At this point the keyboard was unresponsive, and not recognized by the USB bus (I use a backlit keyboard, and it was not lit).  So I changed strategies.
    WonderWoofy wrote:You say that you need to use a 64-bit OS, don't you mean 32-bit.
    No, I mean that I have to be able to use 32 Gigabytes of RAM with any application I am using, which cannot be done with a 32-bit OS.  This system is used for Memory intensive 3D images and volumes.
    WonderWoofy wrote:A 32-bit EFI is incapable of booting a 64-bit OS.  I should know, I have a late 2006 MacBook and spent quite a bit of time banging my head against the wall over this.  If you want to use a 64-bit OS, you have to use bios emulation.  This is in fact why those other distros you mention above boot correctly.  Many Mac users tend to (incorrectly) call this mode bootcamp.
    Can you provide a link with a procedure or more information about booting in BIOS mode?  I think all the places I looked I ignored this because I wasn't sure what the difference was.
    WonderWoofy wrote:I think with the new install discs and macs, you have to remove the UEFI.  Especially in your case where you need a 32-bit uefi, as this is not an option on the installer.  I tried booting an installer on my macbook, and it would not go.  These forums were filled with these threads a couple months ago, and the.redikulus.rat pointed everyone to a page in our wiki to remove the UEFI.  Personally I did not try I because my mac is not my main machine anymore, but it is reported to work.
    You know you can install Arch from any live cd or other distro now that it is a chroot install method.  You could before, if you didn't use the AIF, but now there is no choice.  I think it would be especially easy with the archbang live cd, as I think that they use the same repositories.  So you should be able to install the arch-install-scripts package.  If not, you could always simply fire up links and download the package and manually install it.  Then you should be able to proceed like normal.
    I am unclear what you mean with removing the UEFI.  Do you mean removing it from the kernel or the bootloader?  Please, point me to this page used by the.redikulus.rat.  As for the second half, I have already installed via chroot, and the difficulty is getting it to boot from anywhere.

  • Stateless Release mode and the Commit issue

    What are the implications of setting all the application modules to Stateless Release mode rather than Stateful?
    I’ve read the documentation about this, but I need hands on expert’s opinions
    Specially for a Web Application that a lot of public users will use?
    We have an issue of the way commit work, if we edit a page and then navigate without saving to another page and then save at this second page, the commit will save all changes that have been done in both pages, even of the two pages are bound to two different VOs and two different Application modules, it is really strange, it seems that I need to know that the user is leaving the page so I can rollback, I do not understand this default behavior of ADF/BC ..
    Any work around? Any opinions?

    Hi,
    the behavior is correct as it commits all pending changes. The release mode tells ADF BC how the application module is released to the pool if no longer needed by the user session. If release mode is stateful then the state of the current AM is passivated so it can be recovered. This has nothing to do with the page to page navigation.
    If you want to undo changes performed on a page when navigation off the page, you call refresh(Row.DB_ROW...) on the current row
    Frank

  • Creating a sample mapping - facing the following issues

    Hi,
    I am trying to create a sample mapping, just one source and one target. I did teh following steps
    1) Created a new folder under Projects
    2) Created a new interface under first folder
    3) In Mapping pulled one source table and pulled another table for target
    4) When trying to save I get 2 critical errors, NO LKM selected, NO IKM selected errors. Where would I define these and how to bring it into the mapping?
    5) I also got 2 warnings - Mapping should be enabled, Mapping text should not be empty
    Thanks for your time and help.

    #4 - Import the LKM and IKM you plan to use into the project Knowledge Modules. Then, in the Interface, select the Flow tab and choose the LKM and IKM.
    #5 - You need to map your source columns to the target columns after you have added your source and target datastores.
    Take a look at the documentation posted by Oracle. There are many good Oracle By Example tutorials to get you started.
    http://www.oracle.com/technetwork/middleware/data-integrator/learnmore/index.html
    Regards,
    Michael Rainey

  • SAP and the FIFO issues

    Hi
    I am a continuous improvement advisor in an medium sized factory and we are currently looking to streamline the purchase order through to despatch process.
    The main problem seems to be the high quantity of part pallets we have due to the only supplier of a specific material only sends out 1375kg pallets . None of our customer wants 1375kg they want 1000kg pallets or less , so we end up with a large quantities of part pallets. We are dictated to by supplier as the product at the moment is quite rare.
    When the sales department create a picking note on SAP due to the FIFO system  there are potentially 5-6 pallets to be chosen first . the problem is the customer will not take batches with differing numbers due to their traceability causing them problems and we tend to receive complaints.
    So we are stuck with part batches everywhere.
    Can we remove these part pallets from the sap system and reblend these and create another batch number. Will SAP allow this to happen ? Our SAP people say "no" but I want to challenge that.
    As anyone got any suggestions to help with this problem.
    Thanks

    I don't think that this is a SAP issue (reblending of batches). The question should first be is it right from a business perspective?
    If it is, then a solution in SAP could be designed to allow for the batches reblending process. Most probably, this process is not yet supported in your SAP implementation, and that's why you get this answer from your local SAP support.
    Regards,
    Mario

  • SAP UI 5 and the Efforts issue

    Hi, All
    We  are exploring building SAP UI 5 applications. It seems to build a web application
    1. Need to develop the UI part in SAP UI5
    2. To get the data from SAP back-end,  Create first, the function module and then create a odata service using NW gateway.
    This means 2x efforts at the  back-end, first in FM and 2nd in gateway service layer. For filters like company code, cost center, country in a page, then again gateway services need to be built ( the FMs again ).
    The other factor is to expose the FM using NW gateway also seems to be complex and efforts currently given by the developers are equal to the FM development. Is this the truth or are we missing some tricks?.
    Is this the way currently the SAP UI5 applications are built or am I missing some thing?.
    We are finding very difficult to position SAP UI5 based applications due to these added efforts ( UI5+ gateway+ FM ).
    Regards
    velu

    Velu,
    I am not sure why there would be 2 x the effort for the FM's?  You would develop your FMs in ERP then reference them from the Gateway when you build your service.  You should not be developing two sets of FM's.
    As for the service development, it takes some time to do the analysis and get things figured out, but the modelling get much easier the more you develop.
    I would say initially the service modelling might take you as long as the FM's (assuming you are building all the FM's custom), but normally the service building would be much shorter.
    -Mike

  • O2 and the MMS issue

    Despite having o2's MMS mail server address (from an email sent from another o2 account holders mobile to my iPhone), this address does not accept incoming email messages and therefore I cannot send MMS messages to another mobile on o2.
    With all the combined technical experience on 'Discussions' surely someone has resolved sending picture messages as an MMS on an iPhone, no?

    I am having the same problem...My son who is in the Army can only send me MMS photos. I NEED to find away to view the photos and save them. This is my only means of contacting him...Please I need ideas! "email"?!?

  • Trouble syncing photos with PSE7 (and the folder issue)

    Here's a brief history on what I've done up to now:
    I've had Photoshop Elements 7 installed for a while and I installed the PSE8 trial over top of it. I converted the catalog, and everything sync-wise was fine. After it exprired last night, however, I uninstalled it, and tried to revert back to PSE7. I added some photos to the catalog...
    And there's where my troubles started. When I went back into iTunes to sync with PSE, it showed all of the albums I have previously made in PSE8, even though I uninstalled it. I managed to track down where the PSE8 copy of the catalog from where it was hiding, and deleted it.
    Now, it doesn't even pick up any catalog anymore. Worse, when I sync my photos with PSE, it give me "iPod "" cannot be synced. The required folder cannot be found.". It does NOT give me this message when I sync with custom folders, but I strongly prefer to NOT do it that way and to do so with PSE7 instead.
    I've tried uninstalling and reinstalling iTunes, restarted computer, nothing helps.
    Does anyone know of a fix so that iTunes sees my catalog again? (Yes, I even deleted all instances of "iPod Photo Cache" from my computer too. Didn't help.)

    Nevermind, seems I posted this in the wrong place.

  • I just purchased my Ipad 2 64g. the main reason i purchased was to use in my airplane for live gps tracking. i have downloaded the software with the moving map and the gps will not connect in the air. it works periodically while standing outside. Any sug?

    I just purchased my Ipad 2 64g. The main reason I purchased was to use the gps moving map feature. I have the paid AP but the gps does not work. Do I need an auxiliarry GPS?

    Is it just the wireless 64g, or the one with 3G?  If just wireless, you purchased the wrong one.  Also, if you just wanted GPS tracking, a GPS would have been a cheaper solution, no monthly charges.

Maybe you are looking for

  • Satellite U400-22n and Win7 - screen hangs after 5 min

    Hi, This is my first post Ive purchased a new U400 with Vista preinstalled, last week ; 2 days ago Ive upgraded to windows 7 32bit professional when I stared Installing it windows prompted me that it requires a full installation , so I done a normal

  • How to save a single page in a pdf file

    how to save a single page in a pdf file?

  • How to print a pdf @ 100% 10cm on screen = 10cm on print

    I cannot seem to print pdfs to any printer wireless or wired at 100%. If i put 100% and choose boarderless paper the print out is one size if i choose with boarder it prints out a different size. furthermore in both cases the print is not even 100% 1

  • USB adapter for old imac

    I know this should be in the crt imac forum, but i need a response soon. I'm looking for a wireless usb adapter for a crt imac. This mac has the capability to use an airport card, but none is installed. Are there any usb adapters that are mac compati

  • How to adjust display brightness in nokia 5130 XM

    Hi, i want to reduce the display brightness at night times. how to adjust display brightness in nokia 5130 XM Im not able to find any options for it