MM Sapscript Medruck - print two times in different way

Hi,
I have to use the form medruck to print orders and deliveries. Only if ekpo-pstyp & ekpo-knttp = F, it should be printed one order form and one delivery form. The delivery form is like the order form, only a few text-differences and so on...
So I also want to use medruck, if it´s possible.
My problem now is, how can I print the order form and also the delivery form, if the mentioned fields have the specific content? How do I have to make the changes in the print program SAPFM06P? Is it possible to loop the print process two times and set a flag to decide in the sapscript, if the order or the delivery should be printed, or only the order?
I hope, You have got my problem!
Thank You very much for our help!
Cheers Arne

First copy the function group MEDRUCK to ZMEDRUCK, including all function modules.
Copy the SAPFM06P to SAPFZM06P.
In the SAPFZM06P program, copy the include FM06PE02 to ZFM06PE02 and comment out the FM06PE02.
In the FM06PE02 include program, there is a FORM called ENTRY_NEU, change the call to ME_PRINT_PO to ZME_PRINT_PO.  Now you will be making all of your modifications to the ZME_PRINT_PO function module which is in charge of printing the PO. 
The main program for the function group will be SAPLZMEDRUCK.  There will be a lot of includes.    Check the include LZMEDRUCKF02.  There are alot of includes there also.  To change something, just copy the include into a "Z" version, include it here, and comment out the standard include.  Then you can make your changes accordingly.    We have done modifications to many includes in the LZMEDRUCKF02.
Also, you have to make sure to change the configuration to point to the SAPF<b>Z</b>M06P.
Regards,
Rich Heilman

Similar Messages

  • Form is printing two times from MRRL, output type ERS

    Hi,
    I have copied the standard script MR_PRINT to custom script and done changes in the script to print the invoice form using MRRL transaction (for output type = ERS). Now I am facing two issues. Please help.
    1) The form is printing two times on ise my custom form and one is the standard form.Checked the configuration output type ERS is assigned to my custom form only.
    2)The form is printing a new invoice document for every line item of a Purchase order. Suppose if a PO has two lines item. MRRL is printing the form 4 times. That is custom form for each line item and standard form for each line item. How to fix the issue.
    Are these the technical issues or configuration isssues. I have done changes to only my custom script layout.
    Regards,
    Sudha

    Please reply. If any one has any idea???

  • Apply the same LCR two times on different tables

    Hi all
    Just one question:
    Can I apply the same LCR two times on different tables using only one apply queue?
    For example executing two times LCR.EXECUTE(TRUE) in a procedure handler:
    LCR.EXECUTE(TRUE);
    LCR.EXECUTE(TRUE);
    ....

    Topas,
    You need to create new LCR and execute both LCRs.
    Regards,
    Serge

  • SAPscript getting printed multiple times.

    Hi Folks,
          I got a strange problem , when we are try to print a SAPscript it is getting printed 5 times.
    We cant understand why it is happening because I checked everywhere and I found everything to be fine. This script is absolutely working fine in the quality server but in the production it is getting printed 5 times.
    Regards.

    Hi santosh,
    Please check out FM OPEN_FORM & CLOSE_FORM .
    Degug script once again.
    Did you try to copy your first-page to one named 'next' and set this next-page as follow-up of first .
    Cheers,
    Pravin s

  • SAPSCRIPT : Line Printing Three Times?

    Here is the code: Anybody see why this would print three times?
    /E   HEADER_TEXT                                                              
    L    <H>   </>                                                                
    /:   INCLUDE &EKKO-EBELN& OBJECT 'EKKO' ID 'F01' LANGUAGE &EKKO-SPRAS& PARAGR >
                             Thank-You.

    Hi Tom
    look at ur program where it calls the FUNCTION 'WRITE_FORM' when
    EXPORTING
       ELEMENT                        = 'HEADER_TEXT'
    maybe it's doing a loop, do times, etc...
    Regards
    Allan Cristian

  • Hi i want to execute bapi two times with different paramters....Possible

    Hi,
    i want to execute bapi twice times.Possible please explain where i put which code.Means i put bind code at doinit() method of conpopnent controller and execute bapi code in doinit() iof view. But for second time where i put bind and execute code. 
    Regards,
    Gurprit
    Edited by: GURPRIT BHATIA on Dec 17, 2007 1:24 PM

    Hi Gurprit,
    For executing the bapi second time, you can put the execute bapi code in the action of the button which is on your form. You need not write the bind code again.
    Bye
    Ankur

  • I am not able to open the pdf attachments that someone has sent me it comes up with a gray box saying adobe could not open they have sent it a few times in different ways but still can't open it i use windows 7

    I am not able to open the pdf attachments that someone sent me it comes up with a gray box saying adobe cannot open?

    Make sure the pdf has the '.pdf' extension on the file name. I've seen this a few times and adding the extension usually solves the problem.

  • Can't I use my wireless mouse and trackpad in different ways when scrolling?

    Since I'm a Chinese user, I prefer describing my question in my mother language...I will translate it...
    在系统偏好设置里,倒是可以分别设置鼠标和触控板,但是当我打开触控板的“自然滚动”,同时取消鼠标的“滚动或导航时,使内容按手指方向移动”,之后,鼠标恢复原来的滚动 方式,郁闷的使触控板的滚动方式也跟着变化了⋯⋯
    但这时打开触控板的设置,“自然滚动”依然是选中的啊⋯⋯
    如果这时关闭“自然滚动”,再重新开启,鼠标设置界面的“滚动或导航时,使内容按手指方向移动”虽然是为选中的,但使用时滚动方向又变成反向了⋯⋯
    各位有遇到么⋯⋯我觉得是个BUG吧,期待修复⋯⋯
    我的鼠标是雷柏的6900,蓝牙无线
    本子是新的MBA 11‘
    Well, there is two setting items in system preference for "mouse" and "trackpad", and there do have the checkbox for "Move content in the direction of finger movement when scrolling or navigating" and for "Scroll direction: natural". I checked the "Natural Scroll"---- if I may call it this way ---- option and unchecked the same option in mouse setting wishing to use my mouse and trackpad in different ways...
    However, it turned out to be a confusing phenomenon like I can only use my mouse and trackpad in the way "Natural Scroll" or the way it used to be. If I double click the checkbox of "Move content in the direction of finger movement when scrolling or navigating" to refresh my settings, both my mouse and trackpad will turn into the way it used to be in scrolling while if I double click on the "Natural Scroll" checkbox, both of them will turn into the new way.
    At the same time, eventhrough the setting of my mouse has been changed by the changing of trackpad setting, the checkbox in "mouse" is still unchecked and that's where makes it seems like a BUG....
    So, is there anybody who meets the same problem? The reason I want to use this two device in different ways is I just don't like to use mouse in the new way, it's unconfortable for me.
    And, I use a new MacBook Air 11' and a wireless mouse called Rapoo 6900
    Here comes the link of my wireless mouse.
    http://en.rapoo.com/ProOverview.aspx?PID=3550

    jhawk,
    I can see the appeal of your desired setup, but is the limitation the inability to "Pair" the mouse/keyboard to more than one computer at a time? (Practically, that makes sense, you don't want to be blindly moving both cursors around at the same time, since you can only see one screen at a time)
    You CAN operate bluetooth devices on Windows without pairing-you just need to locate the device each time before using:
    http://www.oreillynet.com/pub/a/wireless/2003/09/18/winxpunwired.html
    So maybe you can pair the Mac version, and just search out the device each time you switch over? (but then you would have to "unpair" it off the Mac too) Maybe you need to write two scripts for each platform: pair/unpair devices.
    Sounds like it would be easier to buy two wireless keyboards and mice :P
    What you really want is a utility like this:
    http://www.abyssoft.com/software/teleport/
    (its only Mac to Mac though, unfortunately)
    Good luck!

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • Customs duty commming two time with two different price

    Dear All,
    I facing the issue while creating the PO the condition Customs duty  Conditions (Z005 )commming two time with two different price
    Can you please tell me where can check
    Regards
    Murugan
    Edited by: murugan jayaraman on Jan 9, 2011 3:19 PM

    In the PO go to the conditions tab, select the condition type and click on analysis, then check where the conedition type is coming from.
    Repeat this for both the Z005 conditions.
    In M/06 t.code see if there is also a access sequence and condition contrl says Manual entry has priority. If this is the case sometimes system allows same condition twice.
    One time it comes from Mek1 and the other one is manually entered.

  • Avoiding PrinterJob to print two or more times a page...

    Hi all,
    I'm using jdk 1.4 and I have noticed that the PrinterJob prints a page two times, then I have also discovered the reason:
    taken from http://java.sun.com/products/java-media/2D/reference/faqs/index.html#Q_What_are_the_causes_of_large_s:
    Q: When printing using java.awt.PrinterJob, why does it print each page at least twice (and sometimes much more than that)?
    A: The root of this is that Java 2D printing needs to be able to print everything that Java 2D can render to the screen, and that includes translucent colours, images etc which cannot always be printed directly in Postscript or GDI except when printing everything as one big image, so the implementation tries to avoid this by calling first to discover the rendering that needs to be done for the page. If its simple opaque rendering then only one more call is needed to render the page. If there are translucent colours then multiple calls are done for "bands" down the page to limit the size of the image being generated and hence constrain peak memory usage.
    My question is: is there an alternative way to print a page avoiding calling the print method two or more times?
    Thank you very much, best regards.
    Raffaele

    Hi all,
    I'm the same person as gamby1980 and I'm yet (from 2006 :-) ) waiting for an answer...
    Does someone know a mechanism to force the printing system to call print method two times? I'm pretty sure that I haven't "translucent color" in the pages I want to print, and so I don't need the second step in printing...
    Thanks again!
    Regards
    Raffaele

  • Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    is this a windows in bootcamp question ?

  • How do I print two DIFFERENT A5 pages onto one A4 piece of paper in Preview?

    Hi, I know that within the Preview printing set up you can print two copies of one document on an A4 page.
    However, I want to print one copy each instead. I want to put about 8 photographs and documents onto 4 A4 pages all in A5 size to save on paper.
    Any help with this would be much appreciated as I know in Windows folders this is really easy to do but it seems impossible on the Mac.
    Thank you.

    In Print dialog box, you should be able to choose Layout and set pages per sheet to 2 (or 4 ...).
    Then the print stream (from whatever source) will pour into the "mini-pages" and fill them up in order.
    To do this using Preview, select all the documents you want in order, then open them "all-at-once" with Preview, and they will be temporarily collected into a larger "super-document" for viewing and printing together.
    If you are printing photos from iPhoto, it has its own even better controls.

  • Calling images on website two times

    Hi,
    When I am calling the images of the contents in the website which is developped by PHP, there is no problem to display them. But i check the Access Logs of site, Only Firefox GETs the page TWO times. Other browsers GET the page for one time, but Firefox GETs two times.
    Image URL like this : http://www.mysite.com/image/name-of-the-image.jpg (With htaccess rewrite, to an image.php PHP file)
    in image.php file , Image Magick (Php Image Library) prints the image..
    Internet explorer, chrome, opera vs. is normal. Firefox gets two times on Access Log...
    What is the solution of this problem, i couldn't find a solution...

    Thanks David,
    Yes it was a problem for development. I made the headers but still not worked. Then i tried different header, now problem solved... may be needed in the future, the correct header codes like this:
    // Last Modified date for caching
    $file_last_modified = filemtime($filename);
    // Expires in two months
    $expires = time() + (60 * 24 * 60 * 60);
    header("Pragma: public");
    header("Content-type: image/jpeg");
    header("Expires: " . gmdate("D, d M Y H:i:s", $expires) . " GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s", $file_last_modified) . " GMT");
    Thanks

  • Re: Running the same (Forte) application multiple times -for different

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for

  • Scanner and Mac Pro help, please!

    I can't get my HP officejet 6500 Scanner to work with my Mac Pro

  • Updated itunes-accidentally deleted borrowed music from other itunes

    I updated my itunes settings by changing manual updates to automatic. In doing this I accidentally deleted music on my ipod that I obtained from friends' itunes. Is there any way to salvage the lost music?

  • Are there any issues with using OS X Mavericks and Premiere CC?

    Are there any issues with using OS X Mavericks and Premiere CC?

  • Rendering Quality Variation

    Hello, I have a problem with Premiere's rendering. From time to time the rendering quality will dip on a video but not on another. I use the same settings every time, not sure why it's happening. Rendering Settings. MP4 file format 1280x720 29.97 Pro

  • ASM or not?

    Hi all! I know that ASM is a mature product, features rich and much appreciated by DBAs. I understand that for best throughput, one would be better to use ASM... (I also understant that raw device mapping is the best configuration for performance - B