Sales District updation in Delivery header table

Dear Gurus,
Sales district is mandatory field in customer master and is copied to the sales orders, when the delivery document is created the sales district is not copied.
Is there any technical way or customization process to update the sales district in LIKP.
In this project we ARE NOT USING shipment and transportation process.
the process implemented here is Sales Order creation, followed by delivery creation (picking and Post goods issue) and finally Invoice creation and posting to accounts.
Kindly help me in achieving the updation of Sales district in LIKP table.
Thanks and Regards
LR

Hello,
The current copy control setting between the sales order and delivery is as per the standards.
ie 001 - Header
Please suggest a better approach whether:
Data Transfer routine - 001 -Header (FV50C001) which is a default routine to be copied and add the logic of updating the sales district in delivery header and maintain in place of 001
or
copy the Data transfer routine - 002 - Business Data ( FV50C002) to a new routine activate the logic of copying the sales district from VBKD to LIKP and maintain in place of 001
The replies suggested by seniors is very helpful.
Kindly help me to come out of my confusion.
Thanks and Regards
LR

Similar Messages

  • Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

       Hi
    Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

    Dear Srikanth,
    I am not sure, if my answer will satisfy you, but anyway I will try:
    Field Sales District is technically called BZIRK. In delivery structure is this field located in header (table LIKP), what cause split, if origin document (Sales Order) has different Sales District in some positions. This is standard program behavior. Basically it shouldn't happen, as value is taken from customer master (Sold-to Party) and copied to header and items of sales document. But user can manually changer for particular items.
    Well, to solve situation you have few ways:
    1. Do not allow users to change value on items - can be managed by organizational decision or by authorization concept.
    2. If there is a reason to have different Sales District in items, then it can be managed in in routines for copy control between sales and delivery documents (delete value of BZIRK for all items for instance). But then will be this information lost for further usage. It seems to me to invoice is value copied directly from sales order (field VBRP-BZIRK_AUFT) then it mustn't be a critical for analyses.
    3. Your situation also can happen if you wants to collect more sales documents to one delivery. In this case can be that Sales District is different for same customer in different sales order (even seems to be little bit strange). Then solution from point 2 can help as well, I believe.
    Best Regards
    Arnost

  • Sales Order Update during Delivery Creation

    Hi,
      I have a requirement to update one of the customer specific sales order header table field during the creation of delivery.I'm trying to do this through the delivery user exit USEREXIT_SAVE_DOCUMENT program MV50AFZ1.
    I have a structure CVBAK available, but if i update customer specific the field in the CVBAK it's not changing the sales order.I won't be able to use BAPI or BDC to update SO from the exit, because during this delivery process the current sales order is being used, so system doesn't allow me to acces the sales order.
    Please give me the solution for my problem.
    Thanks

    Hi
    Probably the table VBAK is not updated by delivery transaction, so u can try to update that field (if it's custom field) by yourself.
    U can create a you function module for updating and call it in USEREXIT_SAVE_DOCUMENT:
    FORM USEREXIT_SAVE_DOCUMENT.
    CALL FUNCTION 'Z_VBAK_UPDATE'
          IN UPDATE TASK
          EXPORTING
               VBAK = VBAK.
    ENDFORM.
    In 'Z_VBAK_UPDATE' insert the code to update VBAK, you can also try to call the BAPI here, perhaps (the fm is called in update tusk) in this moment all blocks are released.
    Max

  • Workflow update on Change Header Table

    Hi ,
    My requirement is to update the Workflow exact time stamp which is run in background into Change document Header tables for a PR .
    like if if workflow triggers at 9:30 i want to see the same time stamp in PR for the status field .
    Can anyone let me know the procedure .
    Thanks in advance,
    Ry

    hi,
    Are you trying to update some application specific tables with the workflow/ WF derived data, then i would suggest to use a workflow programming exit.
    for details, please refer the following link :
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fd/15fe3b0f13ca4ae10000000a11402f/content.htm
    Best Regards,
    Saujanya

  • Sales Order -- Update the delivery Document Credit status using FM or BAPI

    hi All,
    The requirment is quite urgent......  Actually i am Using a userexit V56FSTAT through VT02N and want to update the credit status through VKM4 Transation. But i require a Function module or Bapi to Update the credit status of the delivery status.
    Please do give me suitable Function module or Bapi through which i can perform the VKM4 transation to update the credit status of delivery document....

    when we go to vkm4 there we click on the reassign button and save then the status is changed in VBUK table....
    so i have to perform this steps through VT02N transation....
    Ny ways thanks for the reply,
    i guess i require more support fom u all
    Message was edited by:
            siddharth samal

  • Which table I can get sales order no from delivery numbar.

    Hi,
    I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
    Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
    Thanks,

    hi,
    sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
    sales doc item table ( VBAP) copy to Delivery item table( LIPS)
    you can see this in copy control VTLA ,
    now u want slaes doc no. from dilv doc. no.
    so go to t-code se11.....
    fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
    so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
    i hope it will help u.

  • Req Help to Update LIKP-LIFSK,Delivery Header block through custom program.

    Hi everyone,
    Can you please suggest a FM or BAPI to update the delivery header block field, LIFSK, in LIKP table through FM or a BAPI.
    I tried using 'BAPI_OUTB_DELIVERY_CHANGE' as below to update the LIKP-LIFSK, but it is not working.
    DATA : ls_likp TYPE likpvb,
           ls_dlv_header  TYPE bapiobdlvhdrchg,
           lt_dlv_items_control TYPE STANDARD TABLE OF bapiobdlvitemctrlchg,
           ls_dlv_item_control TYPE bapiobdlvitemctrlchg.
    DATA : ls_dlv_hdr_control   TYPE bapiobdlvhdrctrlchg,
           ls_dlv_techn_control TYPE bapidlvcontrol,
           lt_bapireturn TYPE STANDARD TABLE OF bapiret2,
           ls_bapireturn TYPE bapiret2,
           lt_bapiext2 TYPE STANDARD TABLE OF bapiext,
           ls_bapiext2 TYPE bapiext.
    DATA :  BEGIN OF ls_mns_of_del,
                 vbeln TYPE likp-vbeln,     "delivery number
                 lifsk TYPE likp-lifsk,     "means of transport
           END OF ls_mns_of_del.
    CONSTANTS : lc_del_blck           TYPE bapiext-param VALUE 'LIKP-LIFSK'.
    PARAMETERS : p_dlv TYPE likp-vbeln OBLIGATORY."  OBLIGATORY.
    SELECT SINGLE *
      FROM likp
      INTO ls_likp
      WHERE vbeln = p_dlv.
    CHECK sy-subrc = 0.
    CLEAR : ls_bapiext2.
    ls_mns_of_del-vbeln = ls_likp-vbeln.
    ls_mns_of_del-lifsk = 'BX'.
    ls_bapiext2-param = lc_del_blck .
    ls_bapiext2-value = ls_mns_of_del.
    APPEND ls_bapiext2 TO lt_bapiext2.
    CALL FUNCTION 'MAP2E_LIKPVB_TO_BAPIOBDLVHDRCH'
      EXPORTING
        likpvb          = ls_likp
      CHANGING
        bapiobdlvhdrchg = ls_dlv_header.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        header_data           = ls_dlv_header
        header_control        = ls_dlv_hdr_control
        delivery              = ls_likp-vbeln
        techn_control         = ls_dlv_techn_control
      TABLES
        extension2            = lt_bapiext2[]
        return                = lt_bapireturn[]
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF lt_bapireturn[] IS INITIAL.
      COMMIT WORK AND WAIT.
      MESSAGE 'Success' TYPE 'I' DISPLAY LIKE 'S'.
      LEAVE LIST-PROCESSING.
    ELSE.
      MESSAGE 'Error' TYPE 'I' DISPLAY LIKE 'E'.
      LEAVE LIST-PROCESSING.
    ENDIF.

    Hi ,
    After seeing your code, you are not passing any parameters to header control data. once check the below code, it might useful.
    DATA: h_data like bapiobdlvhdrchg,
             h_control like bapiobdlvhdrctrlchg,
            delivery like bapiobdlvhdrchg-deliv_numb,
            item_data like bapiobdlvitemchg occurs 0 with header line,
            item_control like bapiobdlvitemctrlchg occurs 0 with header line,
             return like bapiret2 occurs 0 with header line.
            CLEAR: h_data, h_control, delivery, item_data, item_control,
                   return.
            REFRESH: item_data, item_control, return.
           h_data-deliv_numb = gst_alv_table-c6_vbeln.
           h_data-dlv_block  = p_new_del_blck.         "the new delivery block
           h_control-deliv_numb = gst_alv_table-c6_vbeln.
           h_control-dlv_block_flg = 'X'.
           delivery = gst_alv_table-c6_vbeln.
              CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
                  EXPORTING
               header_data                   = h_data
             header_control                = h_control
              delivery                      = delivery
               TABLES
                return                        = return .
             "Check if return table got an error.
             READ TABLE return WITH KEY type = 'E'.
                IF NOT sy-subrc IS INITIAL.
               CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                   EXPORTING
                  wait = 'X'.
                 ELSE.
             ROLLBACK WORK.
                            ENDIF.
    Regards,
    Parupelly

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • Sales District and Partner function relationship in customer master

    Hello there
    I am working on a report and need to know one table relation for sales District and Partner function 
    i have a requirement , where i want to list all the partner number/Partner function assign to the customer with ref to the sales District
    we have one partner function Tab at sales Area tab in customer master , and another when we click on Sales district tab at header will get another window where we maintain partner function relate to the sales District , i want to have all those partner function in report , can you please help me where i can find that in table ? when i do F1 its says  KNVP but that table maintain at the sales area leval , not for the Sales District !! if you can help
    thanks
    Sonam

    Hi Sonam -
    and another when we click on Sales district tab at header will get another window where we maintain partner function relate to the sales District
    Do you have custom table/maintenance for sales district? Are you not maintaining Sales District in Sales Tab of customer master.
    You have to look for the field and table where you have maintained sales distict along with Customer and join the customer with KNVP customers and get all the partners.
    For Example - if you have mainationed sales district in KNVV table of BZIRK field then you have to join KNVV -KUNNR with KNVP-KUNNR and extract all records of customer distict and associated partner functions.
    Let me know,if the given solution is not applicable for your case.
    Thanks
    Amit Gupta

  • Update a delivery with empty HU

    Hai guys,
    My delivery has 1 pallet and 4 hu's with 1 material each in them.
    I need to update this delivery with 4 more empty HU's.(it is manadatory  for each pallet to have 8 hus)
    i am creating everything programticaly...
    now i created hus with fm  CALL FUNCTION 'HU_CREATE_ONE_HU'.
    how can i update delievery with this HU mainting the hierrachy as
    pallet(0)
    hu(1)
      mat(2)
    hu(1)
    mat(2).
    hu(1)
    mat(2)
    hu(1)
    mat(2)
    hu(1)
    hu(1)
    hu(1)
    hu(1).
    i dont want BDC.

    Thanks for the response....The FM WS_UPDATE_DELIVERY doesn't update the date events of delivery. I already used this FM to update the picking information & PGI, which also updates the delivery header data.
    Help me with this..
    Gita

  • LST No/CST No is not showing in Excise Header table

    Dear All,
    I am facing one problem that i maintained the LST No.(J_1ILSTNO) and CST No(J_1ICSTNO) in transaction J1ID -customer master excise additional data against the customer code but when i am creating the Excise invoice for that customer  then in excise header table (J_1iexchdr )the LST No(LSTNO)/CST No (CSTNO) is not showing or not getting updated ?
    any reason why it is not getting updated in excise header table?
    warm regards
    ravi k

    HI
    it was a typo error the table is J_1IEXCHDR
    check the customer master and also check whether they are coming in excise invoice
    also check this  Note 1048759 - CST, LST, PAN no. of customer not filled in J1IIN
    regards

  • In delivery - Header- Administration-Sales office is blank.

    Hi Gurus
    Please help as I am not getting entries updated in LIKP-VKBUR (Sales office in case of deliveries).
    So In every Delivery--Header-Administration--Sales Office is blank.
    I have checked the following:
    1. Sales office entries are maintained in Customer Master.
    2. At creation of sales order, VBAK-VKBUR it is available.
    3. At delivery table LIKP-VKBUR it is not available.
    4. At invoice VBPR-VKBUR it is available.
    Could you please advice as why the sales office is not flowing to delivery header from the sales order header.

    Hi Raghu Chawla 
       These data transfer from order to delivery is controled by the copy control. Check your settings in VTLA for your sales order and delivery type. Select it and go to details screen. Check the routines.  If there is no standard SAP routine available to copy the sales office then you can create a new routine by copiying the existing one in VOFM transaction after getting access key from SAP and assign that to copy control header routine. Your problem will be solved.

  • Issue Updating Base Sales Order From A Delivery

    As a Delivery doc is added that was created from a Sales Order, I would like to be able to update certain unclosed information in the base Sales Order document.  Two of the fields are user fields, which don't present an issue.  I can make the updates accordingly through the SDK.  The issue I'm having presents itself when I attempt to update the TransportationCode (ORDR.TranspCode) field in the base sales order, which is a field on the logistics tab.  I can make the update through the SBO interface version 2005 fine, but when I make the update through the SDK version 2005 use VB.NET 1.1 I get the following error:
    [ORDR.DocRate] , 'Field cannot be updated (ODBC -1029)'.
    It's strange because I'm not making any updates to the DocRate field.  This issue arose after an upgrade from 6.5 to 2005.  Worked fine in 6.5.  The DocRate (exchange rate) field is not used in documents entered in local currency as far as I know.
    Any ideas?
    Private Sub UpdateOrderFromDelivery(ByVal DS As DataSet)
            Dim oORDR As SAPbobsCOM.Documents
            Dim oDEL As SAPbobsCOM.Documents
            Dim RetVal As Long
            Dim DT As New DataTable
            Dim DR As DataRow
            Dim OrdrTrackNum As String
            Dim AL As New ArrayList
            DT = DS.Tables(0)
            oORDR = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDEL = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
            Dim i As Integer
            For i = 0 To (DT.Rows.Count - 1)
                DR = DT.Rows.Item(i)
                Dim CurBaseDocEntry As String = DR.Item(0)
                'Check to see if the Sales Order update has already been processed
                If AL.Contains(CurBaseDocEntry) Then
                    GoTo SkipLoop
                End If
                If oORDR.GetByKey(CurBaseDocEntry) = False Then
                    Throw New Exception("Could not find Sales Order Key " & DR.ItemArray(0) & ".")
                End If
                If oDEL.GetByKey(DocEntry) = False Then
                    Throw New Exception("Could not find Delivery Key " & DocEntry & ".")
                End If
                Dim DelTrackNum As String = oDEL.UserFields.Fields.Item("U_TrackNum").Value
                oORDR.UserFields.Fields.Item("U_TrackNum").Value = DelTrackNum
                Dim DelShipCost As Double = oDEL.UserFields.Fields.Item("U_ShipCost").Value
                oORDR.UserFields.Fields.Item("U_ShipCost").Value = DelShipCost
                <b>Dim DelTransCode As String = oDEL.TransportationCode
                oORDR.TransportationCode = DelTransCode</b>
                RetVal = oORDR.Update
                If RetVal <> 0 Then
                    Dim Err As String, Msg As String
                    oCompany.GetLastError(Err, Msg)
                    Throw New Exception("Unable to update ORDR from ODLN.  " & Err & " - " & Msg)
                Else
                    AL.Add(CurBaseDocEntry)
                End If
    SkipLoop:
            Next
        End Sub

    Hi,
    i think any of the fields in the base sales order get updated when u set the delivery 's(target's) base entry no
    oDel.BaseEntry = docnum of Order
    Hope this helps

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

  • Sales Header Text copy to Delivery Header Text

    Hello,
    We want to copy sales order header text to delivery header text.
    We already did the configuration VOTXN in DEV client and it is working.
    When transported to QA client, we're not able to copy sales order header text to delivery header text.  It is still saying Access Sequence missing.  Checked the configuration in QA, and the access sequence is there attached to the Text Field.
    What else could have been missing?

    Hello,
    Have you created Sales order Header Text by using transaction SO10.
    if Yes,then Run the program 'RSTXTRAN' and attach the Text object to your TR.
    Then Transport this Text to Quality.
    There will be 2 workbench request and 2 Cutomising request.
    Please take care of Sequence in order to move it to QAS(As per Condition Technique Determination)
    Revert if not resolved.
    Regards
    Amit

Maybe you are looking for