Locking Sales order and line item from reading

Hi,
I am writing an interface program to create an offer list inspection report. If two users are running the program at the same time, and if the first user read and processing a sales order line item, it should not read the same sales order line item twice for the second user.
Please let me know if anybody has used locking sales order at line item level (VBAP).
The enqueue function for VBAP is not working.
Any suggestions will be helpful.
Regards
Ravikanth

hi Ravi ,
u Can lock the Sales Order for processing ,  u cannt restrict users @ tables level.
u hhave to enqueue the VBELN
Regards
Prabhu

Similar Messages

  • Get the Ship-to-Party from Sales Order and Line item

    Hi all,
    I am developing one report in which I want to get the Ship-to-Party for a particular Sales Order and Sales Order Line item number.
    I can see table VBPA from I can get value of KUNNAR and so on. But my concern is that can the Ship-to-Party differ for different line items for sales Order, if yes how to get that one, any table or any function module?
    In my scenario i found out that ship-to-party only depend upon sales order and partner function not line item.
    please help me..
    regards,
    vikas.

    Hi,
    First step: Customer Creation (T. Code: XD01)
    i) Create Sold to Party (Ordering Party) with Account Group: Sold-to-Party
    ii) Create as many Ship-to-Party and Bill-to Party, if reqd, with Account appropriate Account Groups.
    iii) Match all the Ship-to-party/ Bill-to-Party/ Payer for the respective Sold-to-Party under Tab: Sales Area data, Sub-tab: Partners.
    Second Step: Sales Order Creation (T.Code: VA01)
    i) Enter Sold-to-Party at Header Level.
    ii) Enter Materials (at Line-item level).
    iii) Now, System will pop-up all the Ship-to-Party/ Bill-to Party/ Payer, Matched for the particular Sold-to-Party. Click on appropriate selection.
    OR
    Now, (if option doesn't pops-up) select the line and Double Click on to the same line. it will lead to the next page. Here, Click Tab: Partners
    Now, in Column: Partner Function, search for appropriate Partner: Ship-to-Party or Bill-to-Party or Payer.
    Remember: Sold-to-Party will be non-editable as entered at Header level.
    Repeat the same for Each Line-item.
    Regs,
    Amit K. Yadav

  • How to know the excess stock with in a sales order and line item

    Hi,
          i am running an MRP against a sales order and sales order line item. the materials are getting planned based on the requirement. but due to some reasons the production orders are confirmed with out consumption of the actual required quantity of the  components. so the stock  is kept  ideal in the sales order  though it is not required further.
       do to some othere reasons also the excess stock of componenets exist. the PR or POs may also exist for the materials though they are not required further.
    i am in need of a report for the excess stock or excess PR or Purchase order for a sales order.
      please give me logic to find the excess things in that sales order and sales order line item. the Expensional message 26 is there in stock requirement list . but it does not give the excess quantity existing.
    regards
    madan

    hi rajesh,
      thanks for your reply. please tell me the logic to see when only partial quantity of sale sorder are delivered  and also when no delivery is made also.
    but manufactured and placed in stock.
    please tell me the tables to follow and logic of going ahead with them.
    regards
    madan

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Sales order some line items are showing not relavant

    Hi SD Guys,
    In sales order some line items are showing not relavant.
    Why are they showing a status of not complete or "not relevant"?
    Thanks
    Sunny

    Hi sunny,
                     plz check the each line item in the sales order controls by the item category, so check the item category , depends on the item category, pricing,delivery and billing takes place.
    regards,
    ram.

  • Price is not changing in sales order in line item

    dear all.,
    price is not changing in sales order on line item,error comes "CHECK ORDER STRUCTURE.
    Regards,
    Praveen

    Dear
    You can go into VA03 --> Menu --> Environment --> Partner --> display credit account (if the data is maintained, than the system springs into FD33). Another way is to check if the sales order type is assigned to credit management in the transaction OVAK (should be D for aut. credit management).
    Did you enter the pricing date , prcing condition and press enter , so  that it should pick the correct price?
    Check this and come back
    Regards
    JH

  • Bdc sales order multiple line items

    hi friends,
    i prepare multiple sales orders multiple line items through  single flat file
    in bdc program.
    i know information about ...
    H
    I
    I
    I
    BUT my problem is
    H
    I
    I
    H1
    I
    I
    H2
    I
    I
    how will develop this code?

    George Bush,
    Answer fir this question is, you need to do basic ABAP Training.
    Search for SAP ABAP Training Courses.
    You need to build logic in you program by defining appropriate internal table and use loop events to build BDC.   BDC is old style of programming. I would advice you to use BAPI with immediate order processing.
    If you want BDC, you can also try to use LSMW by defining appropriate inbound data structures.
    If you need help let me know.
    Thanks & Regards,
    Mahesh Apte

  • Sales order with line items having multiple values in multiple currency

    Please suggest solution for creating sales order having line items with multiple values in multiple currencies.
    e.g. Line Item A Qty/1 No,  value 100INR100$100EUR. Customer wants all three values to display at sales order line item level and create billing in 3 currencies.

    Hi,
    As far as my understanding it may be possible round the solution,
    For 1 company code we can able to maintain 3 currancies,
    1 currancy is hard currance & other two are dual currancies.
    Create sales order with 3 line items having 3 diffrant currancies
    Spilt invoice on the basis of currancy
    Last pass to this invoices to accounting.
    Whole process is
    Sales order >>> Delivery >>> Invoice 1, Invoice 2, Invoice 3(Split invoice on basis of Currancy).
    Consult with FI Team they will tell you about dual currancy & hard currancy
    Kapil

  • Logic to fetch delivered and invoiced Qty using sales order and line no

    Hi Experts,
    I am creating a Sales Order report in which I need to Fetch the delivered Quantity and Invoiced Quantity fields.
    I am currently going to VBFA table and pass SO and line item number and fetch all data. Then I perform addition/ subtraction to remove cancelled quantities. this is making the logic complicated.
    Is there any standard Function module/ or table or BAPI which can fetch the Delivered and Invoiced quantities directly?
    Regards,
    Onkar B

    Hi,
    First pass the sales order number into "VBFA" table into the field "VBELV".
    Execute or Press F8.
    Get the document number of the delivery from "VBELN".
    Pass the same delivery document numebr into "LIPS" table into the field "VBELN".
    Execute.
    Get the value of the delivery quantity from the field "LFIMG" in this table.
    Next got the table "VBFA".
    Pass the delivery document number into the field "VBELV".
    Execute or Press F8.
    Get the document number of the billing document from "VBELN".
    Pass the same billing document numebr into "VBRP" table into the field "VBELN".
    Execute.
    Get the value of the invoiced quantity from the field "FKIMG" in this table.
    Like this we have to get the delivery and invoice quantities.
    Regards,
    Krishna.

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • New Report for Opens Sales order and P.O from Plant and S.Loc

    Dear Gurus
    We have repory requiement for Open sales order and P.O to deliver from particular plant and S.Loc.
    If you have already developed this kiond of report help me inthis case.
    Thanks
    ramki

    closed

  • Sales Order # and Despatch Advice # from Invoice #

    Hi all,
    If I know the invoice no, from which tables I can get Sales order # and Despatch Advice #?
    Please respond.
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    hi,
    the document flow is stored in VBFA table where you can find out either subsequent documents or preceding doucments.
    And if you specifically want to find for example a sales order for an invoice you can even mention the previous doc category(VBTYP).
    so in your case, go to se16 > give VBFA table > give invoice # in the succeding document field and you will see the order as well the delivery number.
    regards
    sadhu kishore

  • Sales order creation, Line item error

    Hi....
    Iam created one sales order with BAPI techniue.i.e type stand alone order.
    After creation VBELN generated successfully.
    Now, if i save the order from VA02 it was displaying following message in popup window...
    LINE ITEMS HAVING NO QUOTA OR TERM ATT
      Item   Material           Description
        10   1111-0             ABCD FR
    And.,
    In the conditions tab of the line items I want to insert a row i.e contract type and amount..,
    But..,
    for this Iam paaing entries as input to BAPI but not mapping on screen..,
    Also if i try to add them mannually showing following error..
    Requirements are not fulfilled for condition <given type>.
    As an abaper Iam not able to solve this problem, also functional people not availble here..,
    Any updates.......
    Thanks,
    Naveen.I

    Hi,
    This is due to the requirement routine assigned to the condition type in pricing procedure.
    Goto Tcode V/08.
    Here enter you pricing procedure. You can find it in sales order header : Tab - Sales (Pric. procedure)
    Enter this pricing proc in V/08
    When you select the procedurew & double click on control the procedure will be displyed
    Now look for you condition type & look in the colium "Reqt".
    Some number must be assigned, look for the logic inside the routine. If the requireemnt in logic is noit met the condition will not be populated
    Hope this helps you
    Regards
    Dhananjay

  • In a Sales order for  line item (SL) the Confirmed Qty & Committed Qty is 0

    In a Sales order for a line item (Schedule line) the Confirmed Qty & Committed Qty is 0 and there is no second scedule line
    with the Confirmed Qty & Committed Qty (This is a MTO).What could be the reason?  Pls suggest.
    Thank You
    Manoj

    Mr.Gupta
    Check the Schedule line determination category settings.
    It is determined by Item Category + MRP Type.
    Pls maintain the relavant entries in that settings.  Pls try out the path  in the system. Do NOT ask for Tcode.
    Regards
    Sumanth.Gururaj
    Consultant/Systems Analyst - SAP SD/MM

  • Sales Order : New Line Item

    Dear ALL
    Is there any fuction Module to post New Line Item in Existing Sales Order .
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Dec 25, 2010 4:17 PM

    Thanks
    But I need to Post New Line Item in Existing Sales Order for Scrapped Quantity .
    I checked Function Module BAPI_SALESORDER_CHANGE but I was not able to finfd file din any parameter where Quantity Could be inserted.
    Can anyone help

Maybe you are looking for

  • Java Add-In for ABAP

    Hi, I will install Java Add-In on an existing ABAP system (NW04 SR1) on the Windows 2003 server. By the Phase 2 of the installation process ther are the follwoing error: FSL-00001  System call failed. Error 53 (The network path was not found.) in exe

  • Message fade out just as in Outlook express

    Hi , Does any 1 know how the message fades out when you receive a email from someone,just as in Outlook express The message is displayed in the right hand bottom corner of the screen I want to implement such type of message in my jsp page. For exampl

  • Screen issue. Lines

    I'd kinda like to see this fixed because my Intel iMac 1.83 ghz 17 inch iMac has 8 lines on it... http://tinyurl.com/7r5cmzd

  • Repair a Captivate corrupt file

    Hello I work with Captivate V5 I can't open my Captivate project. He told me that my file is damaged. I have no backup file. How can I do? HELP ME PLEASE.... Thanks

  • Process getting killed automatically

    Hi I am using jdk 1.5 and java processes are getting killed automatically on server. Processes were working on test servers. Is anybody facing the same issue or knowledge about the same. Regards, Niraj