Stop user creating process order with material for specific order type

Hey Team,
Is there a way where I can stop creating process order with material for specific order type says Z*. We are using ZNMA  order type to create trial batch and we do not want to create process order with material for this order type.
Any ideas?
Thanks
Bhavesh Patel.

You can restrict the order creation in CO01 based on authorization, Remove the authorization for Z order type for the particular user,  Check with your basis Guy

Similar Messages

  • Creating a function with  a for loop and %type

    Hello,
    I am trying to create a function which contains a for loop as well as %type.
    This function is on a student table and i am trying to create a function which will display the zip which is a varchar2(5).
    I need to do this through this function.
    However, I can't seem to get it running.
    Can anyone help?
    below is what i tried as well as other options and was not successful.
    I also displayed my error with the show error command.
    SQL> create or replace function zip_exist
    2 return varchar2
    3 is
    4 v_zip student.zip%TYPE;
    5 cursor c_zip is
    6 select zip
    7 from
    8 student
    9 where zip=zip;
    10 begin
    11 open c_zip;
    12 v_zip IN c_zip
    13 loop
    14 v_zip:=c_zip%TYPE;
    15 end loop;
    16 close c_zip;
    17 end;
    18 /
    Warning: Function created with compilation errors.
    SQL> show error
    Errors for FUNCTION ZIP_EXIST:
    LINE/COL ERROR
    12/7 PLS-00103: Encountered the symbol "IN" when expecting one of the
    following:
    := . ( @ % ;
    16/1 PLS-00103: Encountered the symbol "CLOSE"
    SQL>
    kabrajo

    user10873577 wrote:
    Hello,
    I am trying to create a function which contains a for loop as well as %type.
    This function is on a student table and i am trying to create a function which will display the zip which is a varchar2(5).
    I need to do this through this function.
    However, I can't seem to get it running.
    Can anyone help?
    below is what i tried as well as other options and was not successful.
    I also displayed my error with the show error command.
    SQL> create or replace function zip_exist
    2 return varchar2
    3 is
    4 v_zip student.zip%TYPE;
    5 cursor c_zip is
    6 select zip
    7 from
    8 student
    9 where zip=zip;
    10 begin
    11 open c_zip;
    12 v_zip IN c_zip
    13 loop
    14 v_zip:=c_zip%TYPE;
    15 end loop;
    16 close c_zip;
    17 end;
    18 /
    Warning: Function created with compilation errors.
    SQL> show error
    Errors for FUNCTION ZIP_EXIST:
    LINE/COL ERROR
    12/7 PLS-00103: Encountered the symbol "IN" when expecting one of the
    following:
    := . ( @ % ;
    16/1 PLS-00103: Encountered the symbol "CLOSE"
    SQL>
    kabrajoTry This
    Create a sample table
    SQL> create table student(id number(10),zip varchar2(5));
    Table created.Insert the record
    SQL> insert into student values(1111,'A5454');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from student;
            ID ZIP
          1111 A5454
    SQL> create or replace function zip_exist(v_id number)
      2   return varchar2
      3   is
      4   v_zip student.zip%TYPE;
      5  BEGIN
      6   select zip
      7   INTO v_zip
      8   FROM student
      9   where id=v_id;
    10   Return v_zip;
    11  EXCEPTION WHEN NO_DATA_FOUND THEN
    12                  RETURN 'INVALD';
    13  WHEN OTHERS THEN
    14                 return  'NA!';
    15   end;
    16  /
    Function created.
    SQL> set serveroutput on
    SQL> select zip_exist(1111) from dual;
    ZIP_EXIST(1111)
    A5454
    SQL> select zip_exist(2222) from dual;
    ZIP_EXIST(2222)
    INVALDHope this helps
    Regards,
    Achyut K

  • Problem creating process order with ref of sale order

    Dear all,
    Kindly give solution for this scenerio..............................
    I am creating Process Order with ref of sale order manually in cor1. In the COR1 screen copy from field i gave my ref sale order, so that particualr order and batch is assigned to that order only.
    My problem was suppose if sale order is created for 10 tonns, but my batch size and resource capacity is 2 tonns only. so first time i change my batch quantity 2 tonns instead of 10 tonns and created my order and confirmed.
    if i go to second time the same process i am doing creating process order with ref of same sale order but it comes again 10 tonns instead of 8 tonns. why it comes like this already i confirmed 2 tonns in this sale order?
    my requirement is if any process order is created with ref of any sale order and again if i am creating any process order with ref of same sale order left quantity only system should show.
    for this what i have to do kindly help to this
    regards,
    s.sakthivel

    Dear KK,
    Pls check whether ZKIN, ZKQT, ZKOR have all the properties similar to IN, QT, OR respectively. If they are different, please ensure that you know the reason why they are different. This check has to be done at tcode VOV8
    Some fields like sales document category, Transaction group, screen seq group, Doc pricing procedure need to be similar to the parent document unless you know why you have changed them.
    Once this check is done, check the copy controls in VTAA. Before that try creating these documents separately without reference. This shoudl work fine only after which you need to check copy control. If this is not working fine, then there is some problem with the document type settings in VOV8. Testing this is possible only if Reference mandatory field is left empty. Make sure that is properly configured.
    Once this is done, check copy controls in VTAA. You can just copy the copycontrol between IN and QT and QT and OR and create for ZKIN to ZKQT and ZKQT to ZKOR.
    Once this is done, check whether your item category settings are properly done , also the schedule line settings. The tcodes are VOV7, VOV6, VOV4, VOV5 etc.
    Now check whether your material master and customer master are consistent with the item category settings(Item category group).
    Now create the transaction. It shoudl work fine.
    Reward if this helps.

  • Is it possible to release Process Order  with Material Shortage

    Hi All,
    We are using PP-PI & still wants to have behavior of the PP prod order
    i.e. Release Process Order with Material shortage.
    Is it Possible.
    Regards,
    Jatin

    Hi Jatin,
    Go to Transaction OPJK. Select your Plant, order type and Business function as 2-Check availability during order release.
    Under Material Availability tab, maintain '1- User decides on release if parts are missing' if user wants to decide for release of Process order or '2-Release permitted despite missing parts' if you want directly the Process order should be released despite of shortage in Release material field.
    These settings are similar to PP.
    Please check and revert.
    Regards,
    Hiren Ramani

  • Restricting Material for particular Order type

    Dear Guru's,
    Is it possible to restrict particular material for particular order type in CO01.
    E.g. Material A is used in CO01 for order type X
           Material B is used in CO01 for order type Y
    I want to restrict CO01 should not allow production order creation of material A with order type Y.
    Regards
    Chandan.

    Hy,
    By the use of production scheduling profile you can set default order type for the required materials.But it doesn't restrict the other order type. During the manual order creation if user has select other order type then , there is no restriction.So as Mr. Shiva said put restriction over manual order creation, if possible.other option may be by using User Exit.
    Now in your case you want to restrict materials not material type. So it is quite complicated for Abaper to write code , because the for every new material Abaper has to change code.
    So there is one option by grouping perticuller materials under one production scheduler and then it is more convient for Abaper to create code for User Exit.
    Pls refer below thread which may give some more inputs  for your requirments.
    [Ugent: How to restrict a Material Type for a Specific Process Order Type;
    Regards,
    Dhaval

  • Create purchase order with reference to Sales order Line item

    Hi All,
    i had a requirement that i need to create the Purchase order with reference to sales order line item...
    In T.code me27 client requied a input field for sales order no and with that order reference he want the data of line item to PO creation line item screen.....
    please sujjust......how to proceed......
    regards,
    Ravi Nemani

    Hi
    Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
    Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
    also check the Material Master in MRP view if the collective requirements (02) is mantained.
    Regards
    Sri

  • Process order with reference to sales order

    Dear All,
    Is there any provision to create a manual process order with reference to a sales order .
    Regards,
    venkat

    If you would like to create a process order with assignment to sales order item, then you have to enter the sales order item on the initial screen of the Transaction COR1 via the Arrow besides the input field for  reference process order. This is the standard way to assign sales order for process order in COR1.
    For production orders, there is a separate Transaction CO08 for this purpose. But for process order, there is no such separate transaction available.

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

  • Block material for sales order

    Dear All,
    there is any transaction code to release the block material(for sales order) with refernce to specific plant.
    i can do in CO06 but we can delete one by one.
    but i want to delete all blocked material form 2008 to till date.
    Regards
    ajit

    Actually i have created a numbers of order since 2006 to till date but delivery is still pending.
    because of this material is blocked for specific order and i can not create order for particular material because its block,
    i have around 100 orders.
    i know that we can do through CO06.but i don't want to do one by one.
    Regards
    ajit

  • I have never been able to migrate my ibooks library from iTunes to ibooks. Setup stops during creating ibooks library with the following error message:iBooks quit unexpectedly while creating your library.

    i have never been able to migrate my ibooks library from iTunes to ibooks. Setup stops during creating ibooks library with the following error message:iBooks quit unexpectedly while creating your library.

    Hello cpikehfx, 
    Welcome to the forums. 
    You can try one of the two options below to work around your issue. 
    Drag and drop the files from the desired music folder to the BlackBerry Music folder using the computer.
    Open the desired music folder on the computer
    Go into Computer or My Computer and open the BlackBerry network drive
    Open the Music folder
    Drag the desired music files from the computer music folder to the BlackBerry Music folder
    Try a different Windows profile.
    Go into the Control Panel and create a new user account
    Put some music files in a folder that is accessible by all profiles or transfer them to the BlackBerry device
    Log out of the current profile and log into the new profile
    Transfer music into iTunes or Windows Media Player
    Launch BlackBerry Link and go through the setup configuring the music source of your choice
    Click on the Computer name in the bottom left corner of Link
    Select Music on the left side
    Drag and drop the desired music files from the list to the BlackBerry name in the bottom left corner of Link
    If neither of these options work for you then you will want to contact your mobile service provider and ask that this issues be escalate to BlackBerry support for investigation. 
    Hope this helps. Have a good day. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • BAPI for creation of Production Order with Ref to sales order

    Hi all,
    we are using BAPI_PRODORD_CREATE  for creating Production Order with ref to sales order.
    As per the Business Scenario, we are not creating any masters like BOM and Routing, instead
    we are creating Routing directly into the Production Order under operation overview screen.
    during creation of routing system is generating a default operation.
    the following is the error results after running the Bapi.
    "No routing selected"
    Best Regards.
    GTNRNR.

    Hi GTNRNR,
    with out creation of BOM you created routing and in routing for the operations which components did you allocated so that can be used to manufacture the final product. Can you be please specific?
    Regards,
    Madhu.G

  • How to make Delivery block at Sales Order Header level for specific materia

    Hi,
    My client want to create a delivery block EDI order at the Order Header level for specific materials
    How can we achieve this.

    Dear Varada rajan
    Go to material master, select "Sales: sales org.1" view and assign "01" against the field "DChain-spec. status" and save.  By assigning, for a particular sales area, you can block that material.
    Now go to OVSU select 01 and assign "B" against the field "Block delivery".
    Now create a sale order and post the outcome.
    thanks
    G. Lakshmipathi

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Process flow with configuration for online payment of vendors

    Dear friends,
    I need the process flow with configuration for online payment to vendors through rtgs or neft.
    Please help me in this regard. One of my client wants to implement online payment process instead of cheque payment.
    thanks and regards
    satya

    1) Payments are initiated at the corporate SAP System using APP and converted into IDOC
    Could you please tell me the steps in converting the app into idoc.
    There are standard Idoc used for the same , for APP it would be PAYEXT, You need to use this Idoc type.
    You define the EDI payment method and assign the program in FBZP (RFFOEDI1)which would created payment medium.
    i believe in the app we will create the proposal and run the payment run, after payment proposal created what are the config steps involved in createing the payment run. for example for checque payment we will maintian variant for cheque printing.
    The payment run config is done in FBZP, which would include definf check PM and assigning house bank sub gl etc.
    2) PI at Client End receives the input through IDOC for the payments
    Pl means? and how the client will recieve this idoc what is the set up has to be made?
    PI(Process Integration) middleware which will send bank files from sap to bank and vice versa.
    3) Bank PI receives the payment and converts the same RTGS/NEFT format
    4) Payment Data is received at the Bank RTGS/ NEFT server for further processing
    how the payment data will be recieved by bank what is the process?
    This is again via PI or any thoird party tool which will send bank files to sap as Idoc, The idoc message type is FINSTA.
    or this in SAP you will have to configure the following:
    *House bank with partner profile
    *Outbound parameters                      what is meant by outbound paramenters and how to create and where to maintian
    *Inbound parameters                          what is meant by inbound paramenters and how to create and where to maintian
    The outbound and Inbounmd idoc's are the one which we send(PAYEXT) and rec from bank(FINSTA).  you create partner profile in WE20 and create partner profile once you create you assign outbound and inbound message types in there.
    *EDI Compatible payment methods        how to know about the compaitable payment methods
    Please goto house bank FI12 and you will see this in there, assign the PM used.
    *APP config                                        i know the app config for cheque payment, for this scenairo any additional settings?
    It would be pretty much same, you will have to define the PM used and Payment medium and remaining configuration in FBZP.
    *Bank details in Vendor :
    You will have to maintain the bank details of the vendor in vendor master.

  • Creditreport that displays Sales Orders with Material Availability Date as

    Hi
    I need input if the following requirement can be met in FSCM credit mgmnt.
    Currently In FDK43 there is a total sales figure that represents the Sales that are consuming the Credit Limit assigned to the customer, unfortunately there is no drill down on this number to see which sales orders are responsible for the consumption of credit
    Do we have any sales report that displays Sales Orders with Material Availability Date as an output in conjunction with Credit limit .

    Not in standard provided. Custom program is required.
    Regards
    Hein

Maybe you are looking for

  • My IPHONE keeps asking for another APPLE ID

    I am a MOBILE ME user for about 5 years. I just bought an IPHONE 3GS. I create an ICLOUD account with a certain APPLE ID on the IPHONE. When I try to download any APP from the Appstore, another apple id it is being ask. I restore 3 time to the origin

  • How to change the components of the planned order? (FM or BAPI)

    I need to change the storage(LGORT) in the components. I found only MD_PLDORD_CHANGE_COMP_ITEMS, but could not get the correct result. Has anyone used this FM to change the components of the planned order? Can you please tell how to use it. Or advise

  • Is there a way to restore an iPod's play count? It mysteriously disappeared

    For some random reason, my iPod decided to erase the play count of all of the songs on my iPod...but it left other things, like Genre, Date Added, Last Played, Skip Count, etc. The Last Played column especially makes no sense because it'll say that I

  • Linking two work sheets

    Hi All I have two different worksheets namely 'summary' and 'detail'. The purpose is the first worksheet contains the summary report and the second one the detailed report. My problem is both the sheets have a common field on which i linked the sheet

  • Is it possible to print a list of names of photos from project

    I would like to just print a list of just the names of photos in a certain project. Is this possible with aperture?