How to updated all program in one way

Hi All,
I have 3000 list of programs and i want to insert one(same) function module  in every programs so is there any way through which i can insert it instead of hard coading?
Because there is no sence to edit 3000 program.
Please Help me.

Hi Pradeep,
First create Z table or local file where your will store all program name then create new program with below logic
1) Fetch report name into internal table say it_program
2) Loop on it_program into wa_program
2.1) READ REPORT wa_program INTO it_code . Check sy-subrc. IF 0 then go ahead with next step else CONTINUE.
2.2) Add your logic to insert new FM. Update program line to table it_code.
2.3) INSERT REPORT wa_program FROM it_abapcode.
Endloop.
I think you will face challenge in writing logic which would insert new line of code. All 3000 program will have different logic and different structure. I think you can loop on it_program and check for START-OF-SELECTION or END-OF-SELECTION. You can add your new FM just after start-of-selection or just before end-of-selection.
Let me know if you need more help.. 
Regards,
Jigar Thakkar.

Similar Messages

  • Our service provider add one digit to all nos. After I update all contacts using one of available programs, contacts are updated but messages received appear with pure phone nos not contact name??any fix

    Our service provider add one digit to all nos. After I update all contacts using one of available programs, contacts are updated but messages received appear with pure phone nos not contact name??any fix

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • How to update all condition records at a time with some percentage or some

    Dear Sir,
    In PRD system we have more than 600 condtion records.
    Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
    How to update all records at a time
    With regards
    Lakshmikanth

    Hi,
    Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
    For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
    For more information about LSMW plz go to following link :
    [LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
    [Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
    BDC
    [BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
    [BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
    But it would be better for you to please contact to your ABAPer for BDC programming.
    Cheers...

  • How to print all columns in one page

    Hi,
    Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
    Can anyone explain me  how to print ALL COLUMNS IN ONE PAGE  .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
    Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
    Edited by: kotha123 on Oct 11, 2010 5:58 PM

    Hi,
    Your best bet is to use a workbook template or else Excel to pdf option...Thanks

  • How to divide all textFrames in one-character-per-textFrame?

    Hello:
    How to divide all textFrames in one-character-per-textFrame?
    Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".
    Help, please.

    Hi Paul, try this one
    #target Illustrator
    //  script.name = splitSelectedFramesIntoWords2.0.jsx;
    //  script.description = splits selected texFrames into separate words;
    //  script.required = select point text textFrames before running;
    //  script.parent = CarlosCanto;  // 10/14/11
    //  script.elegant = false;
    var idoc = app.activeDocument;
    var sel = idoc.selection; // get selection
    var selCount = sel.length; // count items
    var tFrames = []; // to hold the textFrames
    for (j=selCount ; j>0 ; j--) // loop thru selection & get textFrames backwards
                        tFrames[j-1] = sel[j-1];
    for (k = 0 ; k<tFrames.length ; k++) // loop thru textFrames
                        var xpos = tFrames[k].position[0]; // get x
                        var ypos = tFrames[k].position[1]; // get y
                        var words = tFrames[k].contents.split(/\s/g); // get all words into an array
                        //$.writeln(words);
                        var space = tFrames[k].duplicate(); // dup to get width of a space
                        space.contents = " ";
                        var sw = space.width;
                        space.contents = words[0]; // replace space with first word
                        var w = space.width;
                        var wordCount = words.length; // count words
                        for (i=1; i<wordCount ; i++) // loop thru words
                                            xpos2 = xpos+w+sw; // next words position = previous word pos+width+space
                                            var iword = space.duplicate(); // duplicate previous word
                                            iword.contents = words[i]; // add next word
                                            iword.position = [xpos2,ypos]; // position the character = original position + new width
                                            w = iword.width; // get words width
                                            xpos = iword.position[0]; // get words position
                        tFrames[k].remove(); // remove textFrame

  • How to delete all mails with one klick?

    It's annoying to delete every single mail.
    How to delete all mails with one klick, like in the paperbasket?
    Thanks

    If the emails have been previously deleted (I.e. in the trash folder), tap Edit at the top of the list. You should see a delete all button at the bottom. If the messages are in a standard folder, they need to be handled one at a time.

  • How to transfer all materials from one plant to other plants?

    How to transfer all materials from one plant to other plants?

    Hi
    To transfer stock in one step  between plants belonging to same company code use movement type "301" and using transaction code "MIGO". IF you like in two step it helps to monitor stock in transit use movement type "303" and "305".
    303 Transfer posting plant to plant in two steps - removal from storage
    305 Transfer posting plant to plant in two steps - placement in storage
    to transfer stock between plants of diffrent company code go for stock transpor order using tcode "me21n"
    hope it helps

  • How can update two rows in one query?

    How can update two rows in one query?
    Edited by: OracleM on May 4, 2009 12:16 AM

    What do you mean with "two rows"? May be two columns??
    If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
    UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to update many documents in one go using portal permissions

    Hello,
    I have two users in the portal with different permissions on a folder:
    rct2774: Total control
    rct3343: Read
    So, connected to the portal, rct3343 can´t upload (or erase) any document.
    Now, I´ve followed these instructions to update many documents in one go (found in "how to upload a folder containg HTML files in a KM folder" topic 22 - jun - 2006)
    "You can use the WebDaV.
    1. Get the WebDav path of your KM folder by going to details->properties->Access Links
    2. Copy the url for the WebDav
    3. Go to your desktop. Right Click on My Network Places.
    click on open.
    4. Click on add a network place.
    5. Click on "Choose another network location"
    6. Paste your copied url and click on next.
    7. Enter your portal userid and password. Now drag and drop your files from desktop. "
    But, updating this way both users (rct2774 and rct3343) can update, download and erase any document that belongs to that location.
    Do you know a way to update many documents in one go respecting or keeping the portal permissions?
    Thanks in advance.
    Best Regards,
    Esteban

    Hi Marc,
    First of all, thaks for your prompt reply. I´m new in these themes and any help is wellcome.
    We are doing many tests now, so we´re using the server portal as repository in itself. It´s quite strange because the permissions work at the portal correctly but not by the other way.
    Should I download the portal drive to the client PC for mantain the portal permissions?
    Thank you!

  • How to add all photos in one Album

    Hi,
    I bought iMovie yesterday and I have albums in photos application. I want to add all photos in one album to iMovie.
    Thanks
    Best Regards

    They can only be added one at a time, a bit annoying but that's the way.
    Add photos
    With your project open, scroll the project timeline so that the playhead (the red vertical line) appears over the location where you want to add the photo; you can move the photo later if you want.
    If the playhead is resting over a video clip, the photo is added before or after the end of the clip closest to the playhead.
    Tap the Media Library button , and then tap the Photos button at the bottom of the screen.
    Tap Camera Roll, Photo Library, or an album, and then tap the photo you want to add.
    To preview a photo before adding it, tap and hold the photo in the Photo browser until it appears in the pop-up viewer.
    The added photo appears for a duration of 3 to 6 seconds, depending on the length of the transitions that appear before and after the photo, but you canchange this duration.
    A Ken Burns effect is also applied to the image, which means the camera appears to sweep across and zoom in on the photo. You can adjust this effect. Go to Edit a photo to learn how.
    You can ask Apple to fix this in the next update:
    http://www.apple.com/feedback/imovie_ios.html

  • How to update multiple rows in one query using php

    i am new to this can any one help me how to update multiple rows at a time i am doing an school attendance page

    Often the situation is such that you have multiple courses across a range of dates.So students may take more than one course, and you need to track attendance for each course date. The following graphic demonstrates this:
    In such a situation, you need four database tables as follows:
    students (student_id, student_name, etc.)
    courses (course_id, course_name, etc.)
    students_courses (student_id, course_id)
    attendance (student_id, course_id, dater)
    A fifth table may also be needed to define the dates of courses, but you may also be able to build this array programmatically by using PHP's robust date functions, which can give you, for instance, all the Tuesdays and Thursdays between a start date and end date.
    The students_courses table simply keeps track of which students are taking which courses, so it has just two columns for the primary keys of both of the main tables. The attendance table is similar, but it also includes a date field. The following view of the attendance table demonstrates this:
    So if David's solution does cover your needs, consider yourself lucky, because this could quickly grow from a beginner-appropriate project to a moderately advanced one.

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • Update all podcasts with one click

    How do I update all podcasts with the new iTunes?

    That's 3 clicks.  Alternatively you can left click on list then click the refresh button in the bottom right hand corner of the screen, but that is also not one click.  It seems the goal of the geniuses behind iTunes 11's interface was to make every action go from 1 mouse click to 2, thus making the software slower and more cumbersome to use.
    Is it really too much to ask to have a global refresh button in the podcast view in addition to the list view?  Apparently so.  Oh, and why did they disable the sidebar by default?  Without it, you'll never guess what happens.  Oh you did?  Yup it takes 2 clicks to switch from music to podcasts instead of one.

  • How to update all projects data (checkout-edit-save&publish-checkin)?

    Hi every one,
    we have more that 400 projects in pwa and it will take too much time to update status date for all of them one by one mounthly
    so I'm looking for a solution (probably VBA) for opening all projects and set the status date to a specified value and save & publish then check-in all of them.
    is there any way to get it done?
    thanks for any help

    You can build a user form in VBA
    I made one that has 12 text boxes with project names. It is used to open and close and republish projects to current date as status date but you could just as easily set that date to something specific.
    Dim controlplanname
    If TextBox1.TextLength <> 0 Then
        controlplanname = "<>\" & Trim(TextBox1.Text)
        FileOpenEx Name:=controlplanname, ReadOnly:=False
        Macro Name:="AfterAcceptControlPlanUpdates_Close"
    End If
    Sub abAfterAcceptControlPlanUpdates_Close()
    ' this is a first attempt at a one button macro
    ' after countless control plans are opened from the web
        'DisplayAlerts = False
        Alerts False
            Call WriteProjectDeadlineToFinalMilestone
            LevelingClear All:=True
            UpdateProject All:=True, UpdateDate:=Now, Action:=2
            Application.RepublishAssignments False, pjPublishScopeAll, False, True, True, ""
            fnWait (2)
            UpdateProjectToWeb EmbedProjectFile:=True
            'MailSendProjectMail MessageType:="TeamPublishAll", Subject:="Publish New and Changed Assignments", Body:="Below are the latest schedule changes. Contact your project manager if there are any problems with the changes.",
    ShowDialog:=False, PublishScope:=1
        Alerts True
        fnWait (2)
       'DisplayAlerts = True
        FileClose pjSave
    End Sub
    So you could build a looping construct that finds out the status date of projects and if it is below a certain threshold then call the Sub.
    It is important to also be aware that this sub will overwrite and not process the updates the resources have submitted.
    My use case is accept all updates from PWA, All those projects open themselves. Then I apply the Sub. Then I have a list of Projects that have not been modified recently. And call the Sub separately on those via the custom form, and just let it run.

  • How to update all pages on my website at once with CSS

    Hi everyone,
    Ive designed a site using CSS (Thanks to others on the forum..:) and have a column on the right of the homepage for latest news...rather than having to update 30+ pages one by one possibly each week....how can I make changes to my homepage and this in turn updates all pages...
    When creating the site I always used "Save all" I'm still working on the homepage but then realized once I rename that to the 30+ others and change content on each etc.....any changes will have to be made one by one...
    I am not using an external style sheet....
    I only want to change a few lines on the latest news section and have it display on all pages - site wide...
    Can anyone help me with this...?
    Thanks in advance...:)
    James

    I am not using an external style sheet....
    Why the heck not?  It's so much simpler to maintain site wide styles with one style sheet instead of many.
    Dreamweaver, Linking HTML to External Style Sheets
    As bregent says, CSS is not going to help you with HTML content.  If your site is already built without the aid of Server-Side Includes or DW Templates, another option is Library Items.
    Adobe Dreamweaver * Working with library items
    Nancy O.

Maybe you are looking for

  • MacBook screen randomly gets very dark

    My MacBook is from 2007, so it is old and has its problems. I am currently in college and use my iPad primarily for school work. Thank God I got this iPad a few weeks ago because I did not know my computer would have such a huge problem!  When I turn

  • HR Payroll ALV Report

    Dear experts, i have one zreport which shows the Payroll of employee, I m getting the out put of Single Employe only how can i get all user list employee payroll, Selection screen is GET PERNR My Code which i need to pass all employee NUmber is CALL

  • Sorting photos manually in events

    I have all my events sorted 'manually' and want to have my photos in each event set the same way, so I can change the order of them instead of sticking with the order iPhoto puts them in. However when I am in an event and try to sort photos 'manually

  • Managed System Configuration - PI7.1 system solman_setup

    HI all, In trying to execute the step "Managed System Configuration" for a PI7.1 system in Solution Manager SOLMAN_SETUP, in the first step to "maintain the connection", its failing immediately with: Error when opening an RFC connection Establish con

  • Help with tools in the toolbox.....

    Hi, I am having trouble on a local level with the DateTimePicker. I want to know how to, in code,  initialize it and how to set it to the current date and time at any given point. On a global level, I need a source to find  these things myself. Can a