How can I add the extra fields to a datasource usign "User Exist"?

Hallo guys,
I have a quesiton on an extractor.
I want to extend fields for an extractor, and the additional fields come from a third table (for the extractor, there is a view which 2 Tabels inner join.) The third table should have LEFT OUTER JOIN relation to the other 2 tables. So I have to use "User Exist" to add the fields from the third table to my data source.
How  can I do it via user exist?
Thanks for any hint in advance.
Regards,
Liying

Hi LiYing,
You can do this using a USER EXIT.
if you edit the ABAP program ZXRSAU01, you can add ABAP coding:
here an example for 1_CO_PA....:
<i>   CASE i_datasource.
       WHEN '1_CO_PA_.......
Data assignments
      LOOP AT c_t_data INTO wa_s_copa.
        IF ( NOT wa_s_copa-vrgar = 'F' ) OR ( wa_s_copa-curtype = 'B0' ).
        wa_s_copa-zzratio = 1.
        wa_s_copa-zztr_rate = 1.
        wa_s_copa-zzcurkey_tc = wa_s_copa-rec_waers.
Company Code Currency Invoice *
      ELSEIF wa_s_copa-curtype = '10'.
assume one exchange rate per invoice
        SELECT SINGLE * FROM ce19991 INTO wa_ce1
           WHERE belnr = wa_s_copa-belnr
           AND   paledger = '02'
           AND   vrgar    = wa_s_copa-vrgar
           AND   versi    = space
           AND   perio    = wa_s_copa-perio.
        MOVE wa_ce1-kursf TO lx_kursf.
        MOVE wa_ce1-frwae TO wa_s_copa-zzcurkey_tc.
        IF NOT wa_ce1-frwae EQ 'EUR'.
read rate ( table is buffered ).
          CLEAR: wa_tfact, wa_ffact.
          lx-datlo = 99999999 - sy-datlo.
          SELECT single tfact ffact FROM tcurf into
          (wa_tfact, wa_ffact)
          WHERE kurst EQ 'M'
          AND fcurr EQ wa_ce1-frwae
          AND tcurr EQ 'EUR'
          AND gdatu LE lx-datlo.
          IF sy-subrc NE 0.
            SELECT single tfact ffact FROM tcurf into
            (wa_tfact, wa_ffact)
            WHERE kurst EQ 'EURX'
            AND fcurr EQ wa_ce1-frwae
            AND tcurr EQ 'EUR'
            AND gdatu LE lx-datlo.
          ENDIF.
          IF wa_tfact = 1.
            wa_s_copa-zzratio = wa_ffact.
          ELSE.
            IF wa_tfact NE 0.
              wa_s_copa-zzratio = 1 / wa_tfact.
            ENDIF.
          ENDIF.
        ELSE.
eur : eur => always 1
          wa_s_copa-zzratio = 1.
        ENDIF.
        IF lx_kursf < 0.
          wa_s_copa-zztr_rate = lx_kursf * -1 .
        ELSE.
          CHECK lx_kursf > 0.
          wa_s_copa-zztr_rate = 1 / lx_kursf.
        ENDIF.
      ENDIF.
  ENDLOOP.
ENDCASE.
</i>

Similar Messages

  • How can I add the text from a Word document to an existing PDF that is my letterhead?

    I have a business letterhead created to a PDF file.  I'd like to add text from letters to this letterhead but do not know how.  Please help.

    Hi tatestar1,
    You would either need to use Acrobat to edit your letterhead PDF, or add the text in whatever application you used to create the letterhead in the first place, and then re-create the PDF. If you have the source file, then the latter may be easier.
    Best,
    Sara

  • How can i add the Quantity field

    i am extracting the data from oracle to SAP BW.Now i want to add all the quantity and xtract to my infocube.
    eg:
    in Oracle
    QTY
    10
    20
    30
    in Bw i want to get
    QTY
    60
    Could any one help me on this?

    when i load to cube all key figure values will be aggregated.
    eg:
    Oracle it is
    10
    20
    30
    in cube
    60

  • How can I add the the field in the database in JSP?

    How can I add the the field in the MS access using JSP?

    By using JDBC.
    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • 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).

  • How can i add STORAGE LOCATION field which is not...............

    hi,
    sap gurus,
    good morning to all,
    how can i add STORAGE LOCATION field which is not in the standard tables namely
    KOMP, KOMK, and KOMG.
    how to include it in our FIELDS FROM FIELD CATALOGUE.
    if we include this field is there any impact on the standard tables.
    plz let me know this.
    bcz
    we are selling our products in two ways
    (1). one is straight from factory ie direct sales from factory
    if customer asks for excise invoice then we will sell thru factory and keeping freight in mind we will
    deliver him which ever is economical either rail or road.
    before coming to second case of selling the goods
    we will do STOCK TRANSPORT ORDER from plant to different storage locations.
    if we did STO thru road we have to sell the goods thru road only.
    if we did STO thru rail we have to sell the goods thru rail route only.
    (2). if the customer is not asking any excise invoice then we will send the goods thru depo/storage
    location which is not registered under excise.
    if the goods came by road then it will be delivered by road only.
    if the goods came by rail then it will be delivered by rail only.
    my logic here is
    basing on the
    storage location, transportation types, and distance i want to create condition record
    that captures exact frieght at the sales order level.
    confirm whether i am right or wrong.
    regards,
    balaji.t
    09990019711.

    Hi,
    It is not recommended to add new fields to any SAP standard tables. It disturbs the whole SAP functionality.
    But if you have no choice expcept to change the standard tables to meet your requirement -  then you need an access key to modify the object, which is available from the market place.
    Nevertheless, the better option is to create a 'Z' table with the required fields and use that accordingly.
    Changing standard tables will have serious impact when you apply patches or do an upgrade on the existing functionality.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • How can I add the controller name in the subject of Alarm emails? PI2.1

    How can I add the controller name in the Alarm emails in PI2.1?  This would make it much easier to scan the mailbox and see what devices are affected.

    Thanx for your reply. No, although helpful, that's not what I meant. In outlook, the first line of the header contains the full username follow by a horizontal line. Under that, the default headers like To:, From:, Subject: etc follow.
    I need that firstline printed so we know instantly from which user the email was printed (the To: field often is the same name of the sender of the mail, therefor you won't know WHO printed it...).

  • How can I add the attachment list pdf file context to purchase order ?

    Dear all,
           I have use services for object in ME22N to attach PDF file to purchase order,I want to know how can I add the pdf file context to purchase order when I send the purchase order to vendor.
    Thanks in advance
    Best regards,
    Merry

    hi,
    attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) .
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • How can you trim the contact field value without cloudconnector?

    How can you trim the contact field value without cloudconnector?

    You can add your contacts to segments, while right-clicking on the criteria you have added in segments, you will see the option for Merge, Intersect & Trim.
    See the attached URL, it might help you .
    Merge, Intersect, Trim

  • How can I program the text fields in my email forum to have rounded corners

    How can I program the text fields in my email forum to have rounded off edges or corners. 
    this is the code im using.
    // insert code here// insert code here// prepare email field
    var email = sym.$("email")
    email.html("Enter your Email: ");
    inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
    inputEmail .css ('font-size', 14);
    inputEmail .css ('width', 350);
    inputEmail .css ('background-color', '#4e4e4e');
    inputEmail .appendTo(email);
    // prepare topic field
    var topic = sym.$("topic");
    topic.html("Topic: ");
    inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
    inputTopic .css ('font-size', 14);
    inputTopic .css ('width', 350);
    inputTopic .css ('background-color', '#4e4e4e');
    inputTopic .appendTo(topic);
    // prepare message field
    var message = sym.$("message");
    message.html("Message: ");
    inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
    inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
    inputMessage .css ('color',"#ffffff");
    inputMessage .css ('font-size', 14);
    inputMessage .css ('background-color', '#4e4e4e');
    inputMessage .css ('box-shadow', '#4e4e4e');
    inputMessage .css ('width', 350);
    inputMessage .css ('height', 150);
    inputMessage .appendTo(message);
    var submitBtn = sym.$("btn");
    submitBtn.html("Submit");
    submitBtn.css("text-align", "center");
    submitBtn.css("font-size",14);
    submitBtn.css("font-weight","bold");
    submitBtn.css("color","#ffffff");

    Try this: inputEmail.css ('border-radius', '25px');
    attachment
    more details

  • How can we change the input field on a view stop showing zeros

    Hello,
           To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
    Edited by: sap_learner on Mar 25, 2010 5:44 PM
    Edited by: sap_learner on Mar 25, 2010 5:49 PM
    Edited by: sap_learner on Mar 25, 2010 5:55 PM

    hello Manas Dua,
                           Thanks for your help. I am able to resolve my problem.
    My code will help  the future comers to resolve this kind of issues.
    *The code is applied to method WDDOINIT of the default view.
      DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
      DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
      DATA lv_zeros             TYPE wdy_attribute_format_prop.
      lv_zeros-null_as_blank = 'X'.
      lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
      lo_nd_terms_input_i->set_attribute_format_props(
        EXPORTING
          name              = `ENTER THE ATTRIBUTE NAME`
          format_properties = lv_zeros     ).
    Edited by: sap_learner on Mar 26, 2010 5:02 PM

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

  • How can I add the "Profile Removal Password Payload"  to a configuration Profile?

    How can I add the “Profile Removal Password Payload”  to a configuration Profile?
    I’m not seeing an option to add this option when I edit the configuration profile within Apple Configurator.
    Do I have to edit the configuration profile(xml file) within a text editor?
    FYI:
    https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProf ileRef/Introduction/Introduction.html
    Profile Removal Password Payload
    The Removal Password payload is designated by specifying com.apple.profileRemovalPassword value as the PayloadType value.
    A password removal policy payload provides a password to allow users to remove a locked configuration profile from the device. If this payload is present and has a password value set, the device asks for the password when the user taps a profile's Remove button. This payload is encrypted with the rest of the profile.
    Key
    Type
    Value
    RemovalPassword
    String
    Optional. Specifies the removal password for the profile.

    You have found where it is stored in Thunderbird?
    Delete it. When Thunderbird needs it again, it will ask you for it.

  • OBN: How can we add the tcode of target system into Source System.?

    Dear Experts,
    I want to add a t-code ME53n of ERP) into a role as OBN target in my SAP TM.
    I tried to add this t-code but could not find this t-code in SAP TM system.
    How can we add the tcode of target system into Source System.?
    I tries to import the role of target system but that does not work.
    Please help!
    Regards,
    Saurabh

    Hi Saurabh,
    Logically there is no need to add a tcode of the target system in the source system.
    If you have right roles in the system then system should allow you to add tcode in the OBN target simply by going to PFCG roles and using add transaction feature.
    To make sure it works properly you have to check the Method & Parameter assignment to the newly added tcode.
    Thanks & Regards,
    Tarun Kumar

Maybe you are looking for

  • Class file/memory mismatch

    I ma trying to compile a source code in 64 bit Solaris. The same code works fine with 32 bit but on 64bit it shows the following error - ld: elf error: file /usr/users/PLAT/cltxm25/atm/generic_archive-smdxp83/generic_archive/tlvcreation.a(keyfields_p

  • Bluetooth permission issues

    Hi, I'm unable to use my bluetooth device, I'm trying to send files with blueman-sendto, file send dialog never appears, i looked to the output and saw: do_cache (/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py:543) Caching new device 00:1

  • Updating security on personal folder

    I am getting an error when trying to update the security on a personal folder using the Web Services SDK.  In my code I query for the personal folder specifying that the security info be returned.  If the SecurityInfo2 object has any roles in it I re

  • Mail smart list with filter last week does not work

    I created a smart list in mail to show all emails of last week. It shows the emails of this week. In ML it used to work. any idea?

  • General Error (Save as JPG)

    I've often encountered problems when scripting saving out JPG files. I've narrowed it down a bit further: It seems to only occur when the initial PSD was created in CS5 (I'm using CS2) - General Photoshop error - not very helpful. I can get around it