Macro and codes
assign macro and view code command are disabled in excel 2007 how to fix it?
Any update?
As Keith said, without the detail information, we are lack of ability to support you on this case.
Try to use the different startup switches for Excel to check the result.
http://support.microsoft.com/kb/291288/en-us
Hope this helps.
Tony Chen
TechNet Community Support
Similar Messages
-
Hi Experts,
I want to assign the fields of a field symbol using a macro because the field names come from a table
the code look like this
DEFINE ASSIGN_VALUE.
&1-&2 = &3.
END-OF-DEFINITION.
ASSIGN_VALUE <RESULT_FIELDS> FIELDNAME FIELDVALUE.
Where FIELDNAME is a CHAR variable containing the name of the field
I get the following error:
E:The data object "<RESULT_FIELDS>" does not have a component called
"FIELDNAME".
The macro and the call to it are located in a method of a class ( end routine of a transformation in BW)
Thanks for your help
ThibaultHi
Welcome to SDN forum
See the doc of MACROS and do accordingly
Macros
If you want to reuse the same set of statements more than once in a program, you can include them in a macro. For example, this can be useful for long calculations or complex WRITE statements. You can only use a macro within the program in which it is defined, and it can only be called in lines of the program following its definition.
The following statement block defines a macro macro:
DEFINE makro.
statements
END-OF-DEFINITION.
You must specify complete statements between DEFINE and END-OF-DEFINITION. These statements can contain up to nine placeholders &1, &2,...., &9). You must define the macro before the point in the program at which you want to use it.
Macros do not belong to the definition part of the program. This means that the DEFINE statement block is not interpreted before the processing blocks in the program. At the same time, however, macros are not operational statements that are executed within a processing block at runtime. When the program is generated, macro definitions are not taken into account at the point at which they are defined. For this reason, they do not appear in the overview of the structure of processing logic.
A macro definition inserts a form of shortcut at any point in a program and can be used at any subsequent point in the program. As the programmer, you must ensure that the macro definition occurs in the program before the macro itself is used. Particular care is required if you use both macros and include programs, since not all include programs are included in the syntax check (exception: TOP include).
To use a macro, use the following form:
makro [p1 p2... p9].
When the program is generated, the system replaces the macro by the appropriate statements and the placeholders &1, &2, , &9 by the parameter p1, p2, , p9. You can use macros within macros. However, a macro cannot call itself.
REPORT demo_mod_tech_macros.
DATA: result TYPE i,
n1 TYPE i VALUE 5,
n2 TYPE i VALUE 6.
DEFINE operation.
result = &1 &2 &3.
output &1 &2 &3 result.
END-OF-DEFINITION.
DEFINE output.
write: / 'The result of &1 &2 &3 is', &4.
END-OF-DEFINITION.
operation 4 + 3.
operation 2 ** 7.
operation n2 - n1.
This produces the following output:
The result of 4 + 3 is 7
The result of 2 ** 7 is 128
The result of N2 - N1 is 1
In this example, the two macros operation and output are defined. output is nested in operation. operation is called three times with different parameters. Note how the placeholders &1, &2,... are replaced in the macros.
The following example shows that a macro definition only works in the program lines following its definition. Do not copy it!
Let us have a look at a program with a subroutine test:
PROGRAM macro_test.
FORM test.
WRITE '...'.
ENDFORM.
We can rewrite the program by introducing a macro macro:
PROGRAM macro_test.
FORM test.
DEFINE macro.
WRITE '...'.
ENDFORM.
END-OF-DEFINITION.
MACRO.
Inserting the macro changes nothing in the generated form of the program. Processing blocks - here a subroutine - are always indivisible. We could also write the program as follows:
PROGRAM macro_test.
DEFINE macro.
WRITE '...'.
ENDFORM.
END-OF-DEFINITION.
FORM test.
MACRO.
The most essential feature of a macro definition is that it should occur before the macro is used.
Macro in ABAP
Macro in ABAP
Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com
REPORT ZMACRO.
DATA: RESULT TYPE I,
N1 TYPE I VALUE 5,
N2 TYPE I VALUE 6.
DEFINE OPERATION.
RESULT = &1 &2 &3.
OUTPUT &1 &2 &3 RESULT.
END-OF-DEFINITION.
DEFINE OUTPUT.
WRITE: / 'The result of &1 &2 &3 is', &4.
END-OF-DEFINITION.
OPERATION 4 + 3.
OPERATION 2 ** 7.
OPERATION N2 - N1.
*-- End of Program
Regards
Anji -
Difference between Macros and subroutines
Hi experts can any one tell difference between macros and subroutines.
1) Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (Ive never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION
2) The macros, which we may use,
(stored in table TRMAC)
, we cannot debug that code.
3) where as in subroutine,
its a abap code, directly visile in
the editor,
and we can debug this code.
4) MACROS =>
Getting a feel of macros
The basic syntax of macros is as follows:
DEFINE macro_name. "Macro Definition
. Statements
. Statements
END-OF-DEFINITION. "Macro Definition
macro_name par1 par2 par9. "Macro call -parameters separated by spaces
Within the DEFINE... and END-OF-DEFINITION lies the body of the macrothe statements that you wish to be executed each time the macro is called. These statements may be any valid ABAP statements, such as WRITE, CLEAR, FORM calls, or database statements such as SELECT or UPDATE.
To familiarize yourself with the working of macros, it's necessary to take a close look at exactly what happens when an ABAP program containing a macro call is generated. Consider Listing A.
All ABAP programs must be generated before they can be executed. At the time of program generation, the system supplants each macro call, as shown in Listing A, with the statement(s) placed between the macro definition. Furthermore, the parameters passed at the time of macro calling are copied in place of the any placeholders (numbered &1, &2 &9) found in the body of the macro definition. The system simply ignores the presence of the macros during the execution of the programthat is, all statements are executed as a single block of code:
write : int1.
write : int2.
write : int3.
Other than readability and meaningfulness, macros also offer performance advantages. For testing purposes, I wrote a macro that incremented the value of a variable by 1 and called the macro N times via a DO loop, as shown here:
DEFINE INCREMENT.
ADD 1 TO &1.
END-OF-DEFINITION.
DO N TIMES.
INCREMENT VAR1.
ENDDO.
SUBROUTINES=>
Subroutines
You call subroutines from ABAP programs using the PERFORM statement.
Subroutines are introduced with the FORM statement and concluded with the ENDFORM statement.
You can define subroutines in any ABAP program. You can either call a subroutine that is part of the same program or an external subroutine, that is, one that belongs to a different program. If you call an internal subroutine, you can use global data to pass values between the main program and the subroutine. When you call an external subroutine, you must pass actual parameters from the main program to formal parameters in the subroutine.
*U Shud start rewarding helpfull answers*
amit -
Difference between macro and subroutine
what is the difference between macro and subroutine? i
need some example on macroHi,
<b>
Subroutines</b>
Subroutines are procedures that you can define in any ABAP program and also
call from any program. Subroutines are normally called internally, that is, they
contain sections of code or algorithms that are used frequently locally. If you want
a function to be reusable throughout the system, use a function module.
<b>Defining Subroutines</b>
A subroutine is a block of code introduced by FORM and concluded by ENDFORM.
FORM <subr> [USING ... [VALUE(]<pi>[)] [TYPE <t>|LIKE <f>]... ]
[CHANGING... [VALUE(]<pi>[)] [TYPE <t>|LIKE <f>]... ].
ENDFORM.
<subr> is the name of the subroutine. The optional additions USING and
CHANGING define the parameter interface. Like any other processing block,
subroutines cannot be nested. You should therefore place your subroutine
definitions at the end of the program, especially for executable programs (type 1).
In this way, you eliminate the risk of accidentally ending an event block in the
wrong place by inserting a FORM...ENDFORM block.
<b>Macros</b>
If you want to reuse the same set of statements more than once in a program, you can include
them in a macro. For example, this can be useful for long calculations or complex WRITE
statements. You can only use a macro within the program in which it is defined, and it can only
be called in lines of the program following its definition.
The following statement block defines a macro <macro>:
DEFINE <macro>.
<statements>
END-OF-DEFINITION.
You must specify complete statements between DEFINE and END-OF-DEFINITION. These
statements can contain up to nine placeholders (&1, &2, ..., &9). You must define the macro
before the point in the program at which you want to use it.
Macros do not belong to the definition part of the program. This means that the DEFINE...ENDOF-
DEFINITION block is not interpreted before the processing blocks in the program. At the
same time, however, macros are not operational statements that are executed within a
processing block at runtime. When the program is generated, macro definitions are not taken
into account at the point at which they are defined. For this reason, they do not appear in the
overview of the structure of ABAP programs [Page 44].
A macro definition inserts a form of shortcut at any point in a program and can be used at any
subsequent point in the program. As the programmer, you must ensure that the macro
definition occurs in the program before the macro itself is used. Particular care is required if you
use both macros and include programs, since not all include programs are included in the syntax
check (exception: TOP include).
To use a macro, use the following form:
<macro> [<p1> <p2> ... <p9>].
When the program is generated, the system replaces <macro> by the defined statements and
each placeholder &i by the parameter <pi>. You can use macros within macros. However, a
macro cannot call itself.
DATA: RESULT TYPE I,
N1 TYPE I VALUE 5,
N2 TYPE I VALUE 6.
DEFINE OPERATION.
RESULT = &1 &2 &3.
OUTPUT &1 &2 &3 RESULT.
END-OF-DEFINITION.
DEFINE OUTPUT.
WRITE: / 'The result of &1 &2 &3 is', &4.
END-OF-DEFINITION.
OPERATION 4 + 3.
OPERATION 2 ** 7.
OPERATION N2 - N1.
The produces the following output:
The result of 4 + 3 is 7
The result of 2 ** 7 is 128
The result of N2 - N1 is 1
Here, two macros, OPERATION and OUTPUT, are defined. OUTPUT is nested in
OPERATION. OPERATION is called three times with different parameters. Note
how the placeholders &1, &2, ... are replaced in the macros.
Rgds,
Prakash -
Can someone please help me re-install my Creative Design 5.5 on my Mac? My MacBook Pro recently crashed and had to have the hard drive replaced. The back up from Time Machine is not reinstalling the program. Since I have the download paid, and codes, I need direction on how to reinstall -- HELP?
Hi bodegakc,
If you have the serial number then please use the below mentioned link to download the product you are looking for .
CS5.5
Also before installing Please go to Applications-->Utilities--> Adobe installers and if there is any uninstaller for CS5.5 , you can remove it and do a fresh install.
You can also use creative cloud cleaner tool before installing.
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
Thanks
Nikhil Gupta -
I just purchase my first IMac with lion and I was trying to install a math program I bought 6 years ago. When I went to boot it off the disk while following the program instructions a window popped up with a note pad format with symbols and codes but the program would not download or open. How do I get this program to work? It is a mac compatible program by the way.
Your Mac probably does not know with which application to open the file and is opening a file with a text editor that really needs to be opened by the application itself. Try starting the application first, then use the File > open command to open the file.
As varjak paw comments, there isn't a "winmac" so that's not telling us anything.
Note that it is possible that software purchased 6 years ago may no longer run on your computer. Once we know what it is we can help more. -
Deletion of Release Group and Code in PO
Dear Consultant,
In Purchase order, we have created some release group and code, Unfortunately we deleted some groups Without deleting in Order wise.
In table level the Release Group is there but in SPRO Release Strategy settings its not there..My consultant advised again you have to create same release group in Release strategy...
If I create same Release Group which are lying in my T16FC Table..But system throwing this err "An entry already exists with the same key"
Could you suggest me.
Regards,
PRIYA.Hi,
Please go with below mention path: -
SPRO >> Materials Management >> Purchase Order >> Release Procedure for Purchase Orders >> Define Release Procedure for Purchase Orders >> Release Groups.
Here check release group is existing, if yes then remove them and click on save button.
Then try to create new service group.
Some times we delete release group and create new release group with same description without saving changes.Due to this this type of error is occur.
Regards, -
Hi all,
I am trying to open a document created in Excel in Windows on my Excel 2011 for mac copy. The issue seems to be related to using the Macros and VB associated with the .xlsm doc. The specific error I get in Excel is:
Compile error in hidden module: Utilities
When I try to open it in an Excel web app, or other online excel environment (whether using Firefox or Chrome) I get this message:
We can't show these features in the browser:
VBA Project
Shapes or other objects
few other forums suggested an issue with adobe add-ins, but I don't show one in the Excel>Tools>Addins dialogue.
Any help is greatly appreciated, thanks!The same error message will result from a problem in any add-ins ,thus you should investigate other installed add-ins. It is worth the effort to try to start your excel program in safe mode. About how to use safe mode in Mac OS, Please refer to :http://support.microsoft.com/kb/892428
If this issue is gone in this situation, try to disable add-ins in excel.
In addition, since this issue is related to Excel 2011 for Mac, I would suggest that you post your issue in the following forum:http://answers.microsoft.com/en-us/mac -
Facelets and code insight for XHTML
Hi,
what about support for facelets and code insight for xhtml?
Thanks,
Uros.Hi,
actually the templating mechanism is deployable in shared libraries, which means you should be able to reuse this outside of JDeveloper with the right libraries in place. The issue we found with Facelets is with the required binding references that we need for ADF to work in templates (though this is an Oracle specific problem for as long as JSR 227 isn't turned into a J2EE standard) .
Also, templates in JDeveloper 11 are referenced at runtime, which means they can be changed on the fly even after deployment and all pages will reflect them. Plus, you don't need to configure a new extension and filter to your JSF files/configuration making it more straight forward.
And yes, it can be deployed to other J2EE containers than Oracle- Not sure what the open source plans are, but I'll point someone from our Trinidad supporters to this thread to shed some light on what the Trinidad community has in the plans.
Your point for a common templating support is well taken (though I wished there would be something better than Facelets ;-) )
Frank -
Differences between SLIN and Code Inspector
Hi,
Can anyone tell me the differences between SLIN and Code Inspector(SCI)..?
and in which cases we use SLIN and SCI..?
and as an ABAPer, which one should we prefer..?
Thanks,
Pradeep.Hi
Extended syntax check or SLIN is used to check the program in all aspects for the different syntaxes like
When you use select single whether you have passed all the key fields or not>
whether you have maintained the text elements texts or not,
Have you used UNIT...CURRENCY along with the QTY and AMOUNT fields when displayed using the WRITE statement
and check for all the varities of statements used in the code, and if there is some problem with that statement/command, it will display as error or warning.
Check following links -
slin
can any one tell me abt SLIN T-CODE
Reward points if useful
Regards
Anji -
Data objects and code objects in oracle application
Hi,
can any one please help me out with following question?
1. what are data objects and code objects in oracle apps and why is that difference?
2. How does the objects gets created in Oracle Applications, like during the installation which part is responsible for creating objects and after the installtion later point of time, how the new objects gets created in oracle applications?
3. what are the ways to find out if my 11i application is OATM enabled ?
Thanks in advanceHello,
I managed to find answer for question 1, yet to find answer for 2 and 3.
Answer for question 1 --
Data objects : store and access business data (tables, indexes, sequences, index-organized tables, etc);
Code objects : process data objects but them don't contains business data (functions, procedures, packages, views, synonyms);
Now, here i have a question - under which objects queues are considered ? -
Differences between SSL and Code-Signing Certificates
Hello,
I unsuccessfully tried to use a SSL - certificate for signing an applet (converting from X.509 to PKCS12 prior to signing) and learned, that SSL certificates and code-signing certificates are different things (after seeking the web for ours). Can somebody point out some source of information about this topic ? What are these differences ? Can I convert my SSL certificate into a code-signing certificate ?
Things got even more confusing for me, since my first attempt with an wrongly converted SSL cetificate (I used my public and private key for conversion only, omitting the complete chain) at least worked partly: the certificate was accepted, but marked as coming from some untrustworthy organisation. After making a correct conversion (with the complete chain) the java plugin rejected the certificate completely ...
Ulfyep, looks like it.
keytool can be used with v3 x509 stores:
Using keytool, it is possible to display, import, and export X.509 v1, v2, and v3 certificates stored as files, and to generate new self-signed v1 certificates. For examples, see the "EXAMPLES" section of the keytool documentation ( for Solaris ) ( for Windows ).
jarsigner needs a keystore so I would assume public and private key pair.
you could list the keys from your store:
C:\temp>keytool -list -keystore serverkeys.key
Enter keystore password: storepass
Keystore type: jks
Keystore provider: SUN
Your keystore contains 2 entries
client, Jul 5, 2005, trustedCertEntry,
Certificate fingerprint (MD5): 13:50:77:64:94:36:2E:18:00:4B:90:65:D0:26:22:C8
server, Jul 5, 2005, keyEntry,
Certificate fingerprint (MD5): 20:90:49:6F:46:BA:AB:11:75:39:9F:6F:29:1F:AB:58
The server is the private key, this can be used with jarsigner (alias option).
C:\temp>jarsigner -keystore serverkeys.key -storepass storepass -keypass keypass
-signedjar sTest.jar test.jar client
jarsigner: Certificate chain not found for: client. client must reference a val
id KeyStore key entry containing a private key and corresponding public key cert
ificate chain.
C:\temp>jarsigner -keystore serverkeys.key -storepass storepass -keypass keypass
-signedjar sTest.jar test.jar server -
Standard Macro and Functional Module in HR -Programming.
Hi friends,
Could i know the difference between a standard macro and a function module in hr programming.
how do we have to use that and what are the different std macro's and functional modules used in HR-Programming...
Thanks in Advance..
Regards
ShivaYou will find the macros in table TRMAC .
Macros are set of pre defined instructions .
You can define your own macros in the program using 'definition' command or use standard macros.
you will find most of the HR function module starting with HR* or RH * .
You can get Macro definition / its fundamental difference with function module on web .
Hopw this is helpful -
HI Experts ,
I need to create report and i need to help for GUI aspects (i want it to be looking nice ).
in the report i have 3 options (i don't know if radio button is the best way ) .
1. Read user attributes
2. create user attributes
3. create user values
if user choose to read attributes (which is defult ) the other option are should be deactivated ,
but when user choose to create he can choose one of the option or either both option ( 2,3 )
i need for that i guess 3 buttons .
what is the best why to do that from GUI aspects ,and code will help
I read lot of post on the forum but i get confused
Regards
ChrisHI ,
I am working to do that but i am facing some issue.
when i create TM i want to add new fields to the screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: read RADIOBUTTON GROUP g1 USER-COMMAND u1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(15) text-001.
PARAMETERS cre_zm RADIOBUTTON GROUP g1 .
SELECTION-SCREEN COMMENT 21(30) text-002.
PARAMETERS cre_tm RADIOBUTTON GROUP g1.
SELECTION-SCREEN COMMENT 54(30) text-003.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1 .
This is the code that i add
INITIALIZATION.
LOOP AT SCREEN.
IF screen-group1 = 'M1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF cre_TM = abap_true.
IF screen-group1 = 'M1'.
screen-active = '1'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
START-OF-SELECTION.
the problem is that when i choose also create ZM it the field appear ,
what i miss here?
Thnaks
Chris -
SQ01 help for listing not used problem codegroup and code in notifications
Hi ,
I am making a query through SQ01 to find out how many damage codes created for a particular notification type are not being used .
In infoset I used QMEL which lists problem code group and problem code and as a bonus we also get codegroup text . When I test this query , I get damage code group and code used in all the notifications . I want solution for the following
1)How to list only distinct damage codegroup and damage code (Not per notification wise)
2)Which second table I have to use to get problem code short text
3)Which table I have to add in infoset and how join has to be created so that I get list of Damage codegroups and codes not used in notification .
NPBHi Pete ,
1)How to list only distinct damage codegroup and damage code (Not per notification wise)
I have output like
problem code group Problem code grp text Problem code Problem code text
MRTR Transformer problems 1 I need table here
MRTR Transformer Problem 1
MRTR Transformer problem 2
I need distinct output like
problem code group Problem code grp text Problem code Problem code text
MRTR Transformer problems 1 I need table here
MRTR Transformer problem 2
2)Which second table I have to use to get problem code short text
I need problem code table
3)Which problem code group and code not used
Suppose for notification type X I have configured damage catalog Q and Q has MRTR , MRAM , MRGT as code groups and each of them have their own codes (say 1 to 5)...If notifications are created only for MRTR and code 1 , 5
I need not used output like
MRTR 2
MRTR 3
MRTR 4
MRAM *
MRCT *
How can I achieve this using sq01,02 etc
NPB
Edited by: Narasimha Bhat on Feb 1, 2011 4:54 PM
Maybe you are looking for
-
G4 Cube, External Hard drive, and Darwin oh my!
I was given a G4 cube that was having difficulties booting up. At some point in time someone upgraded the hard drive from 30GB to 120GB...When I first got it, I inserted the OS 10.4 DVD and ran a disk utility, repaired permissions, erased the hard dr
-
Commit after setRollbackOnly!!!
Hello everybody, I have an entity bean in my application. In ejbRemove method, when something is wrong, I call setRollbackOnly and then I throw a RemoveException. But weblogic give me a: Exception during commit:: weblogic.transaction.internal.AppSetR
-
Combining 2 or more imovie08 projects onto 1 idvd
Hey all- I am trying to put two published imovie projects onto the same dvd. The projects are in my media browser and when I try to put more than one in the IDVD media grid it is whisked back to it's window. Surely this combining of projects can be d
-
Hi I just created and uploaded the following four profiles for the Pentax K-5 camera and JPEG-pictures. The corresponding RAW prifles seem to be there but on the JPEG side there are practically none. PENTAX K-5 (Sigma 50mm F1,4 EX DG HSM) PENTAX K-5
-
IMac G5 transfer HD to G5 Tower-POSSIBLE?
Ok. My iMac G5 pooped on me. It started to shut off 5 seconds after I turn it on. I took it to a few Mac techs they all said my motherboard and power supply are shot. The repair is no longer covered by the warranty and the cost to repair the problems