How to modify a macro in manual layout?

Hi all,
I should modify a macro in a manual planning layout but the corrections work only for the very first execution. If I change layout when I go back to the previous one the macro corrections are deleted.
Can you help me??
Thank you in advance

Hi Andrea,
Here are the steps I do :
1 - BPS0 ==> (choose area/level/package/layout) ==> Change Layout ==> 3rd screen
2 - Flag the 2 pre-defined macros SAPAfterDataPut and SAPBeforeDataGet (these are part of Modul1)
3 - Go in the macros via ALT+F8 (or Tools ==> Macro ==> Macros...) ==> Edit
4 - Add my code under the related comment written by SAP, for example in SAPAfterDataPut, hereunder in bold :
'put your own coding here
'If you are using own modules for your coding do NOT
'start the name of the module with "SAP_"!
*Write your Code***
5 - Save the coding in the VBA editor : Save WorkSheet in SEM-BPS LAYOUT BUILDER(1)
6 - Receive a warning for the signature that will be discarted
7 - Save model and/or Save in BPS0
if this also does not work
Please make sure that you insert this small piece of code before your VBA code
'put your own coding here
'If you are using own modules for your coding do NOT
'start the name of the module with "SAP_"!
Tabelle1.Unprotect
**Your VBA code******
Tabelle1.Protect
Tabelle1.unprotect and at the end of your code use Tabelle1.protect.
This is resolve the Signature issue.Also from the next time onwards the system recognises your digital signature and does not give the erro message anymore .
Also make sure you go into Tool> Macros>Security--> Trusted Publishers, here you should tick "Trust Access to Visual Basic project".
hope this helps.
regards
Sai Vishnubhatla

Similar Messages

  • How to modify the layout  and coding for 'RVORDER01' after copying ..

    Hi all,
       I am trying to modify standard script layout SALES ORDER for Quotation,
    i.e. I had copied standard form 'RVORDER01' to 'ZBAT_RVORDER01'.
    and now I am trying to compress the information box. But no box in the layout  was selecting while trying to resize it. Can any one help in this issue.
      And I also want to know, how to modify the coding in that standard script. i.e. to add a perform statement and etc..
    Thanks in advance,
    Surender.

    GOTO SE71, and give the form name as 'ZBAT_RVORDER01' and Language as DE, try to compress the box according to your requirement, save activate and return to SE71, now change the language to EN, you will see the compressed window in EN.
    The casue of your problem is the original language is in DE so window changes, character formats etc can be done in DE language or change original language to english,
    TO change original language to EN, SE71 ,FOrm name Language DE click change, goto utilities--> change Language.
    Regards,
    Sairam

  • How to Modify the standard layout set for Sales Order

    Hi all,
    Do we have any sap defined standard to modify the sales order,if no How to Modify the standard layout set for Sales Order,an also plz send me the step by step procedure for the same.
    Thanks in advance
    Santosh R

    Hi, Dear Ferry Lianto,
    Thank you very much.
    Commonly I know the total pricing procedures.
    But, would you please tell me how to control the CURRENCY for the subitem of a condition type as follows?
    For example, I can see the following kind of
    contents in the Tab:condition of a sales order:
    PR00     Price     130.00000      TEST     100
         Gross Value     20.12      USD     100 <-how to
         Discount Amount     0.00      USD     100
         Rebate Basis     20.12      USD     100
         Net Value for Item     20.12      USD     100
         Net Value 2     20.12      USD     100
         Net Value 3     20.12      USD     100
    VPRS     Cost     27.22      HKD
         Profit Margin     16.61      USD
    The currency of PR00:price can be controlled via tcode VK12; but how to control the currency of its subitem such as gross value, discount amountm, net value for item, net value 2, & net calue 3...
    Thanks and regards.

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How we modify print program in script

    hi gurus.
    how we modify print program in script, please tell elaborately.

    Hi ..
    first of all ... u have to check which is the print program for the given layout...
    how u can find out is ... in NACE transaction... for certain o/p type .. there will be configuration done against the layout .. i mean for the particular layout .. a print program wud be assigned.
    another way to find out the print program is thru table TNAPR..
    once u find out the print program.. make sure u have to make changes in the print program .. i  mean once u decide "for the requirement u have to make changes to the print program.
    Reward points if it is useful.
    Thanks,
    Manjunath MS

  • How to modify Standard ALV Report

    Hello All,
    I have a standard report which displays the data in ALV Grid. This data can also be exported to Excel sheet. I have got an FBI assignment where I have to add some new fields besides the existing ones. Could you please provide me with some documents oe explain me in brief how to modify any standard ALV report.
    Thanks in Advance.
    Saras

    Can't you just add the fields with the layout option in the tcode ?? with other words are all the fields selected in that particular layout the programm comes up with
    if the fields can't be selected a quick sollution can be to make a query with SQ01
    Message was edited by:
            A. de Smidt

  • Does anybody know how to modify the driver for the Tektronix 370A curve tracer so that it will work with the 370B?

    I am trying to control a Tektronix 370B curve tracer using LabView via a GPIB interface. However, there are no drivers available for download for the 370B. There is one available for the 370A, but it is not compatible with the 370B and I have been unable to figure out how to modify it to make it work with the 370B. Does anyone know how to modify this driver, or know of an existing driver that works with the 370B? Thanks!

    Hi S _Bracht,
    Yeah, unfortunately, the Tektronix 370B does not currently have an instrument driver and the driver for the 370A is not supported by National Instruments (it is just posted on our website as a courtesy) - so I am afraid that there is not really any more information on the differences that might exist between the two available from National Instruments.  As an alternative, you can always develop your own driver using the VISA and 488.2 drivers + a copy of the user manual for the Tektronix 370B.  Otherwise, you may consider speaking with Tektronix or getting ahold of a User Manual for the 370A and comparing some of the settings - there are likely some differences in your configuration options at the very least.  Or, if someone out there has tackled this before and shares their knowledge...
    Good luck! 
    Regards,
    Anna M.
    National Instruments

  • How do i take macro photographs with a 50 mm f1.8 prime lens

    how do i take macro photographs with a 50 mm f1.8 prime lens, the lens is labelled macro, but only renders close ups.
    Solved!
    Go to Solution.

    A "true" macro lens allows you to get close enough to your subject that the size of the image on your sensor is as large as the subject in real life.  
    For example:  Your sensor is "roughly" 14mm x 21mm.  A US penny has a diameter of about 19mm.  That means with a true "1:1" scale macro lens, you could get close enough to the penny that the top and bottom edges of the penny wont fit in the frame (the sides will.. just barely.)
    There are a number of ways to do "close up" photography.
    1)  Buy a true "macro" lens.  The EF-S 60mm f/2.8 Macro USM is fantastic and also fairly well priced.  A "true" macro lens will provide the highest quality image.
    2)  Buy "extension tubes".  These fit between the camera body and lens but they are hollow (there is no glass elements in them but they do have electronic contacts so the lens and body can still communicate.)  By moving the lens farther from the focus plane, the entire focused range of the lens is substantially reduced.  This allows you to get much closer than would otherwise be possibe.
    3)  Use "close up" diopters.  These are screw-on filters which you thread onto the end of your lens.  They provide a magnified/closer view of your subject.  The downside of these is that they may show more distortion near the edges of teh image.
    4)  Use a "reversing" ring.  This is a ring which allows you to mount your lens onto the camera body... backwards.  The ring screws onto the front of the lens (where you'd normally screw on filters), but has bayonette mount on the other side so you can connect it to the camera body.  By using the lens "backwards" you can get much clsoer.  The downside is you cannot control the lens.  Focus is manual and you can't change the aperture.
    Tim Campbell
    5D II, 5D III, 60Da

  • CJ31 - How to modifying the assigned budget

    Hi gurus,
    We have checked that in our system we have incorrect values in the Budget database. this is because we have posted invoices directly in FI by a batch input calling to the tcode FB01. We post this with reference to Purchase orders populating the field "purchase order". I mean, the FI invoice has the field PO document filled out with the PO number. We close the PO number manually.
    The problem is that even the invoice is with the same amount than the PO, the assigned budget in transaction CJ31 is being modified in the value for instead remaining without changes. Transaction MIRO makes a check in the PO when being posted but FB01 not. In fact in MIRO if the amount is greater than PO, the assigned value is increased.
    SAP has indicated that FB01 is not connected to the commitment system as MIRO so this is the correct behavior of system. At this point we are going to start using the standard procedure. However we need to correct the current data we assigned to the .
    Therefore we have the in budget database corrupted since they are duplicated or even more than duplicated.
    My question is how to modify the assigned budget?
    -Is there any way from a functional point of view (executing some transaction or program) to reduce the assigned budget for errors like this?
    -In case that this is not possible by t-code or program, is there any idea of tables we need to adjust? We know that the table PJPA registers the annual records and assigned values are displayed in fields WTJHR and WLJHR but we cannot modify only this table in case there are other tables linked.
    Many thanks in advance and kind regards

    Hi Varun,
    Thanks for replying. I checked the note you linked. However I didn't find a solution
    CJEN and CJBN are not an option for us. With these transaction we can rebuild the data but the wrong data is already imputed in my system. Just to clarify. My requirement is getting a way to amend the values we have in the assigned value. From the system point of view the assigned budget is correct because it was imputed from FI. But in terms of my business we are duplicating the assigned (Purchase orde an FI document). Therefore we are searching for modify the assigned value in order to represent the real budget state.
    Kind Regards

  • How to modify an exisiting spfile?

    I need to know how to modify the spfile - I know how to create it from scratch (from pfile to spfile), but need to modify an existing spfile.
    Any help will be appreciated.
    MZ

    Mehr wrote:
    I need to know how to modify the spfile - I know how to create it from scratch (from pfile to spfile), but need to modify an existing spfile.
    Any help will be appreciated.
    MZ
    RTFM - the DBA Guide answers your question
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/create006.htm#i1010047
    >
    Changing Initialization Parameter Values
    The ALTER SYSTEM statement enables you to set, change, or restore to default the values of initialization parameters. If you are using a text initialization parameter file, the ALTER SYSTEM statement changes the value of a parameter only for the current instance, because there is no mechanism for automatically updating text initialization parameters on disk. You must update them manually to be passed to a future instance. Using a server parameter file overcomes this limitation.
    There are two kinds of initialization parameters:
      Dynamic initialization parameters can be changed for the current Oracle Database instance. The changes take effect immediately.
      Static initialization parameters cannot be changed for the current instance. You must change these parameters in the text initialization file or server parameter file and then restart the database before changes take effect.
    Setting or Changing Initialization Parameter Values
    Use the SET clause of the ALTER SYSTEM statement to set or change initialization parameter values. The optional SCOPE clause specifies the scope of a change as described in the following table:
    >

  • How to call HR Macros in ABAP-Webdynpro

    HI all,
    I want to extract HR data in webdynpro view.
    Where should I give Logical Database PNP?
    The ifnotypes key word is not accepting in Webdynpro coding?
    Where should I give GET PERNR event in Webdynpro?
    When I use RP_PROVIDE_FROM_LAST .... says error message
    Statement "RP_PROVIDE_FROM_LAST" is not defined. Check your spelling .
    How to use the Macros in Webdynpro (VIEW) methods.
    First time I'm working in ABAP-HR Webynpro.
    Please help me out..
    Thanks,
    Prasad

    Hi,
    How did u  solve this? pls provide the solution.
    Regards,
    Lakshmi.

  • How to use XDOXSLT in rtf template layout for etext template creation

    <DEFINE CONCATENATION>     BookDetails
    <BASE LEVEL>     Category
    <ELEMENT> Name || '/' || Price     
    <DELIMITER>      '/'
    <END DEFINE CONCATENATION>     BookDetails
    With EFTProcessor the above details are created in xsl file as follows
    <xsl:template name="CONCAT_BookDetails">
    *I need to declare one more variable here
    EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
    --and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
    syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
    rtf template layout for etext template creation.*
    <xsl:for-each select=".//Category">
    <xsl:call-template name="CONCAT_BookDetails_V"/>
    </xsl:for-each>
    </xsl:template>

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

  • How to link PDF document in Report Layout??

    I need to display the contents of PDF document after the form letter report. I tried OLE object but at the runtime it does not display the content. Does any one knows how to attach PDF document in reports layout?
    Thanks
    Ravindra

    you will have to concatinate your report output with the static PDF document. in reprots 10g you can create a cusotm destination that could implement this functionality.
    out of the box, reports does not provide the ability to add static content in PDF to reports' generated PDF output.
    thanks,
    philipp

  • How to create a macro for a planning type in MC8b transaction

    Hi,
    I am presently working for a product allocation demand, which have a information structiure with characteristic and key field.
    the characteristic are production allocation quantity, incoming order quantity, and open order quantity.
    i have created a planning type in which the data updation takes from the excel file to the planning type in mc95.
    but i need to create a macro for this planning type .
    can any body give the details information how to create a Macro for a planning type.
    Thanks and regards
    GopalKrishna

    Dear Gopal
    May be the link would be helpful to you.
    [Planning Types and Macros|http://help.sap.com/saphelp_46c/helpdata/en/a5/631cc443a211d189410000e829fbbd/frameset.htm]
    Drill down the left tab once you opened the link, for more information.
    Thanks
    G. Lakshmipathi

  • How to create summary fields in paper layout

    Hi Oracle report exports,
    I have followinf report to wrire:
    1st part to display as follows:
    person1 task1
    person2 task2
    person1 task3
    2nd part(summary part)
    person1 2(tasks)
    person2 1(task)
    I wrote the following sql for part2
    select user, count(*) no_of_tasks from person_table group by user.
    Could you please advise how I can put part2 in paper layout? Which frame(s) to use?
    Thanks in advance!!
    Michael

    user2709830 wrote:
    Hi Oracle report exports,
    I have followinf report to wrire:
    1st part to display as follows:
    person1 task1
    person2 task2
    person1 task3
    2nd part(summary part)
    person1 2(tasks)
    person2 1(task)
    I wrote the following sql for part2
    select user, count(*) no_of_tasks from person_table group by user.hi Michael
    If above is your layout
    make two different sql query and show them in order in layout.
    But i don't like it.
    Hope this helps

Maybe you are looking for

  • Error in Logical Port Creation

    Hi, When I try to create a logical port in my consumer system I am getting error "Error: HTTP: Error in interface for management of HTTP destinations; " Any ideas on how to fix this?

  • Whenever people facetime me at my iphone 4 (att), they end up calling someone else - always the same person

    this is on behalf of my wife, who has had this weird problem where whenever people try to facetime her, they end up getting some guy in San Francisco. ATT says it is not their problem and Apple can't find an answer. Sometimes turning facetime off and

  • Messages in Scheduled Status

    Hi all, We have many messages in Sceduled category on the production system. The Status symbol is not as it is for a scheduled message. It reads as "Log version". Please let me know how to clear these kind of messages from SXMB_MONI. Thank you

  • Will everything eventually be on iTunes Plus?

    Well I remember reading in the paper about a month ago that Apple was going to sell every song for $1.29. But, of course they didn't know the real facts. Then about 2 weeks later iTunes Plus comes around and songs were selling for $1.29, with all the

  • Differentiation of raw material and finished goods from tax / valuation

    Hi, There are certain materials which are sometimes produced inhouse (considered as finished goods) and sometimes procured from outside (considered as raw material) i.e the same material can be raw material or finished goods depending on its use. Tax