Urgent:How to modify a script without changing the print programme

Hi all,
Can any body pls tell me <b>How to modify a script without changing the print programme</b>
Give m esome real time examples.
Good points willbe rewarded
Thanks

Hi
You can write a external Subroutine to fetch the extra data into the script program
see the following sample code
How to call a subroutine form SAPscripts
The Form :
/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
FORM CDE_CENT
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.
COPING SCRIPT
There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
Ex: Go to SE71,
on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
Form name:
Source Clinet:
Target Form:
give Form name as usedefined form name EX: ZFORM1
Source client as 000 and
Target form as MEDRUCK.
execute.
Now, the standard from MEDRUCK is copyied to your form ZFORM1.
NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
Go to NACE Transaction.
on Applications select EF for purchase order and click Output types button on application tool bar.
now select NEU as output types dobule click on Processing Routines.
now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
Refer
https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
Regards
Message was edited by:
        Kiran Sure(skk)

Similar Messages

  • How to name individual clips without changing the name of the original file...?

    Hi,
    Theres likely to be a really simple solution to this, but i can't find it! I've done my in & out points, i've created a new clip and i'd like to give it a unique name. When i rename the clip the original file name also changes. How can i rename the new clip without changing the original file name?
    Please help,
    Thanks
    Ed

    Either make the clip a subclip or convert it to a new master clip. Both can be done in the Modify menu.

  • How do i replace text without changing the format?

    also, how do i replace a photo with a new one?

    If the text is live, you can double click on the thumbnail and it will select the text. At that point you can type in the new text.
    As for the photo, that depends on the document. It can be as simple as closing the document and opening the next image.
    If the image is on its own layer, you could just delete the layer or if you want to preserve the style asociated with it, you could use selection tools and delete the image, then place or paste the new image in its place.
    If it is part of a collage, you may want to convert the image(s) to a smart object. Then in the layers submenu, you can choose to replace the image.
    The advantage of the smart object is it will remember the scale of the image.

  • Sorting a DataGrid without changing the content

    I have a datagrid which is shown in a chart. I'd like to have it sorted upside down the dataField "x" without changing the chart, which is bound to the same arrayCollection. How can I do this without changing the chart?
    <mx:DataGrid sortableColumns="false"  width="480" height="156" dataProvider="{myArrayCollection}" editable="false" y="581" enabled="true" x="10">
              <mx:columns>
                    <mx:DataGridColumn id="col1" dataField="x" headerText="Trade #" />
                    <mx:DataGridColumn id="col2" dataField="p" headerText="Price" />
                    <mx:DataGridColumn id="col3" dataField="n" headerText="Users" />
                </mx:columns>
    </mx:DataGrid>
    thanks
    nicolas

    ArrayCollection is a view of a source Array.  If you create a second view, it can have a different sort order because sort and filters are properties of a view.
    Just assigning AC2 = AC1 simply has AC2 referencing the same view so sorting will have an effect on all consumers of that view.  However, if you do:
    AC2 = new ArrayCollection();
    AC2.list = AC1.list
    then you can sort AC2 and AC1 will not reflect the sort and vice-versa.  But, if you add an item to AC2 or AC1 it will be reflected in the other AC.  If you modify a property of an item in one AC, the other AC will see it.
    If you do:
    AC2 = new ArrayCollection()
    AC2.source = AC1.source
    You can also sort AC2 and AC1 will not reflect the sort and vice-versa.  But, if you add an item to AC2 or AC1, the other will not reflect that change unless you force an update on the other.  Same is true if you modify a property on an item in the AC.  The other AC won't know about it until you force an update.
    If you want to modify properties of an item in one AC and not every have it reflected in the other AC, then you should do a copy as the previous responder suggested.  I believe you want to use the pattern that assings AC2.list = AC1.list.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How can I rearrange the pages in a PDF without changing the assigned paged numbers.

    How can I rearrange the pages in a PDF without changing the assigned paged numbers? These correspond to the original document folio numbers.

    In theory it would be possible to 'record and play back' the page numbers using a folder-level script, but it's far from trivial. You would have to use the doc.movePage() function - presumably driven by a dialog box - to do the page shuffling so there was a way to track what was being done, then swap the page 'labels' of the two affected pages. That's where it gets messy.
    We have functions in the JSAPI which can read and write the page label, but they don't do things in a logical way. The 'getPageLabel()' function simply returns a string, but the 'setPageLabel()' method expects to be told the numbering scheme, prefix, etc. You'd have to parse the string and work out what scheme it was implementing.

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how do I disable this without changing accounts

    I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how do I disable this without changing accounts

    Welcome to the Apple Community.
    You could simply set each device to only use a single telephone number (settings > messages > send & receive, but this isn't really an ideal solution since the other person can always change their settings and see your messages and send messages that appear as if they are from you. There is only one real solution and that's to have your own accounts.

  • How can I change the year of an album in itunes11 without changing the years of all titles?

    How can I change the year of an album in itunes11 without changing the years of all titles. For example: the reissues of an 1982 album has a 1995 bonus track, but I want it to be sorted as an '82 album? In earlier versions, when itunes sorted my album "by year", it took the year of the first title as the album's year (which makes a lot of sense). In itunes 11, however, the /highest/ year of any title in an album is taken to be the album's year. This upsets my entire catalogue. Can this be changed, will this be changed?

    Highlight all of the songs,File>Get Info, change the genre

  • How to modify  a table without  setting system to modifiable

    Hi All
    Is there a way to modify a table without setting the system to modifiable either in SCC4 or SE06.
    We locked SCC4 in our system , however one tables are not able to modify.
    table name YAUTM
    Is there a way to bypass this?
    Edited by: Shou Woon Wee on Jan 11, 2008 3:09 AM

    Hi Shou......
    if it gives you a message....."the client is not modifiable"/ ALIAS "table not modifiable"  ...then from a security perspective....you cant, and you might not want to bypass it!
    SCC4 settings are meant to be for that!  Contact your Basis team for this.
    The only way to bypass this is thru ....sending changes through a transport request.
    Curiosity: what environment are you trying this out ? cant be sandbox or DEV!
    Regards
    Abhishek

  • How can i make a photo that is 10 x 6.6 to 10 x 8 without changing the image in Photoshop CS3?

    How can I make a photo that is 10 x 6.6 to 10 x 8 without changing the image in Photoshop CS3?

    I could be snarky and say change the image in a different version of Photoshop, but NO...
    The only way to make a photo that is one size into another size is to change the image.  You have a few choices about how to change it:
    One way is to simply expand the height from 6.6 to 8 inches using Image>Canvas Size, using the default setting of having the image centered and leaving the background either black or white, your preference.  This will add background color to the top and bottom of your image.  This won't change the image itself, but it will change its surroundings.
    Another way is to resize the image using Image>Image Size, entering the new dimensions after turning off the aspect ratio lock (resample on).  This will stretch the image vertically, however, so it's probably not a good option.
    Finally, you could resize the image using Image>Image Size, leaving the aspect ratio lock on and resample on, and increase the height from 6.6 to 8.  This will have the secondary effect of enlarging the width from 10" to a greater width.  Then you crop the resulting image back down to 10" width, which involves losing some edge areas of the image.

  • When I insert a shape, how do I change the color without changing the texture?

    When I insert a shape, how do I change the color without changing the texture?

    Hi,
    you are working with a percentage width of your tables, for example:
    table width="123%
    td width="75%"
    td width="25%"
    So it is simply a arithmetic problem to get the proportional wide (means the ratio of % to cm) of your images, so that they do not break the frame. Certainly you could use (translated from German DW) "properties" and change the sizes there:
    Hans-G.

  • How to change color of iCal event, without changing the calendar.

    I have my work Exchange calendar imported to iCal.  When I want to change the color of an event in iCal, it actually changes the event to a differnet 'calendar' and therefore no longer shows up on my work calendar.  This wouldn't be a problem, excpet my secretary can no longer see the event on my work calendar that shows up on her PC.  So how can I change the color of 1 event, say to 'Important' or 'Must Attend', without changing the calendar?

    Welcome to the discussions, spet.
    Right click (Control-click) the calendar you want to change in the left pane and select Get Info. There is a colour selection button to the right of the calendar name..
    AK

  • Hello! I'm out of the country and all my iWeb information is on my computer at home. Now I need to make changes on the webpage... how can i do that without using the computer i made the page on? Thank you!!

    Hello! I'm out of the country and all my iWeb information is on my computer at home. Now I need to make changes on the webpage... how can i do that without using the computer i made the page on? Thank you!!

    iWeb uses the domain.sites2 files to store its assets.
    You'll find it here :
    ~/Library/Application Support/iWeb/
    where ~ is your Home directory.
    If you take a computer with you, you have to store that file in the same location.
    It's not different from taking documents with you if you want to edit them.
    A solution is to remotely control your computer at home.
    TeamViewer, LogMeIn, Apple Remote Desktop or any VNC application you can use, like "Chicken of the VNC".

  • How can I soften the edge of a person in a photograph without changing the background?

    I need to soften the outline of a girl in a photo without changing the background.  I have tried the Modify Edges tool in the selections menu, but the results of the feathering command do not show up on the photo.  Help!

    Or you could brush with the Blur Tool.
    -Noel

  • Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

Maybe you are looking for

  • Save/open dialog box for FileWriter

    Hi, I have a JSP action link with onclick='onClickExport', defined in an underlying class file. The 'onClickExport' method in the class creates a file: fileName = "C:\\Temp\\SaveSearchResults.csv";      File outputFile = new File(fileName);      File

  • Why can't I iMessage more than 9 people at a time?

    Why can't I iMessage more than 9 people at a time?

  • What set up is best for my magazine

    I am the Art Director of an Australin music magazine. My team currently has three CS4 licenses and we wish to publish our magazine via a single app on a weekly basis. What is the best set up and will how will the new Adome DPS Pro effect us? 3x cloud

  • Custom keyboard layout from standard layout

    Hi, I'm trying to copy the Spanish-ISO keyboard layout in order to create a custom keyboard layout, and change somme attributes like icons, etc. I've seen that standard keyboard layouts are in: /System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.b

  • Best Training for FCE 4

    Hi there everybody! I was wondering if there is any training for FCE 4 that everyone likes better than the others. I just finished FCE 4 Apple Pro Series by Diana Weynand, but that still left me with a lot of questions. I don't mind spending a little