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

Similar Messages

  • Account assignment category in Auto created PO from shipment cost document

    Hi
    During shipment cost settlement PO generation is mandatory .
    In the configuration of Shipment cost item category I have taken Account Assingment Category as K
    When PO is created automatically the Acct Assignment  Category taken is U which is grayed out .
    I want to know why does system propose U in PO
    If i want to change the default value proposed by the system in PO from U to M where is the setting done
    Can you please suggest a solution
    Thanks and Regards
    Sunil Iyer

    Please read OSS note 506605.
    It seems that accout assignment "U" is hard coded in case of PO created from shipment cost document and you can define your own rule via "EXIT_RV54POCR_007".

  • Automatic creation of PO from shipment cost document

    Dear Experts
    PLease let me know the settings with description to understand for the creation of PO from shipment cost document. It seems inegration with FI is also needed. Request your explanation with the settings in SPRO
    Thanks
    Ganesh

    For automatic Generation of Purchase Order
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Types and Item Categories > Define item Categories (T_56)
       In the Generate PO, Enter one of A, B, C.
           Do not generate purchase order
    A    Generate purchase order for validity period of 1 day
    B    Generate purchase order for validity period of 1 week
    C    Generate purchase order for validity period of 1 month
    For assigning posting in G/L Accounts
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Types and Item Categories > Assign shipment cost types and item categories
    Based on the item category created before, assign the valuation class.
    Assign the Valuation class to the Shipment header or leg (whichever is planned for ) and the item category you created before.
    Assigning the Shipment cost type to the shipment type
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Relevance and Default for Shipment Cost Type (T_57)
    Assign the Shipment cost type to the Shipment type and mark it as relevant for shipment cost.
    Checking the assignment of G/L Accounts to the Valuation Class
    SPRO > Logistics Execution > Transport > Shipment Costs > Settlement > Automatic G/L Account Determination
    Select the Account Assignment - GBB - Enter the Chart of Accounts - Check if VBR was assigned the G/L accounts for the Valuation class you specified before.

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

  • Free PO with shipment costs from shipment cost document

    Hello,
    We have a scenario where materials is received free from vendor but shipments costs are still paid to the vendor.
    For shipment costs, we are creating inbound delivery against PO, then Inbound shipment and inbound shipment cost document.
    The requirement is that shipment costs should get updated in Moving avg price.
    But If I am marking Purchase order as Free,  shipment costs are also not getting updated during GR as system also considers shipments free of charge.
    Is there a way to handle this problem.
    We are creating GR through vl32n and not through MIGO.
    Regards
    Karan

    Hi,
    You can try this solution.
    1.Do not tick the free indicator
    2.Create a condition type for discount and put 100% discount for that condition.
    3.Create a condition type for shipment as a value (delivery cost) without accruals tick in the codition type(customizing).
    4.Enter the shipment cost for this condition.
    5.Set the pricing procedure in such a way that the gross price of the PO will not consider this shipment cost.Hence the gross price of the PO will be zero (Free of  cost) but the net price will consider the shipment cost.
    This shipment cost will get loaded on to inventory.
    As you have defined the shipment condition type as delivery cost condition type , you can change the vendor in details of the condtion if required.
    Cheers,
    Satish Purandare

  • Automatic picked up purchase order during shipment cost cal

    Hi,
    We have one issue system picked up automatically Purchase order which having account assignment category "U".We have config new account assignment category "I" for some specific reason.Now we want that during shipment cost calculation (VI01) system automatically picked up purchase order with having account assignment category "I" intead of u.
    Please guide.
    Regards'
    Kumar

    Dear Arif,
    Please check the shipment document is there any error log exists
    Check the shipment cost having the value and Transporter(Vendor) and it is getting transfer to FI.
    After checking the transfer chek sytem will create the PO while saving the shipment cost document.
    I hope it will help you,
    Regards,
    Murali.

  • FM to create Sales Order from reference billing document

    Hi,
    I need to create a sales order from a reference billing document. Please tell me if there is any function module/BAPI to do that.
    Thanks in advance for the help
    Regards,
    Varun

    Hi
    <b>SD_SALES_DOCUMENT_COPY</b> copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating.
    <b>SD_SALES_DOCUMENT_SAVE</b> create Sales Doc from the copied document
    create subsequent document
    REPORT Z.
      data: w_auart like vbak-auart,  "current SalesDoc type
            w_auara like tvak-auara,  "Subsequent SalesDoc type
            w_vbak  like vbak.
      parameter p_vbeln like vbak-vbeln.
    at selection-screen on p_vbeln.
      SELECT SINGLE auart FROM vbak into w_auart
        WHERE vbeln = p_vbeln.
      if sy-subrc <> 0.
        message e398(00) with 'Sales Doc' p_vbeln 'not found'.
      endif.
    start-of-selection.
      SELECT SINGLE auara FROM tvak into w_auara
        WHERE auart = w_auart.
      if sy-subrc <> 0 or w_auara is initial.
        message e398(00) with 'Subsequent type not defined for' w_auart.
      else.
      1. copy
        CALL FUNCTION 'SD_SALES_DOCUMENT_COPY'
             EXPORTING
                  i_auarn       = w_auara
                  i_vbeln       = p_vbeln.
      2. paste
        CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
             IMPORTING
                  evbak         = w_vbak.
      3. commit
        COMMIT WORK.
      4. report
        write: / 'Sales Doc', w_vbak-vbeln, 'created.'.
      endif.
    regards
    vinod

  • 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???????/

  • 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

  • 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

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

  • 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

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

  • Shipment cost documents in automatic purchase order

    Does somebody can help me about a shipping problem ?
    While transferring shipment cost documents to FI-co with automatic generation of purchase order, SAP create one purchase item order for all my shipment cost documents. Is it possible to customize the purchase order to get 1 item  purchase order by shipment cost documents ?
    In my case, i have 1 purchase order with only one item that contains several entry sheet..
    CMA

    Hi AP,
    Thanks for your reply. When you said "it will be possible to create multiple service entry with reference to the same purchase order."
    I'm agree with you but all the services entry with reference to the same purchase order are grouped on the same item post.
    In my purchase order I would like to have one item by services entry.
    I expect to to have 1 purchase order with several item ( one for each shipping)
    1 services entry = shipment cost document =  1 Shipping.
    Is it possible to do that with SAP in standard ?
    It exists a lot of oss notes on this topic but they don't solved my problem, and sap documentation is not clear on this topic.
    CMA

  • How to create Transfer order from material document   uFF08Move type is 101uFF09

    Hi all,
    is there any function module, BAPI to create transfer order from a material document number?
    I want to use FM L_TO_CREATE_SINGLE,but the result is "Movement type 101 for manual transfer orders does not exist".
    Is the parameters error?
    Thank you in advance
    Regards

    The error message you get is number 196 from message class L3, do a where-used on it from transaction SE91 and then put a break-point on each line result.  Afterwards, re-execute your function call and see which break-point is hit and investigate from there.
    With that said, you really should be using Bapi BAPI_GOODSMVT_CREATE for all goods movement operations.  It shares code with MIGO and executes the same Badi's and user-exits, so data integrity is not broken.  Don't forget Bapi BAPI_TRANSACTION_COMMIT to commit changes in the database after a successful call.
    cheers

Maybe you are looking for