STD Order Document

Dear All,
Could anybody tell how to make PO nuMber is mandatory field
in order
Regards
Gowrish

Hi,
You should make use of the user-exit include pgm: MV45AFZZ. Inside this include, there are LOT of sub routines available.
The screen field for the PO from VA01/VA02 can be captured and made as mandatory.
For e.g.
Loop at screen.
if screen-field = 'VBKD-BSTKD'.
screen-required = 1.
modify screen.
endloop.
Put this above code in the include and modify it accordingly and this will work.
Regards,
JLN

Similar Messages

  • Allow manual price entry in Debit/Credit memo request but not in STD Order

    The same pricing procedure is used for Standard order and Debit/Credit say ZRVA01.
    All condition types in ZRVA01 is set to "D" - not possible to process manually in V/06 since business requirement is not allow for manual pricing in sales order creation.
    When the Debit/Credit note is created(despite of create w/ or w/o reference to billing document), we need to have the user be able to overwrite the price value, able to delete condition type Surcharge, Discount since in some cases for the credit note, the original price might be too high and we only need to credit the customer for the wrong price.
    Question is how to allow 'no limitation'  (change with can be made, field Manaual entries in V/06) for all condtion types in pricing procedure but only for Debit/Credit memo request ?

    Thank you all, but if I create new condition to allow manual, how could I overwrite or delete some non relevant condition type in credit note
    i.e. in STD order we have ZPR0 (base price), ZD01(discount), ZS01(surcharge)  and we found out  that the ZPR0 and ZS01 was over charged, hence, we need to issue the Credit note to the customer, when create a credit memo request, the user will be able to change the value in ZPR0 and ZS01 and be able to delete ZD01 (as it is non relevant for credit note). How such the new condition type would applied?

  • Purchase order document row is not change (document stutas is OPEN)

    Hi all,
    I am created one purchase order that are not any base or targeted document ,not any approval   procedure and  purchase order document status is steel open . Then how  I a cannot change the document row.
    thanks
    arabinda pal

    Hi Deepa,
    I think if you want to restrict the further editing of a particular row, then you just need to follow the simple procedure.
    1. create the purchase order with your desired items & vendor & add this document
    2. Now reopen it & goto that row which you want to restrict. Right click on that row & select "Close Row".
    3. Select yes to confirmation message.
    4.Now update the document.
    Now you an check it out, in that document you will not be able to edit that row contents.
    I hope this solves your issue.
    Regards.
    ShriX.

  • Sale order document flow-u0091Service Documentsu0092 is coming which should't aper

    New Issue with Sales order document flow:
    When linking from a sales order in document flow, we were reviewing why the description information varied.  In looking at different values, we clicked on a new item within document flow that allows you to like to ‘Service Documents’.   This is new in 6.0, or it was previously deactivated in 4.6C.  If you link from a sales order to a service document, in ECC 6.0, you will get a short dump because the document flow is so great (viewing order #any in VA03 and use document flow and then select the service documents button    as seen on the screen below
    A Short dump will occur in program SAPLDOCUMENT_FLOW_ALV.
    Here in ECC 6.0 is how it looks from sales order 9806:
    Documents created from 2004 through 2007 are coming up as linked to this sales order and that is incorrect.  There is some type of linkage issue.  In the 4.6 C environments, the ‘service documents’ link is not visible from document flow.
    Can any body functional / technical Help on this urgent???

    Hi Sanjay,
    Go to the order VA03 --> Environment --> status overview. The exact status of the header and item can be found here. You may have chances to know why the status is being processed.
    Also 
    Check whether you have checked 'document flow update' field at item level in copy control
    Check your settings for completion rule in item category
    If it is due to incorrect status message, run report SDVBUK00. That might fix the error. It is recommended to run this first in test mode.
    Br, Sats.

  • Commit error while transferring Sales order Document to GTS

    Hello,
    We faced a transfer error while transferring sales order document to GTS.
    When I debugged the code function /SAPSLL/API_6800_SYNCH is called. In this function, /SAPSLL/CUHD_MAINTAIN_SINGLE is called with parameter lv_no_commit = 'X'. When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.) In debug mode I set the value of lv_no_commit to space, and then it works. It creates the GTS document.
    We are also transferring billing documents and it works fine. When I checked what is the difference between transferring sales order document and transferring Billing document, I saw that in the transferring billing document there is another function is called /SAPSLL/API_6800_CSD_SYNCH, and it's calling parameters(in background, as seperate unit) are different from calling parameters of /SAPSLL/API_6800_SYNCH. You can see the difference below.
    For sales document transfer :
        CALL FUNCTION '/SAPSLL/API_6800_SYNCH'
          DESTINATION cs_transfer-rfc_dest
    For billing document transfer :
        CALL FUNCTION '/SAPSLL/API_6800_CSD_SYNCH'
          IN BACKGROUND TASK
          DESTINATION cs_transfer-rfc_dest
          AS SEPARATE UNIT
    So my question is, do you think is it a sap standard program error, or is there any suitable settings in the customizing or SM59 to fix this error?
    Thanks in advance
    Serhat
    Edited by: Serhat Dirihan on Jan 22, 2009 11:46 AM

    Dear Serhat,
    I don't think this is an RFC problem or an error. But you wrote:
    When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.)
    It is impossible to have GTS and R/3 on the same system and same client. At least the client should be different. So try to check why the call is performed like that.
    Balazs

  • Creation of sales order document

    How to create a sales order document using VA01?Give me the steps?

    Hi,
    Please search before posting any thread,
    [http://help.sap.com/saphelp_ides/helpdata/en/47/ef8c7c124811d2806f0000e8a495b3/content.htm]
    Regards,
    Durgesh.

  • Sales order document flow error

    we do credit memo for one sales order, in the sales order document flow, the credit memo accounting document's status is not cleared. how can we changed it to be cleared?

    Hi,
    Clearing will be done by finance after the payment is given to the customer. This clearing is done by transaction F-22.
    VKM3 is used for releasing document blocked for credit management and not for clearing the accounting document.
    Regards
    Karan

  • Contract not visible in sales order document flow

    Hi
    I am supposed to create sales order from Contract.The requirement is that only header data should be copied.Thus  In Copy Control configuration I did not maintain item level and schedule line level settings for these document types. The issue is that after running the whole cycle from Contract -->SO --> Delivery --> Invoice when I see the Sales Order document flow I can see all other documents but not the contract.Also In Contract document flow I can see only sales order but not delivery and invoice.Please guide.

    Hello,
    Update Document Flow option is available only at Item Level in copy control setting from Contract to Sales Order.
    Check out your Copy Control Records at Item Level. There would be "2" mentioned in "pdate document flow" box.
    2 means Create doc. flow records except for dely/goods issue/billdoc. Here you to maintain "X" for Complete Document flow.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Change data in matrix of order document

    hi
    i developing the add-on for sap 9.0 (c#). And i have a problem.
    i need to write in the matrix of order document the warehouse/project/Profit Center code for each item that user add.
    maybe someone can give me a example code.
    thanks.

    hi..
    yes u can update after adding the
       Try
                If (pVal.FormMode = "3" And pVal.ItemUID = "1" And pVal.BeforeAction = False And pVal.FormTypeEx = "139" And pVal.ActionSuccess = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
    ------ here u have to add the  code what u want to do...ok
       Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
    The above code will be fire after adding the sales order success fully..
    ================================================
    This is the sample  program i have done after adding successfully...
    Try
                If (pVal.FormMode = "3" And pVal.ItemUID = "1" And pVal.BeforeAction = False And pVal.FormTypeEx = "139" And pVal.ActionSuccess = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                    Dim SDocNo As Integer = oForm.Items.Item("8").Specific.value
                    Dim ORec11 As SAPbobsCOM.Recordset
                    ORec11 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    Rsql = "select max(DocEntry) as DocEntry from ordr"
                    ORec11.DoQuery(Rsql)
                    Dim RDocNo As Integer = ORec11.Fields.Item("DocEntry").Value
                    Dim sitem As String
                    Dim orec As SAPbobsCOM.Recordset
                    orec = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    Dim sql As String
                    sql = "select * from RDR1"
                    orec.DoQuery(sql)
                    Dim i12 As Integer = orec.RecordCount
                    ' SBO_Application.SetStatusBarMessage("Document Added  Successfully")
                    Dim RetVal As Long
                    Dim ErrCode As Long
                    Dim ErrMsg As String
                    'Create the Documents object
                    Dim OSorder As SAPbobsCOM.Documents
                    OSorder = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    If OSorder.GetByKey(RDocNo) Then
                        Dim ORec1 As SAPbobsCOM.Recordset
                        ORec1 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        Rsql = "select COUNT(*) as total from RDR1  where rdr1.DocEntry =" & RDocNo & ""
                        ORec1.DoQuery(Rsql)
                        Dim Total_Lines As Integer = ORec1.Fields.Item("total").Value - 1
                        For i As Integer = 0 To Total_Lines
                            Dim ORec2 As SAPbobsCOM.Recordset
                            ORec2 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                            Rsql = "select  rdr1.ItemCode   from RDR1  where  rdr1.DocEntry =" & RDocNo & " and rdr1.LineNum=" & i & ""
                            ORec2.DoQuery(Rsql)
                            Dim Line_Item As String
                            Line_Item = ORec2.Fields.Item(0).Value
                            Dim oRec3 As SAPbobsCOM.Recordset
                            oRec3 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                            Rsql = "select oitm.TreeType  from OITM where  oitm.ItemCode ='" & Line_Item & "'"
                            oRec3.DoQuery(Rsql)
                            Dim Typ As String = oRec3.Fields.Item(0).Value
                            OSorder.Lines.SetCurrentLine(i)
                            If (Typ = "P" Or Typ = "A" Or Typ = "T" Or Typ = "S") Then
                                OSorder.Lines.UserFields.Fields.Item("U_BomSno").Value = "P" & p1
                                p1 = p1 + 1
                                c1 = 1
                            Else
                                OSorder.Lines.UserFields.Fields.Item("U_BomSno").Value = "C" & c1
                                c1 = c1 + 1
                            End If
                        Next
                        'Add the Invoice
                        RetVal = OSorder.Update
                        'Check the result
                        If RetVal <> 0 Then
                            ocompany.GetLastError(ErrCode, ErrMsg)
                            SBO_Application.MessageBox(ErrCode & " " & ErrMsg)
                        Else
                            SBO_Application.StatusBar.SetText("Document Updated Successfully....", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        End If
                    End If
                End If
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
        End Sub
    =====
    here what it is having is..
    after adding successully the above code will be fire... ok..
    immediatly u have to catch the  max sales order docentry
    in it u have to check it..how many row items(rdr1)  are thee..
    u use for loop
    and update it..
    and also change the fields
    like  as per the ur requirement... ok..
           OSorder.Lines.ProjectCode
                            OSorder.Lines.DiscountPercent
                            OSorder.Lines.WarehouseCode

  • Creating a sales order document

    Hi,
    When I create a sales order document in one company I want to automatically create a purchase order document (in the same company), and when this one is created I want to create a sales order document (in another company) with the same data as the purchase order. The purchase order is created via DIAPI and it works fine, but the problem is when creating the sales order in the second company. When I add the itemcode to the line , it doesn't write automatically any data of that itemcode, the vatgroup neither. So I have to introduce this field. The thing is that althought introducing the vatgroup manually, it doesn't calculate the vatsum, so in the doctotal isn't added. I've tried writing it manually but the problem is that the vatsum field is readonly.
    Why can this be? How can I solve it?
    The code is the next (in vb.net):
    Dim oPedidoCompra As Documents
    Dim oPedidoCompraLineas As Document_Lines
    oPedidoCompra = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseOrders)
    If Not oPedidoCompra.GetByKey(DocEntry) Then
        oApplication.MessageBox(oCompany.GetLastErrorDescription)
    End If
    oPedidoCompraLineas = oPedidoCompra.Lines
    oPedidoVentaB = oCompanyB.GetBusinessObject(BoObjectTypes.oOrders)
    oPedidoVentaLineasB = oPedidoVentaB.Lines
    oPedidoVentaB.CardCode = ValorSql(s, oCompanyB)
    oPedidoVentaB.DocDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
    oPedidoVentaB.DocDueDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
    oPedidoVentaB.DocType = BoDocumentTypes.dDocument_Items
    oPedidoVentaB.UserFields.Fields.Item("U_NR").Value = oPedidoCompra.DocNum
    For i As Integer = 0 To oPedidoCompraLineas.Count - 1
      oPedidoCompraLineas.SetCurrentLine(i)
      oPedidoLineas.ItemCode = Codigoarticulo
      oPedidoLineas.Quantity = Cantidad
      oPedidoLineas.Price = Precio
      s = "select WhsCode from OWHS where WhsName like '%" & oCompanyB.CompanyDB & "%'"
      oPedidoVentaLineasB.WarehouseCode = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.ItemDescription = oPedidoCompraLineas.ItemDescription
      oPedidoVentaLineasB.Price = oPedidoCompraLineas.Price
      oPedidoVentaLineasB.Currency = oPedidoCompraLineas.Currency
      s = "select vatgourpsa from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
      oPedidoVentaLineasB.VatGroup = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.LineTotal = oPedidoCompraLineas.LineTotal
      s = "select rate from ovtg where code = (select VatGourpSa from OITM where ItemCode = '" & oPedidoVentaLineasB.ItemCode & "')"
      oPedidoVentaLineasB.TaxPercentagePerRow = ValorSql(s, oCompanyB)
      s = "select suppCatNum from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
      oPedidoVentaLineasB.VendorNum = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.PriceAfterVAT = oPedidoCompraLineas.PriceAfterVAT
      If i < oPedidoCompraLineas.Count - 1 Then
        oPedidoVentaLineasB.Add()
      End If
    Next
    n = oPedidoVentaB.Add
    If n <> 0 Then
    oApplication.MessageBox(oCompanyB.GetLastErrorDescription)
    End If
    Thanks in advance,
    vanesa

    Hi Vanesa
    When makin the sales order you must just select a vat group.It will then calculate it using the settings for that vat group. So, is the vatgroups set up in your other company?? Don't calcualte everyhting like line total. Just do itemcode, price,itemcode, vatgroup, warehouse and then the system will calculate the rest. Dont do PriceAfterVAT and all the extra's.
    If you did it through the front end would you enter all that? No, you would just select item,qty,price and wh. The system calculates the rest for you.....same goes for di api. Do this to minimize errors.
    Hope this helps

  • Authorization based on plant and Purchase order document type

    Hi
    My client has a requirement wherein a user will have authorization for transactions only in his plant. But only for Purchase order document type UB (Stock Transport Order) the user should be allowed to create for all plants.
    In short, if Purchase order document type is UB, should be allowed for all plants
                 if Purchase order document type is NB, should be allowed to only one particular plant.
    My Basis person says that such a restriction is not possible.
    Kindly suggest me on how to provide a solution to this.
    Thank U.

    Hi,
    This is possible.In this case you need to create two seperate roles.
    1)Create purchase order for all plants (This can be used in long text)
    2)Create purchase order for <plant no> plants.
    For case 1:--
    i)Populate field BSART of M_BEST_BSA with UB.
    ii)Populate field WERKS of M_BEST_WRK with '*'. SAP reccomends to fill up organizational data through organizational level tab only.So while doing this step you need to put * from organizational level tab only.
    For case 2:--
    i)Populate field BSART of M_BEST_BSA with NB.
    ii)Populate field WERKS of M_BEST_WRK with 'plant no'.
    Dont worry about the objects i mentioned those are maintained through SU24 and will be automatically pulled once you insert ME21 transaction code.
    Let me know if it helps.
    Thanks,
    Aveek

  • Arching purchase order document

    Hello,
    We would like to archive the output message and the edition of forms from the purchase order.
    I have parameter the object type :
    - BUS2012 :it is recommanded but doesn't work well
    - and the EKKO : it is obsolete but works well, the problem is that
    the archived document is not attached to the purchase order.
    I have described all this in the attached docucment.
    Why the bus2012 doesn't work?
    Thank you for your help,
    Fatima.

    Hi
    FO - Frame work order Document type is a standard document type , which is used for Blanket Purchases, Purchase of services.
    The FO document type has a Validity Start & End date feature whcih is not in the NB document type(You can get the same in NB also after cusotmization)
    Services & limits are also presnet. The FO document type is limited to usage for Iterm categories
         Standard
    B     Limit
    D     Service
    All these can be made for NB also, but only after customizing.
    Thanks & Regards
    Kishore

  • Purchase order Document date in AP Downpayment invoice PLD

    Dear All,
    Is it possible to capture purchase order Document Date in AP Down payment invoice PLD.My client want like this.I have tried,but i am not able to capture this field in AP Down payment invoice PLD.please give me the solution for this,If it is possible.
    Thanks,
    Silpa.N

    hi silpa,
    Create a user defined field in row level of marketing documents.
    Apply formatted search using query
    Select $[OPOR.TaxDate]
    select auto refresh
    when changing field Document Date in header level.
    On copying purchase order to ap downpayment invoice Document date will copy to it.
    U can also bring it to PLD by creating database field with table DPO1,column U_XXX
    Hope it will solve problem.
    Jeyakanthan

  • Status of an Order document

    what are the different status available for an order document.
    what is the table field that refers to?

    if you meant a sales order,  there are many like..  (look table VBUK, and VBUP)
    Reference document header status
    Total reference status of all items
    Confirmation status
    Delivery status
    Overall delivery status for all items
    Total goods movement status
    Billing status
    Billing status (order-related billing document)
    Posting Status of Billing Document
    Overall rejection status of all document items
    Overall processing status of document
    Overall picking / putaway status
    Overall status of warehouse management activities
    Total incompletion status of all items in general
    Total incompletion status of all items: Delivery
    Total incompletion status of all items: Billing

  • WBS Element and Service No Link Table for Purchase Order document

    Hi Experts,
    We are Facing 1 Problem for finding link between
    WBS Element and Service No for corresponding Purchase Order document . Please Suggest me to find Related tables for Project system Module .
    Thanks and Regards
    BalaNarasimman.M

    Hi,
    The link will be in MM table, not PS table. Try EKKN.
    Regards

Maybe you are looking for