Create purchase order from purchse requisition number

Hi guru's,
I have a requirement that when ever i m creating the sales order through va01 and when i will click on save button it has to create an automatic PO from the PR number which will be there in the order. Functional consultant saying that he creates an output type and configured it in nace by assiging one driver program and he is giving the transmissionmedia as 8(Which is nothing but special function) for the output.....he is saying when ever i click on save button that driver program has to be triggered and need to generate PO.
how i can implement this one....
replay asap.....
Thanks&Regards,
R.P.Sastry

Hi chenna kesava reddy,
i dont hav any form....its not a printing output type...
i vonfigured all d details.but my print program is not triggering when i m pressing the save button in va01.
but it is triggering when i run the program rsnast00 by giving the output type..
please help me any one.....how the transmission media number 8(means special function) will work....
regards.

Similar Messages

  • What is Tcode for purchase order and purchse requisition.

    HI all
    What is Tcode for purchase order and purchse requisition.
    Thanks

    Hi Melanie,
    How are you trying to check for the PR number? Are you accessing it via Portal (IE) or the GUI?
    If you are trying to get the PR number for a SC through Portal. Then please follow the below process.
    Go to the SC > Related Documents tab
    The related Documents tab should have all the follow-on document number along with the type of document.
    If you are trying to get the PR number for a SC through GUI, then:
    Go to transaction BBP_PD in GUI > Give the Object Types as BUS2121 and the Object ID as the SC number and click on F8.
    Once you have opened the SC then scroll down till you get the Header Links and click on the line.
    This should display the document that is linked to the SC.
    Hope this helps.
    Regards

  • Update was terminated while creating purchase order from ME21N

    Hi Experts,
    We are getting this dump when try to create purchase order from ME21N;
    Our system ECC 6.0 and IS-AFS (Apparel & Footwear Solution) V600 component has installed,
    How can we prevent this error,
    Regards
    Here is the dump and sm21 log,
    Runtime Errors         LOAD_PROGRAM_NOT_FOUND
    Exception              CX_SY_PROGRAM_NOT_FOUND
    Date and Time          10.10.2008 10:22:03
    Short text
         Program "RMCMS431 " not found.
    What happened?
         There are several possibilities:
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCS4" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         or
         Error in the SAP kernel.
         The current ABAP "SAPLMCS4" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
         caught in
        procedure "TMC2F_FROUT_CALL" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        On account of a branch in the program
        (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
        or a transaction call, another ABAP/4 program
        is to be loaded, namely "RMCMS431 ".
        However, program "RMCMS431 " does not exist in the library.
        Possible reasons:
        a) Wrong program name specified in an external PERFORM or
           SUBMIT or, when defining a new transaction, a new
           dialog module or a new function module.
        b) Transport error
    How to correct the error
        Check the last transports to the R/3 System.
        Are changes currently being made to the program "SAPLMCS4"?
        Has the correct program been entered in table TSTC for Transaction "ME21N "?
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "LOAD_PROGRAM_NOT_FOUND" "CX_SY_PROGRAM_NOT_FOUND"
        "SAPLMCS4" or "LMCS4F10"
        "TMC2F_FROUT_CALL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "TMC2F_FROUT_CALL" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    sm21 log ;
    Transaction Canceled 00 671 ( LOAD_PROGRAM_NOT_FOUND 20081010102203saptest_TET_00 EYUCE 100
    Update terminated
    > Update key: F39796DD5421F1509233001E0BD601E0
    > Update module: MCE_STATISTICS_UPD_V2
    Run-time error "LOAD_PROGRAM_NOT_FOUND" occurred

    Please follow the oss note 800335
    V2 Update terminations in Purchasing transactions after upgrading or installing AFS 5.0 release.
    Other terms
    AFS, LIS, MIGO, ME22N, OLI3, S433, S431
    Reason and Prerequisites
    AFS Purchasing infostructure S431 is no longer used. S433 is the valid infostructure for the release AFS 5.0.
    Solution
    Please do the following.
    For customers upgrading to AFS 5.0 only:
    > Rebuild Infostructure S433.
    - Goto transaction: OLI3 (Statistical Set up of Infostructures)
    - Info structure to be compile: S433
    - Specify the 'Name of run'.
    - Execute.
    > Please also follow the instructions given below.
    For both Upgrade and Non-upgrade Customers:
    > Create the report 'ZDELS431'.
    - Transaction: SE38
    - Give Program name as ZDELS431.
    - Create (F5).
    - Title : 'Program to delete S431'.
    - Type  : 1 (Executable Program).
    - Status: T (Test Program).
    > Copy the program text from the note and paste in the program.
    > Save and activate the program.
    > Execute the report for all clients in Update mode.
      (Two check-boxes will appear: P_ALL_CL, P_UPDATE.
       Please check both of them).
    This report will delete all the references to infostructure S431.

  • Create Purchasing Order from Purchasing Requisition

    Hi,
    I need to create in a report a Purchasing Order from Purchasing Requisition. I have seen the Bapi BAPI_PO_CREATE; Can I create order from requisition without fill all field and only 
    the requisition and ther obligatory field?
    Thanks
    Francesco

    Hi
    Try out what all parameters are obligatory in case of Purchase Requsition using the FM - 'BAPI_REQUISITION_CREATE' in R/3 back-end..
    and then try creating PO using 'BAPI_PO_CREATE1' or 'BAPI_PO_CREATE' Function modules.
    Also try creating P Req manually using ME51N / ME51 Transactions and debug the process to get further details, if any.
    Regards
    - Atul

  • Create purchase order from shipment cost document

    Hi Experts,
    I would like to know how a purchase order type is linked to a shipment cost document so as to create purchase orders automatically when I do transfer posting to the vendor from the shipment cost document. How system automatically finds out the PO type and creates purchase order.
    Thanks,
    Emaya

    Hi,
    Thanks. I have made all those mentioned changes already, and infact I am able to create purchase orders(PO Type NB) automatically when I do transfer posting, but I would like to know, why NB type only? why not some other purchase order types? Suppose if I create a new PO type by copying NB with new number ranges, how to link it to my shipment cost document?
    Please comment.
    Regards,Emaya
    Edited by: Emayavaramban S on Dec 11, 2008 3:06 PM
    Edited by: Emayavaramban S on Dec 11, 2008 5:12 PM

  • Creating purchase order from code

    I am importing an excel file and then for each row,trying to create purchase order through coding by using document object. I am successful in creating Order Headers but how can i create Lines if the excel sheet is having Same order but different Item codes????

    I was trying to import excel file in purchase order by following way:-
    I read each row and for each row, call function for creating order. This is my sample code---
    (var30 is previous excel value of order no. & var1 is current value)
    public sub createorder()
    odocs = GOD_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
                If irow = 2 Then
                    odocs.CardCode = "200173"
                    odocs.Lines.ItemCode = var16
                    odocs.Lines.Add()
                Else
                    If var1 = var30 Then
                        odocs.CardCode = "200173"
                        odocs.Lines.ItemCode = "3231015"
                        odocs.Lines.Add()
                    Else
                        lRetCode = odocs.Add()
                        odocs.CardCode = "200173"
                        odocs.Lines.ItemCode = var16
                        odocs.Lines.Add()
                    End If
                End If
                lRetCode = odocs.Add()
                Dim x As String
                GOD_Company.GetNewObjectCode(x)
                If lRetCode <> 0 Then
                    GOD_Company.GetLastError(lErrCode, sErrMsg)
                    MsgBox(sErrMsg)
                Else
                    MsgBox("Order Created with no " & x & ".")
                End If
                var30 = var1
    This code is giving error as "Item No. is missing(OPOR.ObjType)", But Item no. is not present in Purchase Order. Please check whether Code is proper or i need to make any changes???????/

  • How to create Purchase order from Requisitions!

    Hi there,
    Please help me in this case:
    I was created a outline agreements for item MN.001 (4600000014), and then created and released success for Requisition  10000180. After that I want to create PO from above Requisition (use T-code  ME25 -Vendor Unknown). These steps as follow:
    1. Navigator to T-Code : ME25
    2. Refer to Req : 10000180
    3. Assign Source to Agreement : 4600000014
    4. click button Generate to create PO from REQ --> system message that "Item blocked for order processing (function not possible)"
    Please help me!
    thanks for your advise!
    Viettq.

    hi,
    When you are using the outline agreement for the PR and then shd use for the PO...from where this RFQ comes in the scene??
    Also PR is already asigned to the source as outline agreement...
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Nov 7, 2008 6:03 AM

  • DI: Create Purchase Order from Multiple Sales Order - Lines

    Hi all,
    I am trying to group multiple lines from multiple Sales orders concerning One given Vendor/Supplier so as to generate One Purchase order for this Vendor/Supplier
    oSalesOrder = (Documents)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oOrders);
    oPurchaseOrder = (Documents)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oPurchaseOrders);
    oPurchaseOrder.CardCode = 'Vendor1'
    oSalesOrder.getByKey("13");
    oSalesOrder.Lines.SetCurrentLine("4");
    oPurchaseOrder.Lines.BaseEntry = oSalesOrder.DocEntry;
    oPurchaseOrder.Lines.BaseLine = oSalesOrder.Lines.LineNum;
    oPurchaseOrder.Lines.BaseType = (int)BoObjectTypes.oOrders;
    oPurchaseOrder.Lines.Add();
    oSalesOrder.getByKey("14");
    oSalesOrder.Lines.SetCurrentLine("2");
    oPurchaseOrder.Lines.BaseEntry = oSalesOrder.DocEntry;
    oPurchaseOrder.Lines.BaseLine = oSalesOrder.Lines.LineNum;
    oPurchaseOrder.Lines.BaseType = (int)BoObjectTypes.oOrders;
    if (oPurchaseOrder.Add()!=0)
        MessageBox(B1Connections.diCompany.GetLastErrorDescription());     
    I get the following Error: <i>Base Document Card and Target Document Card do not match</i>.
    What more Should I do to avoid This?
    Regards,
    Emmanuel.

    Hi Emmanuel,
    As far as I know you cannot create a purchase order based on a sales order using the DI API. I know in SBO you can do this, but I don't think using the SDK. The reason why it's giving you the message "Base Document Card and Target Document Card do not match" is because one is a vendor and one is a customer.
    Hope it helps,
    Adele

  • Restrict "Create Purchase Order" Authorization using vendor number "LIFNR"

    Hello All,
    How can we restrict the creation of purchase order(ME21N) using the vendor number (LIFNR).
    Any helpful idea?
    Regards,

    Hey Sanjay,
    i am facing same problem of uploading multiple line item through LSMW .
    and u did good exploration on  same can u give me some idea,
    how i do modification in LSMW program?
    do u mean i need to do some coding before step CONVERT DATA.
    and can u give some guidline to do it..
    u r hint will be sufficient..
    Thx in Advance..
    Rajesh

  • Creating Purchase Order from Sales Order via DI

    Hi
    I get the dreaded -5002 Error when trying to create a Purchase Order referencing a Sales Order.
    The variables BaseEntry,BaseLibne contain valid values i've doublechecked that.
    is it not possible to generate a referenced Purchase Order this way? If not is it planned?
    I use the approach:
    oPRDR.CardCode=CardCode
    oPRDR.Lines.BaseType = 17
    oPRDR.Lines.BaseEntry = BaseEntry
    oPRDR.Lines.BaseLine = BaseLine
    retval = oPRDR.Add()
    btw. I'v tried it without:
    oPRDR.CardCode=CardCode
    but didn't work either.
    tia

    Hi Philipp,
    This is a bug. Please log it on Service Marketplace.
    Sorry,
    Frank
    PS:
    I have just been asked that question by another partner as well.
    He could even create a PO based on a SO that with demo databases (PL18 + PL21), but not in a real customer database (not 100% sure about the PL)
    He is going to inform Support about that issue...

  • Purchase order from Purchase requisition

    Hi all,
    How can we create purchase order from Purchase requisition number?
    Any BAPI or Function Module for changing purchase requisition  to purchase order .........
    Thanks in advance for all your help.
    Regards,
    Anukool

    Hi,
    Have you had a look through transaction BAPI to see if there is anything suitable?
    I've just had a quick look and found BAPI_REQUISITION_RELEASE_GEN which should release the PR and then maybe you could use BAPI_PO_CREATE1 and see if there is a way to reference the PR?
    Or what about looking at the transaction ME59N to see how that works?
    I'm just guessing here sorry.

  • Two purchase orders from one purchase requisition

    Hi experts,
    i'm getting this strange behavior. How is possible to create 2 purchase orders from one purchase requisition ??
    If i look to sales order flow i see two purchase orders.
    Thank you.

    Hello Dan M,
    When u enter the material and qty in Item the system might be doing Availability check. Then u might be going to schedule line and then "check mark on "Fix qty/date". Here once again the system might be doing Availability check and then u press  "Dely proposal".
    I suggest u to check the Purchase Requisition Item No. (the field next to Purchase Requisition No.). Keep watch here after every step u perform. Watch before and after u press every button.
    Do carefully analysis step by step u will get the reason.
    Any thing required write on the forum.
    Thanks & regards,
    Shailendra Panhale

  • Inputs requried to create purchase order report from flat file

    inputs requried to create purchase order report from flat file

    At a guess, I'd say purchase order data.
    If you don't give us a clue what you are actually trying to do we can't really help you too much.
    Do you want to call a BAPI?  Do a BDC?  Use an IDOC?  Or just generally muck up the system by doing inserts into the purchasing tables?
    No doubt if you tell us, you'll get lots and lots of suggestions.
    Gareth.

  • Serial number copy functionality when creating return orders from standards

    Hi all,
    Serial number is not copying when i create return order from the standard orders in below scenario.
    I implemented one BADI for copying Serial number to Sales order when doing Post goods receipt.
    So after doing inbound delivery and PGR, serial number is copied to the sales order but when i create return order with reference to the Standard order Serial number is not copying.
    When i go VA02 for standard order and selecting the technical objects then if i create the return order serial number is copying.
    Please help me in the above issue.
    I used the following logic to copy serial number from inbound delivery PGR.
    UPDATING THE SERIAL NUMBER TO THE RESPECTINVE SALES ORDER LINE ITEMS
                CALL FUNCTION 'SERNR_ADD_TO_AU'
                  EXPORTING
                    sernr                 = lwa_sernr-sernr
                    profile               = 'NEOP'
                    material              = lwa_mseg-matnr
                    quantity              = 1
                    document              = lwa_mseg-kdauf
                    item                  = lwa_mseg-kdpos
                    debitor               = lwa_mseg-kunnr
                    vbtyp                 = 'C'
                    sd_auart              = lv_auart
                    sd_postyp             = lv_pstyv
                  EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    OTHERS                = 4.
                IF sy-subrc = 0.
                  CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
                IF sy-subrc EQ 0.
                  COMMIT WORK.
                  WAIT UP TO 2 SECONDS.
                ENDIF.
    Edited by: Rajesh Sanapala on Feb 16, 2009 12:48 PM

    hi.
    I have the same problem.
    Can you please share how you solved it?
    thank you
    Bill

  • Program for Creating Purchase Order with reference to purchase requisition

    Hi ,
    I need to Create purchase Order with reference to  Purchase requisition,
    in my case i need to automize the Process which is happening in MD04,
    Can you please suggest me ?
    Thanks ,
    Murali

    Hi,
    Plz check this link. It will be helpful to you.
    Purchase order creation with reference to PR
    We can also create the PO Using the BAPI_PO_CREATE1 function module.
    In this function module fill up the all necessary Details.
    With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
    then it will creates the PO with PREQ.
    Thanks & Regards,
    Sarita Singh Rathour
    Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM

Maybe you are looking for