Automatically add code to a Z_ABAP Source

Hi Gurus
I'd like to know, if there is any possibility to add some ABAP statements to the source code of some customer programs?
I want to add in every Z-Program after the START-OF-SELECTION part a Function, that read some Information about the Using of the program into an Z-Table automatically.
Is there a concept for this issue? Somthing like snote, it also maintain the source code automatically, but I think this transaction just overwrite the old source with the new one.
Or can I get the source code of the ABAP programs out of an table and insert there the new statements?
Thank you very much for your help.
Kind Regards
Boris

Thank you Andrew.
That could be a possible solution for my issue.
I have an additional question:
Do you know, if the sap-programs can also be processed without any proofs?
Normally you need an Sap key to open this objects for changes. Is Read Report and Insert Report checked on sap programs? Or isn't this included in the security concept of Sap.
Greetings
Boris

Similar Messages

  • Where do I add code from an external source for forms?

    I created a form on Jotform and it generated code to be placed on my site. Where is the code for my site so that I can paste it in? Is it better to embed or just paste it?

    Found it. Object-Insert HTML

  • [Solved] How to: Automatically add Semicolons at end of line

    Q. Is it possible to set JDeveloper to automatically add Semicolons to the end of a line of code?
    A. "While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon." [Solved] How to: Automatically add Semicolons at end of line
    Original Message:
    I'm spoiled from using Basic and similar programming languages, adding semicolons manually is something that'll take me time to get used to
    Thanks in advance,
    Abdulla
    Tags (for search engines):
    Jdeveloper automatic semicolon
    Message was edited by:
    Abdulla

    While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon.

  • (Bold 9900 - BBOS 7.1) Is there a way to automatically add reminder alert when flagging a message for follow-up?

    I love the feature in Outlook that lets me flag a message for follow-up and automatically adds a default reminder at the end of the day. Is this something I can configure my Blackberry 9900 to do (running 7.1)?
    As far as I can tell, when I flag something for follow-up, it adds a flag but does NOT add any reminder alerts. If I want to do that, I then need to manually add the reminder and set it (which is a little cumbersome).

    I guess timed message is on the wish list
    However in all my forms I use following scenario to validate all data entry at one time and then submit...
    I use regular button and add code in Click event
    JS example.....
    var errorFlag = 0;
    var errorMsg = "";
    if (validation expression 1) {
         //true/pass
         //no need to change following values
         errorFlag = errorFlag;
         errorMsg = errorMsg;
    }else {
        //false/fail
       //set the flag and message accordingly
        errorFlag = errorFlag + 1;
        errorMsg = errorMsg + "validation message1" + "\n"; //\n for new line with in the message
    if (validation expression 2) {
         //true/pass
         //no need to change following values
         errorFlag = errorFlag;
         errorMsg = errorMsg;
    }else {
        //false/fail
       //set the flag and message accordingly
        errorFlag = errorFlag + 1;
        errorMsg = errorMsg + "validation message2" + "\n"; //\n for new line with in the message
    //finally
    if (errorFlag > 0) {
        //>0 indicates there are one or more errors
        xfa.host.message(""+errorMsg);//display all messages at one time
        exit; //now since there are validation errors you can stop processing further and exit the event
    //add submit code......here....

  • No way to add code snippets to the palette in 11g

    Hello,
    According to the Help Center, I should be able to add "codes snippets" to my palette, like I used in 10g...
    Adding a Code Snippet to the Palette
    You can add pages to the Component Palette to group your snippets, or you can add snippets to the existing Code Snippets page. Once you add snippets to the Palette, you can insert this code into any file you have open in the source editor by selecting the snippet from the Palette
    within the Configure Component Palette dialog. In the Configure Component Palette dialog, for Page Type select snippet to view only those pages containing snippets.
    Well , in the Page Type drop list , I only see "java" and "use case" ?
    I am running J2EE Edition Version 11.1.1.0.1 Build JDEVADF_MAIN.BOXER_GENERIC_081203.1854.5188
    Any thoughts ?
    Cheers

    If all you want is code snippet why not use the code template feature?
    It is more dynamic and will allow you to use variables that you can switch - then you can just use the keyboard to get the value.
    See:
    http://www.oracle.com/technology/obe/obe11jdev/11/ide/introjdevide.htm#t4s1
    http://adfjsf.blogspot.com/2009/09/creating-code-templates-in-jdeveloper.html

  • Automatically add pages to LiveCycle form

    Does anyone know how to automatically add a page in a pdf form. I have created a 2 page pdf in LiveCycle Design ES 8.1 and on the second page there is a huge simple text field. What I want is...if the user has used the required space in the text field then I want LiveCycle to automatically create the second page on another page with that field so the user can continue. Is that possible? If so how? if you need code, what is it? Please HELP!!!!!!!!

    There is an example of doing just that. Look at the samples that are shipped with the Designer. Here is where they are on my machine:
    C:\Program Files\Adobe\LiveCycle Designer ES\8.2\EN\Samples\Forms\Purchase Order\Dynamic Interactive
    You will not have the 8.2 folder but something similar. Have a look at the comments field. It does exactly what you ask. Note that they layout will not change until you leave the field.

  • Should I automatically add 'x86_64' to my PKGBUILDs?

    Hi,
    i got a question: Should i automatically add x86_64 to my PKGBUILDs or not? I'm only running 32bit.
    My default behaviour always was to not add it and wait until somebody sends me a comment like "hi, it's running fine on x86_64, please add..." or "hi, you need to blablabla to get this running on x86_64" and then i would normally drop the package with a comment that i'm unable to maintain 64bit packages.
    Now, recently i got a comment for one of my packages like "hi, fix your shit, x86_64 is so common these day".
    So what's your opinion/Is there a default policy that i've overlooked? Should i stick to my old behaviour not adding x86_64 by default at the risk of annoying users and making things more complicated (comment ping-pong) or should i just add it and assume it'll be okay? Is there any guide/article which mentions potential problems with building 64bit packages, so that i can asses if there might occur problems or not?

    @Masuto
    I am one of the people who asked you to add x86_64 to pkgbuilds, more specifically - petri-foo && ebumeter - which both compile fine and work on x86_64. Which is exactly the reason i asked you to add x86_64. ie: i use both of those packages, almost daily on my 64bit system and didn't ask you to add x86_64 without first making sure they worked okay. Also, even if their was a (later) problem of x86_64 version not compiling - the problem would be reported upstream to the developer, as a problem like that should be reported upstream, rather than expecting the packager to have to fix the developers the code.
    I'd also like to point something out here; I did not make any demands, nor did i say this;
    masuto wrote:hi, fix your shit, x86_64 is so common these day
    Now here is actually what i said;
    triplesquarednine wrote:
    *please* fix your pkgbuild;
    ==> ERROR: ebumeter is not available for the 'x86_64' architecture.
    Note that many packages may need a line added to their PKGBUILD
    such as arch=('x86_64').
    64bit CPUs are pretty much standard these days, so you should have x86_64 specified in there.
    cheerz
    I see a big difference in your interpretation of what i said vs. what was actually said;
    I politely asked you to fix your pkgbuild and 'cheerz' also indicates a salute / thanks / gratitude / appreciation... 
    Maybe i am wrong to assume you 'should' have x86_64, using the reasoning that 64bit CPUs dominate the market and are quite common place ~ but when both packages are working fine for 64bit and only require adding x86_64 to the arch=() in order for x86_64 users to use them - i can't imagine any reason to not add them.
    do we really need to have separate x86_64 pkgbuilds/AUR for either of those packages?
    food for thought.
    Last edited by triplesquarednine (2012-07-18 18:03:22)

  • Automatically add clear frames between keyframes?

    I have several movie symbols with a different bitmap in each keyframe. Since they move too fast to match the other symbols, I want to put clear frames between each keyframe. So far I have just been clicking each keyframe and hitting F5 several times but I thought there might be a better option.
    Is there a way to automatically add a number of frames between each keyframe?
    Thanks

    I think the OP doesn't mean empty keyframes (s)he just means to add frames. On my machine, at least, F5 just adds more frames, not an empty keyframe. So the flickering shouldn't be a concern here....
    If you are just getting into code tweening I would suggest looking into the TweenLite/Max classes from Green Sock instead of the built in ones.
    And Ned is correct, JSFL can automate many mundane tasks that you might perform in the authoring environment. I've only dabbled with it a bit, but it could easily do what you are asking. There might even already be some script out there that adds a certain number for frames at each keyframe in a layer or a timeline or some such.

  • Automatic Add UDO Document header & Lines Fields

    Hello.
    I have created a user defined table & also fields and then registered the UDO .
    Now i want to automatic add data in that registered UDO through Code .
    Is it possible to do this ?
    Thanks & Regards,
    Amit

    Hi Amit,
    Please see the following,
    SAPbobsCOM.CompanyService oCompanyService = null;
    SAPbobsCOM.GeneralService oGeneralService = null;
    SAPbobsCOM.GeneralData oGeneralData = null;
    SAPbobsCOM.GeneralDataCollection oChildren = null;
    SAPbobsCOM.GeneralData oChild = null;
    oCompanyService = oCompany.GetCompanyService();
    oGeneralService = oCompanyService.GetGeneralService("UDPOPDN");
    oGeneralData = ((SAPbobsCOM.GeneralData)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)));
    oGeneralData.SetProperty("U_DocEntry", GRPO);//收货单号
    oGeneralData.SetProperty("U_BaseEntry", dr["订单号"].ToString());//采购订单号
    oGeneralData.SetProperty("U_BaseLine", dr["行号"].ToString());//采购订单行号
    oGeneralData.SetProperty("U_CardCode", dr["客户编号"].ToString());//供应商编号
    oGeneralData.SetProperty("U_CardName", dr["客户名称"].ToString());//供应商名称
                                       oGeneralData.SetProperty("U_ItemCode", dr["物料编码"].ToString());//物料编号
    oGeneralData.SetProperty("U_CardCode", dr["物料描述"].ToString());//物料名称
    oGeneralData.SetProperty("U_Quantity", Convert.ToDouble(dr["入库重量"].ToString()));//入库重量
    oGeneralData.SetProperty("U_FreWeight", Convert.ToDouble(dr["免费重量"].ToString()));//免费重量
    //oGeneralData.SetProperty("U_TolWeight", Convert.ToDouble(dr["称重单位毛重"].ToString()));//称重单位毛重
    oGeneralData.SetProperty("U_TolWeight", Convert.ToDouble(dr["毛重"].ToString()));//毛重
    oGeneralData.SetProperty("U_Unit", Convert.ToDouble(dr["系数"].ToString()));//系数
    //oGeneralData.SetProperty("U_PurWeight", Convert.ToDouble(dr["采购单位毛重"].ToString()));//采购单位毛重
    oGeneralData.SetProperty("U_PacWeight", Convert.ToDouble(dr["包装"].ToString()));//包装
    oGeneralData.SetProperty("U_DedWeight", Convert.ToDouble(dr["扣重"].ToString()));//扣重
    oGeneralData.SetProperty("U_ScaleCode", globals_Renamed.gScaleCode);//磅秤编号
    oGeneralData.SetProperty("U_ScaleUser", globals_Renamed.gUserCode);//过磅员
    oChildren = oGeneralData.Child("U_DPPDN1");
    foreach (DataRow drLine in globals_Renamed.gOrderInfo.Tables[dr["行号"].ToString()].Rows)
    oChild = oChildren.Add();
    oChild.SetProperty("U_LineNum", drLine["序号"].ToString());
    oChild.SetProperty("U_Quantity", Convert.ToDouble(drLine["称重值"].ToString()));
    oChild.SetProperty("U_Package", Convert.ToDouble(drLine["包装物"].ToString()));
    oChild.SetProperty("U_ScaleTime", drLine["称重时间"].ToString());
    SAPbobsCOM.GeneralDataParams oGeneralParams = null;
    oGeneralParams = oGeneralService.Add(oGeneralData);
    Best regards
    Huan

  • Automatically add asset

    hi guys!
    i have a simple ques,
    Can the SAP automatically add asset when GRN is done in standard config? If can then how to do that?
    Thanks for your kindness.
    crimson.

    Hi,
    Option-1:
    Create PO with Account Assignment Category"U" and during GRN , you can change to "A" which  will post to Asset.
    Option-2:
    In FI Side you can post directly with T.Code: F-90.
    If helpful then reward.
    Regards,
    Biju K

  • Is there a way to automatically add another of the same page while a form is being filled?

    Is there a way to automatically add another of the same page while a form is being filled?
    I have a two-page form of which the second page is essentially a spreadsheet analog.  Often, there is need for for more lines than are available on the page.  Is there a way in which to add another or even multiple copies of the second page? 
    Thanks ahead...
    TG

    You can do that with a dynamic XFA form created in LiveCycle Designer, which comes with Acrobat Pro for Windows. For more information, you can ask over at the LiveCycle Designer forum.

  • I am using the pattern stamp tool. when i select my pattern it adds a hatching to teh source pattern and copies that hatching to the destination image

    I am using the pattern stamp tool. when i select my pattern it adds a hatching to the source pattern and copies that hatching to the destination image

    Please post screenshots to illustrate what you are talking about.

  • How can I bypass Automatically Add to iTunes?

    I have a large CD collection (>3000) that I've ripped to iTunes in ALAC format; I only listen to CD or better quality music, so I don't have any mp3 or AAC files in my iTunes library. I keep my music on an external hard drive. I recently bought a larger external hard drive and moved all of my music to that drive. For some reason, iTunes chose to put all of my music in a folder called "Automatically Add to iTunes". This was fine, except that I could no longer see the contents of the hard drive; however, I did know that the files were there, becasue of the disc space that they consumed.
    Today, I ripped two new CDs to the hard drive through iTunes and I noticed that iTunes placed the music folders for those CDs outside of the "Automatically Add to iTunes". I decded to drag the new folders into the "Automatically Add to iTunes" folder. When I did so, all of the previous music disappeared and I cannot recover it. Fortunately, I have a copy of Sentuni, so I'll be able to put the music back on the hard drive from my iPods, but this process will require several hours. In addition, ripping my CD collection to iTunes required a lot of time, so I'm not pleased with the "Automatically Add to iTunes" folder feature. Is there a way to disable this feature, so that I can simply put my music on my external drive and be able to see that the folders are there.
    I've been a devoted Apple customer for almost a decade, so I won't get too upset over this issue, but I wish that your developers would have addressed this issue during the development stage. Thanks for your attention to this problem.
    Best,
    Heath

    Heath Watts wrote:
    If only this were the case. I tried to move several albums into the "Automatically add to iTunes" folder, which resulted in thousands of albums being erased from the folder. One should be able to drag a music folder into the "Automatically add to iTunes" folder without iTunes erasing the original contents of the folder.
    It didn't erase anything.
    It automatically added them to iTUnes and moved them to the correct folder (Movies, Music, etc.) in the location shown in iTunes prefs > Advanced - iTunes media folder location.
    I would like to disable the "Automatically add to iTunes" feature in iTunes,
    You "disable" it by not putting anything into it. If you don't want to use it, don't use it.
    If you want to manually manage, do not put anything into this folder.
    Go to iTunes prefs > Advanced and uncheck Copy files to iTunes media folder when adding to library.
    Then File > Add to library adn select what you want to add to iTunes. Do NOT put anything into the Automatically add to iTunes folder
    and would like to be able to see the albums and artists on my external hard drive without having to do Spotlight searches
    You wouldn't have to do Spotlight searches anyway.
    The files are in /Music/Artist/Album folderin the location shown in iTunes prefs > Advanced - iTunes media folder location.
    Also, in iTunes, you can select a song, right click - Show in Finder.

  • Is there a way to automatically add text to video; the text gleaned from order data?

    is there a way to automatically add text to video; the text gleaned from order data?

    What is "order data"?

  • Add code to a button?

    Hi friends,
    [Apps R12]
    If I add a button to an OAF screen :
    I have no idea of how :
    - to add code when it's clicked... The idea would be to call a database procedure that receives,as parameters, certain values of that OAF screen and that returns, in an output parameter, a value to be posted in a screen field.
    Any example would be appreciated
    Thanks!
    Jose L.

    Hi
    Please first go through with OADEVGUIDE,u can download the same form meta link (Note.730053.1). and haave practice seesion with labsolutions excercise . please find a sample code below for the problem
    package oracle.apps.fnd.framework.toolbox.labsolutions.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import java.sql.CallableStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import java.util.Enumeration;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    * Controller for ...
    public class EmpSearchPGLayOutRNCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("clearclearButton")!=null)
    OADBTransaction txn = getDBTransaction();
    CallableStatement cs =
    txn.createCallableStatement("begin dbms_application_info.set_module(:1, :2);
    end;");
    try{
    cs.setString(1, module);
    cs.setString(2, action);
    cs.execute();
    cs.close();
    catch (SQLException e)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle); }
    }

Maybe you are looking for

  • Multiple G/Ls for account assigned Purchase orders

    Hi all, We are having a service order dependent PO wherein the account assignment category is service order and is automatically generated.. Now when we are going GR(MIGO), system is posting to only one G/L which is linked to the service order. I hav

  • How to exclude files within Packages?

    I'd like to exclude certain files (or directories) from Time Machine's backup, but these files are within a Package file. iWebSites is an application that manages multiple Domain files for iWeb. It does so by copying and moving a Domain file for each

  • Excessively large "Sound Mute" Notice on Toshiba 32RL900A

    Having owned the 32RL900A for a couple of years, I have become disenchanted with the large size and placement of the "Sound Mute" caption on screen. Whilst it is possible to turn the volume down so that it is inaudible and no notice is visible, this

  • Making use of 'obsolete' OLE container in Forms10g

    I have a column in a database table of type LONG RAW . This column was represented as an OLE Container - which in 10g is obsolete - in a form (Forms 6i). Trying to compile this form to Forms10g , I receive an error FRM-30454. Is it possible to retain

  • Crystal Reports 9 Runtimes

    Post Author: gdpower CA Forum: General Hi everybody! I'm using Crystal Reports 9 to deploy my reports. I'm havin a problem because i use Visual FoxPro 8 as external tool. I mean, i combine Cr and Vfp. But, i don't know which files are needed to view