Purchase Order (Medruck)

Hi Expert:
I've requirement to print the text / Comment at the left corner of  PO  while  PO printing ( Copy of Medruck)  is being done  as
1. Reprint :  if again it is being printed 
2. Changed PO  : if again the printing is being taken after some changes in that particular Purchase order No.
I have  logic  for 1st case : (processing Status) nast-vstat = '1'   and in the 2nd case  (Change Message Flag) nast-aende = 'X' 
but the problem is,  Nast table udpates only after processing  I mean after saving.  If anyone come out from purchase order after saving and then takes the print out , it works fine other wise no comment / text come if before saving or processing the print out is being taken.
-> From anywhere if the 2nd time or after changing the purchase order, any print out would be taken , would have the respective Comments ( Reprint / Changed PO).
An appreciation for the quick repl and thanks in advance,
Regards
Shashi

//2. Changed PO : if again the printing is being taken after some changes in that particular Purchase order No.
For this to get printed in your assignment the change log has to be created for that PO and this will update the Corresponding PO tables like EKKO EKPO and EKET tables .
So the change log for the PO can be handled from tables CDHDR and CDPOS.
at header (EKKO) and item (EKPO) by comparing the same.
So when you are printing the form again and u need to confirm that the particular PO has been changed and then pop the text ( Reprint /<b> Changed PO</b>).
you can access a select on CDHDR and CDPOS , set a flag for this and print the text when the Flag is set .Later clear the Flag.
hope this helps ,
regards,
vijay.

Similar Messages

  • Regarding Purchase order MEDRUCK

    Hi gurus,
         What actual my doubt is when i saved purchase order that time i need to fetch . For example on 10/01/2008 at 1.00 pm they created purchase order.may be tomorrow they will send that purchase order to vendor.so if they take print out on tomorrow, it needs to show todays ate time.But by default in satndard purcahes order MEDRUCK the date will be displayed,So the total problem with the time field only.When i consult my functional people they told there is no time field in tables so  you have to fetch that on . Please guide for this query.
                 Thanks in advance.
    Regards
    Srihari.

    Hi,
    You cannot enable the Copy From button on the purchase order window. This is because there is no originating document for a purchase order (which is the first document in the chain on the purchasing side).
    Perhaps if you explain your reasons for needing this functionality someone can come up with a suitable workaround.
    Kind Regards,
    Owen

  • Purchase order me21n.

    hello all,
    in sap the purchase order(MEDRUCK) gives the conditions of all the item collectively at the last.
    is it possible to identify for which items in purchase order which condition is applied........?
    if yes can neone suggest me the way.

    Hi srikant,
    please take this warning seriously: * Do not try to create a copy of MEDRUCK module pool *
    I have been in projects where consultants tried this: It is far more complex than expected, you will never ever again have the chance for a smooth release change, and maintenance will be a disaster.
    In SAP Script you can use external performs (see [Calling ABAP Subroutines: PERFORM|http://help.sap.com/saphelp_nw73/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm]), in smartforms you have a detailed guide to just your question (see [Printing Conditions|http://help.sap.com/erp2005_ehp_05/helpdata/EN/18/54986ddaeb4bd18241b6928d676ad8/frameset.htm]), for ADOBE forms I did not check.
    Please use the SAP online help.
    And please be aware that you can not expect an answer exactly to your question if you do not give the details: Which process, what transaction, used Form, used program, used output technique, ...
    Regards,
    Clemens

  • Medruck sapscript-purchase order text

    I would like to print the Purchase order header texts in the first line of main
    program.But it is printing at the end only.
    SAPSCRIPT -medruck
    Text SUPPL_TEXT
    &TTXIT-TDTEXT&
    INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID &T166A-TDID& Thanks

    Try using the below code...
    :/TOP
    INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID &T166A-TDID&
    :/ENDTOP
    Thank You
    Suresh

  • Purchase Order Output Message

    Hello all,
    in a purchase orderI will send out IDOC's. After creating the purchase order a proposal for an output type had been made (checked in analysis, the condition record has been found, but no proposal had been made in the purchase order. After saving the PO there is no record in NAST.
    Has somebody an idea?
    Regards
    Norbert

    hi
    You need to do some configuration for this.
    u2022 Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    VB

  • Purchase order and rfq  smartforms issues

    Anyone please let me know the issues faced with purchase order and rfq smartforms

    Problems I had is changed line items to print a changed PO/RFQ wich will print what was changed with each line.
    Can't remember the solution in total. If you search on the FM ME_READ_CHANGES_EINKBELEG in the main program of the SAP standard and setup a default PO to print using the standard program and form medruck you can debug it.
    There is a change flag when printing the form, field - NAST-AENDE.
    Else the form is very much streight forward.
    Regards,
    Marius

  • Reg Amended Purchase order

    Hi friends
    iam facing problem with amended purchase order.
    when ever i make any changes to any line items in spool iam getting only those line items which got changed .
    but my client want me to display all the line items . i copied standard script MEDRUCK and modified. 
    Pls help me with the solution
    Thnaks

    Hi,
    In standard MM, SAP send only change on Purchase Order. See in the customizing if it's possible to resend all ( or see with your functionnal people).
    Rgds

  • Creating a Purchase Order Smart Form (Form Interface)

    After reading up on all the posts about making a PO smart form I know this:
    - An SAP script "medruck" is the current output
    - A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
    - You need to install an update to get those smartforms if you are using ECC 6.0
    So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system.  I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
    Basically all I need to know is what form interface parameters do I pass in?  Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N?  Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Purchase order for MM-

    Hi ,
    I have modified standard 'MEDRUCK' script form.
    let it be script1.
    Now i have to do another script say script2 , where in if any body tries to print from me23n transaction, they should be blocked. they should be able to only print preview ( no print access) this second script2.
    NOTE: script1 is for external purpose.(print preview + print)
    script2 is for internal purpose (only print preview)
    Both script1 and script2 forms are same. i just made a copy of script1 and named it as script2.
    they are for me23n transaction for purchase order.
    Can any body tell me how to control this. can we do this may be by controlling output types of me23n.
    or
    do i have to redesign form and write driver program.
    please suggest me the best way..... .....................
    Thanks & Regards,
    krishna chaitanya.s

    Hi,
    There are standard workflows available for multi release of PO...
    I am not having access of system but think it is WS2075 or WS00038...
    The workflow is based on a logic, everytime a release step is activated in PO... an event is trigerred, so for every release there will be new instance of the workflow...
    So in your case it supports multi level PO release...
    Regards
    Gautam

  • Problem in Automatic pickup of message in output of Purchase Order

    Dear friends,
    i am facing a problem in PO at output messages, after creating the PO i am unable to go for print automatically. ie: i nead to give the output type NEU in the messages manually.
    i was gone through all the possibulities and settings i have to give. can any one please tell me all the possibulities that causes this problem.
    i am getting the below message regarding this
    No message generated for output of purchasing document
    Message no. 06261
    Diagnosis
    The system was not able to find a message record via the message determination schema. Therefore it was not possible for such a record to be generated for this purchasing document. In consequence, the purchasing document cannot be outputted (printed or transmitted).
    Procedure
    The message determination process should be checked and, if necessary, corrected.
    The message record can be created manually for this document. For this purpose, choose the function "Messages" in the menu "Header" and maintain the necessary data.

    hi
    You need to do some configuration for this.
    u2022 Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    VB

  • Purchase Order External Send with email body text

    hi guru,
    i saw lot of threads but i didn't get coreect answer
    i did below process
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    mail subject is going ,but mail text is not coming.
    some people  suggest this sap note
    Note 786847 - E-mail purchase order w/ e-mail text and several attachments
    i did not get this note.
    give the solution for email body text ,i read some thread,it will solve through abap development .
    please  give solution
    regards
    vijay

    Hi
    1. GO to tcode SCOT.
    2. Double click on SMTP
    3. Click on the set button next to internet
    4. In this screen for SAP Script/ Forms select TXT.
    Regards
    Girish
    Edited by: Girish Bettaiah on Aug 8, 2011 3:11 PM

  • MM Purchase Order IDOC NEU output type configuration

    Hi All,
    after creation of Purchase Order in ME21N in ECC 6.0 server, i want an IDOC for Purchase order to be created...........
    i saw there is a standard output type NEU and it has EDI and Distribution Model as medium..........
    when i went to ME21N and specified in message button output type of NEU, then the PO which i created had a NEU in messages but on opening  a new session and running ME21N and creating a second PO, then in this PO there is no output type for NEU....
    So i want to know in SPRO where is the exact location which specifies which output type will be triggered for IDOC creation on PO creation in ECC for message control...............
    plz help guys...........

    Hi,
    If it configured for EDI and Distribution Model , now check condition record in T.code:MN06{ if you are geeting for one PO, you should get for other PO also)
    Also check the following confi. details for Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select: 
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order{NEU}
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create ,,,use medium '6' 
    Now you create PO (ME21N) and save it and then release.
    Also check in NACE t.code for standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines and for the output type for default values, a communication strategy needs to be maintained in the Customizing that supports . You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
    Regards,
    Biju K

  • Purchase Order by email

    Hi,
    I have completed all the steps mentioned in SAP Note 191470 in order to email the Purchase Order.
    I am able to successfully create the purchase Order and even able to print it.
    However, I am not able to send the email. In ME21N, the message are showing in red colour.
    I selected option 4 in order to email (immediately) and maintained the communication structure.
    My gateway is already opened as I can see the emails in SOST for other activities like payment advice.
    I cannot even see any log also.
    Please let me know any further steps are missing.
    Thanks,
    Ravi

    Hi,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be for e.g. PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated.
    this may help U !
    REgards,
    Pardeep Malik

  • Purchase order document external send status

    From other posted messages that table NAST is not related to table SOST.
    We send PO to vendors via Esker Fax, therefore, the external sent status can be viewed via transaction code SOST.  Data of external sent is maintained in table SOST. But the document number is not linked with SOST table.  Is there any other way I can get the external sent status for each external sent document?
    Thanks,
    Maggie Chen
    The Solae Company
    [email protected]

    The vendor e-mail address is picked up from the master data and the purchaser's e-mail would be picked up from their user account. The problem is that I don't know at what stage in the program SAPFM06P, used for sending the purchase order, I could set up the distribution list.
    If I set the vendor address to name.address@somewhere; name2.address@somewhere else this works and both name and name2 receive the e-mail. But it would mean the purchasers ammending the vendor e-mail address each time, which just isn't practical.
    I probably should have said that I'm using SAP version 46c and the e-mail is sent using standard SAP settings for 5-External send using program SAPFM06P and form MEDRUCK.
    Thanks for the advice
    Karen
    Message was edited by: Karen Dean

  • Purchase Order Problem

    HI Experts,
      I have copied a purchase order form ZMEDRUCK from Medruck.  Modified according to the requirements of functional consultant without deleting a single element.  I have commented everything in the windows except /E - element lines.  Used subroutines to fetch some data and displayed.  Its working normally, but when enduser is trying to generate a PO with some JPY currency, it is not giving print preview nor print. 
    In the subroutine pool for calculating grand total I have used the following code.
    FORM freight TABLES   TA_INPUT STRUCTURE ITCSY
                            TA_OUTPUT STRUCTURE ITCSY.      "Structure
      DATA: TP_FREIGHT LIKE KONV-KAWRT,  " freight charges
            TP_CUSTOMS LIKE KONV-KAWRT,  " customs charges
            TP_EBELN   LIKE EKKO-EBELN,  " PO number
            TP_KNUMV   LIKE EKKO-KNUMV,  " document condition number
            TP_GTOTAL  TYPE P DECIMALS 2,  " grand total
            TP_TOTAL   LIKE KONV-KAWRT. " like konv-kawrt  " total before freight and customs.
      DATA: lv_grandtot(16),             " TYPE P DECIMALS 2,
                                       " lv_grandtot type konv-kawrt,
            tp_total1(16),
            tp_waers like ekko-waers.
      DATA : IT_KONV LIKE KONV OCCURS 0 WITH HEADER LINE. " for condition values.
      read table TA_INPUT with key 'EKKO-EBELN'.
      TP_EBELN = TA_INPUT-VALUE.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = TP_EBELN
        IMPORTING
          OUTPUT = TP_EBELN.
      READ TABLE TA_INPUT WITH KEY 'KOMK-FKWRT'.
    **without this function module, getting short dump while adding for grand total.
    **CONDENSE TA_INPUT-VALUE.
    *MOVE TA_INPUT-VALUE TO TP_TOTAL.
      CALL FUNCTION 'CATS_ITS_MAKE_STRING_NUMERICAL'
        EXPORTING
          INPUT_STRING  = TA_INPUT-VALUE
        IMPORTING
          VALUE         = TP_TOTAL
        EXCEPTIONS
          NOT_NUMERICAL = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    READ TABLE TA_INPUT WITH KEY 'EKKO-WAERS'.
    tp_waers = ta_input-value.
    if tp_waers = 'JPY'.
    tp_total = tp_total * 10.
    endif.
    WRITE: TP_TOTAL TO TP_TOTAL1 CURRENCY 'JPY' LEFT-JUSTIFIED.
      SELECT SINGLE KNUMV FROM EKKO INTO TP_KNUMV WHERE EBELN = tp_ebeln.
      SELECT * FROM KONV INTO TABLE IT_KONV WHERE KNUMV = TP_KNUMV
                                          AND KSCHL IN ('FRB1' , 'ZOB1').
    *BREAK-POINT.
      LOOP AT IT_KONV.
        CASE IT_KONV-KSCHL.
          WHEN 'FRB1'.
            TP_FREIGHT = TP_FREIGHT + IT_KONV-KBETR.
          WHEN 'ZOB1'.
            TP_CUSTOMS = TP_CUSTOMS + IT_KONV-KBETR.
        ENDCASE.
      ENDLOOP.
    *******grand total.
    ***here if don't use function module CATS_ITS_MAKE_STRING_NUMERICAL, I get short dump.
      TP_GTOTAL = TP_TOTAL + TP_FREIGHT + TP_CUSTOMS.
    *WRITE TP_GTOTAL TO lv_grandtot CURRENCY tp_waers DECIMALS 2 LEFT-JUSTIFIED.
    WRITE TP_GTOTAL TO lv_grandtot CURRENCY tp_waers LEFT-JUSTIFIED.
    *move tp_gtotal to lv_grandtot.
      loop at TA_OUTPUT.
        case TA_OUTPUT-NAME.
          when 'TP_FREIGHT'.
            MOVE TP_FREIGHT TO TA_OUTPUT-VALUE  .
            CONDENSE TA_OUTPUT-VALUE.
            modify TA_OUTPUT.
          when 'TP_CUSTOMS'.
            MOVE TP_CUSTOMS TO TA_OUTPUT-VALUE  .
            CONDENSE TA_OUTPUT-VALUE.
            modify TA_OUTPUT.
          when 'TP_GTOTAL'.
            MOVE lv_grandtot TO TA_OUTPUT-VALUE  .
            CONDENSE TA_OUTPUT-VALUE.
            modify TA_OUTPUT.
        endcase.
      endloop.
    endform.                    "freight
    It is working well even with JPY currency, but this time when she was entering a material with JPY currency, neither preview is coming nor print.  In the status bar(in me21n) it shows error that a certain include is not available, but when I enter into script debugging mode, print preview is coming and grand total is 0, because of error in function module.  In the ABAP debugging mode, in the function module I have used, the sy-subrc is 1.  This is go-live issue and this problem has occurred in Prod server.  We could not stimulate the scene in Dev server.
    In Dev, I noticed that when ever I tick off in 'Ret PO' check box, the same problem is coming.
    Can any one help me with this problem.

    The table PO_AGENTS stores the buyers .
    To define a buyer, you need to define an employee (Purchasing super user > Setup > Personnel > Employees), then a Buyer (Purchasing super user > Setup>Personnel > Buyers)

Maybe you are looking for

  • CS6 components keep asking for serial number

    I have a non-cloud CS6 Master collection. From time to time when I launch one of the components, Photoshop, Premiere, Encore, Illustrator, etc. I get a dialog: "Your trial is about to expire, Licence this software". After I enter the serial number th

  • Quicksilver G4 will not boot from a cloned firewire external drive.

    Hi all, Just as the subject line says.  I know this is a problem for many PPC users.  I simply want to erase the HD so I can sell this Mac.  In order to do that, I need to boot from an external source.  I do not have the original disks that came with

  • My google has disappeared from my desktop

    My google suddenly disappeared from my desktop and I cannot find it on my phone to reinstate. Any help with this would be greatly appreciated.

  • Trying To make DB connection using DataSource

    Hi , I am working on Jdev 11g . Getting exception while trying to execute below code: import java.sql.*; import java.util.Hashtable; import javax.naming.*; import javax.sql.*; final class GetConnection { /** Uses JNDI and Datasource (preferred style)

  • Validating pdf document

    I have reports generated from SQL reporting services rendering pdf, I am trying to Validate pdf for any formatting issues after generating pdf report. Issues such as overlapping text fields, overlapping images, e.t.c Can any body give some inputs on