Question print PO SAPFM06P ENTRY_NEU ZMEDRUCK

Hi, to printi in PO i have customized tha tr. NACE with sapscript ZMEDRUCK.
My layout is quite different from the standard layout, and to follow my layout, I had to modified a little bit the structure.
i'am a little bit worried about the changes because is the first time that i modified i Standard sapscript and i didn't know well the sequence when are printed the elements in tha main.
To understand this i debugged the sapscript when i print the PO from the transaction ME9F.
Two question:
*I see the sequence of printing PO, i write the new layout of the main in the element ITEM_HEADER_F and i write the values in the element ITEM_LINE_3F_PRICE ( the other elements are been commented)
*I commented the total amount and i moved it in the footer printing the variable &EKKO-WAERS&,,&KOMK-FKWRT& ( those variable are global in the program and i can print these also in the footer).
It's correct this approach at the problem? will work correctly as in test fase to print the PO?
Thanks
/E           TOTAL_AMOUNT
/:           PROTECT
/*           &ULINE(71)&
/*           ,,&EKKO-WAERS&,,&KOMK-FKWRT&
/*           IF &SUM-EURO-PRICE& NE '                0,00'
/*           IF &SUM-EURO-PRICE& NE '                0.00'
/*           ,,                          EURO,,&SUM-EURO-PRICE&
/*           ENDIF
/*           ENDIF
/:           ENDPROTECT

hi,
yes you can do it in that way., also please note that you need to  use the some precaution before doing this.. first PRotect EndProtect is used to display it in one page.
Thanks,
Chidanand

Similar Messages

  • How to use standard print prog SAPFM06P in an ECC 6.0 environment?

    Dear all,
    I am working in an Upgrade proj, and I find this print prog SAPFM06P remarkably different in both the systems 4.6C & ECC 6.0. It seems the ECC 6.0 print program is configured for an Adobe form.
    But the requirement I have is that of printing a custom SAP Script through either this standard print program SAPFM06P or a copy of the same. How do I go about in making this print program adaptable to calling a SAP Script instead of an Adobe form ?
    Will greatly appreciate a quick response on this.
    Thanks a dozen!
    Aradhana.

    Actually there are many includes in this standard print program SAPFM06P that have been commented out by SAP in this new version ECC 6.0.
    I could make it work with the configuration of the message in NACE, but my concern is whether I would be able to incorporate all the functionality that those includes have.
    Do let me know your thoughts on this.
    Thanks!

  • SAPFM06P - ENTRY_NEU

    Hi all!
    I've got a problem with understanding the process when sending a message (extenal email from ME21N). When sending an eMail with a purchase order, the program SAPFM06P, form routine ENTRY_NEU is called.
    We need to send a eMail with custom subject and custom text content. The attached PDF file should be deleted. I wonder where I could realize this? Where the eMail will be created?
    Thanks for help!
    Greetings,
    Florian

    Hi
    I suppose u've created a MAIL message type, this message (just like the print) should be managed by fm OPEN_FORM: if it's used MAIL a device type, the system'll create the print as pdf and attach it to the mail.
    So u need to change the driver program for message type MAIL, so I suppose u need to change the fm ME_PRINT_PO, ME_READ_PO_FOR_PRINTING: these fm should be called in routine entry_new.
    The best solution is to create a new Z_function as copy of std ones.
    Max

  • Report Builder Question: Printing PO's from E-Business Suite - POXPRPOL

    I'm hoping there's someone who has the time to help me: We are using Report Builder 9, Oracle 9i, and E-Business Suite 11.5.10.
    I am a new developer using Oracle, and need to make some changes to the seeded (default) POXPRPOL (Purchase Order Print - Landscape) report, using Report Builder.
    I have two problems:
    1. When I print PO Releases from E-Business Suite, and specify I want releases 1 through 2, I get those fine, but the first page is my "Purchase Agreement". The question is: Is there any way (programatically or otherwise) to say "When the "Release" fields are filled out, don't include the Purchase Agreement?
    2. Somehow, after making a few changes to the POXPRPOL report, my quantity has disappeared. Is there any suggestions on how this could happen? I look at the query where they are using "POL.QUANTITY_TO_PRINT" for the working and the non-working reports, and they look identical.
    I'm hoping DESPERATELY that someone can help me - I'm really in a bind...
    Thanks!
    Steve

    Srini,
    Thanks so much for your reply!!!
    1. Ok, but how do I hide a whole page? I noticed the conditional formatting, but I want to "not print" a whole page when this page is a "Purchase Agreement".
    2. I've checked the source - it's coming from POL.QUANTITY_TO_PRINT - POL is a view that is unpopulated. I assume it's populated at run-time. So now I am trying to track down where it's populated, but can't find that in report builder. The quantity is being taken into account, because I put a total at the bottom of the page, and that number matches price * pol.quantity_to_print. Very strange...
    Finally, here's another question, if you don't mind:
    3. When I print a purchase order that is set up as a blanket, as I mentioned before, I get my "Purchase Agreement" first, and then one (or more) pages per release. But the "Page Number" on each is "1" because each is a one-page PO. But my "total pages" is "3", so each page reads "Page 1 of 3". Any idea if there's a way around that?
    Thanks again! Hoping you have some more insight! :)
    Cheers!
    Steve

  • Security Question Printing.

    For security question i need trace in BW if a user printing a web report.
    For this reason i must disable printing function of Internet Explorer.
    It is possible print a report by-pass the print function of Internet Explorer?
    I cannot use exporting in excel function.
    Best Regards.
    Fra.

    I was relieved to get the picture, but in retrospect I am very worried that connecting my phone to a public station like that was stupid, and that I might have opened myself up to malware or put my data in jeopardy.
    Yes and yes.  There's a reason why iOS 7 asks you if you trust the computer you've just connected it to.
    http://www.v3.co.uk/v3-uk/news/2286154/black-hat-researchers-exploit-iphone-flaw s-with-charger-attack
    Whether or not anything DID happen, I cannot say.

  • QUESTION - PRINT TO SIZE???

    This is the 2nd time I'm trying to get a little help. Using Photoshop CC, I have my image on screen. I want to print an 8 x 10 on my home printer, or a 16 x 20 from an outside source, such as STAPLES, etc. I select the crop tool, then go into the "ratio" window above and select 8 x 10. I use the SHIFT to keep proportions, then drag one or more corners to make the crop I want. I save the file. (I'm over-explaining this so members won't wonder what I'vel eft out..) If I attempt to print an 8 x 10 on my Canon home printer, the preview window shows if one side is 8" the other must be 11"+. If I put the saved JPEG on a disc or USB and bring it to STAPLES to get a 16 x 20, they put it in their computer and see the same problem:  the file looks like it's too wide, and if they were to print one side 16" the other dimension ends up 23"+, unless they crop it.
    What am I doing wrong?  Or does Photoshop CC's ratio window have a bug?
    Direct reply to [email protected] is welcome.

    OK lets look at each issue you need to deal with.
    First if you image come from your digital camera the will have one of the following aspect ratios 3:2, 4:3 or 16:9.
    You want to print two sizes 8"x10" and 16"x20 both prints are a 5:4 aspect ratio.
    You need to either crop you camera images to a 5:4 aspect ratio or use something like content aware scale to distort them to the 5"4 aspect ratio.  If you crop you images  and I'll suggest that is the best way to go. You will loose portions of the images.  This is not bad treat it as a opportunity to improve your image's composition.
    Your in control of the crop. These need not be centered corps or even the maximum size 4:5 crops possible.  When you crop think composition. What 5:4 composition will look best.  You can use the crop tool or the marquee tool to draw out the 5:4 area. Both tool can be set to constrain the area to an aspect ratio.  5:4 and 4:5 are the same aspect ratio, with different orientation. Both tool have a little icon to toggle orientation. If you use the crop tool you can set to resample to a print size and resolution resolution.  I do not.  I prefer to see how many pixel I wind up with.  Before I decide if resampling is needed.
    Printing once you have your 5:4 composition you need to set the print size and decide if you have sufficient pixels for it to print well. IMO for a good 8"x10" you need a print resolution near 300 DPI and for a good 16"x20" a resolution near 200 DPI.  You may or may not have to resample the crop for the two print files. Use menu Image>Image Size.  In the image size dialog un-check resample in this mode Width Height and Resolution are all constrained.  All you need do is to enter you two print size width into the width field and look are the resulting resolution.  If they are in the ballpark of 300 and 200 DPI.  You do not need to resample.  Just set the 8" width click OK and save you home print jpeg file. The use image size again set the 16" width click OK and save you Staple size file.  If the resulting resolutions were too low check resample. Leave the width and Height constrain setting on. Set the 8" width in you will see 10" in the height and some DPI value.  Change the resolution value to 300 choose the interpolation to use click OK and save your home print file. The back up in to before the 8" resize and use Image Size to resize 16: wide and change the resolution to 200 click OK and save your Staple print file.
    Photoshop Home Printer setting. Most likely you will be print on 8.5"x11" Photo Paper which heed to set set in the printer settings and also you need to turn off the device driver color management in the printer settings. In Photoshop print dialog you need to set Photoshop manages the color the printer Paper profile to uses.

  • Easy question (print location)

    Hi all I have forgotten, how to print chars in a certain location.
    For exaple: I have
    a=1;
    b=12;
    c=123; and I need several columns with certain distance:
    column:
    1
    12
    123

    Just as you ordered ... here is the code...
    apply it and see the results..
    public class Test {
        public Test() {
        public static void main(String args[]){
            String name1="Jim Carry";
            String name2="Marry Poppins";
            String name3="Bill Murray";
            String association1="lol";
            String association2="goodbye";
            String association3="groundhog day";
            System.out.println("NAME               ASSOCIATION");
            System.out.println("------------------------------");
            columnFixer(name1,15,association1);
            columnFixer(name2,15,association2);
            columnFixer(name3,15,association3);
        public static void columnFixer(String name,int columnWidth,String association){
            System.out.print(name);
            //the number 4 is for the space that NAME word is taking
            int spacesLeft = columnWidth + 4 - name.length();
            for (int i = 0; i < spacesLeft; i++)  {
                System.out.print(" ");
            System.out.print(association);
            System.out.println();
    }and the output would be like this:
    NAME               ASSOCIATION
    Jim Carry          lol
    Marry Poppins      goodbye
    Bill Murray        groundhog day

  • Quick question - Printing a poster (multi-sheets) using iPhoto

    I know I've read about a couple programs that will allow you to print multi-sheets of a high def picture from iPhoto to create a poster but now that I want one I can't think of the program names. Can anyone help?
    Thank you!
    Walman

    No these are programs that take a large .jpg picture file and print it at large scale but across multiple sheets on standard printers. Then you piece them together on a wall. It's not professional but it's a great way to make a large printing of your photo.
    I'm pretty sure "Mac Gems" had a review a few weeks ago but for the life of me I'm not finding this type of program anywhere at the moment.
    Thanks.

  • Question printing thumbnails in PSE7

    I am using PSE7 and when I print the thumbnail pictures I would like to include the time the pictures were taken.  The details show the date, time and jpg number, but only prints the date and jpg number.

    Hi Tracy,
    Open XnView in its "Browser" mode.
    Navigate to your image directory and select the photos you want to print, and click the "Print" button.
    In the Print dialog window, on the "Layout" tab, choose "Thumbnails" as the layout type.
    On the "Caption" tab, check the "Show Information" box.
    In the entry field below, hit the "Insert" button, and select EXIF Image...Date Taken.
    In my example, I put in three pieces of info on their own lines.  When you choose that "Date Taken", the format will be
    [Y-m-d_H-M-S]
    which includes the date and time on one line.  I changed the format as you can see in the screen capture to separate the date and time so they are on their own lines.
    Ken

  • ZMEDRUCK PO how generate pdf on the server

    Good morning experts,
    i need to generate a PDF when the PO it's printed and save it on a server.
    In the tr. NACE i have already defined ZMEDRUCK:             SAPFM06P     ENTRY_NEU     ZMEDRUCK
    The question is, i need also to copy the program SAPFM06P and SAPLMEDRUCK to manage the creation of the PDF via function or it's possible get the spool number outside the program to generate it anda save the PDF on the server.
    If it's possible to get the spool id outside the program SAPFM06P i avoid to modify thew standard program creating a Z program.
    help please
    thanks

    Hi,
    Can you take the below code as a reference. this will guide you how to fix your problem.
    REPORT zxx_viewer_zoom.
    * T A B L E S    D E C L A R A T I O N
    *---Tables Used.
    TABLES: afpo,
            mara,
            marc,
            aufk,
            afko,
            itcoo,
            nast,                          "Messages
            *nast,                         "Messages
            tnapr,                         "Programs & Forms
            addr_key,
            arc_params,                    "Archive parameters
            toa_dara.                      "Archive parameters
    * I N T E R N A L    T A B L E S     D E C L A R A T I O N
    *--Internal Tables Used.
    * D A T A     D E C L A R A T I O N
    *--Global Variables Used.
    DATA: ws_matnr LIKE afpo-matnr,
          ws_werks LIKE aufk-werks,
          ws_mtart LIKE mara-mtart,
          ws_wrkst LIKE mara-wrkst,
          ws_fname TYPE rs38l_fnam,
          ws_ctrlp TYPE ssfctrlop,
          ws_optns TYPE ssfcompop,
          w_padest LIKE tsp03l-padest.                          "BMC01+
    DATA: da_message_printed(1) TYPE c,
          da_preview_processed(1) TYPE c,
          repeat(1) TYPE c,
          da_subrc LIKE sy-subrc.
    DATA: w_otfdata  TYPE ssfcrescl.
    DATA: BEGIN OF it_itcoo OCCURS 0.
            INCLUDE STRUCTURE itcoo.
    DATA: END OF it_itcoo.
    DATA: w_otf  TYPE itcoo.
    *--Data Declaration for Printing Layout
    DATA: ls_itcpo     TYPE itcpo.
    DATA: lf_repid     TYPE sy-repid.
    DATA: lf_device    TYPE tddevice.
    DATA: cf_retcode   TYPE sy-subrc.
    DATA: ls_recipient TYPE swotobjid.
    DATA: ls_sender    TYPE swotobjid.
    DATA: ls_control_param   TYPE ssfctrlop.
    DATA: ls_composer_param  TYPE ssfcompop.
    DATA: ls_addr_key        LIKE addr_key.
    DATA: w_screen(1) TYPE c.
    DATA: xscreen(1) TYPE c.
    DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
    * C O N S T A N T S
    CONSTANTS: c_fas1(8)  TYPE c VALUE 'PRINTFAS',
               c_fas2(15) TYPE c VALUE 'PRINTFASDRAWING',
               c_wip1(8)  TYPE c VALUE 'PRINTWIP',
               c_wip2(15) TYPE c VALUE 'PRINTWIPDRAWING'.
    * S E L E C T I O N - S C R E E N.
    SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-bl1.
    * Production order
    PARAMETERS: p_aufnr LIKE afpo-aufnr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK bl1.
    START-OF-SELECTION.
    *--Get Partially processed orders
      MOVE: sy-mandt         TO nast-mandt,
            'V1'             TO nast-kappl,
            p_aufnr          TO nast-objky,
            p_aufnr          TO nast-parnr,
            sy-langu         TO nast-spras,
            sy-datum         TO nast-erdat,
            '1'              TO nast-nacha,
            '3'              TO nast-vsztp,
            'X'              TO nast-manue,
            sy-uname         TO nast-usnam,
            'DFLT'           TO nast-ldest,
            sy-langu         TO nast-tdspras,
            'Shop Floor Papers' TO nast-tdcovtitle,
            '1'              TO nast-tdarmod,
            'BUS2032'        TO nast-objtype.
    *--Printer settings
      CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
        EXPORTING
          pi_nast       = nast
          pi_repid      = sy-repid
        IMPORTING
          pe_returncode = cf_retcode
          pe_itcpo      = ls_itcpo
          pe_device     = lf_device
          pe_recipient  = ls_recipient
          pe_sender     = ls_sender.
      MOVE-CORRESPONDING ls_itcpo TO ls_composer_param.
      ls_control_param-device      = 'PRINTER'.
      ls_control_param-no_dialog   = 'X'.
      ls_control_param-preview     = 'X'.
      ls_control_param-getotf      = ls_itcpo-tdgetotf.
      ls_control_param-langu       = sy-langu.
      CLEAR:   ws_werks.
      SELECT   SINGLE werks
               INTO   ws_werks
               FROM   aufk
               WHERE  aufnr = p_aufnr.
      CLEAR:   ws_matnr.
      SELECT   SINGLE plnbez
               INTO   ws_matnr
               FROM   afko
               WHERE  aufnr = p_aufnr.
      CLEAR:   marc.
      SELECT   SINGLE matgr
               INTO   marc-matgr
               FROM   marc
               WHERE  matnr = ws_matnr
               AND    werks = ws_werks.
    *  CHECK NOT ws_matnr IS INITIAL.       
      IF NOT ws_matnr IS INITIAL.          
        SELECT   SINGLE matgr
                 INTO   marc-matgr
                 FROM   marc
                 WHERE  matnr = ws_matnr
                 AND    werks = ws_werks.
      ELSE.
        marc-matgr = c_wip1.
      ENDIF.
    END-OF-SELECTION.
      PERFORM call_smartform.
    * F O R M    R O U T I N E S
    *&      Form  call_smartform
    *       text
    FORM call_smartform.
      CLEAR: ws_ctrlp, ws_optns, ws_fname.
      TRANSLATE marc-matgr TO UPPER CASE.
      IF marc-matgr = c_fas1 OR
         marc-matgr = c_fas2.
        PERFORM call_paper_a.
      ELSEIF marc-matgr = c_wip1 OR
             marc-matgr = c_wip2.
        PERFORM call_paper_b.
      ENDIF.
    ENDFORM.                    "call_smartform
    *&      Form  call_paper_a
    *       text
    FORM call_paper_a.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZPPSF_SHOP_FLOOR_PAPER_C' 
        IMPORTING
          fm_name            = ws_fname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      CHECK NOT ws_fname IS INITIAL.
      CLEAR w_otfdata.
      ls_control_param-getotf = 'X'.
      CALL FUNCTION ws_fname
        EXPORTING
          archive_index      = toa_dara
          archive_parameters = arc_params
          control_parameters = ls_control_param
          mail_recipient     = ls_recipient
          mail_sender        = ls_sender
          output_options     = ls_composer_param
          user_settings      = ' '
          is_nast            = nast
          aufnr              = p_aufnr
          flag_orig          = 'X'
        IMPORTING
          job_output_info    = w_otfdata
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      LOOP AT w_otfdata-otfdata INTO w_otf.
        APPEND w_otf TO it_itcoo.
      ENDLOOP.
      CALL FUNCTION 'HR_IT_DISPLAY_WITH_PDF'
        TABLES
          otf_table = it_itcoo.
    ENDFORM.                    "call_paper_a
    *&      Form  call_paper_b
    *       text
    FORM call_paper_b.
      DATA: ws_doknr TYPE draw-doknr,
            ws_dokvr TYPE draw-dokvr.
      CLEAR: ws_doknr, ws_dokvr.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZPPSF_SHOP_FLOOR_PAPER_B'
        IMPORTING
          fm_name            = ws_fname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      CHECK NOT ws_fname IS INITIAL.
      CLEAR w_otfdata.
      ls_control_param-getotf = 'X'.
      CALL FUNCTION ws_fname
        EXPORTING
          archive_index      = toa_dara
          archive_parameters = arc_params
          control_parameters = ls_control_param
          mail_recipient     = ls_recipient
          mail_sender        = ls_sender
          output_options     = ls_composer_param
          user_settings      = ' '
          is_nast            = nast
          aufnr              = p_aufnr
          doknr              = ws_doknr
          dokvr              = ws_dokvr
          flag_orig          = 'X'
        IMPORTING
          job_output_info    = w_otfdata
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      LOOP AT w_otfdata-otfdata INTO w_otf.
        APPEND w_otf TO it_itcoo.
      ENDLOOP.
      CALL FUNCTION 'HR_IT_DISPLAY_WITH_PDF'
        TABLES
          otf_table = it_itcoo.
    ENDFORM.                    "call_paper_b
    Thanks,
    Chidanand

  • How to get the PO no in the smart form and in the print program from ME23N

    hello all,
                     I am new to smart form printing.I want to make a smartform along with print program that will show PO Details.It has to be created as an o/p type in ME23N. I have created an o/p type ZPO using NACE ..Can some one tell me how to get the PO number in the smart form and in the print program  from ME23N ,so that I can then program the necessary calculations?plz help me with the code.Thanks in advance.
    Subhabrata.

    Hello Everyone,
    I am new to the forum and also to abap.
    Excuse me if it is a basic question.
    I am taking care of the output types.
    This is 1st time SAP will be implemented .
    For purchase order , I go to NACE ---EF----NEU---Processing routines
    print output---SAPFM06P---ENTRY_NEU----MEDRUCK
    FAX-----------SAPFM06P---ENTRY_NEU----MEDRUCK
    EDI------------RANASTED--EDI_PROCESSING
    DISTRIBUTION(ALE)---RANASTED---ALE_PROCESSING
    Are the above settings fine ?
    What are the standard programs for the PO outputs . I am looking for the smartforms and the driver program .
    I searched and found that IN ECC 6 , we have to install OSS notes .
    Gurus, please help  me . Let me know what all oss notes be implemented and how to proceed from here .
    Any help will be greatly appreciated ,
    Monalisa

  • PO Item Text Not Printing correctly

    Hello,
    Per the config settings, the PR Item Text is transferred to the PO Item text while creation of a PO.
    When the PO is created, one can see the PO Item Text maintained in ME23N, but when you do the print
    preview / print output, it is not displayed.
    Few observations I would like to point out:-
    1) Tables STXH and STXL are maintained correctly for PR.
    2) Tables STXH and STXL are not maintained when the PO is created.
    3) If you do the changes in PO Item text through ME22N for say Line Item 0010 and save, then print preview / print output shows only for Item 0010 since the entries are not present in STXH and STXL.
    4) In T-code ME23N, when you go to PO Item Text tab for Line item 0010, then interestingly PO Print Preview shows only for 0010 even though there are no table entries. If you drill down for all line items, the print preview shows for all.
    Can anyone please suggest why the print preview / print output does not show for all line items and why SAP is behaving this way?
    Is there any other config settings to be done?
    Regards,
    Sanjiv

    Hi Sanjeev,
    Can you tell me what did u do for the item text to appear on the foem. Am having the same issue. Did u do any cnahes in teh form / driver program?....Pls let me know.
    What was the customisation that was affecting it.
    I am using the same
    SAPFM06P ENTRY_NEU ZMEDRUCK(standard program).
    Did u do any changes in the form? I want the item text to appear below the item no.
    Please let me know.
    Thanks
    Micky

  • Cript - Message type- Error in Printing

    Hi,
       We have developed the custom srcipt for the PO printing and configured it NACE.
    Now we are facing strange porblem that when we creat message type using this output type then it works for one PO and does not work with the other PO. The status is shown in yellow. Please let me know what could be the reason.
    Regards,
    Shweta.

    SAP Standard Scripts ( how to Modify Standard Scripts)
    Go to transaction OMFE. Tell me what you see there for the output type you are interested in. Let me take the standard output type NEU. The entry looks something like this.
    NEU Purchase order 1 SAPFM06P ENTRY_NEU MEDRUCK.
    The first one is your output type, next is its description, next is the medium, then the program, routine, and the form name.
    You already copied the layout MEDRUCK to ZMEDRUCK. Now copy SAPFM06P to ZZSAPFM06P. Now ENTRY_NEU routine is in the include FM06PE02. You need to make your changes here to accommodate for the new field. So copy this include to ZZFM06PE02 and make your changes. Also, in ZZSAPFM06P, change the line where it says INCLUDE FM06PE02 to INCLUDE ZZFM06PE02.
    Now in this routine ENTRY_NEU, there is a function module call ME_READ_PO_FOR_PRINTING which reads in the PO data from the tables. We need to copy this function module as well as this is where you will do your extra selections for the new fields. You will do the same with the other function call ME_PRINT_PO, if you need to change anything on the print.
    after this to define output type...
    NACE
    You can track the form and the print program used for that form
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    EX--in simple terms..take a transaction say ME21N ( Purchase Order ), u can see a Print icon there. now when u click on this icon, it has to print the PO document. Now how does it do that? when u click Print, the control gets transffered to a print program, now which program gets triggered is decided by what program name u specify in NACE.
    So in NACE>EF>Output Type>NEU>processing routine--> u can see some standard program already configured( maybe SAPFM06P n form MEDRUCK )..these are the programs n sapscript that gets executed wen u say "PRINT" in the transactrion...so u can customise the print program for customer changes over here by copying the standard program n form into a Z/Y one and replacing the program names in NACE.
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    Debugging Document.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    Reward points for useful Answers

  • Emailing of PO - Where in SAPFM06P (Driver program for MEDRUCK)?

    Just a little bit of background, I used Vijaya Lakshmi's smartform driver that replicated the contents of the standard sapscript driver SAPFM06P (see [Printing Purchase Order from ME9F using custom program and smartform; and [http://vjkvijaya.blogspot.com/2009/03/puchace-order-smartform-driver-program.html]). But it does not send the email so I examined the code of the standard driver.
    External Output (email) has a medium (TNAPR-NACHA) of 5. I searched for the text "nacha" in SAPFM06P and It's inside the subroutine adobe_print_output (in include FM06PE04). It also shows there how adobe forms are emailed. This subroutine is only called in adobe_entry_neu (in include FM06PE03). For the entry subroutine of MEDRUCK, entry_neu, only calls to 2 functions are there: ME_READ_PO_FOR_PRINTING, and ME_PRINT_PO.
    Now, the question: How does SAPFM06P handle the NEU medium 5 for emails? (especially also the queueing in transaction SCOT)
    I tried replacing ENTRY_NEU with ADOBE_ENTRY_NEU in transaction NACE but this actually is for Adobe forms (of which I am not familiar) and since there is no corresponding adobe form, i had an error.
    I tried examining the function ME_PRINT_PO but I mostly see sapscript calls (open_form, write_form, close_form). Although I haven't dug deep enough into this rabbit hole, I feel that the email handling is not here, though I am not certain as well.
    Any insights that would point me in the right direction will be appreciated.
    Kyle

    Anyone??

  • PO SAPScript question.

    Hello SAPients!
    I'm a little confused with a situation I have, I have to modify SAPScript MEDRUCK (ZMEDRUCK in fact) and print program SAPFM06P (ZSAPFM06P) I wanted to modify the ENTRY_NEU subroutine but there I can only see this code:
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
           exporting
                ix_nast        = l_nast
                ix_druvo       = l_druvo
                doc            = l_doc
                ix_screen      = ent_screen
                ix_from_memory = l_from_memory
                ix_toa_dara    = toa_dara
                ix_arc_params  = arc_params
                ix_fonam       = tnapr-fonam          "HW 214570
           importing
                ex_retco       = ent_retco.
    endform.
    According to the development standards for this project, the SAPScript should not have PERFORM sentences, all the processing and calculating functionality should be in the print program, does that mean I have to modify the Function modules? Do you know other way of doing it? What would you recommend?
    Thanks

    In reality, the print program that you mention is really just an "in between" driver, the actually printing goes on in the function group MEDRUCK or ZMEDRUCK.  You must copy the function group MEDRUCK to a "Z" version called ZMEDRUCK, this will then allow you to copy the function modules within,   one of wich being the ME_PRINT_PO function module,   copy this into Z_ME_PRINT_PO.  Now in this function module is where you will make you modifications.  There are lot so includes in there where you will need to copy them as well and comment out the old include name and include the "Z" version.  Also, you will need to change the call in the mentioned program above so that it calls the "Z" version of your print function module.
    call function 'Z_ME_PRINT_PO'            "<--  Like So
    exporting
    ix_nast = l_nast
    ix_druvo = l_druvo
    doc = l_doc
    ix_screen = ent_screen
    ix_from_memory = l_from_memory
    ix_toa_dara = toa_dara
    ix_arc_params = arc_params
    ix_fonam = tnapr-fonam "HW 214570
    importing
    ex_retco = ent_retco.
    endform.
    REgards,
    Rich Heilman

Maybe you are looking for

  • PL/SQL Developer

    Hi, can anyone tell when exactly does a Pl/SQL Developer becomes inevitable in a project? #Can you explain a real time situation(with respect to a project) when a pl/sql developer plays his role in a project. #Will the front end for such projects be

  • Trying to upgrade from logic 10.0.7 to 10.1. Help?

    Hello, I recently saw that logic has version 10.1 out now, and the you need maverick or later to run it.  I was running mountain lion and logic 10.0.7.  To get the upgrade I upgraded my macbook to yosemeti. But now after going to the app store, its s

  • Two phones - one home mac - one office mac - one family .me account

    My partner (3G) and I(3GS) each have an iphone, we share an imac at home and I have a powermac at work. Our problem is the fact that Hannahs phone is not showing up on find my iphone while mine is - any ideas?

  • SAP tables used to fetch role names into 'Lookup.SAP.UM.Roles'

    SAP User Management Lookup Recon schedule task is used to populate all the Lookup's defined in 'Lookup.SAP.CUA.LookupMappings'. In case of the lookup 'Lookup.SAP.UM.Roles', the description of the SAP Role is populated in Decode value. In our environm

  • Safe to purchase an 27" iMac

    I'm the owner of a MacBook Pro and an ancient QuickSilver machine, and I'm considering finally replacing the Quicksilver. I would like to replace it with a 27" iMac, but I recall hearing numerous stories about yellowing of the screen and receiving cr