Problem in populating the new field from the extract structure. Kindly help

my requirement a new text field is added on R/3 side and I have to populate
the same field into BW.
In the R/3 a new customization table 'AAA' is created which will have
code - char 3 and
text - char 30.
The code field is added to a table BBB.
The SAP standard generic data source exracts data from the table BBB where in the new code field have been added.
Now I can the see the code field in the extract structure and not in the data source as the filed has selection value 'A' when checked in the ROOSFIELD table.
To populate the value in BW, I will be creating a Generic Master Data text wherein I fetch the values from the table 'AAA' which the fields code and text  and replicate the same in BW.
In the reporting level, the code InfoObject will be selected as display both KEY and TeXT, by doing I can populate the values of TEXT in the reporting.
But to achieve the same I need to add the field code in the ODS but cannot do the same because I am not able to see the field code in the data source.
Kindly let me know how to achieve the same.
Also let me know if there is any alternate solution to populate the text field in BW.
Any Inputs will be appreciated.
Thanks

> You should get the userdatasources bound to the
> columns and assign the values of the recordset to
> each one and after that use "setLineData" to write in
> the matrix.
>
> hope it helps
Hi all,
i have created tables (non BO Tables) directly on the SQL-server and want to use recordset to populate a user form matrix.
Is there any workaround to achieve this using non BO tables?
Please provide some sample code since it is a very urgent matter.
regards
Daniel

Similar Messages

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Can you please how to retrive the new netprice from the new validity period

    Hi,
    When you display  a contract using ME33K and you click on  a item and view its conditions(shift+F6), there might be 2 validity periods for a given item.
    and each period will have different netprice in it.
    One will be old date before the PO was created and the other new one which has validity till 31.12.999..We want to fetch the netprice for the new validity date but currently the program is fetching this data from the table EKPO which is having the netprice of the old date only..
    Can you please how to retrive the new netprice from the new validity period

    Thank you so much.
    But I need more help specific to my problem.
    Let me describe the same.
    Suppose the PO creation date is 04.07.2007
    The conditions for an item in a contract for the PO are as follows;
    1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
    2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
    We need to always fetch the netprice from the validity period which always matches with the PO creatio date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
    But the program is fetching the netprice 200.000 which belongs to the second validity period. That is beacuse the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.the fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrives the netprice of current data in contract validity and h not with respect to PO creation date.
    This data is then used to fetch the get the netpr data from EKPO.
    <u>what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date</u>..
    Below is the code where I'm selecting the data from ekko and ekpo for the contracts data..Can you please add the code snippet to the below attachesd subroutine to get the required data from KONV and KONP so that we can retrieve the correct Netprice.
    FORM select_contracts USING p_s_cebeln LIKE s_cebeln[]
                                p_c_k_bstyp  TYPE ebstyp
                                p_p_bukrs    TYPE bukrs
                                p_p_ekorg    TYPE ekorg
                                p_p_ekgrp    TYPE bkgrp
    *Begin of Mod-004
                                fp_p_cernam   type ty_r_ernam
                               p_p_cernam   TYPE ernam
    *End of Mod-004
                                p_s_werks    LIKE s_werks[]
                                p_s_matnr    LIKE s_matnr[]
                                p_s_lifnr    LIKE s_lifnr[]
                                p_s_val_dt   LIKE s_val_dt[].
    *mod-002
        data : l_amount   type BAPICURR_D,   " Net price
               l_waers    TYPE waers,        " Currency Key
               l_eff_amount type BAPICURR_D. " Effective value
          data: l_v_netpr type bprei.
    *mod-002
    SELECT  ebeln
              bukrs
              bstyp
              aedat
              ernam
              lifnr
              zterm
              ekorg
              ekgrp
              waers
              wkurs
              <b>kdatb
              kdate</b>
              inco1
              INTO TABLE i_ekko
              FROM ekko
              WHERE    ebeln IN p_s_cebeln
                   AND bstyp EQ p_c_k_bstyp
                   AND bukrs EQ p_p_bukrs
                   AND ekorg EQ p_p_ekorg
                   AND ekgrp EQ p_p_ekgrp
    *Begin of Mod-004
                  AND ernam EQ p_p_cernam
                   AND ernam IN fp_p_cernam
    *End of Mod-004
                   AND lifnr IN p_s_lifnr
                   AND ( kdatb IN p_s_val_dt OR kdate IN p_s_val_dt ).
      IF sy-subrc EQ 0.
    Populates internal table i_ekpo using EKPO table.
        SELECT   ebeln
                 ebelp
                 loekz
                 txz01
                 matnr
                 werks
                 ktmng
                 menge
                 meins
                 bprme
                 netpr
                 peinh
                 webaz
                 mwskz
                 uebto
                 untto
                 erekz
                 pstyp
                 knttp
                 repos
                 webre
                 konnr
                 ktpnr
                 ean11
                 effwr
                 xersy
                 aedat
                 prdat
                   INTO TABLE i_ekpo
                   FROM ekpo
                   FOR ALL ENTRIES IN i_ekko
                   WHERE ebeln = i_ekko-ebeln
                     and aedat = i_ekko-aedat
                     AND werks IN p_s_werks
                     AND matnr IN p_s_matnr.
    LOOP AT i_ekpo INTO rec_ekpo.
          MOVE rec_ekpo-ebeln  TO rec_contr-ebeln.
          MOVE rec_ekpo-ebelp  TO rec_contr-ebelp.
          MOVE rec_ekpo-loekz  TO rec_contr-loekz.
          MOVE rec_ekpo-txz01  TO rec_contr-txz01.
          MOVE rec_ekpo-matnr  TO rec_contr-matnr.
          MOVE rec_ekpo-werks  TO rec_contr-werks.
          MOVE rec_ekpo-ktmng  TO rec_contr-ktmng.
          MOVE rec_ekpo-menge  TO rec_contr-menge.
          MOVE rec_ekpo-meins  TO rec_contr-meins.
          MOVE rec_ekpo-bprme  TO rec_contr-bprme.
         MOVE rec_ekpo-netpr  TO rec_contr-netpr.
         move l_v_netpr        TO rec_contr-netpr.
    mod-002
          read table i_ekko into rec_ekko with key
                           ebeln = rec_ekpo-ebeln.
            l_waers =  rec_ekko-waers.
    CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
      EXPORTING
        currency              =  l_waers
        amount_internal       =  rec_contr-netpr
    IMPORTING
       AMOUNT_EXTERNAL       =  l_amount.
                rec_contr-netpr = l_amount.
    mod-002
          MOVE rec_ekpo-peinh  TO rec_contr-peinh.
          MOVE rec_ekpo-webaz  TO rec_contr-webaz.
          MOVE rec_ekpo-mwskz  TO rec_contr-mwskz.
          MOVE rec_ekpo-uebto  TO rec_contr-uebto.
          MOVE rec_ekpo-untto  TO rec_contr-untto.
          MOVE rec_ekpo-erekz  TO rec_contr-erekz.
          MOVE rec_ekpo-pstyp  TO rec_contr-pstyp.
          MOVE rec_ekpo-knttp  TO rec_contr-knttp.
          MOVE rec_ekpo-repos  TO rec_contr-repos.
          MOVE rec_ekpo-webre  TO rec_contr-webre.
          MOVE rec_ekpo-konnr  TO rec_contr-konnr.
          MOVE rec_ekpo-ktpnr  TO rec_contr-ktpnr.
          MOVE rec_ekpo-ean11  TO rec_contr-ean11.
          MOVE rec_ekpo-effwr  TO rec_contr-effwr.
    mod-002
          CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
       EXPORTING
          currency              =  l_waers
          amount_internal       =  rec_contr-effwr
       IMPORTING
          AMOUNT_EXTERNAL       =  l_eff_amount.
               rec_contr-effwr = l_eff_amount.
    *mod-002
          MOVE rec_ekpo-xersy  TO rec_contr-xersy.
          APPEND rec_contr TO i_contr.
          CLEAR: rec_ekpo,rec_contr.
    mod-002
          CLEAR : rec_ekko,l_amount, l_eff_amount,l_waers.
    mod-002
        ENDLOOP.
    Modifying i_contr using i_ekko.
        SORT i_ekko BY ebeln.
        LOOP AT i_contr INTO rec_contr.
          READ TABLE i_ekko INTO rec_ekko WITH KEY
                              ebeln = rec_contr-ebeln
                              BINARY SEARCH.
          MOVE rec_ekko-bukrs  TO  rec_contr-bukrs.
          MOVE rec_ekko-bstyp  TO  rec_contr-bstyp.
          MOVE rec_ekko-aedat  TO  rec_contr-aedat.
          MOVE rec_ekko-ernam  TO  rec_contr-ernam.
          MOVE rec_ekko-lifnr  TO  rec_contr-lifnr.
          MOVE rec_ekko-zterm  TO  rec_contr-zterm.
          MOVE rec_ekko-ekorg  TO  rec_contr-ekorg.
          MOVE rec_ekko-ekgrp  TO  rec_contr-ekgrp.
          MOVE rec_ekko-waers  TO  rec_contr-waers.
          MOVE rec_ekko-wkurs  TO  rec_contr-wkurs.
          MOVE rec_ekko-kdatb  TO  rec_contr-kdatb.
          MOVE rec_ekko-kdate  TO  rec_contr-kdate.
          MOVE rec_ekko-inco1  TO  rec_contr-inco1.
          MODIFY i_contr FROM rec_contr.
        ENDLOOP.
      ENDIF.
      REFRESH: i_ekko,
               i_ekpo.
      CLEAR  : rec_ekko,
               rec_ekpo,
               rec_contr.
    ENDFORM.      "select_contracts
    Thanks.

  • I Have a Ipod Classic that all my music is on. After my previous computer crashed I have not had any of my music able to be transfered to the new computer from the Ipod. Is there a way to do this

    I Have a Ipod Classic that all my music is on.
    After my previous computer crashed I have not had any of my music able to be transfered to the new computer from the Ipod.
    Is there a way to do this?

    Unfortunately, unless you have a backup and can restore the iTunes library to the new computer, you are stuck with the current state of the iPod. This is one of those things that makes doing backups so important.
    Unless your music is all purchased from iTunes (not from your own CD's that you imported into iTunes and then downloaded to the iPod), you will be able to re-download all your iTunes store music back to the iPod when you install iTunes on the new computer. When you first attach the iPod to the new computer and new iTunes the first time it will tell you that this iPod is synced with another iTunes library and let you initialize the iPod (which will erase everything on the iPod - so don't do this unless you don't care about the stuff on the iPod now).
    I've seen 3rd party apps in the past that will let you copy music/content from iPod to computer and bypass iTunes, but not sure if they still exist as this was several years ago.
    good luck

  • If I have iWork 09, will I have to buy the new app from the mac store?

    I already have iWork 09 on my computers.  Will I have to buy the new app from the App Store?

    Larry,
    After you install Mavericks, run Software Update. You should be offered the updates in the normal update mode. No charge.
    Jerry

  • What do I do with my old CS4 when downloading the new versions from the cloud?

    What do I do with my old CS4 when downloading the new versions from the cloud?
    Do I just uninstall via the control panel on my computer?

    if you no longer need cs4, deactivate it (help>deactivate) and uninstall it.
    otherwise, leave it installed along with cc.  you can use both if you need.

  • Values are generating in the prepopulated fields from the XML data sourece I binded to the fields

    Hello,
    Fairly new here.
    I am trying to insert the payrate and name values in a pdf document on LiveCycle.  I created the XML file from our access database (about 1100 names), created the text fields using the same field names in the XML file, connected the XML file in liveCycle, binded  the fields but when I convert to PDF nothing is there.  I think my issue is the script in the XML file.  Has anyone else come across this issue. Please help me with what I am doing incorrectly.
    I am hoping to just hit a button and 1100 documents will generate with the two fields prefilled. Am I dreaming?
    Thank you in advance for your time.

    Are the data values wildy different? i.e. Completely wrong, or are they off due to rounding?
    I would start with member formulas and make sure that any in the BSO cube have been re-created in the ASO cube.
    I guess, also double check that the level 0 export loaded, with no rejects.

  • The New Field in the FBL5N/FBL1N doesn't appear

    Hi guys,
    I created an APPEND STRUCTURE with the NAME1 field in the table RFPOS and through the transaction FIBF an Event that calls a Function and move the Name of Customer or Supplier according to the transactions FBL5N or FBL1N.
    This field, NAME1, should appear in these transactions when the user choices the hidden fields through the Change Layout button. But this field doesn't appear...
    I debbuged the Function Module and the data have been moved. (It works...)
    Please, someone did it before and could help me to solve it?
    Why doesn't the Field NAME1 appear? What could I do??
    Thanks a lot!
    Regards,
    Marcos Fernando Dotta

    Hi
    The new fields have to be appended in the structure RFPOSX too, and then you need to run the program RFPOSXEXTEND in order to add the new fields in layout structure RFPOSXEXT
    Max

  • Get the new value from an event structure block

    Hello!
    I'm using an event structure block. I've edited an event wich its event sources are an indicator an a variable (a real matrix). I want to get (to catch) the new value of the indicator and the variable from the frame placed at the left top, but the new value attribute is not a real not an integer.....is variant type. I have no idea what i have to do to catch this two values from here. Someone can post a simple example about it?
    Thanks in advance!
    Regards
    Larson 

    If the terminal is INSIDE the event structure, you'll always get the new value. It will NOT be read until the event case executes, at which point the terminal contains the new value. (If the terminal is outside the event structure, and the wire goes inside the event structure, you'll get a stale value when the event for that terminal triggers. This is expected from the dataflow.)
    Put the terminals inside the proper event case, you'll be fine!
    LabVIEW Champion . Do more with less code and in less time .

  • Ive got a new iphone, backed up the old phone now when i go to restore the new one from the old it wants a backup password - i dont know it

    im trying to restore my new phone from the old phone backup but it asks for a backup password - ive tried everything but no luck with the password

    If you don't know the password to decrypt the backup, it can't be restored to any phone, including the old one.  You had to enable backup encryption and create password at some time in the past or maybe the backup is not from your old phone...

  • Adobe Form - Path of the context field from the object pallate

    Hi,
    I am trying to modify the standard adobe(MR_PRINT_INSERS) form as per the requirement.
    There are many tables and fields in the context.
    I want to know the path to which the the UI elements(library pallate) are binded.
    I can see the field name in object pallate but the place from where that object is taken is not shown.
    For Eg: I can see the field WRBTR in the object pallate of the text UI element of library pallate but I couldnot figure it out from which table of context they are reffering, as their are many tables in the context which have WRBTR.
    Can you please let me know how to figure out exact path to which table the field is binded.
    Thanks & Regards,
    kiran Kumar K

    Hi Tamas,
    I checked the mentioned form and, as this table is setted as TABLEROW and some of its cells are static, is not possible to change the column size in the layout or even though changing it directly in the XML file, cell by cell. I was trying it.
    For example, choose the Cell6 of TABLEROW[0] and click on tab 'XML Source'. You will see this statement:
    <draw colSpan="3" h="16.3166mm" name="Cell7" w="22.225mm">
    You can try to change the value 'colSpan' according to your requirement.
    This table size is not modifiable because it was developed to it.
    I believe that Diego's suggestion can help in this case, if you are having problems to print the entire table on the page.
    Regards,
    Lucas Comassetto.

  • I just purchased a macbook pro, and i can't get my music into the new itunes from my pc itunes! help

    my library is empty and i cant get my music from the itunes on my pc to this one!

    Are you using one of the methods from the following document? (If so, which one?)
    iTunes: How to move your music to a new computer

  • I accidentally managed to delete the "New Tab" from the Navigation tool bar and I can't get it back. Can you help?

    I wanted to rearrange to Navigation toolbar and accidentally deleted the "Add new tab" from it. I now have the "Stop loading this page", "Reload current page" and "Home" buttons, but the new tab button is gone! I checked the "Customize" panel, but it's vanished from there too. All that's there is a "Open in a new window" tool. I'm aware that i can open a new tab just by clicking the plus next to the open tabs or Ctrl+T, but I'm used to doing it with the actual button, so I'd be grateful if you could help me.
    Thanks :)

    You can find the New Tab button showing as a '+' on the Tab bar.<br />
    You can open the Customize window and drag the New Tab button that shows as a plus sign (+) from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
    If you can't find the New Tab button then click the "Restore Default Set" button in the Customize window.<br />
    If you want the New Tab button at the far right end of the Tab bar then place a flexible space to the left of it.<br />
    * New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/<br />

  • Got the new battery from the exchange program and.....

    It doesn't seem to be any better than the "defective" battery that it was to replace. I mean, I can sit here and watch the indicator literally inch it's way down. Did I forget to rub the magic pixie dust onto the battery before I installed it?
    What's up with this?
    ~B

    Hi all,
    I got my MBP last week. For the first six days it was running like something off a shovel and as sleek as the next mans. On day six I calibrated the battery according to the correct procedure (off a PDF from Apple).
    Now ever since I did this, it has being doing these similar problems to what other have described here. It could be sitting comfortably, for example, at 53% and then BOOM, the screen is black and its died on me. I can't believe its a week old and I am having such fundamental problems as this. Not even two weeks old. How can this be resolved...in fact, CAN IT BE RESOLVED???

  • HT6114 Hello, I just updated from os 10.7.2 to os 10.9.2 and now I can't print to my HP 8600 plus printer.  I've downloaded the new driver from the hp site and still no printing.

    help!

    Did you run the installer for the driver from the downloads folder?
    Is the printer wifi or wired?
    Are you certain the printer has joined the wifi network if its wireless?
    If you go to sys prefs and the print and scan page is the printer red or green lit?

Maybe you are looking for

  • I cant get the tunes store to open,can anyone help me?

    I can get Itunes to open,but when I try to get to the store it freezes and will not open,can anyone help me,,I would appreciate it greatly..

  • Error -50 when trying to sync purchases back to iTunes

    I'm a UK iPhone user (no relevance) and tried the iTunes store last night for the first time. I browsed, purchased and downloaded an album without a hitch. A warm feeling all over when things just 'work'. I've come to charge the phone today and it ha

  • Manual Reservation for Maintenance Order (Category 30)

    Hi, Can anyone suggest some procedure so that I can stop automatic reservation creation from Maintenance Order (type PM01, Category 30) and create manual reservation for the same. Presently Manual reservation is not allowed for Maintenance Order. Tha

  • Alerts and Error handling in BPM Async/Sync Bridge

    Hello All, I am developing an Async/Sync Bridge in BPM for sending a request from ECC webservice asychronously to a front end application synchronously using BPM Async/Sync Bridge. I get a response from the front end to PI and stays there. It wont be

  • Chain of events in DataLoading

    Hello Masters, I would like to know from the forum the chain of events when an InfoPackage is Triggered. please explain in detail. Thank you, Its my pleasure to assign points, raj