Purchase Order Script

Hi,
I have an output type which is configured for both create and change of Purchase order. When ever we do changes to Purchase order items after creation, if previous output has been released, then a new output will be determined to capture the changes as change message. When we give print with this output type, only changed items are coming on the output.
Can we get all the line items in the purchase order print output, even if there are no changes to the line items?
Please suggest, how can we get all the line items on the print.
Thanks,
Madhusudan.

Hi Madhusudan ,
Change orders are supposed to print only changed items .
You cannot print items which have not changed in a change order . You can do this but you will have to change the whole print program .
If you want to print the whole PO ( current snapshot of whole PO) you can do it . Goto ME22, select the original message and -> Repeat Print . ( original message will not have a tick in the change column ).
Cheers.

Similar Messages

  • Modify and add new field in standard Purchase Order script

    Hi All,
           I have some problem with Modify and add some new fields in Standard Purchase Order script. From ME22n transaction code it display PO detail. In <b>item detail</b> with <b>condition</b> tab all data will display in Currently PO script output.
           But I want to display ME22n->Item Detail->Invoice->Taxes Data. how to display this data in standard PO script. All data are fetch from <b>Structure</b> like ( KOMV,KOMVD..etc) then How it can be Display?
    Waiting for Replay.
    Himanshu Patel.

    Work with an Abaper.Tell your requirement [ addition of a field] and ask him to include this field by using the functionality " Field Exit".

  • Purchase order script issue

    when i copied the medruck form and then saved the data into nace transaction and then went to me22 and when i clicked on messages and i got the output screen stating output NEU is not defiened and i clicked on f4 button and found out there is only email option in it, how i need to save it and execute my form and what is partner tab in the screen, what i need to give in it.

    using NACE tocde we can assign print program to form.
    goto NACE->select the Application type(EF-purchase order)->select output types->NEU for new PO printout->double click on process routines_> sscroll right->specfiy ur form and print proggram there(instead of MEDRUCK give ZMEDRUCK)->save
    Nace is for message control settings. Say if u want to trigger a Smartform or an Idoc or any other customized program u can do the message control settings.
    Say at the time of Sales Order creation or updation u want to trigger a Smartform, then u have to follow the following steps:
    Goto NACE
    Select application V1 and then click Output Type.
    create a new Output type or copy the existing one abd save it with new name
    then in Processing Routine Mention the driver program name and in Form routine mention the main subroutine name.
    In Smartform mention your SMartform name and also the layout if u have ceated.
    Again go to NACE and Select application V1 and press Procedures.
    here out of the many procedures u have to select the right one and attach your Output Type to it.
    You can also create a condition record..Say if u want to trigger this Smartforms for Sales Order of particular type.
    Hope this helps.

  • Pricing Procedure for Purchase Order

    I have to pick item level conditions for value : bed , hr edu cess, edu cess, cst,lst.
    I am trying to the pick up fields kbetr and kwert for following conditions from konv table but there are only header level conditons.
    so How can i Proceed for this?
    For Purchase order script i have used standard Program SAPFM06P.But this a subroutine Pool Program.

    hi
    Write a Sub-routine in the form, where u can call all the pricing procedures.
    write this in the form
    /:           PERFORM TAX_AMT IN PROGRAM ZMM_REP_POTAX
    /:           USING &EKPO-NETWR& .
    /:           CHANGING *xxx-xxx&
    write a sub-routine  in abap editor , calling the program name and calculating pricing procedures
    regards
    sailendra kolakaluri

  • Printing messages on Purchase orders

    Is there a way to print special messages on Purchase orders- e.g. "we will be closed for Thanksgiving- no deliveries will be accepted" or "we will be closed on Jan 1& 2 and no deliveries will be accepted".
    We are not looking to print these messages all the time- only when applicable but on all PO's at that time.
    Is there a way to configure this message and it will trigger automatically on PO's where delivery would be somewhere around thanksgiving or New years? How does this message get trigggered to be printed on applicable PO's? Or do we need to do a custom program?
    Any ideas? Thank you in advance
    Raj Patel

    Hello Raj,
    There are two option to meet your requirement.
    <b>Option 1.</b> Maintain standard text with SO10 transaction and pull that in your PO script, You can design your script with one special message box so whenever you want to give special message you can go ahead and change the standard text in SO10 transaction. it will print your text message in all your printout/output.
    Caution: You need to change stardard text when you dont need that.
    <b>Option 2.</b> Maintain Z table for special text and pull the field in purchase order script. it will print for all your output. You can maintain this table with SM30 transaction code and change the text as per your requirement.
    Hope this helps.
    Regards,
    Arif Mansuri
    <b></b>

  • Open Purchase Order Conversion Script (Data Loader)

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

  • Scenario strategy: conversion script purchase orders

    Hi,
    Can anybody email me an example of an conversion script regarding Purchase orders from an other system into SAP? I'am specially interested how to deal with open purchase orders in the old system, when they could not be closed in the old system.
    Thank you in advance,
    Eric van Zundert : email [email protected]
    Additional info regarding strategies about PR's and source lists are very welcome.

    Hi,
    If you want to upload data from old legacy system to SAP you have to do data migration like with LSMW etc.You can upload the system the open purchase orders in legacy system to SAP.Contact your data migration team for that.Even u can retain the old PO ref.
    Thanks
    suresh

  • SAP Script - Purchase Order

    Dear All,
             I m working with sap script for purchase order. Now problem is that when i give the print from purchase order (ME23N) the data of internal table is not getting printed (where as itab contains data - checked in debugging). But when executing same print program  directly then data of itab is getting printed.
    I have assigned the print program, subroutine & sap script to the required (NEU) output type.
    Please help.
    Regards,
    Vikas Madaan

    Hi,
    You can not directly print the PO .
    First you need to create message for output type NEU.
    Do the following steps to do that..
    Goto transaction ME23N -> Goto  -> Messages
    Here eneter output type NEU and choose medium as Pinter.  Save the rescord
    Now try to print the PO.
    THanks,
    Ramakrishna

  • What is  Sap Scripts for purchase order

    hai,
    what is the sap script or smart form for purchase order,
    and how to modify the existing standerd one.
    explain me in step by step.

    hi
    Please ask question on sapscript in sapscript forum.
    use sap script form  medruck for PO
    SmartForm /BPR3PF/MMPO_L is the standard delivered Purchase Order in 4.6c
    Transaction code m/34 allows you to associate your 'Y' copy of the standad PO to your included company specific PO requirements such as company log graphic and other particulars.
    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.
    Yogesh N
    Edited by: Yogesh N on Aug 20, 2008 3:19 AM

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Purchase order smart forms and scripts

    i need to create a smart form and script in simple purchase order there is no requirements has given to me, can any one tell me in detail how i need to do and what are the procedures i need to follow, example code will be usefull and steps to build it.

    Hi,
    Go through the links mentioned below.
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    http://www.sapmaterial.com/smartform_example.html
    Re: Hands on SAP Smart Forms
    smartforms
    A Simple Smartform Tutorial
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Additional Fonts for your SMARTFORMS
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form.
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    Also, you can refer to the below link for the explanation:
    http://help.sap.com/saphelp_46c/helpdata/en/4b/83fb42df8f11d3969700a0c930660b/frameset.htm
    Reward if helpful.
    Regards,
    Harini.S

  • Custom Purchase Order Report

    Hi,
    We are trying to move away from pre-printed carbon copy forms and print Purchase Orders to our laser printer. To do this we need to customize our Purchase Order (landscape) report to include our Company logo/information and formatting lines/boxes/shading.
    What would be the best way to do this?
    Is it possible to somehow combine the PO text from Oracle Financials with the PO graphic file (a post script file)? Can the form be changed in Oracle Financials somehow? or with Oracle Reports? Has anyone used or heard of a third party solution that would do this?
    Any help would be greatly appreciated, Thanks

    Hi,
    Did you try with Pasta 3.0, did it work, we want to do the same thing and we test the functionnality of Pasta and it.S seem to work fine.

  • Q55: Relating AP Invoice payment direct to a Purchase Order

    Dear All,
    I want to create a report  that tells me which AP Invoice relates to a line item on a purchase order but am having difficulty in thinking through the logic.
    I can relate a GRPO to a PO and an API but cannot think how to relate an API direct to a PO.
    Can anyone give me some assistance please?
    Thanks,
    Robin

    Gordon, the data is being extracted correctly but each time I execute the report the columns appear in a different sequence. I have never experienced this before - do you know why this hsould happen?
    I have amended your script to the following so far:
    Select
    t0.docnum as 'PO Number',
    t0.cardname as 'Supplier',
    t0.docstatus as 'PO Status',
    t1.ItemCode as 'Item Code',
    t1.dscription as 'Description',
    t1.shipdate as 'Delivery Date',
    t1.whscode as 'Warehouse',
    t1.Quantity as 'Qty',
    t1.LineTotal as 'GBP',
    t3.DocNum as 'GR Number',
    t2.Quantity as 'GR Qty',
    t5.DocNum as 'AP Number',
    t4.Quantity as 'AP Qty'
    From
    opor t0 inner join por1 t1 on t1.docentry = t0.docentry
    left join pdn1 t2 on t2.baseentry = t0.docentry and t2.basetype = 22 and t2.baseline = t1.linenum
    left join opdn t3 on t3.docentry = t2.docentry
    left join pch1 t4 on (t4.baseentry = t3.docentry and t4.basetype = 20 and t4.baseline = t2.linenum)
    or (t4.baseentry = t0.docentry and t4.basetype = 22 and t4.baseline = t1.linenum)
    left join opch t5 on t5.docentry = t4.docentry
    WHERE
    t1.shipdate >= '[%0]' and
    t1.shipdate <= '[%1]'
    ORDER BY
    t0.docnum

  • 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

  • Use of SAVE_TEXT in customer exits / BADI for purchase order

    Hi All,
    I am trying to save some long text by using SAVE_TEXT function module in a badi implementation for purchase order header text. The same is working fine if i try to update the PO header text via a report. But if i try using badi (the code is written in a PAI event for the BADI), then though the text transfer and save is successful during the code excution, but for the first time when i add any text its not visible in ME22N tcode. Since its an online event. But when i double click on that editor and the sap script editor gets opened. then i press back button, the text is appearing on the same small screen edtor . after this any number of time i edit or delete text, the save_text function module works fine.
    My issue is why for the first time always i have to double click on the editor to open the sap script editor. I have also included commit_text in this case after save_text FM.
    the requirement here goes like this. in one tab for PO header the user will enter some number (This is a customizing screen implemented through badi.) and the corresponsing discription should appear when user clicks on text tab in po header screen (me21n / me22n).
    Kindly help.
    Thanks
    Mamata

    Hi  mamata rath
    I have solve the problem which similar to yours.  the code which is as the following
    DATA: textline TYPE tdline,
            name TYPE c LENGTH 70,
            glines TYPE TABLE OF tline,
            gline  LIKE LINE OF glines,
            ls_header TYPE thead.
         CONCATENATE ch_eban-banfn ch_eban-bnfpo INTO name.
             ls_header-tdobject = 'EBAN'.
             ls_header-tdname = name.
             ls_header-tdid = 'B01'.
             ls_header-tdspras = sy-langu.
             CALL FUNCTION 'SAVE_TEXT'
               EXPORTING
    *           CLIENT                = SY-MANDT
                 header                = ls_header
    *           INSERT                = ' '
    *           SAVEMODE_DIRECT       = ' '
    *           OWNER_SPECIFIED       = ' '
    *           LOCAL_CAT             = ' '
    *         IMPORTING
    *           FUNCTION              =
    *           NEWHEADER             =
               tables
                 lines                 = glines
               EXCEPTIONS
                 ID                    = 1
                 LANGUAGE              = 2
                 NAME                  = 3
                 OBJECT                = 4
                 OTHERS                = 5
              IF sy-subrc = 0.
                  CALL FUNCTION 'COMMIT_TEXT'
                    EXPORTING
                      OBJECT                = 'EBAN'
                      NAME                  = name
    *                ID                    = '*'
    *                LANGUAGE              = '*'
    *                SAVEMODE_DIRECT       = ' '
    *                KEEP                  = ' '
    *                LOCAL_CAT             = ' '
    *              IMPORTING
    *                COMMIT_COUNT          =
    *              TABLES
    *                T_OBJECT              =
    *                T_NAME                =
    *                T_ID                  =
    *                T_LANGUAGE            =
              ENDIF.

Maybe you are looking for

  • Is everyone liking the new update??

    i dunno if it is just me, but it seems as though my phone got very "laggy" after that update...and this new search page right before your regular home page is kinda weird, and laggy as well...is there anyway to get rid of the "search page"...on the b

  • Duplicate Entries in query Selection Criteria

    Hi, I am having Infoobject 'period' in Query Filter,in drop down of selection it is showing Two values for each period. This infoobject is fetching data from master table T009B,This table is having Two calenders for period. Please let me know what ca

  • Custom fields in Field status variant and Posting keys

    Hi, We have defined some custom fields in BSEG table for which we wish to control the field status through Field status groups and Posting keys as well. Has some one addressed this requirement before? Please provide me some inputs on this. Regards, S

  • HT2513 Why do I not see "Publish..." on the Calendar menu?

    Why do I not see "Publish..." on the Calendar menu? I am using iCal under OS X Lion (10.7.5).

  • Many sockets to choose from, which is the right one?

    Using Pavillon T279, with XP Home sp3. I have, for many years, tried to explore which socket on the computer's front corresponds to the "moveable discs" when right clicking "my computer" : There are several to choose from. My problem is as follows: I