Get Linked Document info into Purchase Order

Hi,
There is a popup which comes up upon pressing the attachment key in ME21N. This is currently blank.
My requirement is to fill this popup with Linked Document Info from Material master into Purchase order at PO creation (ME21N).
The fields that I want are
DRAW-DOKVR (Document Version) or DRAD-DOKVR
DRAW-DOKNR (Document Number)
I found a BADI Document_main01 but how do I pass material number (EKPO-MATNR) to it as the OBJKEY in DRAD table.
Is there any other way to populate the document number and version which is stored in the material master.
Appecriate your help !

Hi Shyam,
Thanks for your reply.
Could you please briefly explain your point.
I am stuck up at some point and unable to find exactly the place to insert the specified data in the BAPI.
Also note that I need to update data which I will take from Sales order in header text of PO. This data should automatically be picked up while Saving the PO.
Useful replies will be definitely rewarded.
Regards,
Daya.

Similar Messages

  • Item text in Purchase Order getting updated with info. record Purchase Order Text

    Hello All,
    I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
    Issue:
    Item text in Purchase Order getting updated with info. record Purchase Order Text
    01) PO Text is maintained in the material master under "Purchase Order Text" tab
    02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
    03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
    03.1) this behavior is not observed in the Plants/ Company code that is already Live
    Configurations in the system:
    The copying rules for the "Texts for Purchase Orders" is
    Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
    We have modified the Purchase Order form to print one of  the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
    I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
    Am I missing any configuration or where can I look in what is causing this error.
    Request help from the experts in the forum.
    with Regards,
    Dhandapani R

    There is no company/purchasing/plant specific customizing for purchase order text.
    The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
    If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract)

  • Linking document info record and purchase order

    Hi all,
    I hope that someone can help me because I'm having a problem with creating links between document info records and purchase orders.
    By default in SAP I can create links between document info record and purchase order ITEMS! When I create that link, I can see it in document info record under Object links tab, but when I double click on the number of purchase order nothing happens (I expected that this purchase order will open).
    Why is that so?
    Why can't I access purchase order from document info record even though the link exists?
    The other question is about creating object links to purchase orders, not purchase order items! Is it possible to link document info record with purchase order?
    I would appreciate quick answer because we're in the middle of a project and we're stuck with that problem.
    Thanks!

    Hi Karlo,
             As you mentioned, object links could be linked to Purchase order items. In customisation you maintain these entries under the node SPRO > Cross Application Components> Document Management--> Control Data --> Define Document Types --> Define Object Links.
    There are many links in the standard system (possible entries).
    The system automatically determines the screen number (dialog box) where the key data for the object is maintained for document maintenance.
    You can check the screens when the screen entry is missing or contains errors by doing the following:
    Start the Object Navigator and display the objects for the development class  CV.
    Expand the function group 130. The structure nodescreens lista all screens that can be used for object links.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140 .
    The processing logic must follow that of screen 1204 in program SAPLVC130.
    Create function module OBJECT_CHECK_XXXX (XXXX = object name)
    If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Hope the above instruction helps in solving your problem,
    Sojan
    Note : Award points if you find the information useful

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • 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.

  • Purchase Requisition conversion into Purchase Order

    Hi,
    We are developing an intercompany process and we have a problem with the purchase requisition conversion.
    When we convert the PURCHASE REQUISITION into PURCHASE ORDER we need to mantain purchase requisition ITEM number/s.
    For example:
    PURCHASE REQUISITION: 10015720 / 50 / 60 ---> PURCHASE ORDER: 210515 / 50 / 60   
    We are trying to do it with some enhancements but we have not found any solution. Is posible to customize this requirement ?
    Thanks in advance.
    Regards,

    Hi Orion
    I suggest you to translate it to english before somebody feels awful. Orion's customer wants mantain a kind of register to trace or manage the traceability for this flow from SO to PO in a cross company scenario.
    If a understand you, you do this flow:
    SO from a customer not cross company-> request from this SO to other company cross company -> PO with ME59 (is the third part customer if I'm right)
    Do you check all flow in VBFA table? I suggest to see the SAP Note 627846 - AFS: Purchase order document flow for
    sales order incorrect, although it's so older, it gave me ideas in the past. I suggest you to avoid 'handle' the fields related with key fields (number of documents, number of items, and so on). Create reports or create customer tables and populate records for this trace. After, you can create lists for your customer to know about this traceability.
    If you are agree other possibilty is enhance SAP tables with customer fields and see them in the documents. There a lot of tools to do it (VOFM subroutines in the copy rules, BADI's and enhancemetns to see customer fields in new tabs in SO, PO and so on).
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Sep 26, 2011 6:42 PM
    Edited by: E_Hinojosa on Sep 26, 2011 6:42 PM
    Edited by: E_Hinojosa on Sep 26, 2011 6:43 PM

  • Document flow in Purchase order

    Hi,
    How can check the document flow in purchase order(me22n).  Please help me on this issue..
    Thanks..

    HI
    There is no document flow like SD in MM
    Inorder to get the doc flow for a PO you can goto ME23N or ME22n and in item details click on PURCHASE ORDER HISTORY TAB here you will get the GR , IR etc.
    Alternatively you can goto table EKBE and enter the EBELN (PO number ) and execute you will get the doc flow
    regards
    Prashanth

  • Can you convert Purchase Requisition into Purchase Orders on APO.

    Hello all,
    Can you convert Purchase Requisition into Purchase Orders on APO. Does Standard APO functionality provides you the capability.
    Regards
    Najam

    APO is meant only for Planning and no execution is done. Execution is done only in R/3. You can set the conversion indicator for the conversion of Preqs to POs however the conversion happens only in R/3. Based on the Publication settings and the transfer settings maintained you can publish the Preqs immediately to R/3 and get it converted to POs

  • Enable to save documents attachement on purchase order

    Hi Experts
    I attach a document to a purchase order, i save it.
    When i open my purchase order i dont find mu documents attached, but when i apply on modify the system give me all documents attached on the purchase order.
    How can i resolve this please?
    Thanks

    Hi,
    I am a little confused. You said when you 'apply on modify', you call see all the attachments again.
    Would you please tell me what you mean by 'apply on modify'?
    Meanwhile I suggest you deactivate save and change BADI for PO and retest the issue.
    Regards,
    Ivy

  • Adding Partner into Purchase Order (ME21N, ME22N)

    Hi,
    I want to add a parnter into purchase order. Logic of determining of partner is very complex and I have to write a program for this purpose.
    Are there any user exit where I can include this program and add additional line into EKPA?
    Thanks in advise,
    Hristo Hristov

    Hi Sanjay,
    All parameters of method POSTED of this BADI are "importing" - I can't add parntner into IM_EKPA
    I need to add partner into PO and then use this partner role into output determination of same purchase order.

  • Info in Purchase order

    Hi all,
    I need your help for following requirement,
    I need to update some of the transaction data i.e Inco terms, Price from sales order into Purchase order -> Item text for the information purpose.
    Can anybody suggest if it can be possible with any user exit ? or suggest the best way to achieve this.
    Thanks in advance.
    Daya

    Hi Shyam,
    Thanks for your reply.
    Could you please briefly explain your point.
    I am stuck up at some point and unable to find exactly the place to insert the specified data in the BAPI.
    Also note that I need to update data which I will take from Sales order in header text of PO. This data should automatically be picked up while Saving the PO.
    Useful replies will be definitely rewarded.
    Regards,
    Daya.

  • Get billing list by customer purchase order

    Hi Experts:
                     Is there any standard T-code which can get billing list by customer purchase order ?
                    Billing contains delivery-related and order-related,
                    one po can has several sales order,and one sales order has several DN or Billing.
                   Pls give me some advice.
                                                                                    Thank you very much.

    Dear Friend,
    There is no standard Tcode for your requirement.There is two way to get so,
    1. Either go for Abap Developed report.
    2. Or try to get the some through Table.
    Regards
    AJIT K SINGH

  • Get the document info panel details

    I need to get the document info panel (Windows>Document Info) details through scripting in illustrator cs3. Kindly advice me is it possible or not.

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • Copy Order Price into Purchase Order Price

    Dear SAP Experts,
    My client looking for third party ordering scenario where sales order pricing must forwarded to PO pricing condition value.
    Sales order has price components like gross price, freight, tax, commission. Most of SO price components value must copied into PO pricing conditions created as third party sales. Do we have any standard configuration for this ? How can we copy order price into PO pricing condition?
    Thks,

    Hi Diwakar,
    Noted that no standard configuration available, how do we copy price sales pricing components into purchase order pricing components ? What would be other way to achieve this process ?
    Thks,

  • Define new document type for purchase order

    Hello
    I want to create a new document type for purchase ordre with also new number range.
    And within my conditions, the shopping card will be generate either document type ECPO with number range 44 or document type ZOS with number range 33.
    The document type is still a purchase order.
    Is it possible to do that? To assign new document type for purcharse order?
    If yes, is there any Badi to put my conditions of generation of my document type?
    Thank you for your help.
    Regards,
    Peggy

    Hi Markus
    Thank you four your response. Unfortuntly, i do not want to create a new transaction type.
    It is still a purchase order which could be visibled in standard transaction. The behaviour is still like standard PO, and could be visible in standard transaction PO.
    I just want to create 2 types of purchases orders to identify them, so create a new number range and so a new document type for purchase order..
    I have a condition to do "the shopping card will be created in this document type, and this schopping card will be created in this document type".
    But standard document type is ECPO, and I don't really know if it is possible to create new document type for purchase order...
    Peggy.

Maybe you are looking for