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

Similar Messages

  • 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 MM Purchase Order custom field pulling through to FI

    Hi
    I have no idea where to start.  I need to create a custom field in the Purchase order which has to pull through to FI.  I've created an Account Assignment category I - Insurance and need to have a field on the Purchase order where the users can fill in the Claim Number. (Reference field).
    I thought I could maybe use the Unloading point field as we don't use it currently, but it doesn't pull through to reports on FI.
    Secondly I would like to link my Account assignment category to a specific General Ledger account (when the user choses Aac I, I would like a G/L to automatically populate and be grey (no changes possible)
    Thanks so much!
    Carina

    I Actually think I found the answer here - http://www.bluemarlinsys.com/ns/0603-03.asp
    1) How to default a General Ledger account on a Purchase Order account assignment for an inventory item?
    When you create a standard Purchase Order using ‘K’ account assignment to expense an inventory item with GL account and cost center, the system expects you to key in GL account number and the cost center. In case you don’t want to use the account modification ‘VBR’ assigned GL account number, it is possible to default a separate GL account with standard configuration steps.
    a) Transaction: OME9 (Maintain account assignment categories)
    Create a new account assignment category ‘Z’ by making a copy of account assignment category ‘K’.  Change account modification to ‘ZBR’.
    b) Transaction: OMGO (Define combination of item categories/account assignment categories)
    Assign account assignment category created in previous step to an item category blank or space.
    Note:
    This is an optional step, if you don’t want to touch the standard ‘K’ cost center account assignment.
    c) Transaction: OBYC (Automatic account assignment configuration)
    Choose account transaction key ‘GBB’ by double clicking the existing entry and choose the appropriate chart of account for your company. Assign the GL account that needs to be defaulted for general modification ‘ZBR’ and valuation class ‘RAW’ (use appropriate valuation class set-up in your company).
    d) Transaction: ME21N to create a purchase order to test the configuration.
    When you create a PO with account assignment ‘Z’ for an inventory item, the system should default the above-configured GL account.
    2) How to default a GL account for a material group when a purchase order is created without a material master?
    If you want to create a purchase order without a material master (service/expense items), the standard SAP R/3 4.x and higher releases, offer functionality to assign a valuation class to a material group. This way automatic MM account assignment can be set-up to drive the appropriate GL account for a material group/valuation class in your company.
    a) Transaction: OMSK (Define valuation class):
    b) Transaction: OMQM (Entry aids for items without a material master):
    Assign the appropriate valuation class for a material group.
    c) Transaction: OME9 (Maintain account assignment categories)
    Create a new account assignment category ‘Z’ by making a copy of account assignment category ‘K’.  Change account modification to ‘ZBR’.
    d) Transaction: OMGO (Define the combination of item categories/account assignment categories)
    Assign the account assignment category created in previous step to an item category blank or space.
    Note:
    This is an optional step if you don’t want to touch the standard ‘K’ cost center account assignment.
    e) Transaction: OBYC:  (Automatic account assignment configuration)
    Choose account transaction key ‘GBB’ by double clicking the existing entry and choose appropriate chart of account for your company. Assign the GL account that needs to be defaulted for general modification ‘ZBR’ and valuation class ‘TRF’ (use the appropriate valuation class set-up in your company).
    f) Transaction: ME21N to create a purchase order to test the configuration.
    Standard order type, Account assignment category ‘Z’ and Material Group ‘TRAFFIC’.
    Account assignment screen:
    Note:
    Before configuring account assignment, please discuss this with your SAP FI/CO functional contact and Accounting department key user for mapping valuation class to General ledger account numbers etc.
    Some of my colleagues in MM Purchasing liked this configuration and I thought your company might also benefit from this in case you want to default the GL account in purchasing to avoid wrong account coding.  

  • SAP renamed 'Purchase Order Data' tabs but it is not changed in menu bar

    In VA01/VA02/VA03  transactions,  SAP has renamed the "Purchase  Order Data" tabs at header and item level to "Order Data" but the Goto > Header   and    Goto > Item    menu paths still have "Purchase Order Data" as the name.  This is inconsistent.  Is there an SAP fix for it?

    Try wit this report RSLANG20
    Best regards,
    Mirek

  • To control processing components in SAP AFS purchase Orders

    Hi Experts,
    I work with SAP AFS  (Apparel and footwear Solution)  I would like to control processing components in Component Overview screen  in a Purchase order.
    What's yopur proposals ?
    Thanks in advance

    -

  • SAP Fiori Purchase Order  not getting any  data & getting a 404 Error Message

    Hi
    I have downloaded Purchase Order SAPUI5 code from SAP Fiori server.  import it into Eclipse then try to run that Apps/code(SAPUI5) from browser.
    1) Not getting any Data.
    2) It show 404 Error Message.
    3) Its show wrong User Name as Login

    Hi Pankaj,
    First question :
    Are you able to get the data in Fiori ?
    Secondly,
    You have mentioned as Purchase order, but here you have given snapshot of Purchase requisition app, and you are calling also purchase req app from the browser. Please clarify
    If you have mistakenly written PO  : If you are still not getting data for Approve Purc req, then check if your RFC connections are proper from Gateway to backend and backend to Gateway.
    If RFC is working fine, check the Remote logon, it should be marked as Current user. If its not marked as current user, then it will show some other user.
    Regards,
    Tejas

  • To send IDOC to vendor from SAP for purchasing order

    Hi Gurus,
    I want to setpu an EDI for send the outbound & inbound idocs to vendor for purchasing order from SAP and below are the message type I am using:
    Outbound message type :
    ORDERS
    Inbound message type :
    ORDRSP
    INVOIC
    I know how to set up the link, making the partner profiles attaching the process code, assigning the ports but I want to know the below customize set up:
    1) Which transaction I need to used for customize this sceranio
    2) Could you provide me any documentation which specifies the steps for configuration
    And other details which I am suppose to know.
    Please reply me as soon as possible as I am urgently in need of this.
    Regards,
    Sagar

    Hi Sagar
    For the Confirmation you need to do the customizing for confirmation control, like what would you like to do after the confirmation. Confirmation is an inbound process.
    For Invoice you need to complete the customizing under LIV in SPRO- for Invoices received via EDI.
    Please go throught the help link for further details.
    http://help.sap.com/saphelp_47x200/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm
    Reward points if useful
    Thanks & regards
    Kishore

  • Pls.  tell  place in whole sap where purchase order field can be made req.

    can anyone tell me all those t.codes from where i can make purchase order a required field.
    i want to have control through purchase order.
    is it possible to have control if i make sorting key 014 in vendor recon account. and fsg g067 contains purchase order a required field. plus bank fsg g005 also contains purchase order as compulsory field.
    our problem is that whenever we see any vendors account open items , we are not able to see purchase order no in purchasing document. column.
    what i know is that using ob41 i can make po as required field for posting key 39 used for adv pmnt request, plus make po as sorting key plus, fsg g067 containd po required field.
    can any one help on this?

    question is still not answered.
    problem starts when fi person looks into vendors account.
    if vendor ram is to be paid rs 503456 regarding one of po and rs 503465 regarding any other po.
    but when these balances are being reflected in vendor account, fi person is not able to differentiate which amt relates to which po as no po no. is reflected as result of t,code fbl1n.
    so in that case it is possible that wrong pmnt is made to wrong po.
    my only problem is that how can we see this po no in purchasing document column. where in cofiguration there is problem?.

  • How to add external URL link to SAP object (Purchase Order, Invoice, etc)

    Hello,
    Is there any function module /BAPI that allows me to add an external URL link to a existing Purchase Order
    or Invoice document in R3 system?
    I tried to debug the system but have not found no suitable function module for it.
    I also analyzed the ABAP code of the small GUI window that allows to add a external URL link to
    a Purchase Order, and found the function module SO_OBJECT_INSERT. However I could not debug
    it (seems to be created with BOR objects) so I've no example for it.
    Please help!
    Regards,
    Manuel Dias

    CONSTANTS:
        c_http(36)    TYPE c VALUE '/BpHttpApis/slaphapi?ibmperson/(uid=',
        c_listxml(12) TYPE c VALUE ').list/byxml',
        c_value(5)    TYPE c VALUE 'value',
        c_cn(2)       TYPE c VALUE 'cn',
        c_mail(4)     TYPE c VALUE 'mail',
        c_em_num(19)  TYPE c VALUE 'managerserialnumber',
        c_em_cou(18)  TYPE c VALUE 'managercountrycode'.
      DATA  client          TYPE REF TO if_http_client.
      DATA  url             TYPE string.
      DATA  xbuffer         TYPE xstring.
      DATA  l_value         TYPE zchar2000.
      DATA  l_value_string  TYPE string.
      DATA  content         TYPE string .
      DATA  rows            TYPE STANDARD TABLE OF string.
      DATA  wa_rows         TYPE string .
      DATA  conv            TYPE REF TO cl_abap_conv_in_ce.
      DATA  ixml            TYPE REF TO if_ixml.
      DATA  streamfactory   TYPE REF TO if_ixml_stream_factory.
      DATA  parser          TYPE REF TO if_ixml_parser.
      DATA  istream         TYPE REF TO if_ixml_istream.
      DATA  document        TYPE REF TO if_ixml_document.
      DATA  node            TYPE REF TO if_ixml_node.
      DATA  xmldata         TYPE string.
      DATA  iterator        TYPE REF TO if_ixml_node_iterator.
      DATA  nodemap         TYPE REF TO if_ixml_named_node_map.
      DATA  attr            TYPE REF TO if_ixml_node.
      DATA  name            TYPE string.
      DATA  prefix          TYPE string.
      DATA  value           TYPE string.
      DATA  indent          TYPE i.
      DATA  count           TYPE i.
      DATA  index           TYPE i.
      url = 'http://bluepages.ibm.com'.
      CLEAR: l_value_string, l_value.
    ***Create the HTTP client
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url    = url
        IMPORTING
          client = client
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
    Create the HTTP client failure, sy-subrc =
        MESSAGE i005(zm) WITH text-026 sy-subrc.
        EXIT.
      ENDIF.
      CONCATENATE c_http
                  p_accnt
                  p_couty
                  c_listxml
                  INTO l_value.
      l_value_string = l_value.
    ***Get employee information
      CALL METHOD client->request->set_header_field
        EXPORTING
          name  = '~request_uri'
          value = l_value_string.
      client->send( ).
      client->receive( ).
    ***Load to xstring
      CLEAR xbuffer .
      xbuffer = client->response->get_data( ).
      conv = cl_abap_conv_in_ce=>create( input = xbuffer ).
      conv->read( IMPORTING data = content ).
    create the ixml main factory
      ixml = cl_ixml=>create( ).
    create a stream factory
      streamfactory = ixml->create_stream_factory( ).
      xmldata = content.
    create a input stream
      istream  = streamfactory->create_istream_string( string = xmldata )
    create a ixml document
      document = ixml->create_document( ).
    create a xml parser
      parser  = ixml->create_parser( document       = document
                                     stream_factory = streamfactory
                                     istream        = istream ).
    parse the xml document into DOM tree
      IF parser->parse( ) <> 0.
    parse the xml document into DOM tree failure
        MESSAGE i005(zm) WITH text-027.
        EXIT.
      ELSE.
        node ?= document.
        IF node IS INITIAL.
    To be done
        ENDIF.
    create a node iterator
        iterator  = node->create_iterator( ).
    get current node
        node = iterator->get_next( ).
    loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
          element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
              IF NOT nodemap IS INITIAL.
            attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text.
    User name
              IF name  = c_value AND
                 value = c_cn.
          text node
                value  = node->get_value( ).
                p_name = value.
              ENDIF.
    User email
              IF name  = c_value AND
                 value = c_mail.
          text node
                value  = node->get_value( ).
                p_email = value.
              ENDIF.
    Employ serial number
              IF name  = c_value AND
                 value = c_em_num.
          text node
                value  = node->get_value( ).
                p_em_num = value.
              ENDIF.
    Employ country code
              IF name = c_value AND
                 value = c_em_cou.
          text node
                value  = node->get_value( ).
                p_em_cou = value.
              ENDIF.
          ENDCASE.
      advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDIF.

  • Sap Script Transfer Order Change

    Hello Gurus,
    I have a sapscript for Pick For delivery (Transfer Order pick List) once the transfer order created from the delivery is confirmed.
    In the current form, material number is being printed on the form from the transfer order table LTAP.
    Now the change need to be made is to print the delivery item number (before the material number like delivery_item_number space material_number) of the corresponding material number. I need to write a logic in order to extract the delivery item position number. do you have any idea how I can do that.
    Please help me out.
    the sapscript is closest to sap form LVSTALISTE.
    Regards,
    B
    Edited by: Balu on Aug 13, 2008 6:26 PM

    Subroutine program
    FORM CALC_NETPRICE TABLES in_tab STRUCTURE itcsy
    out_tab STRUCTURE itcsy.
    Data : w_matnr type LTAP-MATNR,
              w_posnr type LIPS-POSNR.
      READ TABLE in_tab INDEX 1.
      w_matnr = in_tab-value.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = w_matnr
        IMPORTING
          OUTPUT        = w_matnr.
    SELECT SINGLE POSNR FROM LIPS INTO W_POSNR WHERE MATNR EQ W_MATNR.
      READ TABLE out_tab INDEX 1.
      MOVE W_POSNR TO out_tab-value.
      MODIFY out_tab INDEX sy-tabix.
    ENDFORM.                    "CALC_NETPRICE
    Now add the Field &LIPS-POSNR& where u required.
    Just make sure that the PERFORM statement is before the fields output. i.e,  &LIPS-POSNR& ,, &LTAP-MATNR&
    Regards
    Krishna

  • SAP Standard report for Purchase order Amendments

    Hello MM Gurus,
            Kindly let me know whether any standard report available in SAP on
    Purchase order amendments.
    Regards
    Yoga

    Hi Yoga,
    You can do a small work around.
    Activate version management in PO.
    Then, you can get the list of changed POs from the transaction ME2N, by clicking on the dynamic selection icon (icon with 3 colored lines) and entering values for the "Version" field.
    You can enter multiple values there, say, 1,2,3..5, depending on the maximum number of versions that will be created.
    This selection will give you the list of amended POs.
    Regards
    sampath

  • Standard SAP Document Type DB (Dummy Purchase Order)

    Hello fellow experts!
    I have seen this PO document type at previous clients and was wondering what the intended use is?  I know this was not customer-specific because I had seen it at several client sites (using 4.6c and 4.7).  It looks like my current client has deleted it from their list of document types so I can't research it myself.
    I first asked about it when I was attending SAP's MM Configuration course SCM550 several years ago.  This document type was not mentioned in any training materials but was clearly visible in the training system.  The instructor asked his colleagues at the end of the day but was never able to provide an answer.  I see no reference to it on help.sap.com or by doing a Google search.
    Any information would be greatly appreciated.  There may be some great functionality I've never known of!
    Regards,
    Jason

    In ECC 6.0 It is blanket PO
    Dummy PO and Blanket PO are same
    In general the Blanket POs are used for consumable materials such as Xerox papers with a short text (does not need to have Master Record) with Item Category ' B' i.e.limit, where in the PO validity period as well as the limits are to be mentioned for the simplicity of procurement.
    In SAP, Blanket Purchase Orders refer to the business process where you have a Purchase Order with a validity period (start / end date) and a limit on the item. No Goods Receipt takes place. Payment is triggered by Invoice.

  • Purchase Order Interface

    Hi All
    I have below requirement Please suggest some solution on HOW SHOULD I PROCEDE.
    I Have below Info :
    1)<b>Aim :</b>  I have to create an Interface from Legacy system to SAP for Purchase Order creation.
    2)Legacy system will send a ASCII file, having proper structure. The file is translated into some Idoc (May be ORDERS or some other <b>U CAN SUGGEST</b>..) inside the middlewere XI.
    3) Idoc will reach SAP R3 ECC and here I need to create corresponding Purchase Order.
    4) One file will have many PO create and change.
    How can I procede and accomplish with this requirement.?
    <b>Give me what should I do step by step.</b>
    The good answers will get most of the points.
    Regards
    Tulip

    Dear Sandeep,
    Thanks alot for the help. After your instruction when I run concurrent request following message show.
    --> To get the log message for PDOI, please use the following id to query against FND_LOG_Messages Table: AUDSID = 8621728
    --> Concurrent request completed successfully.
    But No data found in the table "fnd_log_messages"
    And Neither data deleted from PO_Header_interface table nor inserted in PO_Headers_All and other detail tables.
    Can you please provide me the script for PO_Headers_Interface, Lines and Distribution.
    Regards,
    Siraj Gul

  • 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

  • Problem in Shipment purchase order number

    Hello Experts,
    At time of shipment count number(VI02), purchase order and service entry is created automatically. But whenever created new shipment count same purchase order number is updated ie sequentially not taking, but service entry has not problem.
    Pls tell why this problem is occured.

    Hi,
    It depends on customizing settings for the PO for shipment costing. You can set a period for validity of the PO. In standard it is set to a month (I believe). It will split up per forwarding agent.
    Quote of help.sap:
    The purchase order can be valid for the following periods:
    Day
    Week
    Month
    In Customizing the purchasing organization, the purchasing group and the plant must be assigned to the corresponding transportation planning point and the shipment cost type. You make these settings in the IMG. Choose Logistics Execution ® Transportation ® Shipment costs ® Settlement ® Assign purchasing data.
    End quote.
    MdZ

Maybe you are looking for

  • How do I get to a JPEG?

    Hi, I shot some photos with the camera set to save RAW & JPEG and imported them into LR, converting the RAW to DNG as it came in. The shots are just for mucking about with LR. The Library shows one photo. If I set the Library view to show photo (file

  • Macbook won't start past grey screen/apple; won't start OS disc

    I know this issue has probably been talked about a million times, but I still can't seem to find a working answer... and what better to make my first post than this problem? Anyway, I was streaming a movie online on my 13 inch black Macbook (OS: Leop

  • I can't restore my backup in G570 laptop

    i can't restore my backup in G570 laptop, i have already backup my data throw onekey software i was install new windows in my laptop then i install onkey rescue software but i can not restore may data in system kindly help me.... Solved! Go to Soluti

  • 2 actions on the same form ?

    Hi everyone, I hope someone can give me an idea on how to do the following. I have a form where the user has a choice of 2 buttons. [Update details] , [Delete record] If the [Update details] is clicked the form action should direct to a different tar

  • How to lpad and format a number column

    Hi, I have a requirement to format a number column and then lpad with '*' to 12 characters. For example if the column value is 1234560 then i have to display it as *****1,234,560.00. I tried using <?xdofx:lpad(format-number:AMOUNT;'999G999D99',12,'*'