Adding weeknumbers in sales orders & purchase order in orderlines

User functionality
Add weeknumbers on row level in order to communicate to customers in documents especially for external documents ie delivery week in stead of delivery date

hi,
Add user defined field & apply formatted search using query in sales order/purchase order.
SELECT DATEPART(ww,T0.ShipDate) FROM RDR1 T0
Jeyakanthan

Similar Messages

  • Item & Discount added in the Sales Order

    Dear All,
    I have a requirement where in once a Sales Order is created with approved Quotation, then no new extra items to be added in the sales order.
    Quantity in the existing line item can be decreased to the lower side but no addition in quantity to be done.
    Also no change in discount condition  types to be done.
    Please suggest the approprite Config. If there is no standard config, then please suggest the code which needs to be written in the approprite Userexit.
    Best solution will be rewarded.
    Thanks and regards,
    Dilip Kumar Rao

    Hi,
    To restrict creation of new items and to restrict addition of quantity to existing items, use following user-exits and coding.
    Program : MV45AFZB
    FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
    *{   INSERT         D50K904678                                        1
      if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
        check vbap-vgbel <> space and vbap-vgpos <> space.
        read table vvbap with key vbeln = vbap-vgbel
                                  posnr = vbap-vgpos.
        if sy-subrc eq 0.
          if vbap-kwmeng gt vvbap-kwmeng.
            message e499(sy) with
              'Quantity entered is greater then referenced'.
          endif.
        endif.
      endif.
    *}   INSERT
    ENDFORM.
    Program : MV45AFZZ
    FORM USEREXIT_MOVE_FIELD_TO_VBKD.
      if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
        loop at xvbap where vgbel eq space
                      and   updkz eq 'I'.
          exit.
        endloop.
        if sy-subrc eq 0.
          message e499(sy) with 'New Item is not allowed'.
        endif.
      endif.
    ENDFORM. 
    -Alpesh

  • Empty line item added in incomplete sales orders after upgrade

    Hi,
    We are upgraded from 4.7 to 6.0 version of R/3. After the upgrade in sales orders which were incomplete in 4.7, a empty line item have got added in those sales order. While opening those order in VA02, first line item is completely empty and due to that it doesnot allow me to do anything on that order. Also, on checking the tables such as VBAP, VBKD an empty line item is there.
    Kindly Advice.
    Thanks in Advance.

    Hi Kishore,
    I have already checked SAP notes but got nothing related to it.

  • Addition Item getting added while posting Sales Order Changes - ORDCHG

    Hello,
    I have a requirement to post sales order changes - ORDCHG. Now, when I am adding the qualifier 002 at the item segment E1EDP01 with the existing Item number, it is creating another Item in the sales order rather than changing the existing one. What could be the reason? I am passing the below values in to the respective segments.
    E1EDK01-ACTION = '003' - Changes in one or more items
    E1EDP01-ACTION = '002' Item Changed.
    Please advise.
    Regards,
    Venkata Phani Prasad K

    I encountered the same problem.  As Vinit pointed out, it looks up the line item using field POSEX on VBAP instead of POSNR.  If you want to look up POSNR,  you can implement either user-exit ZXVDBU07 or ZXVDBU09 in IDOC_INPUT_ORDCHG and do the following.
    Loop through YVBAP and modify the internal table to set POSEX to be equal to POSNR.
    This will cause the IDOC to select the correct line item based on POSNR.  The only side-effect is that when the order is updated, it will also update field POSEX on table VBAP.

  • Adding Fields to Sales order

    Hi ,
    I added Table Control to AdditionalDataB of Sales Order. there are no syntax errors . but when executed it is giving dump. For fields it is displaying. how to handle Table control in this Exit.
    Thanks,
    anjani.

    Hi Srinivas,
    CONTROL_NOT_FOUND is the error.
    Thanks,
    anjani.

  • Adding multiple in sales order using fm crm_order_maintain

    hi experts,
    we have requirement of creating sales order with multiple products. We used FM CRM_ORDER_MAINTAIN to avhieve the same. But problem that we are facing is we are able to add only one product in sales order through this function module. But we need to add multiple product.
    Please provide direction. Are we on right track or we need to use other function module to achieve the same.
    Thanks and regards
    Pankaj Kumar

    Hi Pankaj,
    You are in the correct way. I am sure you should be able to update multiple products to the order. I feel you might be passing some other parameters which actually restricts somewhere..
    Regards,
    Vinay

  • Adding Quantity in Sales Order form in 11i

    I am trying to use forms personalization (under 11i) to add-up order quantity of multiple item lines to check against certain value. if it is less then let the order be booked, if it isn't then give error and stop processing. Will appreciate if someone can help, urgently.
    I am able to check the quantity and preform the check at each line level but not able to figure out how to add up the quantity if there are multiple lines.
    This is to be done in Sales Order form under Order Management.
    Thnx
    Suhail

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Function for adding items to sales order

    Hi.
    I would like to know if there is some other more simple function (then crmxif_order_save) to add new items to sales order. And if yes, some sample code would also be appreciated.
    Thank in advance.

    I have a smilar requirement, I am supposed to add the line item to sales order in run time, I have done code changes in the user exit CHECK_VBAP of the program MV45AZB , I can see the data in the debug mode, but I dont see the same populating the screen of the VA01. Can u please help em , wht are the extra points I need to take care of . I have written a code to add data to XVBAP table and it is coming in debug mode into that tabble. but same data is not coming on the screen .How do u write the data to the screen.

  • Copy incoterms from sales order to purchase order

    In the third party flow: we create a sales order which creates a purchase requisition which is converted to a purchase order, I want to copy the incoterms which are initally added in the sales order automatically to the purchase order. Anyone knows how to proceed?
    Thanks!

    what business scenario is this? third-party-order-processing? in that case SAP standard would submit the data from the sales order to the purchase order (via purchase requisition) automatically, see documentation: http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/560287545a11d1a7020000e829fd11/content.htm

  • Purchase Requisition number not changing when sales order item is rejected

    Hi all,
    I have a requirement to change the sales order status to 'TECO' when ever some reason for rejection is selected in the status tab at the item level.The status should change from 'TECO' when i remove the reason for rejection.
    The status change is happening correctly.I have achieved it using user exit.
    CASE 1 : Initially, when a new item is added in the Sales order the purchase requisition number appears in the schedule lines tab of the item level. This is as expected.
    CASE 2 :When the same item is blocked (by entering a reason for rejection in status tab of VA02 ) then the purchase requisition number is not present in the schedule lines tab.This is as expected.
    But i face the following issue.
    CASE3 : Again if the blocked item is unblocked (By removing the reason for rejection in status tab of VA02 ) then the purchase requisition number does not appear again in the schedule lines tab.The purchase requisition number is expected to appear again.
    This happens in case of DROP SHIPMENT scenario. I understand that in case of dropshipment scenario the purchase requisition number is triggered by item category and schedule lines only.
    I tried to make the changes(to change the status ) in user exits 'MV45AFZZ' and also 'MV45AFZB'.But i face the issue in both the exits.Please let me know if there are any means to solve this issue(as mentioned in case 3).
    Regards,
    S.Suba

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • How to Link Sales Order for Non Purchase items to Purchase Order

    Hi,
    I am using SAP 2007A SP01 PL05.
    I am creating a Sales Order for Non Purchase Items where i have 3 companies involved.
    1. Owner of the Product
    2. Transport Agent
    3. Customer
    Owner Sells to the Customer non Purchase Items manufactured internally.
    Owner buys transports services from the Agent for these non purchase items.
    I am creating a Sales Order for the Customer and at the same time i want to create a Purchase Order to the Transport Agent.
    How do i Link Sales Order to a Purchase Order for Transport.
    The Transport Charges are not to be Charged to the Customer and should not be added to the Sales Order.

    Hi
    Create purchase Item frieght in the purchase tab enter the transporter. include this in the sales order and in the logistic tab of sales order active purchase order check box, you frieght item will have a value of 0. when you create sales order the the system will lead you to create purchase order. there you can enter the price of freight. you can explore options there.
    hope this will help you.. by doing this your base ref for PO would be Sales order.
    Regards
    Sandeep

  • Adding a sales order with DI Server 8.8 results in document with no rows

    Hello,
    I am facing a weird problem situation running DI Server in a 8.8 (pl8) environment.
    When adding a new sales order document, the add operation results in a "success", but when I go to B1 client and see the document, there are no rows at all.
    Please see the xml message I am posting to DI Server. There is one in row specified.
    Anyone had similar experiences or possibly even been able to resolve this ?
    Best Regards,
    Henry
    = = = = = = = = = = =
    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <SessionID>C72BD58F-3A5F-4074-86CA-6776372ADB39</SessionID>
      </env:Header>
      <env:Body>
        <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Documents">
          <BOM>
           <BO>
              <AdmInfo>
                <Object>oOrders</Object>
              </AdmInfo>
              <Documents>
      <row>
        <DocDate>20091202</DocDate>
        <DocDueDate>20091202</DocDueDate>
        <CardCode>234485</CardCode>
        <NumAtCard></NumAtCard>
        <DiscountPercent>0.00</DiscountPercent>
        <Comments>fdsfds</Comments>
        <SalesPersonCode>8</SalesPersonCode>
        <TransportationCode>14</TransportationCode>   
        <DocumentsOwner>-1</DocumentsOwner> 
      </row>
    </Documents>
    <Document_Lines>
    <row><ItemCode>001150x</ItemCode>
    <ItemDescription>JAUHESAMMUTIN 12KG ALKU</ItemDescription>
    <Quantity>1</Quantity>
    <Price>4</Price><Currency>EUR</Currency>
    <DiscountPercent>0.00</DiscountPercent><WarehouseCode>01</WarehouseCode><SalesPersonCode>8</SalesPersonCode>
    <VatGroup>V1</VatGroup><FreeText /></row>
    </Document_Lines>
    </BO>
    </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    02/12/2009  12:02:39  Response (OK)
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><AddObjectResponse xmlns="http://www.sap.com/SBO/DIS" CommandID="Add Documents"><RetKey>15</RetKey></AddObjectResponse></env:Body></env:Envelope>

    I thinks that you do not have more than necessary in the XML Code.
    To try to test it in a different environment, what about?
    For example,
         a.SBODemo database is used
         b. Reinstall SBO Serivce Manager
         c. Delete folder or Rename folder SM_OBS_DLL
    Hope you will help a little.
    Best regards,
    HyangHang

  • How to deal with changing in Make-to-order style sales order?

    Hi, SAP experts,
    our situation and requirement:
    my client use make-to-order style to create sales order, normally one item in sales order.
    And this item stand for a dummy material, which include several components.
    Limited with material purchase delivery schedule, sales orders need to be made as planned sales
    orders to drive MRP to run out material requirement in ahead. Therefore, planned sales orders will
    often changed as final assigned customer request.
    1. Could be a possible to define components level to release sales order?
    2. If components in sales orders is replaced or added, even whole sales order released, production order initialized, how to deal with it?
    Scenario one: components in sales order added, modified in sales order, which will automatically create another production order for replacement action? if not, how to do?
    Scenario two: components in sales order replaced, how this sales order requirement transfer to production order?
    3. what about costing calculate for this changing?
    Thanks for your kindly help in advanced,
    Zhou Zhen

    Don't forget, this include both concrete inner classes as well as any anonymous inner classes you create, like
    myButton.addActionListener(new ActionListener()
      // Yada Yada Yada

  • Sales order status to update costing

    HI
    I am trying to update sales order cost estimate using CK51n But it is not updating.
    Order status is Completed.Is this could be the issue ??
    If yes pls let me know at which status I can release order cost estimate and for this what I have to do.
    and like material cost estiamte do we need to releae sales order cost estimate too. Pls let me know the procedure normally we follow
    Thanks in advance
    Sneha

    >
    1Sneha wrote:
    > HI
    >
    > I am trying to update sales order cost estimate using CK51n But it is not updating.
    > Order status is Completed.Is this could be the issue ??
    >
    > If yes pls let me know at which status I can release order cost estimate and for this what I have to do.
    >
    > and like material cost estiamte do we need to releae sales order cost estimate too. Pls let me know the procedure normally we follow
    >
    >
    > Thanks in advance
    >
    > Sneha
    Hi Sneha,
    Sale order cost estimate Generaaly used for MTO, it is carried out in sale order itself while creating sale order or after sale order creation, After run sale order cost estimate Eko2 condition( cost of goods sold) will added in to sale order.
    This value is taken while doing Billing as cost of goods sold
    Since you are trying to do estimate for closed order, i.e after billing, System is not updating the Eko2 value in old sale order

  • Sales Order 'Payment Terms' conversion error after 8.8 Upgrade

    Hello All,
    We recently upgraded from 2007A PL49 to 8.8.
    The Installation went smooth, until we opened up our first new Sales Order. We are getting the SQL error listed below each time we open up the sales order module. This doesnt prevent us from adding a new Sales Order, but the fact that it throws the error each time we open the module is scary.
    Any ideas as to what might have changed from PL49 to cause this?
    Error:
    1). [Microsoft][SQL Native Client][SQL Server]Error converting data type nvarchar to numeric.
    'Payment Terms' (OCTG)
    Thanks,
    Matt

    Hi,
    Can you check wether there is any formatted search involved in the Sales Order?
    You can also check Note No. :   1402855. Check if it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

Maybe you are looking for

  • Animation of letters filling

    Is it possible to animate text/object with 'end' in after effects just like you do with strokes? How can I achieve this? See the video and you'll understand what I wan't to achieve. Guy showing of the 'end' animation on stroke Cheers, Tommie Using Ad

  • Regarding ANSAL Feature

    Feature ANSAL --> ASAL (10 country grp)                         --> CSAL (02 Switerzland) ANSAL is doing Indirect valuation. Problem is, If I check the emp. salary in PA20, IT0008. The annual salary is visible. But for the same record in PA0008 the a

  • SVN Merge - Another Unicode/UTF-8 problem

    When merging conflicts in Unicode/UTF-8 files (Java, XML, JSPX) the resulting file looses UTF-8 characters. This is yet another serious Unicode/UTF-8 bug in JDev. What is going on with Unicode/UTF-8 support? Currently, developing any fully "Globalize

  • Java.lang.UnsatisfiedLinkError: free_c_state

    Get This error when running TestInstallCreateTable. Have compiled with both java 1.1.3 and java 1.4.1 Get the same error when trying to run. Where is free_c_state ? CLASSPATH=.;M:\oracle\jdbc\lib\classes12.zip;M:\oracle\sqlj\lib\runtime12.zip;M:\orac

  • ALV grid - column width doesn't get optimized

    Dear SAP friends, My program displays ALV grid in PBO:   gs_layout-cwidth_opt = 'X'.   " optimize column width CALL METHOD grid1->set_table_for_first_display     EXPORTING     i_structure_name      = 'IT_REPORT_X'       is_layout            = gs_layo