Macro not working

Hello friends,
    I have written a program by using macro "rp_read_all_time_ity" . But when i execute this program
no records were fetched from this macro.
    I have also tested this macro in another program where it is already used and in that program it works fine.
    Can any body give me solution for this.
Thanks
Unmesh
Edited by: UNMESH DESHPANDE on Sep 11, 2008 11:27 AM
<Has nothing to do with ABAP Objects - moved to ABAP General. Please choose your forums more carefully in future>
Edited by: Mike Pokraka on Sep 11, 2008 11:34 PM

FYI
Usage:
Only in PNP database reports under GET PERNR, because the personnel number for which data is being read comes from field PERNR-PERNR, while the field being used is PNP-SW-AUTH-SKIPPED-RECORD.
(RP_READ_ALL_TIME_ITY beg end)
   DATA: BEGDA LIKE P2001-BEGDA, ENDDA LIKE P2001-ENDDA.
   INFOTYPES:  0000, 0001, 0002, ...
                     2001 MODE N, 2002 MODE N, ...
     GET PERNR.
   BEGDA = '19900101'. ENDDA = '19900131'.
   RP_READ_ALL_TIME_ITY BEGDA ENDDA.
   IF PNP-SW-AUTH-SKIPPED-RECORD NE '0'.
      WRITE: / 'Authorization for time data missing'.
      WRITE: / 'for personnel number', PERNR-PERNR. REJECT.
   ENDIF.
Remarks
This RMAC module can be used when, for example, the time infotypes were originally defined in MODE N. This was done because the time data (from LOW-DATE to HIGH-DATE) might not all have fitted into the buffer. Now, however, they are read with shorter intervals (for example, in RPCALCx0 with payroll periods).
-Due to the large amount of data in HR, the infotypes 2000 u2013 2999 should not be read when GET PERNR occurs. Therefore, these infotypes are declared with the enhancement MODE N.
-As a result, the infotype tables under GET PERNR are not filled. The time infotype tables are filled subsequently using the macro RP_READ_ALL_TIME_ITY, but only for the time interval specified by PN-BEGDA and PN-ENDDA.
http://help.sap.com/saphelp_45b/helpdata/en/60/d8bb88576311d189270000e8322f96/content.htm
^Saquib

Similar Messages

  • WinHelp, Windows 8 and Ultrabook - macros not working

    Our products are generated for WinHelp 2000 using RH9 for Word
    The user has symptoms typical of macros not working. This has normally been caused by the user not properly doing the step described in the Knowledgebase article at http://support.microsoft.com/kb/917607 regarding " How to enable macros on a single computer after you install the WinHlp32.exe"
    I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine. I have also verified that the user's machine has the correct registry settings, so it looks like Windows 8 is not the culprit. That leaves the Ultrabook
    This combination of Windows 8 and Ultrabook is quite new and I am hoping someone using WinHelp 2000 has already run into it.
    Please let me know if so.
    Thanks

    David
    On rereading this, I am not sure I follow.
    You say "I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine."
    So on your machine it is OK but not on that of a user who has an Ultrabook, is that the case? If so, I'm not sure how to help as it is machine specific. Are you 100% sure they downloaded the right viewer and installed it with admin rights?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Macro not working for Word.

    My macro is not working for Microsoft word. Its showing some macro settings issue. Please help.

    Hi,
    The macro you mean is Macro Recoder, isn't it? As far as I know, this product may be not compatible with Windows 8.1. I found the link below show its system requirements:
    http://www.jitbit.com/docs/macrorecorder/index.htm
    In addition, it would be better to contact Macro Recoder support for further assistance:
    http://www.jitbit.com/support/
    Roger Lu
    TechNet Community Support

  • Macro not working in BEx Analyzer

    Can you please explain why my Macro is not working?
    We're on BI 7 with Excel 2007. I have done the following:
    1) Open Workbook from BEx Analyzer and the result display on the worksheet. The was inserted in C10 and therefore, the result was display from C10 onwards.
    2) I have created a Macro with the following code:
    Sub Macro1()
    ' Macro1 Macro
        Range("C5").Select
        With Selection.Interior
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
            .Color = 65535
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
    End Sub
    3) When click to run the Macro manually, I can see the color of C5 is changed.
    4) Now I have include this Marcro in Workbook Setting ->Exits tab, Run Macro on Refresh. Here I enter my Marco name.
    5) In Workbook Setting ->General tab, I also set the Refresh Workbook on Open option.
    6) I have also set the Trust Center setting: select Trust access to the VBA project and Enable all macros.
    7) Then I save the Workbook.
    8) when I re-open the Workbook, the color of C5 is not change!!!
    Can you please help.

    Aglukas,
    Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
    1) Run workbook, the query result display on the screen.
    2) In Excel 2007, I click on Developer tab ->Macro.
    3) Enter Macro name (Macro1) and click on Create button.
    4) I have VB editor open with following:
    Sub Macro1()
    End Sub
    5) So added the following code to Macro routine in VBA Module:
    Sub Macro1()
    With ThisWorkbook.Sheets("Sheet1")
    Stop
    .Activate
    .Cells(15, 1).Interior.Color = RGB(220, 254, 250)
    End With
    End Sub
    6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
    When I run/refresh the workbook, I didn't get into debug mode at all!!!
    What is wrong in above steps?
    Please advice, thanks.

  • Macro not working in BEx Analyzer (Refresh selection Screen)

    Hi All,
    We have migrated work book for 3.x to 7.x and work book having lot of macros calculated and using multiple quires in single work books for inpt selection screen written Macro same macro is not working after Migration to 7.x
    7.X Macro code below..
    Sub BW_Prod_Year_Summary()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E9")
    End Sub
    Sub BW_Prod_Year_Summary_Period()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G9")
    End Sub
    Sub BW_Query_for_YTD_and_Monthly_View()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J9")
    End Sub
    Sub BW_Prod_Perform_prev_month()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M9")
    End Sub
    Sub BW_Prod_Perform_prev_month_Detail()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P9")
    End Sub
    Sub BW_3_Months_Volume_Comparison()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S9")
    End Sub
    Sub BW_Query_for_Current_RE()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E40")
    End Sub
    Sub BW_Query_for_Previous_RE()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G40")
    End Sub
    Sub BW_Query_for_Business_Plan_this_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J40")
    End Sub
    Sub BW_Query_for_Actuals_last_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M40")
    End Sub
    Sub BW_Query_for_Forecast_next_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P40")
    End Sub
    Sub BW_Query_for_Forecast_Accuracy()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S40")
    End Sub
    Sub BW_PDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E132")
    End Sub
    Sub BW_SDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G132")
    End Sub
    Sub BW_TDQ()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J132")
    End Sub
    Sub BW_SSDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M132")
    End Sub
    Sub BW_DDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P132")
    End Sub
    Sub BW_Blocked_Stock()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E195")
    End Sub
    Sub BW_Age_of_Stock()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G195")
    End Sub
    Sub BW_Historical_WOS()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J195")
    End Sub
    Sub BW_Current_WOS()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M195")
    End Sub
    Sub BW_Current_WOS_Details()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P195")
    End Sub
    Sub BW_Historical_STO()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E243")
    End Sub
    Sub BW_Future_STO()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G243")
    End Sub
    Sub BW_Product_Groups()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J243")
    End Sub
    Please help me on this..!!
    Thanks
    Prakash

    Aglukas,
    Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
    1) Run workbook, the query result display on the screen.
    2) In Excel 2007, I click on Developer tab ->Macro.
    3) Enter Macro name (Macro1) and click on Create button.
    4) I have VB editor open with following:
    Sub Macro1()
    End Sub
    5) So added the following code to Macro routine in VBA Module:
    Sub Macro1()
    With ThisWorkbook.Sheets("Sheet1")
    Stop
    .Activate
    .Cells(15, 1).Interior.Color = RGB(220, 254, 250)
    End With
    End Sub
    6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
    When I run/refresh the workbook, I didn't get into debug mode at all!!!
    What is wrong in above steps?
    Please advice, thanks.

  • Alt + Tab macro not working for Sculpt Comfort Mouse in Windows 8.1

    Hi,
    I cant get a macro working in Keyboard and Mouse Centre for the Alt+Tab action. I've created the macro previously on windows 7 and all fine, but will not work on 8.1
    Alt(press) delay(10ms) Tab delay(10ms) Alt(release) 
    I have a sculpt comfort mouse, though I don't think that is a culprit, as the macro itself does not work.
    Alt+tab works fine on the keyboard, no problems at all.
    Please help as this is spoiling my interactions with my OS, which I use almost all day most days.
    Thanks,
    Paul

    Hi,
    The macro you mean is Macro Recoder, isn't it? As far as I know, this product may be not compatible with Windows 8.1. I found the link below show its system requirements:
    http://www.jitbit.com/docs/macrorecorder/index.htm
    In addition, it would be better to contact Macro Recoder support for further assistance:
    http://www.jitbit.com/support/
    Roger Lu
    TechNet Community Support

  • Incopy: Text Macros not working from machine to machine, same template

    Hello there - Merry Christmas!
    This is my first post as I have exhausted my troubleshooting on an issue within Incopy CS4, version 6.06, Text Macro's.
    I have a template that is shared by all users on similar windows XP machines. I could go into more detail if needed here but here's the problem in a nutshell:
    I have a nested style, added as a text macro in Incopy, that goes something like this:
    USER NAME >>>> SHIFT+ENTER
    [email protected]
    Screenshots and further explanation below.
    I add this as a text macros, keep text attributes, apply a key combo and I'm off. Or so I think.
    When I apply the style in the same shared template on one machine - which for all intensive purposes looks the same as another machine (setup, application, fonts), applying the text macro gives the correct style (in layout mode), no missing fonts.
    However, on another machine, the macro is applied, go into layout view and it shows the text with the "missing" font pink highlight indicator.
    If I apply the style without the macro, the style works in layout mode - no missing font.
    I have checked all the settings in Incopy and made sure they are the same on both machines, I have reinstalled the application (InCopy), and uninstalled and reinstalled all fonts on both machines to ensure they are identical.
    I have no idea at this point why on one machine the text macros works and on another it does not.
    Any insight would be so truly appreciated!
    Cheers & Thank you.

    Since you have allowed all macros, the problem appears to be that the macros are not available.
    I noticed in your screencast that the screentip for one of the macros read Normal.NewMacros.Indent. That indicates that the macro should be found in your default template Normal.dotm. For another, the screentip was Project.NewMacros.Bold or something like
    that. That makes me suspect the macro is NOT in Normal.dotm
    From Word, press Alt+F11 to activate the Visual Basic Editor.
    You'll see the Project Explorer on the left hand side. In the screenshot above, you see that my Normal template has one module, named basCode. The macros in this module are globally available in Word.
    Check whether you can find macros in your Normal template, under Modules. Double-click a module to see its contents.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Checkbox macros not working in Microsoft Word 2003

    Using Visual Basic Editor, I made an Employee Performance Review form that automatically calculates an employee's total score as check boxes are checked. Everything worked perfectly when I made it, but since saving and closing the program, the check boxes
    no longer work. They only show up as pictures - not as working check boxes that can be clicked. They don't even have a "properties" option. The document was saved as a "Word 2007 Macro-enabled Document" and the security settings on my computer
    are set to "Medium" so that Word asks me if I want to enable macros when the document is opened. Regardless of whether or not I click "enable" or "do not enable," the check boxes won't work. I made another quick document with
    check boxes to see if it had the same problem and it does as well. As soon as the document is saved, closed, and re-opened, the check boxes are deactivated. What am I doing wrong?

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, this issue is related to Word DEV, I recommend you post it question to the MSDN forum for Word
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Macros not working in adobe reader touch???

    Is it possible to have a document with working macros which update figures in a .pdf file in adobe reader touch on windows 8 rt???

    I don't recognise the word "macro" as applied to PDF. What exactly does the file have? Embedded JavaScript?

  • Macros not working in word 10

    HI there - i'm not a IT pro but fairly savvy small biz owner -- my sharp son is in IT but didn't know - i have a bunch of short macros made for simple tasks with icons on the toolbar, after I set them up and use them once, the next boot up gives me the same
    error message - I'
    i've done all the macro settings properly as far as I can see - so i made this short screen capture
    Hi there – can u listen and help here? thx!
    http://screencast.com/t/uTyjYOw85X2
     macro security settings
    http://screencast.com/t/K24PCg6q
    This message can appear if:
    ·The macro was deleted from the template.
    ·The template was not loaded or referenced in the
    Templates and Add-ins command.
    ·The macro was turned off by the macro security settings of your system.
    If the macro security settings are not allowing the macro to run, you should confirm the origin of the macro to be sure that it can be trusted (contact the developer
    or the source for the macro). You can then temporarily enable all macros by using the following procedure.
    Click the
    File tab, click Options, click Trust Center, and then click
    Trust Center settings.
    Click
    Macro Settings.
    Under
    Macro Settings, click Enable all macros.
    NOTE: Be sure to change this option back to its original setting after
    you have run the macro.
    If the macro is not accessible because the template is not loaded, click the
    File tab, click Options, and then click
    Add-Ins. At the bottom of the Add-Ins pane, select
    Templates from the Manage drop down list, and then click
    Go. In the Templates and Add-ins dialog box, click either
    Attach or Add. If the macro is not in the template, you may need to copy the macro from one template to another. Click the
    Organizer button at the bottom of the Templates and Add-ins dialog box to start the
    Organizer utility.

    Since you have allowed all macros, the problem appears to be that the macros are not available.
    I noticed in your screencast that the screentip for one of the macros read Normal.NewMacros.Indent. That indicates that the macro should be found in your default template Normal.dotm. For another, the screentip was Project.NewMacros.Bold or something like
    that. That makes me suspect the macro is NOT in Normal.dotm
    From Word, press Alt+F11 to activate the Visual Basic Editor.
    You'll see the Project Explorer on the left hand side. In the screenshot above, you see that my Normal template has one module, named basCode. The macros in this module are globally available in Word.
    Check whether you can find macros in your Normal template, under Modules. Double-click a module to see its contents.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Macro error with BI Publisher Add-In: exd removal not working

    I'm running into the 'macro not found' error as of today with the Oracle BI publisher desktop add-in for Word. Using Word 2007...everything worked fine yesterday, computer did an update overnight.
    I tried the old methods of closing Word, locating .exd files on my hard drive, renaming them, and then restarting Word. Still running into the same issues. Has anyone else started to experience this today?
    exd files are being generated after the above process to AppData\Local\temp\vbe (2 files: MSComctLib.exd and MSForms.exd)

    Hi I was also running with exact problem, and running on this issue for 1.5 days with all regular work around.
    However below steps resolved my issue.
    1. Uninstalled the old version of BI.
    2. Taken latest version Oracle BI Publisher Desktop via OTN (http://otn.oracle.com/ ) which is 11.1.1.6 [ I took 32 bit version as my MS Word  is 32 bit version].
    3. Renamed the *.EXD %USERPROFILE%\Local Settings\Temp\VBE as *.EXD_OLD
    4. Installed the latest version of BI Publisher Desktop, in admin mode.
    With out any other work around its working.
    Thanks!
    P.Ranish
    Edited by: user781215 on Aug 23, 2012 6:27 AM

  • Macros in AW5 spreadsheets do not work in AW6

    I have just upgraded from a G3 iMac to a G5. Macros in spreadsheets prepared in AW5 running on OS 9.2 (classic mode behind OS 10.1.5) in the G3 iMac are inoperative in AW6. I installed OS 9 in the G5 using the CD that came with it, and transferred the AW 5 files from my old computer to the G5, which is running OS 10.4.2. That didn't help; the files still open in AW6 without operational macros.
    I believe that the option to startup in OS 9 no longer exists as it did in OS 10.1.5. I presume that I can trash AW6 and leave only AW5 installed, but that seems drastic. If I install OS 9.2 in the G5 from the CD that I have, is there some way to start the G5 in OS 9.2 and then get to my spreadsheets via AW5?
    Thanks for your help.

    Welcome to Apple Discussions Murray
    Macros are not supported by OS X. Macros do work in AppleWorks 6 in OS 8/9 or Classic. Even in these versions, your AppleWorks 5 macros would not work, you would have to re-do them. I am assuming that the only copy of AppleWorks 6 you have is the one that came on your G5 iMac. This installation does not have the component to run in Classic. So, you will need to either run AppleWorks 5 in Classic (which works well) or find/write AppleScript solutions for your macros.
    Peggy

  • Reg-Alert Macro-Day's supply not working

    Hi,
        We are using Data base alert macros for day's supply of SNP.But it seems macros are not working.Planning book day's supply key figures value not refelcting in alert monitor(amon1).
    our setting is 0-30 days-Information;
                         31-50-Warning;
                         above 51-Error
    Thanks&Regards
    Venkadesh

    Hi Venkadesh,
    I think you put your indicator upside down.
    0 to 30 should be error and avobe 51 information.
    Another comments: to check if the macro is working: after running it, in interactive or background, check table /SAPAPO/AM_ALERT to see if you can see the alert or not.
    If you can see the alert in the table but not in the profile, then the issue is your profile; if you can't see your alert in the table neither, then the issue is the alert creation in the macro...
    I hope it helps
    Julien

  • SourceParty macro on Send port is not working

    Hi 
    I am receiving an EDI file and Generating 999 message from Party configuration,I have created another send port to send the 999 message,While sending the 999 file i have used %SourceParty% macro,But it is not working.
    I have seen the SourcePartyId is not promoted (But added to Context).
    Could you please help us in this.

    Hi Ammu,
    Get the context property and its corresponding macro names correct.
    For accessing BTS.SourcePartyId from context, use %SourcePartyID% -This will give the source part ID-GUID
    For accessing BTS.SourceParty from context, use %SourceParty% - This will give the source party name
    For macros they don’t need to be promoted, existence as the context property in the message should be sufficient.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Excel Macro Solutions not working after Citrix update

    Very random question to see if anyone has experienced this. My team creates solutions for users to use with legacy systems to process work. The solutions are created in VB and deployed to keyboard shortcuts for users. Recently the company went to a citrix
    environment. The last couple updates to citrix has caused issues for users where it looks like everything is working but nothing happens. Upon further investigation some references are missing but even when added back the solutions will not work. Ultimately
    the users Citrix profile has a reset done and they reload all the solutions to make them work. Has anybody run across this before and might have any ideas what is causing it.  Nobody on my team (developers) has had this issue only end users. Neither the
    team or help desk have been able to pin down the root cause. 

    Hi ddorsey,
    As this is not about the Excel application itself, I would recommend that you report this problem to Citrix. Let them confirm if any settings have any effect on Excel application.
    They've provide various support channels for customers:
    http://www.citrix.com/support.html
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Import a .swf 3D animation in Java

    Dear all, I would like to import an .swf 3D animation, which was built in Adobe Flash. Is it possible? Is any way to tranform this in Java like type? I have read about the JavaSWF2, I have downloaded some samples, but I cannot transform a .swf 3D ani

  • How do you start the Brochure "getting started" piece?

    I'm sure it's obvious to the folks that use this software how to use this download, but can't see anything that indicates how. Yes, I downloaded the files and they went into my download folder on my MacPro, I then decided to move them to another more

  • Generate new p_id ?

    Hi, Is it possible to generate a new p_id value from plsql (Ideally created as part of a page import process)? We have a large APEX report - that we want to modify the exported page source to globally update some values. In addition to the update, we

  • Error: AppHangB1 on CS1 v.8.0

    I've been using this product for a few years and only a few months ago I re-installed it on Windows 7 and a few days ago I closed it and it stopped working right when it says "Scanning for Plug-Ins".  I haven't changed anything with the product.  Whi

  • WCS and Guest account / limited usage web authentication

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in