Trigger Batch Creation from ME2xN

Hi guru, I've to trigger a batch creation...
These batches are created from standard code in Purchase Order Transaction, I've seen the BO of Batch object doesn't have any events, there is CL_PO_ITEM_HANDLE_MM class but the only event is CHANGE, and I don't know if I can use it.
How can I trriger the BATCH creation event?
Thanks a lot.
Antonio

Sorry but I don't understand... Standard code call the method Batch_Cration and there aren't enh-points to insert custom code, I've to trigger the Batch Object creation event.
I've tried with workflow but CL_PO_ITEM_HANDLE_MM class has only one event: CHANGED and BUS1001002 business object doesn't have any events.
So... How can I use workflow?

Similar Messages

  • Is i possible to trigger a workflow from the creation of an event in iCal

    Is i possible to trigger a workflow from the creation of an event in iCal
    Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
    Graeme

    Hmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
    I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
    The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
    Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
    * Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/.

  • Batch number format setup and auto batch creation during first GR

    Dear all,
    This is a batch question.
    I know that both the master batch and the stock data for the batch are created automatically during the first goods receipt. Thus, I do not need to create this data manually.
    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    Thanks.

    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    ==> Yes - See IMG activity 'Define batch creation for Goods Movements'
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    ==> See exit EXIT_SAPLV01Z_003
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    [[> See IMG activity 'Activate Batch Classification for Goods Movements in IM"

  • Automatic PO creation from SC

    Hi Experts,
    I am using SRM 7.0 with extended classic scenario and I have issue in the automatic po creation. For some Shopping Carts the PO is not automatically created. The SC is having Source of Supply Assigned and all the approves have completely approved the SC.  The latest status is  I1111          Item in Transfer Process.
    I checked in RZ20, ST22 and could not find any error or dumps.
    For the SC item under BBP_PDBEI the BE_OBJECT_TYPE is BUS2201 and BE_OBJECT_ID 1, once I trigger the PO creation manually the PO object id is reflected here.
    For such SC I am running the report BBP_ALERT_SB_NOTTRANSFERED manually which puts the SC in I1112 Error in Transmission Status and later I can trigger the SC creation from the alert monitor.
    For POs created in this manner the PO is created in Held Status without any line items, is this normal?
    I have two questions which I want to understand, how is the automatic po creation from SC setup, is there any customizing involved for the po creation from SC to happen automatically?
    What else should I check to find the reason why the the SC was stuck in I1111 status and PO was not created?

    You need to configure the Purchasing group and this will take care of automatic transfer of Doc to sourcing cockpit. Make sure you also maintain the customization for sourcing always carried out for Prod categories.
    Regards
    Saurabh

  • Executing batch file from Java stored procedure hang

    Dears,
    I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4.
    public static String runFile(String drive)
    String result = "";
    String content = "echo off\n" + "vol " + drive + ": | find /i \"Serial Number is\"";
    try {
    File directory = new File(drive + ":");
    File file = File.createTempFile("bb1", ".bat", directory);
    file.deleteOnExit();
    FileWriter fw = new java.io.FileWriter(file);
    fw.write(content);
    fw.close();
    // The next line is the command causing the problem
    Process p = Runtime.getRuntime().exec("cmd.exe /c " + file.getPath());
    BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line;
    while ((line = input.readLine()) != null)
    result += line;
    input.close();
    file.delete();
    result = result.substring( result.lastIndexOf( ' ' )).trim();
    } catch (Exception e) {
    e.printStackTrace();
    result = e.getClass().getName() + " : " + e.getMessage();
    return result;
    The above code is used in getting the volume of a drive on windows, something like "80EC-C230"
    I gave the SYSTEM schema the required privilege to execute the code.
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'java.io.FilePermission', '<<ALL FILES>>', 'read ,write, execute, delete');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    GRANT JAVAUSERPRIV TO SYSTEM;
    I have used the following to load the class in Oracle 9ir2 DB:
    loadjava -u [system/******@orcl|mailto:system/******@orcl] -v -resolve C:\Server\src\net\dev\Util.java
    CREATE FUNCTION A1(drive IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'net.dev.Util.a1(java.lang.String) return java.lang.String';
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    The problem that it hangs when I execute the call to the function (I have indicated the line causing the problem in a comment in the code).
    I have seen similar problems on other forums, but no solution posted
    [http://oracle.ittoolbox.com/groups/technical-functional/oracle-jdeveloper-l/run-an-exe-file-using-oracle-database-trigger-1567662]
    I have posted this in JDeveloper forum ([t-853821]) but suggested to post for forum in DB.
    Can anyne help?

    Dear Peter,
    You are totally right, I got this as mistake copy paste. I'm just having a Java utility for running external files outside Oracle DB, this is the method runFile()
    I'm passing it the content of script and names of file to be created on the fly and executed then deleted, sorry for the mistake in creating caller function.
    The main point, how I claim that the line in code where creating external process is the problem. I have tried the code with commenting this line and it was working ok, I made this to make sure of the permission required that I need to give to the schema passing security permission problems.
    The function script is running perfect if I'm executing vbs script outside Oracle using something like "cscript //NoLogo aaa1.vbs", but when I use the command line the call just never returns to me "cmd.exe /c bb1.bat".
    where content of bb1.bat as follows:
    echo off
    vol C: | find /i "Serial Number is"
    The above batch file just get the serial number of hard drive assigned when windows formatted HD.
    Same code runs outside Oracle just fine, but inside Oracle doesn't return if I exectued the following:
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    Never returns
    Thanks for tracing teh issue to that details ;) hope you coul help.

  • Automatic Batch Creation at  the time of GR for Customer Returns

    Hi All,
    We are using batch management with functionality of automatic batch creation for variuos movement type 101/103/105/561 etc. with updation of classification in foreground. 
    We are even using automatic batch creation for Inbound delivery. By configuring IMG object "Batch creation Control for Inbound"
    Now we have a new requirement of automatic Batch creation for GR of Customer Return against Customer Return SO (Movement type 651). And updation of classification in foreground.
    I have tried a lot but couldn't find how to configure the same.
    Can I create GR custmor returns 651 thru transaction MIGO?
    Any suggestion how to achieve this.
    Thanks
    Sanjay

    Hi,
    What Sairam said is correct, the idea of automatic batch creation is so that when you manaufacture or create an item you can allocate the characteristics to that batch and give it a number.
    You then sell that batch to a customer.
    When the customer returns the item the system should NOT automatically allocate a new batch number to it because this is breaking a VERY important audit trail.
    In batch management (in some inductries more than  others) it is VITAL to have a full audit trail of a bathc so that any problems concerning that batch can be traced back to their origin. What you are trying to do is to break that audit trail (although I can fully understand what you are trying to do).
    I would leave the batch allocation for returns as manual and then when you transafer the item from returns to unrestricted (or quality etc.) tyou can then input the new characteristics.
    Steve B

  • Batch Creation or Batch Determination for 531 movement type

    Dear Experts,
    I have some confusion with Movement type 531 -
    1) Can we do Batch determination for 531 movement type.
    2)  Can we do the automatic Batch creation at the production order level or confirmation level. In this case i have done the settings but in confirmation screen i have to create batch manually through Menu Path.
    3) I have to enter characteristics value manually in confirmation screen as i have select classify batches in foreground. But in material master we have Batch Class type so can values comes from there to batch of confirmation screen.
    Thanks & Regards,
    Saurabh Kumar

    Hello
    Please read carefully notes 191368 and 194619. These are very old correction notes and they are already implemented on your system, however, they provide the following information about the system design:
    For a by-product or co-product, no batch determination is executed anymore. The subsequent stock determination is not executed anymore either.
    and
    No batch determination for by-products may be executed during the confirmation.
    It means that the batch determination for movemen 531 is not a functionality of the standard system.
    I have never tested this scenario, however, as far as I know, the batch can be created automatically for the by-product if you are using internal number range on OMCZ.
    BR
    Caetano

  • Batch creation through ME21N, ME22N and MSC1N

    Hi All,
    Please note we are already using EXIT_SAPLV01Z_001, EXIT_SAPLV01Z_002, EXIT_SAPLV01Z_003, EXIT_SAPLCLFM_002, EXIT_SAPLV01Z_012, EXIT_SAPLV01Z_014 for Batch creation based on different logics for Material type, Plant and PO doc type and currently using these exits for logic it allows us to create new internal batch number during PO creation (ii) change already existing batch with some new number (of couse this number must not be used in some other PO) in PO change and (iii) create new internal batch number using MSC1N, by inputing plant, stor. loc etc. But currently i can create batch with 1 digit, 2 digit, and so on.
    The requirement is to allow user to create batches only with 10 digits during:
    (i)PO creation (ME21N)and PO change(ME22N) and also during
    (ii) transaction MSC1N
    currently in all three ME21N, ME22N or MSC1N it allows to create batch with 1 digit, 2 digit,3 digit and so on . i want to create batch with only 10 digit.
    Please tell this is possible through configuration steps or some changes are required to be done in above said user exit.
    Regards
    Rahul Shukla

    Hi Jurgen,
    Thanks for your reply.
    In ME21N i am able to assign batch in PO
    (1) By clicking on 'create' button appearing just side of Batch field in item Tab "Material". I think this create button is appearing due to user exit being applied here. Here it creates and assigns internal number automatically (from range 01in Batch_Clt) based on the Material type and Plant combination (Some logic defined in user exit)
    (2) By putting any random number manually (both numeric and alphanumeric)whether 1 digit, 2 digit,3 digit in Batch field in item Tab "Material" it will accept and in this case also po is saved.
    same way i can do changes in batch number in ME22N and able to save.
    In MSC1N also due to user exit applied if i give Material number alone  and enter, it assignes the internal batch number based on Material type and plant logic defined in user exit.here also if i input some random number manually in batch field it accepts and that random batch number is created for material.
    Now i want that i should be able to put random batch number manually but that number must be out of the number ranges defined in Batch_CLT object (Also the number must be exact 10 digits length as is there in defined number ranges) and not any random alphanumeric number . Also i am not able to understand how it is accepting random alphanumeric number (like ABC111)although all number ranges defined are numeric only.Also external number range is 0008000001 - 0089999999 which is numeric only.
    Regards
    Rahul

  • Batch creation at the time of order creation & confirmation on the batch.

    Hi all,
    My client's requirement is while creation of the production order of say 100 pcs, system should create 4 batches, each of 25 (this might be different every time) of that order & also the confirmation (CO11) should be done on those batches.
    Also if the order contains 10 operations then confirmation of operation no. 0020 should not be possible before confirmation of 10, whether it is for partial & whole quantity.
    You can say these batches will reprsent the lots.
    Regards
    SmanS
    Edited by: SAP PP Consultant on Mar 9, 2009 8:05 AM

    Hi SAP PP
    You can use this function to automatically create a batch for the material to be produced.
    You can make the following settings in Customizing (production scheduling profile):
    No automatic creation of batches in production orders
    Automatic creation of batches during order creation
    Automatic creation of batches during order release
    To carry out automatic batch splitting via batch determination, proceed as follows:
    Select the component that you wish to split and choose Component ® Batch management ® Trigger batch det.
    The system lists all batches that meet the selection criteria and that have available stock on the requirements date.
    Distribute the required quantity as required over the existing batches.
    Choose .
    The system copies each batch as a separate component into the component overview screen.
    For more information refer to Batch Determination.
    To carry out manual batch splitting with manual batch assignment, proceed as follows:
    Select the component for which you want to carry out batch splitting. Choose Edit ® Insert ® Batch split.
    Enter the batch number and the required quantity manually in the component.
    Save your entry.
    Regards
    Sachin

  • Automatic batch creation while making the UD

    Hi Gurus,
    Due to a customer need, I want to create the batch number for a good's receipt while making the UD, is that possible in a way other than using transaction MSC1N?

    Hello Max,
    What I have understood is you need not to create batch number while posting the MIGO document and need to fire the batch number at the time of performing UD? If it is so then here is the solution:-
    You can meet the requirement via so many ways but according to me the easiest way is, follow these steps.
    Step:01 Copy the movement type 101 (use Trx OMJJ) create Z01. Where you need to select the option "No Creation" in the field "Create New Batch" in the entry level control.
    Step:02 Use this movement type while creating GR, (change the std setting for GR against PO for trx MIGO)
    Step:03 For movement type 321 - TF quality to unrest change the settings for the "Create New Batch" field from "No creation" to "Automatic / manual without check"
    I think these will be enough for your requirement.
    If there is any query pls revert.
    Regards,
    Shyamal

  • Auto Po creation from sales order.

    Hi ,
              I have a requirement to create a PO automatically from sales order.
    We will be creating a third party sales order, corresponding to which system creates an purchase requisition. Now the requirement is that this Purchase requisition should be converted in to PO automatically.
    For this in the item category config i have ticked the auto Po check box . Also the source of supply is unique so that  purchase requisition is automatically assigned with source of supply.
    But still the PO is not created automatically. What are all the configuration and workflow  needs to be done for this.?
    Kindly help me.
    ram.

    Hi
    From SD settings i dont think a purchase order can be directly created based on sales order thro standards
    You can trigger only purchase requestion
    In VOV6 if you mention order type NB for your schedule line category then a Purchase requestion is only created up on saving your sales order
    Item category in VOV6 should be 5 (third party)
    Account assignment category should be X
    This is third party sales settings
    In MM01 also in the purchasing tab of that material create automatic PO check box is there
    If you tick that also it generates purchase requestion only not purchase order
    In VOV7 create automatic PO check box is there
    If you tick that also it generates purchase requestion only not purchase order
    Involve your MM people also for this requirement
    In MM people can create automatically PO from PR and there are a lot of threads in MM forum regarding that
    For automatic PO creation from PR, follow the steps. taken from MM forum
    1) Material Master purchasing view tick automatic PO check box
    2) Vendor Master purchasing view tick automatic PO check box.
    3) Maintain Source list for Vendor & Material.(ME01)
    4) Maintain Purchase Info Record.(ME11)
    5) Create a Purchase Requisition.(ME51)
    6) Use T .Code: ME59 & execute for PR for vendor, you will be able to create automatic PO.
    7) Note-1:
    During creation of PR , select check box of Source Determination in the 1st screen of ME51
    Ensure that Purchase Info Record should be there.
    If you have more than one vendor then fixes only one vendor in source list.
    Regards
    Raja

  • Save text in a PO during creation  from APO

    Hi All,
    I need to save SO text in PO during PO creation from APO.
    I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM.
    This works perfectly when PO created from ECC - ME21N. However when a PO is created from APO (by converting PR) this BADI did not trigger or works.
    Then I have tried using Purchase order CIF user exit CIFPUR02 ->EXIT_SAPLCPUR_001->ZXCIFU06
    It didnot brings in the purchase order number to be created. Hence I could not able to copy the sales order text to purchase order.
    Kindly let me know the user exit or BADI triggers during PO creation from APO to copy sales order text to purchase order.
    Thanks,
    Senthil Kumar

    Hi,
    Use this.
    ME_PURCHDOC_POSTED
    Regards,
    Shamma

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Purchase order creation from sale order (Third party )

    Hii..
    I have a requirement where i create a sale order for third party, system automatically creates purchase requisition,
    my requirement is i dont want to  convert purchase requistion everytime into PO when ever sale order is created.
    can i automate the process where the moment i crete s sale order purchase order is created direclty.
    Suggestions will be worth rewarding..
    Regards
    SARFRAZ

    Hi
    first you need to do seeting for Automatic PO creation from PR
    1.You need to check the Auto POcheck box in Purchasing view of the material master
    2.You need check the Autoamic PO check box in Vendor master in Purchasing org data
    3.You need to maintai the source list with one of the vendor as fixed vendor
    4.Purchasing info record for Vendor and material
    Then you need to schedule the batch job for ME59N with the variant (Required input selection parameters) with the time intervals.
    One third party order created, PR will be generated automatically based on the item category defined in the sales order and source will be assigned in PR.Based o time interval schduled for batch job, the PRs will be automatically converted into PO.
    Regards
    Ramakrishna

  • Automatically PO creation from WBS element in a project

    Hi,
    Is it possible to create Purchase Order automatically from the project that has only WBS element (no network)?
    My project has only WBS element and my client want to trigger PO creation automatically for prorements to projects.
    I appreciate your replies.
    Regards,
    Ja

    Hi Ja,
    Sorry, but you cannot create a PO automatically for a project that has only WBS elements and no network or acitivites. Since materials can only be attached to activities in a project it is mandatory to have an activity to trigger a PO automatically from the project.
    You may have to create a PO manually and then assign the WBS as account assignment.
    Regards,
    Gokul

Maybe you are looking for

  • [Solved] Several installs and issues with DHCP issue every time.

    Edited: more concise information! Hi folks, I was using Arch fine for months but decided to reinstall it fresh at the new year, but since then I have been plagued by connection issues. I install Arch and follow many of the tips found in these Wikis t

  • JQuery Colorbox Plugin Not Working Properly in IE - HELP!

    This is a convoluted issue and I will do my best to explain. I am setting cookies in a page that will show a lightbox on the first visit. It works great in FF, Chrome, etc. but does not in IE. What happens in IE is the script for calling my lightbox

  • My Apple Mail doesn't work properly on a specific wifi network.

    When I'm on a friend's wifi network with my Macbook, Apple Mail doesn't refresh and get new mail. However, all the other internet functionality works just fine on the laptop. This is specifically the only wifi network that doesn't let my Apple Mail c

  • Back side printing in Script..

    Hi Experts, In script i need to print back side(which is common for every page) on each page. For that i created FRONT, BACK pages. FRONT Next page BACK and Print mode is 'D'. BACK Next page FRONT, Print mode blank and no main window in this page. No

  • Display group currency for debit and credit

    I have one bank account, the local currency is MYR, we want to display in USD for both debit side and credit side for Feb.2010, is it possible? which report we can use