SAP LVM PCA Custom Scripts

Hi, We are planning to use LVM for PCA for post refresh scripts. Is there any option within Tcode STC01 to modify the task "SAP_BASIS_COPY_INITIAL_CONFIG" to include our custom scripts like Unix scripts or else.
Thanks,
Soma Natarajan

Hi Soma,
Yes, you can!
For details, see here:
ABAP post-copy automation
Regards,
Dieter

Similar Messages

  • SAP LVM Automation

    We have a monthly maintenance window where we patch and reboot all of our SAP instances running on Windows both physical and virtual.
    I was checking out SAP LVM 2.0 to see how I could automate the stopping of SAP and rebooting of the servers.
    I have created a server reboot script and can execute it from operations tab with no problems.
    When I setup an automated task the only options I have is to stop/start/restart SAP.
    How can I add my server reboot script as an automation task?
    I'm hoping I can setup an automations task to run at a scheduled time where I can stop all my instances, reboot the servers and then start them back up at a scheduled time.
    Thanks
    Jay

    Hi Christof,
    In the meantime I was able to fetch the data from the Custom Hooks.LVM is designed to readt teh response of the cistom hooks. Just you have to be consiuos on the parameters you are using in this hooks to get the response. Follow the SAP note 1396981 - Custom Services Configuration for ACC 7.3/SAP LVM to understand the key words and how to use it.
    For example,
    the SAPHOSTAGENT configure file should contain the parameters like:
    Mode: Sync
    ResultConverter: hook
    This will make your hook to get the details back to LVM. And in the Script make sure the output somehow mention the keywords (Like RESULT).
    For example; Output= System running fine
    then in echo you have to mention the result;
    echo [RESULT]:%output%
    Then the LVM will be able to interpret it as result and shows you in execution log of this script. And somehow you say that if teh script didn't ran correctly and the output should be error.So, somehow you have to add in the echo or output read by the LVM logs the key word. Something like:
    echo [ERROR]:Error occurred while rebooting the server.
    Here [ERROR] is the key word and your LVM will understand it and in the logs it writes this as log and your the task will go into error. In this way you will be sure whether script executed correctly.
    Regards,
    Amandeep

  • How to fetch Signature in to my custom script configured in qc02 from DSAL

    Hi All,
    In my requirement I need to get the signature from DSAL tcode for a particular material(may be BULK or FINISHED) while executing QC22 tcode.I already got the remaining data in to the form like QALS-KTEXTMAT , QALS-CHARG,MCH1-VFDAT and MCH1-HSDAT
    by writing subroutine pool program in my script.Only thing left is need to fetch Digital Signature(signature for a material who certifies).
    Help me if anyone knows.Thanks in advance.
    Regrads,
    Satya.

    Hi Satya,
    Implement USER EXIT to link the signature to your custom script.
    Refer following link it may be useful...
    http://wiki.sdn.sap.com/wiki/display/SAPMDM/E-SIGNATUREforMaintenancePlants-MasterData(ECC6.0)
    Regards,
    Surya.

  • How to fetch data into my custom script configured in qc02 transaction

    Hi All,
    I configured the custom SAP-Script in place of standard script name in QC02 tcode.In my requirement when I execute QC22
    transaction the custom script will be triggered along with some data based on material number,batch number and plant.I need to fetch QALS-KTEXTMAT , QALS-CHARG, MCH1-HSDAT and MCH1-VFDAT.Please help me how to fetch this data.Any Enahancement need to use or any spot is there Please specify.
    Thanks in advance.
    Regards,
    Satya.
    Edited by: satyareddygade on Sep 8, 2011 2:13 PM

    Hi Satya,
    Try like this in your Script window text element.
    /: PERFORM FETCH_KTEXTMAT IN PROGRAM <Z Subroutine Pool program>                                                                               
    /: USING &QALS-PRUEFLOS&                                                                               
    /: CHANGING &GV_KTEXTMAT&                                                                               
    /: ENDPERFORM
    in Z Subroutine Pool program
    FORM fetch_ktextmat TABLES  intab  STRUCTURE itcsy
                                outtab STRUCTURE itcsy.
      DATA:
        lv_prueflos TYPE qals-prueflos,
        lv_ktextmat TYPE qals-ktextmat.
    *---Get Inspection Lot Number
      READ TABLE intab WITH KEY 'QALS-PRUEFLOS'.
      CHECK sy-subrc = 0.
      lv_prueflos = intab-value.
      SELECT SINGLE ktextmat FROM qals INTO lv_ktextmat WHERE prueflos EQ lv_prueflos.
      outtab-value = lv_ktextmat.
      MODIFY outtab FROM outtab TRANSPORTING value WHERE
      name = 'GV_KTEXTMAT'.
      CLEAR : intab,outtab.
    ENDFORM.                    "FETCH_KTEXTMAT
    /: PERFORM FETCH_HSDAT IN PROGRAM <Z Subroutine Pool program>    
    /: USING &*VBDPL-MATNR&
    /: USING &VBDPL-CHARG&
    /: CHANGING &GV_HSDAT&
    FORM fetch_hsdat TABLES  intab  STRUCTURE itcsy
                                outtab STRUCTURE itcsy.
      DATA:
        lv_matnr TYPE vbdpl-matnr,
        lv_charg TYPE vbdpl-charg,
        lv_hsdat TYPE mch1-hsdat.
    *---Get Material Number
      READ TABLE intab WITH KEY '*VBDPL-MATNR'.
      CHECK sy-subrc = 0.
      lv_matnr = intab-value.
    *---Get Batch Number
      READ TABLE intab WITH KEY 'VBDPL-CHARG'.
      CHECK sy-subrc = 0.
      lv_charg = intab-value.
      SELECT SINGLE hsdat FROM mch1 INTO lv_hsdat WHERE matnr EQ lv_matnr
                                                    AND charg EQ lv_charg.
      outtab-value = lv_hsdat.
      MODIFY outtab FROM outtab TRANSPORTING value WHERE
      name = 'GV_HSDAT'.
      CLEAR : intab,outtab.
    ENDFORM.                    "FETCH_HSDAT
    Use the following program symbols where you want to print.
    &GV_KTEXTMAT& &QALS-CHARG& &GV_HSDAT& and &MCH1-VFDAT&
    Regards,
    Surya.

  • Default the SAPscript name as custom script name in ME6F selction screen

    In the standard transaction ME6F , I have developed a custom SAPscript , z_meldruk.
    Now , the requirement is that while running the ME6F transaction instead of standard script MELDURK , the custom script Z_MELDRUK should come as default value in the selection screen.....
    how can i achieve this , since enhancement options are not available in the report program of ME6F transaction....
    pls advise....

    Hi,
    this is customizing. Ask functional consultanr or search SAP online documentation.
    Regards,
    Clemens

  • SAP LVM SETUP ON WINDOWS SERVER 2012

      Hi Experts
            How to do the SAP LVM SETUP on windows server 2012. If Any One Knows Please Let Mme Know.
    Regards
    suresh

    Can you elaborate on the question a bit? You're asking how we setup LVM on a Windows Server, but that depends a lot on what the server is for.
    Maybe you can clarify your question and I can assist.
    Best,
    Nathan

  • Issue with FDMEE custom script

    Hi All,
    I have written a custom script in FDMEE which pulls data from Oracle DB and writes it to a file in FDMEE App Inbox folder. This script is working perfectly in FDM where in I see file getting generated in Inbox folder. But, when I try to execute the same script in FDMEE, it is not working even though it is not giving any error.
    All I changed in the script is API syntax which is specific to FDMEE. Can any one please let me know what is that I am missing here..I am using this script to test FDMEE connectivity to DB.
    Below is the script:
    Sub TEST_MAPS()
    'Oracle Hyperion FDM Custom Script:
    'Purpose:      
    'Variable Declaration
    Dim SQLRes
    Dim objfso
    Dim strFile
    Dim strLoadFile
    Const ForReading = 1
    Const ForWriting = 2
    Const adVarChar = 200
    Const MaxCharacters = 255
    Const adFldIsNullable = 32
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    'Connect to Oracle database
    cnss.open "Provider=ORAOLEDB.ORACLE;Data Source=ds1;User ID=app;Password=xxxx"
    SQLRes = "Select * from ENTITY_MAP"
    'command for executing the query
    cnss. Execute SQLRes
    'Creates a .tra file in the below mentioned path
    strFile= fdmAPI.API.DataWindow.Connection.PstrDirInbox & "\Entity.tra"
    rs.open SQLRes,cnSS
    'Copy data from table to text file
    'Initialize the object for opening a text file for writing
    Set objfso = CreateObject("Scripting.FileSystemObject")
    Set objWFile = objfso.OpenTextFile(strFile, ForWriting,True)
    'Loop
    With rs
    'Open the file for writing, overwriting if it exists
      Do While Not .EOF
          objWFile.Write .GetString(2,,",",vbCrLf)' Write the records to file
      Loop
      'End If
    .Close
    End With
    End Sub
    Below is the log:
    2015-02-24 15:41:38,991 INFO  [AIF]: FDMEE Process Start, Process ID: 13,949
    2015-02-24 15:41:38,991 INFO  [AIF]: FDMEE Logging Level: 5
    2015-02-24 15:41:38,991 INFO  [AIF]: FDMEE Log File: \\app\FDMEEData\HFMCA\\outbox\logs\HFMCA_13949.log
    2015-02-24 15:41:38,991 INFO  [AIF]: User:502376825
    2015-02-24 15:41:38,991 INFO  [AIF]: Location:null (Partitionkey:null)
    2015-02-24 15:41:38,991 INFO  [AIF]: Period Name:null (Period Key:null)
    2015-02-24 15:41:38,991 INFO  [AIF]: Category Name:null (Category key:null)
    2015-02-24 15:41:38,991 INFO  [AIF]: Rule Name:TEST_MAPS (Rule ID:10,162)
    2015-02-24 15:41:41,003 INFO  [AIF]: Jython Version: 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
    [Oracle JRockit(R) (Oracle Corporation)]
    2015-02-24 15:41:41,003 INFO  [AIF]: Java Platform: java1.6.0_37
    2015-02-24 15:41:41,003 INFO  [AIF]: Log File Encoding: US-ASCII
    2015-02-24 15:41:41,440 DEBUG [AIF]: CommProcess.executeCustomScript - START
    2015-02-24 15:41:41,440 DEBUG [AIF]: customScriptName: TEST_MAPS.vbs
    2015-02-24 15:41:41,456 DEBUG [AIF]:
        INSERT INTO AIF_PROCESS_DETAILS (
          PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,TARGET_TABLE_NAME
          ,EXECUTION_START_TIME
          ,EXECUTION_END_TIME
          ,RECORDS_PROCESSED
          ,STATUS
          ,LAST_UPDATED_BY
          ,LAST_UPDATE_DATE
        ) VALUES (
          13949
          ,'PROCESS_CUSTOM_SCRIPT'
          ,NULL
          ,'TEST_MAPS.vbs'
          ,NULL
          ,NULL
          ,CURRENT_TIMESTAMP
          ,NULL
          ,NULL
          ,'RUNNING'
          ,'458790678'      ,CURRENT_TIMESTAMP
    2015-02-24 15:41:41,487 DEBUG [AIF]: Comm.doScriptInit - START
    2015-02-24 15:41:41,768 DEBUG [AIF]: fdmContext: {BATCHSCRIPTDIR=E:\Oracle\Middleware\user_projects\app\FinancialDataQuality, SCRIPTFILE=TEST_MAPS.vbs, INBOXDIR=\\app\FDMEEData\HFMCA\\inbox, TARGETAPPDB=NA, TARGETAPPNAME=HFMCA, APPID=57, RULENAME=TEST_MAPS, OUTBOXDIR=\\app\FDMEEData\HFMCA\\outbox, SCRIPTSDIR=\\app\FDMEEData\HFMCA\\data\scripts, EPMORACLEHOME=E:\Oracle\Middleware\EPMSystem11R1, RULEID=10162, EPMORACLEINSTANCEHOME=E:\Oracle\Middleware\user_projects\app, LOADID=13949}
    2015-02-24 15:41:41,768 DEBUG [AIF]: The EpmOracleHome is set to: E:\Oracle\Middleware\EPMSystem11R1
    2015-02-24 15:41:41,768 DEBUG [AIF]: The EpmOracleInstance is set to: E:\Oracle\Middleware\user_projects\app
    2015-02-24 15:41:41,768 DEBUG [AIF]: The JavaHome is set to: %EPM_ORACLE_HOME%/../jdk160_35
    2015-02-24 15:41:41,768 DEBUG [AIF]: The executeEventScript is set to: YES
    2015-02-24 15:41:41,768 DEBUG [AIF]: The OleDatabaseProvider is set to: ORAOLEDB.ORACLE
    2015-02-24 15:41:41,768 DEBUG [AIF]: The AppRootFolder is set to: \\app\FDMEEData\HFMCA\
    2015-02-24 15:41:41,768 DEBUG [AIF]: Comm.doScriptInit - END
    2015-02-24 15:41:41,768 DEBUG [AIF]: Comm.executeCustomScript - START
    2015-02-24 15:41:41,799 DEBUG [AIF]: Comm.executeVBScript - START
    2015-02-24 15:41:41,799 DEBUG [AIF]: The WindowsTempFolder is set to: c:\users\r00257~1\appdata\local\temp
    2015-02-24 15:41:41,799 INFO  [AIF]: Executing the following script: \\app\FDMEEData\HFMCA\\data\scripts\custom\TEST_MAPS.vbs
    2015-02-24 15:41:41,799 DEBUG [AIF]: The command to be executed is:
    cscript \\app\FDMEEData\HFMCA\\data\scripts\custom\TEST_MAPS.vbs "13949" "****" "E%3A%5COracle%5CMiddleware%5Cuser_projects%5Capp" "%25EPM_ORACLE_HOME%25%2F..%2Fjdk160_35" "ORAOLEDB.ORACLE"
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    2015-02-24 15:41:41,939 DEBUG [AIF]: Comm.executeVBScript - END
    2015-02-24 15:41:41,939 DEBUG [AIF]: Comm.executeCustomScript - END
    2015-02-24 15:41:41,939 DEBUG [AIF]:
        UPDATE AIF_PROCESS_DETAILS
        SET STATUS = 'SUCCESS'
        ,RECORDS_PROCESSED = CASE
          WHEN RECORDS_PROCESSED IS NULL THEN 0
          ELSE RECORDS_PROCESSED
        END + NULL
        ,EXECUTION_END_TIME = CURRENT_TIMESTAMP
        ,LAST_UPDATED_BY = CASE
          WHEN ('502376825' IS NULL) THEN LAST_UPDATED_BY
          ELSE '502376825'
        END
        ,LAST_UPDATE_DATE = CURRENT_TIMESTAMP
        WHERE PROCESS_ID = 13949
        AND ENTITY_TYPE = 'PROCESS_CUSTOM_SCRIPT'
        AND ENTITY_NAME = 'TEST_MAPS.vbs'
    2015-02-24 15:41:41,939 DEBUG [AIF]: CommProcess.executeCustomScript - END

    Hi,
    If you're using CUE, there is a step called "Dial By Extension Menu", this should solve your problem.
    If you're using UCCX (or CUE and don't have this step) you can do the following:
    In the Get Digit String branch Timeout, use an If statement that check if the Number entered was "1" then Call Redirect to Technical Departement Number, else Call Redirect to Operator Extension.
    It should appear like this:
    Extension = Get Digit String
    Timeout
        if (Extension == "1")
            True
                Call Redirect to Technical
            False
                Call Redirect to Operator
    Hope This Helps,

  • Custom Script using Classifications

    Hi.
    I am wondering if it is possible and how I would go about using custom scripts to use classifications to display particular things.
    This is the goal:
    To classify events (back end) and then based on the classification of an event, on the detail page (front end) it will trigger the display of a different web form that was created for that event classification.
    This is because I have 3 different types of events that I want to display on my calendar but each need thier own booking form.
    Any help would be awesome, I have no idea where to even start with this one.
    Thanks in advance.
    K

    Hi Kristen,
    The only way to do that would be to crate a content holder for each category. Then, place different forms inside those content holders and then insert those content holders into event details when you're creating an event. This means you need to remove the booking form from the detail layout.
    Cheers,
    -mario

  • How to use a custom script in a batch process?

    I was recently told that I can Photomerge, crop and save 2 separate folders of images to a 3rd folder in a batch process if I created a custom Javascript.  Are there any examples of how to integrate a custom script as an action in a batch process?

    if you recieve an image from mms you can save the object to gallery and then select it as wallpaper
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • Possible to set shortcut for file scripts custom script ?

    i have some custom scripts in file > scripts. i'd like to set a shortcut key for them, but you can't do that thru edit > keyboard shortcuts because the custom ones don't show up, only "other script F12" shows up.
    is there a way to set a shortcut to execute a custom script? i am using Ai CS3 version 13.0.2
    some work arounds i tried that didn't seem to work:
    - setting the script as an action - didn't work, the script does a bunch of stuff that can't be solved by actions
    - setting an action and inserting a menu item, then setting a shortcut to run the action - doesn't help because menu item (the script) gets disassocated from the action every time you shut down Ai. sometimes it disassociates itself. tried to save the actions and reload them, but the scripts were still disassociated
    thanks

    As it sounds like you have already discovered, you should be able to define an Action with but one InsertMenuCommand step in it. That menu command would be the selection of your script from the File Menu.
    However, that functionality has been broken for four full versions now. The Menu Command step goes vacant after quitting and re-launching Illustrator.
    I keep an Action in my Actions palette titled CurrentScript. I can at least, at the beginning of a work session in which I know I will need to call a particular script repeatedly, re-do the Insert Menu Item step and have it survive during the work session. (It will, of course, be gone if I quit & relauch.)
    If Actions could reliably call scripts from the File menu, one could do some very cool things. Many operations in the standard UI are not available via the scripting model, and of course vice-versa. Simply being able to reliably call scripts as individual steps of an Action would open the door for elaborate automations that perform both scripted functions and those available in the UI.
    But alas, users have been complaining about this bug for four versions now.
    I think it is conceivable that one could build a Javascript that employs the ScriptUI functionality, and have that script run automatically at launch. That script could simply be a "dashboard" palette from which to call other scripts. But one should not have to go to such ridiculous lengths to work around a bug that has gone unaddressed for so long.
    JET

  • Custom scripts not working in Illustrator CC (2014)

    A couple of custom scripts that are part of my workflow don't work in the new CC; MultiExporter.jsx and Sprite CSS Generator.jsx.
    When I try to run either a titled modal window comes up as if the script is running but the actual window is only a couple of pixels tall and can't be re-sized;
    They both worked fine in CC. My grasp of javascript is pretty basic but is there code that needs to be changed to update these to work with the current version?
    Thanks!
    Bob

    It looks like this might have been a system issue or conflict of some sort; I uninstalled AI CC2013 and AI CC2014 as well clearing out all prefs and artifact files and folders. Then did a fresh install of CC2014 an was able to use all my legacy scripts with no problem.

  • SAP Query on Custom Infotypes

    Dear friends,
       Is it possible to generate SAP Query on Custom Infotypes.
       As I am trying them and while creating Infogroup on my custom Infotype fields, It is not getting generated.
       Could you please suggest how to proceed.
    Thanks in Advance,
    Regards,
    Satya.

    hi,
    I think its not possible to fetch custom infotype fields using SAP Query....ask your abap consultant to write a simple report...that wil do....

  • Can I create a custom-scripted dynamic stamp in Acrobat Standard or do I have to buy Acrobat Pro?

    I am researching options for the company I work for to take it's invoicing system paperless and I need to know if I can create a custom-scripted dynamic stamp in Acrobat Standard or is that possible only in Acrobat Pro?

    You can create a custom dynamic stamp in Std. and Pro. and you can use the dynamic stamp in Reader as well. Here is an infographic on Creating a Custom Dynamic Stamp in Acrobat XI.

  • How to use  or call component in custom script expression

    i want to use component in custom script expression .(custom script expression is located at :
    when yow will click on one of the steps in criteria workflow
    1)there is a tag named as event on clicking the event tag,there are two buttons named edit and clear on clicking edit.there is a screen having custom as a tag,on clicking that tag there is written custom script expression, here i hav to write a code to include a component).

    you can define code in a component (a service or an IDOC Include) that you can then call from the workflow "custom" tab.
    So if your component has an include like this:
    <@dynamichtml myInclude@>
    <$do Some Stuff$>
    <@end@>
    Then in your workflow step event "custom" tab you can write:
    <$include myInclude$>
    The workflow event will then execute the <$do Some Stuff$> line.
    With a service, you would define the service in your component then call <$executeService("MYService")$> in the step event custom code.
    You cannot define includes or services in the custom script tab for workflow.

Maybe you are looking for

  • How many years we can store the data in ODS as well as psa data ?

    Hi guru's how many years we can store the data in ODS? can u give particular years ? how many days we can store the data in psa ? could u tell me step by step procedure ? Thanks Reddy prabha

  • PA40 - using BDC

    Hi All, I'm having a problem creating a BDC interface for PA40. When selecting the personnel actions, I need to use the page down button which is ok code '=P+'. For some reason this doesn't seem to work. Any ideas why? Is there some way around this b

  • HT4993 How do I know if my Iphone has water damage?

    I dropped my iphone in the toilet tonight but it seems to be fine do I just keep using it?

  • Port Replicator compatible with Windows 8.1

    Does anyone know if HP has a port replicator that is compatible with Windows 8.1?  I have found that there may be one for Windows 8 but not 8.1.

  • How to award points for a topic I did not begin....

    i have received an excellent reply which solved a problem. I joined the discussion part way through. I would like to award points to the contributor who solved my problem but can not see how i do this. Can you only award points if you start the threa