Sale Order SP issue for userwise

Dear Expert,
I have three user 01,02,03 & everyone add sale order ,but i want to give edit option to 01 user only so i create following SP
IF @transaction_type ='U'And @object_type ='17'
BEGIN
If Exists(SELECT T1.DocEntry from ORDR T1
Inner Join dbo.OUSR T2 On T1.userSign = T2.UserId
WHERE T1.docentry = @list_of_cols_val_tab_del AND T2.USERID != 01)
Begin
SELECT @error = 1, @error_message ='This user is Not Allowed to update sale Order'
End
END
If i wrong Correct me because above result not working properly

Hi Jay,
Please check below.
IF @transaction_type ='U'And @object_type ='17'
BEGIN
If Exists(SELECT T1.DocEntry from ORDR T1
Inner Join dbo.OUSR T2 On T1.userSign = T2.UserId
WHERE T1.docentry = @list_of_cols_val_tab_del AND T1.userSign <> '01')
Begin
SELECT @error = 1, @error_message ='This user is Not Allowed to update sale Order'
End
END
Hope this helps
Regards::::
Atul Chakraborty

Similar Messages

  • Sales Order Stock Issue

    Hi All,
    Issue as below ,
    production is sales order specific. I have two sales order S001& S002 For a material A00001. After completing S001sales order I want to assign that stock to sales order S002.
    How can I do this.....Please help me to proceed
    Thanks in Advance

    Hi Madan
          Use movement type 413E in mb1b Transfer stock from one sales order no to other sales order no
    I think it will help you
    Regards
    S.Anbalagan

  • Sales return PGR  issue for E stock

    Dear Sapients,
    Scenario
    I have created sales order stock, with account assignment u201CMu201Dand not with C (sales Order).Because we procure the stock at the time of sales Inquiry and w.r.t sales Inquiry.
    SAP system will allow delivery and PGI w.r.t sales order, BUT stock will be taken from the sales inquiry only. This meets our requirement. We can do Billing and Customer Cheque receipts and posting.
    Issue
    When there is a sales return, the system does not allow doing a PGR.
    Error
    Special Stock E not supported (check your entry)
    Message no. M7146
    Analysis
    From my understanding, there is no value string/Quantity string for the movement type for sales return with the required conditions.
    Query(Need help to understand this )
    Is it sap standard that special stock with indicator u201CEu201D are not subjected for Sales return (PGR).I want to do PGR for sales return stock. What are the settings to do the task.

    Try this case ,if suits you.
    Automatic purchase requisitions can be created with the following settings in mrp view.
    -Procurement type:F
    -Special procurement:30 (subcontracting).
    When a sales order is created for materials having the above settings,subcontracting purchase requisition get created automatically.
    When a GR is done for such purchase orders the error message "M7 146 Special Stock not supported" is thrown.This error is thrown when there is a subcomponent with itemcatagery 'D'.
    Best Regards,
    Ankur

  • Sales Order - Availability check for components

    Hi All,
    I have 2 parts to my qns.
    1. When a sales order is created for a component, with a req date, the system checks & informs if the mtl can be provided on the req date & if not proposes a new date - May i know which checking rule is used & also what all does the system check for?
    2. A component say 'ABC' is used internally for production purpose & also sold as a spare part. A sales order for this component is created with a req dt. say 1.3.2008. The system commits the stock to the sales order. A production order is created later with a req. dt for 'ABC' say 1.2.2008. So when i carry out a collective availability check for the plant with ATP checking rule & with availability check reset indicator ticked, i believe the system should reset the commitments made to the sales order & assign the stock to the production order, but it is not happening so. Once the commitment is made to the sales order, it is not resetting, how can i change this behaviour?
    Await inputs.
    Anyone to help on this?
    Edited by: Vivek on Jan 15, 2008 10:56 AM

    As we know, availability check is controlled by the combination of checking rule and the checking grp.
    U can see this at OVZ9 Screen. checking grp is proposed from material master Sales org 2 view or MRP2 views.
    In the OVZ9 screen itself, we are setting what are all the stocks the system has to include when doing availability check.
    The checking rule specifies the scope of the availability check for the respective transactions in sales and distribution by specifying precisely which stocks, receipt and issue elements should be taken into account during the availability check.
    Every checking rule is allocated to a checking group: together these two elements determine the final inspection requirements. In addition, the checking rule includes a specification whether or not an availability check should take into account the replenishment lead time.
    Currently, the checking rule is predefined in SD.
    while answering to the second question, i think the system carries out the availability check again at the time of delivery, provided u need to maintain the availabililty check indicator at req. class level.
    Hope i answers.
    Reward points if it is useful.

  • Sales order is blocked for Delivery-ZH Cost estimate Req

    Hi experts,
    When I am saving the sales order I am getting the informative message standard cost estimate for material xxxx is missing. when i am creating delivery with reference to sales order  it is not allowing me to do delivery it is showing that Sales order is blocked for Delivery-ZH Cost estimate Req( in  a log). Can you pls let me know what configuration I have to check.
    Regards,
    Sunina Agarwal

    hello, friend.
    it looks like product costing has been activated in your environment.  if such is the case, you would have to coordinate with your FICO consultant, and they have to make the necessary standard cost estimates.
    please also check if the cost estimates are part of the incompletion procedures.  if it is, you would not be able to bill the transaction even if this is taken out of the incompleteness procedure.
    regards.

  • Sales Order contract reference for IDOC

    Dear Guru's,
    Good Day,
    We are implementing a Sales order IDOC process for our client with Message type ORDERS (Inbound). Normally in a standard sales order process when u enter a Sold to party, Ship to party and material number system will automatically refere a OPEN CONTRACT available for the sold to party, Ship to party and material.
    In my case client has used a customized DATA-T type for Contract to sales order copy control, because of which system is not refering open contract when i run the IDOC.
    We can change the COPY CONTROL but client is using this process for more then 2 yrs. we dont know what will be the implecations or effect it will show on my client other SAP process.
    Can any one suggest me who i can refere a contract thru IDOC. May by thru BAPI or BADI.
    Your suggestions will be more appreciated.
    With best regards,
    M. Rajendran.

    Hi Dude,
    I tried checking it with E1EDK41 segment and i gave the open contract number in the field XBELNR. Still Sales order is not refering the contract.
    Any other option available.
    With Best Regards,
    M. Rajendran.

  • User Exists In Sales Order Creation Program for adding "Reason For Reject"

    Hi gurus
    I have following requriement
    As New Sales Order created (VA01) by default or at the time of saving the sale order, perticular "Reason for Rejection" should be set to each line item.
    This is then can be removed in change (VA02) with Mass change.
    We need this to review the sales order / block sales order from MRP run.
    Please let me know how to manage this or is there any user exist for the same.
    Thanks
    Sunil K

    Hi,
    As per my knowledge the automatic creation of rejection order is not possible, still will check out and know.
    but for urgent use you will have to follow the manual way of changing the line items from OK to blocked for apporoval so you can achieve their not passing on to MRP.
    manual way is what is described below:
    You can either reject the whole sales document or individual items.
    Reject all items:
    If you want to reject all the items, choose Reject document in the change modus for the sales document.
    The system automatically selects all the items and you can enter a reason for rejection in the following dialog box.
    Enter the appropriate reason for rejection and choose Copy.
    The system assigns the same reason for rejection to all the selected items.
    Reject individual items:
    If you only want to reject some of the items, select those items in the item overview screen and choose Edit - Fast change of... - Reason for rejection.
    A dialog box appears in which you can enter the appropriate reason for rejection.
    Enter the appropriate reason for rejection and choose Copy.
    The system assigns the same reason for rejection to all the selected items.
    Reject individual items with different reasons of rejection:
    If you want to enter different reasons for rejection for the items, choose the Reason for rejection tab page from the overview screen when changing the sales document.
    You can enter a different reason for rejection for each item in the Reason for rejection field.
    regards,
    Siddharth.
    Edited by: SD on Mar 15, 2008 10:22 AM

  • Without exceeding the credit limit sales order is blocked for credit check.

    Dear Experts,
    In my production server as well as quality server sales order is blocked for dynamic credit check.But the fact is that the credit limit is not exceeded.only 18% of the credit limit is used by the cutomer.The same problem is there in quality server also.
    Kindly help.
    Best Regards
    Biju

    Dear Biju,
    Check whether the customer code has exceeded credit limit in any other credit control area.
    Run the following programs.
    RVKRED77 , RVKRED88 , F.28
    After credit re-organisation, please check again and revert back.
    Also would like to ask you whether you have made any recent changes in the credit master data [FD32].
    Thanks & Regards,
    Hegal K Charles

  • While we create Sales order in CRM for Madhya Pradesh State JIVP (VAT Payable) showing twice in order

    Dear SAP,
    While we create Sales order in CRM for Madhya Pradesh State JIVP (VAT Payable) showing twice in order, but calculation has taken one time i.e. 14%, only JIVP displaying twice (Attached Screen shot S3.JPG) in CRM order, when comes to ECC side it is showing correct entry (Attached Screen shot S4.JPG) .
    Due to duplicate condition records exist in CRM table CNCCRMPRCUS956 (Attached Screen shot S1 & S2.JPG).
    This happens for MP state, as duplicate entry exist with MP state only,
    Please guide us to resolve the same.
    Regards,
    JK

    Hi JK,
    There is two thing. first is that when you create a sales order very same time pricing conditions added in the transaction as per the pricing procedure add for transaction type. these pricing procedures are transaction type specific not state or country specific so it will work. check here you are getting duplicate condition ?
    When ever you add material in the transaction that very time one the basis of the pricing condition added in the transaction IPC method do pricing. check after adding material in transaction duplicate condition is coming ?
    Secondly whenever the document replicates in ERP re-pricing again happening on conditions so theses conditions get corrected in ERP. Here if document is re-priced then system will consider it as change so again there suppose to be Bdocs get created from ERP to CRM again overwrite document so condition will be synchronized in CRM . I would request check the same too and revert.
    Thanks,
    Prem,

  • Sales order cost issue

    Hi All,
    I need help with the production issue.There are 2 sales orders which have cost recognized in one of the month
    but they are not posting to WIP.Can anyone explain me the reason for this problem.
    Thanks in advance.
    Edited by: Reema Sen on Jun 10, 2009 2:19 AM

    Hi,
    You will have to enable project manufacturing if you want to collect manufacturing cost on a project. Once you create a project, add this project to a project manufacturing organization through a PJM responsibility. Once you associate project and PJM org you will be able to put the PJM organization in the sales order line created on a Project sales order in Oracle OM. Also, mention the project number in that sales order.
    Once this sales order is shipped, run the cost collection program and it will bring in the manufacturing costs to project.
    Hope it helps
    Regards
    Kaushal

  • Sale Order Performance Issue.

    Hi,
    We are using EBS 12.0.6 and Database is 10g (10.2.3).
    We are facing performance issue with "Order management Sale Order Form",
    When user click on "Line Items" Tab of "Sale Order Form" and
    In "Main" Tab entring the "Ordered Item" then press tab and entring the "Qty" of item, its takes time 20 to 30 Second for one item if its related Items exists.
    We have 150 entiries against one sale order. Users are facing 20-30 second delay on each entry.
    Please advise how to improve the performance when related Itms exists?
    Thanks,
    Edited by: user12007410 on Feb 4, 2010 12:00 AM

    Pl create a trace file as outlined in MOS Doc 564817.1 (How To Create Forms And Database Level Trace For Receiving Transactions) to help pinpoint what SQL is causing the issue. Then open an SR as this may be a known issue for which a patch exists.
    Pl also verify that database statistics are current - see MOS Doc 169935.1 (Troubleshooting Oracle Applications Performance Issues) - section on "Statistics Gathering"
    HTH
    Srini

  • Sales Order replication issue from SAP CRM  (7.0) to ECC

    Hi,
    I have issue in replicating the sales order from CRM to ECC below are the issue details ...
    Issue:
    Sales Order is created in CRM and Mbdoc is generated with status:001 (Yellow state),Order is not replicated to ECC system.
    I am trying to Replicate the sales Order1.Created Trnascation type: ZLS1 in CRM
    2.Number range assigned as Internal in CRM and External number range in ECC
    3.Item categories has been defined in Both the system.
    4.SMOEAC settings are completed successfully.
    5.Maintained table:SMOFPARSFAin both systems.
    Checked Couple of things:
    1.No items found in SMQ1 (Out bound queue ) in CRM
    2.Checked in SMQS,none of the entries found.
    Please let me know if i missed any of the settings to replicate the sales OrderPlease help us on this regards ASAP
    Thnaks.
    CRM Consultant.

    >
    Robert Kunstelj wrote:
    > Check in status shema of that order that it doesn't block distribution to R3.
    >
    > Also check that you don't have any fillters set in R3AC1.
    >
    > And also tell me, do you see in SMW01 CSA mbdoc for that orders? If yes, are they in red state and when you select one and click on button Show bdoc message extended data, do you get structure or not?
    >
    > Regards.
    Hello Robert,
    Here is the answers for the questions raised...
    1. I checked status schema ,understand distribution status is " To be distributed " in the sales order in CRM
    2.In R3ac1 ,standard document "SALESDOCUMENT " doesn't have the any filter setttings related to my transaction type.
    3.Mbdoc (Notification ) is generated in SMW01 with status " 001 " (Yello state),failed to reprocess the Bdocs.I coudn't able to find the Outbound queue in CRM for the corresponding order in CRM.
    4.I can see the Bdoc structure in the extended data in SMW01.
    Thanks.
    Sathya.

  • Vendor Drop Ship Sales Order statues Issues

    Process flow : OR ( item category ZVDS u2018Vendor Drop Ship" ) >> PO >> MIGO >> Invoice ( its order related billing ) no delivery involved in this because of drop ship
    after sales order OR system generate PR and PO and if customer reject the PO so user put line item as mark for deletion in PO we cant delete PO and its tie up with Sales order and Over all statues at header lever is OPEN u2026is there any way where we can change over overall statues in sales order
    We have an significant amount of these orders that continue to appear in numerous reports when they should not be of selected criteria,
    But the main issue being when these orders are cancelled, returned, etc. They are not removed from VF04 "Billing Due list".

    Pls reply me

  • ERP Sales Order : Performance issues with Product Proposal

    Hi
    we are working on CRM 2007 solution and are facing serious performance issues with the ERP Sales Order functionality provided in the ICWC of this version.
    In our development we are adding items in the ERP cart as soon as the user clicks on the 'New Sales Order' button of the sales order sreen. We get the items by very simple and optimized call to the ERP system and then add these entities in the Item Cart (Item collection ...in simple sense).
    For adding 10 items the application takes 10 seconds and this is too much for adding just 10 items.
    Can you please provide any Notes/alternative solution to resolve this issue.
    Regards
    Ajitabh

    Hi Ajithabh,
    Please apply the following SAP notes:
    1061423 - Interaction Center ERP Order Performance improvement
    1262277 - Performance: CRM value help causes dumps in ERP
    1292817 - Performance: Reduce RFC calls during creation of ERP order.
    1319885 - ERP sales order search with external reference
    1326527 - Reducing number of RFC calls in IC ERP Sales Order
    I hope it helps!
    Regards,
    Gabriel Santana

  • Unable to create Sales order from "BAPI_SALESORDER_CREATEFROMDAT2" for Free Goods

    Hi Experts,
    I am facing the issue while creating the Sales order through "BAPI_SALESORDER_CREATEFROMDAT2" , all is going well in normal cases but when I process the contract with FREE GOODS line items for which free goods condition record is maintained it fails to create the Sales order. Is there any special treatment for this Free goods case. Is there any Flag to be passed from BAPI?
    Regards,

    Hi Paaavan
    You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
    I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module  SD_SALESDOCUMENT_CREATE to create sales documents with.
    Regards,
    Marius

Maybe you are looking for

  • Duplicating DVD created in Encore is a NO GO!!!!!! HELP!!!!

    I created a DVD using Encore 2.0 and when I try to duplicate it using a duplicator, it hangs. The media I'm using: verbatim DVD-R In Encore, I built the DVD using "DVD Disc" The resulting DVD plays fine, I did a check before burning with no issues bu

  • [SOLVED] Wireless installation

    My wireless internet connection works like a charm with Ubuntu and the network-manager applet only by providing the wireless pass phrasse, but it seems like I can't get it work in my archlinux fresh install. 1- I installed required wireless_tools and

  • Why can,t i load the poker game fantasy poker

    why cant i not load the fantasy poker game poker

  • Weird Log and Transfer warning

    So I'm teaching a class and the students have their AVCHD camcorders connected and we're ingesting using Log and Transfer. All the clips appear in the window and it's working fine. But every few minutes, all the students get a warning dialogue that s

  • Buffer pool Hit% more than 100%

    In one of my AWR Report under tab Instance Efficiency Percentages (Target 100%) , My Buffer Hit % is showing as 102.01% . I am not able to understand how can this possible to more than 100%. Please revert.