Inserting an Include program into all Z programs dynamically using a BDC.

Hi Experts.
I've created a BDC to insert a include program (for Authorisation) into all our Zprograms.
It works but if there is code written on the line where the include has to go it is simply overwritten by the new include.
Is there a way to search the code lines for example to see on which line the "REPORT" statement is and
to be able to then dynamically "Hit Enter" to insert a blank line after the report statement sothat the existing code is not
overwritten.
Regards
Vic

Thanks for sharing your brilliance.
It's much appreciated
If I have to insert my lines in, can I update directly from the itab or is there another process
behind that.
My reasoning is if there is no space for the Load-of-program and include I'll have to insert it.
Edited by: Vic Delport on Dec 10, 2009 11:12 AM

Similar Messages

  • How to get the output of a program into the email program.

    hi
    i had created a java mail program and the keygeneration program.seperately.
    i want to get the keygeneration into my email program.that should be sent along with the text message.so pls help me in this regared.
    i had pasted my coding her
    email pgm.
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    To use this program, change values for the following three constants,
    SMTP_HOST_NAME -- Has your SMTP Host Name
    SMTP_AUTH_USER -- Has your SMTP Authentication UserName
    SMTP_AUTH_PWD -- Has your SMTP Authentication Password
    Next change values for fields
    emailMsgTxt -- Message Text for the Email
    emailSubjectTxt -- Subject for email
    emailFromAddress -- Email Address whose name will appears as "from" address
    Next change value for "emailList".
    This String array has List of all Email Addresses to Email Email needs to be sent to.
    Next to run the program, execute it as follows,
    SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
    private static final String SMTP_AUTH_USER = "xxxx";
    private static final String SMTP_AUTH_PWD = "xxxx";
    //private static final String emailMsgTxt = "Online Order Confirmation Message. Also include the Tracking Number.";
    private static final String emailSubjectTxt = "Order Confirmation Subject";
    private static final String emailFromAddress = "[email protected]";
    private static String emailMsgTxt = "I am unable to attend to your message, as I am busy sunning"
    + "myself on the beach in Maui, where it is warm and peaceful."
    + "Perhaps when I return I'll get around to reading your mail."
    + "Or perhaps not.";
    private static final String[] emailList = { "[email protected]","[email protected]"};
    public static void main(String args[]) throws Exception
    SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
    smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
    System.out.println("Sucessfully Sent mail to All Users");
    public void postMail( String recipients[ ], String subject,
    String message , String from) throws MessagingException
    boolean debug = true;
    Properties props = new Properties();
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.port", "25");
    props.put("mail.smtp.protocol","smtp");
    props.put("mail.debug", "true");
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);
    keygeneration program:
    import java.io.Serializable;
         import java.security.Security;
    import com.sun.net.ssl.*;
         import javax.crypto.KeyGenerator;
         import javax.crypto.Mac;
         import javax.crypto.SecretKey;
         public class Eval {
         public static void main(String args[]) throws Exception {
         String inputString ="0x0b0b0b0b";
         KeyGenerator keyGen = KeyGenerator.getInstance("HMACMD5");
         SecretKey secretKey = keyGen.generateKey();
         Mac mac = Mac.getInstance(secretKey.getAlgorithm());
         mac.init(secretKey);
         byte[] byteData = inputString.getBytes("UTF8");
         byte[] macBytes = mac.doFinal(byteData);
         String macAsString = new sun.misc.BASE64Encoder().encode(macBytes);
         System.out.println("Authentication code is: " + macAsString);

    I'm not sure what's confusing you. Just generate a String (using a StringBuffer)
    with the data you need and use it as the content of the mail message. If each
    recipient needs different content, they'll each need a different MimeMessage
    object.

  • Merging of 8 programs into a single program - urgent

    Hi Abappers,
    I have a requirement like 8 programs are given to me which are existing from one server. Now, what i have to do is , i should merge all of them into  one main program in another server. This is my requirement. For that in the selection criteria of the main program, options will be created for each item. The user can select the option he wants to execute.
    Now, can i create a selection screen in which there will be 8  push buttons and whenever user clicks one , the report belonging to taht button executes?
    For that, please suggest me the best way of how to do it..
    Whether include the 8 programs using include statement in the main program or by using subroutines or what?
    I am confused .. kindly suggest me the better way so taht i can proceed.
    Thanks,
    Priya

    The best way to resolve your requirement is to create a new ABAP with a selection screen with 8 options(radio buttons).
    Depending on the selection you can just submit the corresponding ABAP via selection-screen and return.
    selection-screen : begin of block B1 with frame title TEXT-001.
    parameter        : P_01 radiobutton group R1 user-command M1.
    parameter        : P_02 radiobutton group R1.
    parameter        : P_03 radiobutton group R1.
    parameter        : P_04 radiobutton group R1.
    parameter        : P_08 radiobutton group R1.
    selection-screen : end of block B1.
    START-OF-SELECTION.
      if p_01 = 'X'.
         labap = 'ZG1'.
      endif.
      if p_08 = 'X'.
         labap = 'ZG8'.
      endif.
      submit (labap) via selection-screen and return.
    Regards
    Anurag
    Message was edited by: Anurag Bankley

  • I get an error 7 (Windows error 126) when I try to open itunes. It says that it wasn't installed correctly. I have removed and reinstalled this program and all accompanied programs several times. My itunes was fine until I did an update several months ago

    Please help. I have been using itunes with my ipod nano for years. Several months ago I did a requested upgrade and have not been able to open itunes since. I get an error message that says that itunes was not installed correctly. Error 7 (Windows error 126) I have tried to uninstall all Apple programs and reinstall itunes several times and it doesn't work. I keep getting the same message. I am looking for a solution to get my library back so I can but more songs for my ipod.

    I have same problem--did you ever find a solution?

  • Merging of 8 programs into a single program

    Hi Abap gurus,
    Can any one pl help me out about merging 8 programs into a single one.
    Pl give me the best way to merge 8 programs into one program
    Thanks,
    Priya

    Hi priya,'
    What do you really mean by merging of 8 programs?  what are those programs ....
    but anyway ... see a program is written to fulfil a business requirement ...
    so i believe that need is now .. the functionalities of 8 programs in one program ... Am i right ..
    if that is the case then get the requirement of the one report and build a program ......
    cheers
    Kripa Rangachari..

  • Possible? output a string from a java program into a running program

    I'm not sure if it is plausible, but this is my dilemma. My java program searches for street names in a specific region, then outputs the nearest street. I would like to synch this up with Google Earth, and output the street name into it, so it would go ahead and be able to search it right away. Is this possible, or should I attempt some other route?

    Check out my runCmd method. It gives an example of running another program and listening for the output. I built this to run javac and show the output in my custom editor.
    You'll see some classes in here that are not standard java classes, in particular InfoFetcher. Don't worry, this is just a utility I wrote for convenient handling of inputstreams. You can handle the inputstreams without it, but if you really want it, it's probably posted somewhere in these forums.
            private void runCmd(String cmd) {
                 try {
                      System.out.println("cmd: " + cmd);
                      Process p = Runtime.getRuntime().exec(cmd);
                      InputStream stream = p.getInputStream();
                      InputStream stream2 = p.getErrorStream();
                      InfoFetcher info = new InfoFetcher(stream, new byte[512], 500);
                      InputStreamListener l = new InputStreamListener() {
                           int currentLength = 0;
                           public void gotAll(InputStreamEvent ev) {}
                           public void gotMore(InputStreamEvent ev) {
                                String str = new String(ev.buffer, currentLength, ev.getBytesRetrieved());
                                currentLength = ev.getBytesRetrieved();
                                System.out.print(str);
                      info.addInputStreamListener(l);
                      Thread t = new Thread(info);
                      t.start();
                        InfoFetcher info2 = new InfoFetcher(stream2, new byte[512], 500);
                      InputStreamListener l2 = new InputStreamListener() {
                           int currentLength = 0;
                           public void gotAll(InputStreamEvent ev) {}
                           public void gotMore(InputStreamEvent ev) {
                                String str = new String(ev.buffer, currentLength, ev.getBytesRetrieved());
                                currentLength = ev.getBytesRetrieved();
                                System.out.print("(Error) " + str);
                      info2.addInputStreamListener(l2);
                      Thread t2 = new Thread(info2);
                      t2.start();
                 catch (IOException iox) {
                      iox.printStackTrace();
            }

  • Itz possible to call one report program into another program

    hi guys,
                i had a doubt that can i call a report program into another report program by declaring their name into the second program like as we calling Includes ,function modules and like class and their methods .
    if  anybody done this or know how to do this,  give me the details and explination about this  friends
    if it possible with screenshots and codings
    Thanks & Regards
    Saigijeo

    Please search before posting, do not ask basic questions here.
    Always do your own work before turning to the community with specific problems.
    Thread locked.
    Thomas
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]

  • Getting the internal table of standard program to my custom program

    Hi All,
    I have a requirement in which i have to get the data from internal table ALV_ITAB from program HKBRO20. As this is the standard program, i have copied this program into Z custom program and using export parameter i am getting the data from internal table ALV_ITAB to my custom program (Using submit of the Z of the standard program). Can any one pls tell me whether the process i am following is correct if not pls tell me how to get the internal table from standard program to our custom program.
    the process i am following
    submit ZHBRO20 and return. IMPORT ALV_ITAB  FROM MEMORY ID 'ABC'.
    copied HBRO20 to ZHBRO20.
    Thanks,
    Raju

    Hi,
    you could also try
    FIELD-SYMBOLS: <fc> .
    CONSTANTS: c_table(21)  VALUE '(PROGRAM_NAME)INTERNAL_TABLENAME[]'.
    ASSIIGN (c_table) TO <fc>.
    Depends on the process, of course.
    Cheers,
    Stefan.

  • Parallels: transferring info from a Windows program to a Mac program

    I've been devoted to a Mac for a few years now, but I recently had to switch back to Windows because of its far superior voice recognition software. (I was recently disabled, and now rely on voice recognition to type.)
    If I were to buy a new Mac and use my Dragon NaturallySpeaking professional software (the Windows voice recognition program) via Parallels, does anyone know if I would be able to use that to type in a Macintosh program? I understand that I could stay within the virtual Windows platform or do separate tasks on the Mac platform, but I'm not sure if I would be able to transfer the information gathered by the Windows program into a Mac program.
    If I'm able to do this, it would mean I could finally switch back to a Mac. Thanks in advance!

    If I were to buy a new Mac and use my Dragon
    NaturallySpeaking professional software (the Windows
    voice recognition program) via Parallels, does anyone
    know if I would be able to use that to type in a
    Macintosh program?
    No
    iFelix

  • Insert a Youtube link into a CC Indesign document?

    I am trying to insert a Youtube link into a CC Indesign document, using the embedded Youtube code (e.g. <iframe width="560" height="315" src="//www.youtube.com/embed/a8tngtNgXl4" frameborder="0" allowfullscreen></iframe>). I understood that adding "https:" into the code (<iframe width="560" height="315" src="https://www.youtube.com/embed/a8tngtNgXl4" frameborder="0" allowfullscreen></iframe>) @was supposed to make it work, but this no longer seems to be the case. Can you help please?

    A few months ago, I followed Bob Bringhurst's steps in his iPad DPS tips app. And was able to embed the link to a YouTube video in an ID DPS.
    But now I can't even paste the code from YouTube onto the ID page. I get an error message that the video requires the Flash Player.

  • Hi. I recently got a new computer and transferred all my files across using TimeMachine. Whenever I try to sign into any CC program (including CC) the program instantly shuts down and an Apple error message comes up. I have uninstalled and reinstalled CC

    Hi. I recently got a new computer and transferred all my files across using TimeMachine. Whenever I try to sign into any CC program (including CC) the program instantly shuts down and an Apple error message comes up. I have uninstalled and reinstalled CC twice with no avail and deleted every Adobe product on my computer and nothing is working.

    I have seen similar discussions before... transferring does not work, you must install
    Discussions of RE-installing
    -http://forums.adobe.com/thread/1408331?tstart=0
    -http://forums.adobe.com/thread/1398961?tstart=0
    -and http://helpx.adobe.com/creative-cloud/help/install-apps.html
    -using the cleaner after uninstalling and before reinstalling will usually help
    -http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • My itunes will not open at all. it occasionally will open but when i plug my iphone into it the program freezes and crashes. please help as soon as possible

    my itunes will not open at all. it occasionally will open but when i plug my iphone into it the program freezes and crashes. please help as soon as possible

    i think i might have a solution... i have windows vista and after i installed to latest itunes update everytime i tried to open it it would freeze. I tried everything, including uninstalling itunes and all of its components and reinstalled it numerous times. So i went to the itunes folder in my folders, not on itunes, and i deleted my itunes library and playlists. After that it worked just fine, all of my music was deleted but luckily i had my files saved elsewhere.
    I hope this helped! I know its frustrating and APPLE/ITUNES NEED TO FIX THE PROBLEM!!!!

  • Including one program into another

    I have a big java program and it contains lot of data declarations. I want to have all these declarations in another java program and include that program into my main prorgram. How do i do it??
    Please help me out in this.
    Thanks in advance...

    iconabhi wrote:
    Well,Can i create another java program and put all the declarations in that program and then include this program in the main program which uses the data declarations?Your usage of the term "java program" is unclear at best. What do you mean? Are you talking about a class?
    What kind of declarations are that? Can you give us an example and tell us aproximately how many there are of those?
    If you don't provide more details your question can only be answered by guesswork and thus the answers won't be of much use to you.
    Also, if you find a few minutes, you might want to read http://www.catb.org/~esr/faqs/smart-questions.html
    regards

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • How can I set up lightroom 5 in my macbook, so that it becomes my default editing program, so that it starts up when I insert my sd card into the mac

    How can I set up lightroom 5, so that it becomes my main / default editing program & that when I insert my sd card into the mac lightroom starts instead of iPhoto .

    Thanks.  Im new to apple, which preference?
    Sent from my iPhone

Maybe you are looking for

  • Just upgraded to iTunes 10.4 - Now I can't drag files from iTunes to Garageband

    Has anyone else experienced this problem? I do a podcast and keep my bed music, sfx and whatnot in iTunes. When I need something I just drag it from iTunes and into GarageBand (4.1.2). I upgraded iTunes last night (10.4) and now it no longer allows m

  • Sent mail does not show up in Sent (airplane) mailbox

    My dad just got his first Mac. He depends on (massive amounts of) email for his work, and used Outlook on his old laptop. Switched to Mac and is using Mail.app now. All his old email is now imported (with O2M) and mostly looks fine. Except any email

  • How to run .EXE files from Linux Portal page?

    We have an IIS web server that runs a Photoshow_player.exe slide show program. I'm not sure if this can run from Linux Portal, but we are trying. The link in an IIS web page looks like this: <a> href="file:///\\mulsrv22\share\PCS\PhotoshowPlayer.exe"

  • Hi Unable to find where the dat is getting populated in web-dynpro

    Hi Everyone, I am quite new to web-dynpro,I sincere apology if this doesn't make sense. when I login into portal I see two selection options , a) Create a Material b) View pending approval materials. Now I am looking at the DC, there are two DC , a)P

  • Hold Switch is being wonky

    Hi-- I own a 5G video iPod and my hold switch stopped working last week. Any suggestions?