Selecting InDesign version in VB script

I am having some difficulty with selecting the proper version of InDesign in my VB scripts.
Usually I use the connection string: CreateObject("InDesign.Application"), which will launch in whatever version is installed.
Now, one of my customers has installed version 6 along side with version 5.5, which means that I have to supply either: CreateObject("InDesign.Application.CS5.5") or CreateObject("InDesign.Application.CS6"), in order to get it to run on the proper version.
What I don't understand is why the script doesn't start within the version of InDesign that it is activated from. If I use the connection string: CreateObject("InDesign.Application"), and I start it from within InDesign version 6 (from the script menu), why does it launch version 5.5 and try to run the script there? Why does it not run inside the InDesign application that launched it?
It quickly becomes a mess to have to modify scripts whenever people install new versions of InDesign, so is there any way to ensure that a VB script is always run within the InDesign application that launched it, regardless of what other versions people might have installed?

you can use WMI to have a peak at all the ID processes.
here I have both CS4 and CS5 running, hopefully only one version should be running at a time, and we can use the ExecutablePath property to get the version (CS4 for instance) from it.
Dim WMI, Col, Ob, S2
Err.Clear
On Error Resume Next
Set WMI = GetObject("WinMgmts:")
    If (Err.number <> 0) Then
       MsgBox "Error creating WMI object. Error: " & Err.Number & " - " & Err.Description
       WScript.quit
    End If  
'-------------- processes ------------------------------------
Set Col = WMI.ExecQuery( _
    "SELECT * FROM Win32_Process" & _
    " WHERE Name = 'indesign.exe'",,48)
  S2 = S2 & " Process Info:" & vbCrLf & vbCrLf
  For Each Ob in Col
    S2 = S2 & "Caption: " & Ob.Caption & vbCrLf
    S2 = S2 & "ExecutablePath: " & Ob.ExecutablePath & vbCrLf
    S2 = S2 & "ProcessID: " & Ob.ProcessID & vbCrLf & "__________________________" & vbCrLf & vbCrLf
  Next
            msgbox S2
Set Col = Nothing
Set WMI = Nothing
MsgBox "Done."

Similar Messages

  • InDesign Version & VB Script

    Is it posible that a Script made with VB Script runs with no problems with InDesign CS 5 from CS 5 Master Collection and does not runs with InDesign CS5 from CS 5 Premium. Both computer are running the same OS (Windows 7 x64).
    Thx,
    ionP

    We were not able to use the solution of Run this Program as an Administrator, because when you run a program as an adminstrator, you lose the mapped drives on the workstation. We use the mapped drives extensively on our network for our workgroup. For example, drive S:\ is our regular drive for production that goes to the dfs PROD, so we remap S:\ to PROD.NEW when we are testing, and all of our scripts reference the mapped drive letter, so we can use them for testing purposes.
    What our IT administrator found was the BEST solution for us as multiple users on a network was to add Modify rights to the user accounts. He logged into the machine as administrator, and did the following:
    Open your InDesign application folder and select InDesign.exe.
    Select Properties from the context menu.
    Go to the SECURITY tab
    Under the "Group or user names:" section, select USERS
    To change permissions, click the EDIT button
    Under the "Permissions for Users", in the row “Modify,” in the column "Allow" check YES to allow users to modify
    Click OK
    This will do the same thing as the above suggestion (run VBScripts under Windows 7)  AND keep the mapped network drives visible for those who use them.

  • Is there a version of the script "batch_convert.jsxbin" to Ind. CS6?

    Is there a version of the script "batch_convert.jsxbin" to Ind. CS6?
    Thanks...!!!

    Hello people, this script is really great, currently i have 83 indesign files in one folder which are often updated for a client (now as lowres PDF), script does job instead of me Sometimes Links files are not included, dunno why, we are not using Version Cue server over a year so all files are on my local HDD, but i used with great success app MainMenu to deep clean system cache, user cache, remove temp files and all that stuff so it is working now.
    I have one simply question, if it is possible to add to script settings like registration marks, bleed, CMYK settings (FOGRA etc.), simply all that stuff like in Print menu, when saving to a PostScript file for later Distilling. Thanks in advance. (For example, i have now created Print preset settings with automatic bleed (loaded from bleed settings in indd file), offset for registration etc. marks also 5 mm, highest transparency flattening settings, CMYK etc., it would be ideal to add these print settings to batch script, because these settings offered from Distiller (i use for big formats my own no resample settings derived from 300 DPI quality press settings) not include bleed).
    BTW i am really wondering why InDesign does not offer Actions like Photoshop, just for basic tasks, like this: I hit record, open InDesign file, press cmd+p, select my PRESS preset, save to .ps file, close window, stop recording. Then i select Batch processing, run this Action with custom from-to folders.

  • IDML created with InDesign CC crashes in all InDesign versions

    Hi i have a strange problem when i export a file with InDesign CC as IDML
    I can't open it again. It instantly crashes InDesign CC or InDesign CS6.
    Here is the log:
    Process:         Adobe InDesign CC [1848]
    Path:            /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
    Identifier:      com.adobe.InDesign
    Version:         9.0.0.244 (9000)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [389]
    User ID:         501
    Date/Time:       2013-08-16 09:53:27.812 +0200
    OS Version:      Mac OS X 10.8.4 (12E55)
    Report Version:  10
    Interval Since Last Report:          1613 sec
    Crashes Since Last Report:           7
    Per-App Interval Since Last Report:  641 sec
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                      D5C53BC8-6379-3F36-EE2C-2C6B74465B33
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    VM Regions Near 0:
    -->
        __TEXT                 0000000100000000-0000000100006000 [   24K] r-x/rwx SM=COW  /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.adobe.InDesign.Text Wrap            0x0000000120289a0d 0x120267000 + 141837
    1   com.adobe.InDesign.Text Wrap            0x0000000120280ff6 0x120267000 + 106486
    2   PublicLib.dylib                         0x00000001011cce54 CScriptProvider::AccessProperties(IScriptRequestData*, IScript*) + 484
    3   com.adobe.InDesign.Scripting            0x000000011f40a0ea 0x11f3dc000 + 188650
    4   com.adobe.InDesign.Scripting            0x000000011f40aaae 0x11f3dc000 + 191150
    5   com.adobe.InDesign.INXCore              0x000000011d03e232 0x11d027000 + 94770
    6   PublicLib.dylib                         0x000000010132a8f0 CScriptDOMElement::GetMultipleAttributes(K2Vector<IDType<ScriptID_tag>, K2Allocator<IDType<ScriptID_tag> > > const&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > >&) + 320
    7   PublicLib.dylib                         0x000000010132d2b7 CScriptDOMElement::InsertProperties(adobe::version_1::vector<KeyValuePair<IDType<ScriptID _tag>, ScriptData>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, ScriptData> > >&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short, short) + 311
    8   PublicLib.dylib                         0x000000010132b5b8 CScriptDOMElement::SetSimpleAttributes(adobe::version_1::vector<KeyValuePair<IDType<Scrip tID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short) + 88
    9   PublicLib.dylib                         0x000000010132dd8e CScriptDOMElement::InitializeElementAttributes(adobe::version_1::vector<KeyValuePair<IDTy pe<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&) + 14
    10  PublicLib.dylib                         0x000000010132b86a CScriptDOMElement::InitializeAttributes(adobe::version_1::vector<KeyValuePair<IDType<Scri ptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short) + 74
    11  com.adobe.InDesign.SaveBack             0x000000010bfe772e 0x10bfdc000 + 46894
    12  PublicLib.dylib                         0x000000010117f321 INXImportHelper::QueryOrCreateFragment(IDOMElement*) + 49
    13  com.adobe.InDesign.INXCore              0x000000011d095baa 0x11d027000 + 453546
    14  PublicLib.dylib                         0x000000010117e8f8 INXImportHelper::CreateElement(IDOMElement*, IDType<ScriptID_tag>) + 648
    15  com.adobe.InDesign.INXCore              0x000000011d09534d 0x11d027000 + 451405
    16  PublicLib.dylib                         0x000000010117e8f8 INXImportHelper::CreateElement(IDOMElement*, IDType<ScriptID_tag>) + 648
    17  com.adobe.InDesign.INXCore              0x000000011d063651 0x11d027000 + 247377
    18  com.adobe.InDesign.INXCore              0x000000011d05faeb 0x11d027000 + 232171
    19  com.adobe.InDesign.XMLParser            0x0000000121182818 0x121180000 + 10264
    20  com.adobe.InDesign.XMLParser            0x0000000121188a52 0x121180000 + 35410
    21  com.adobe.AXE8SharedExpat               0x0000000104b53d98 0x104b3d000 + 93592
    22  com.adobe.AXE8SharedExpat               0x0000000104b527c1 0x104b3d000 + 88001
    23  com.adobe.AXE8SharedExpat               0x0000000104b516f5 0x104b3d000 + 83701
    24  com.adobe.AXE8SharedExpat               0x0000000104b541d2 0x104b3d000 + 94674
    25  com.adobe.AXE8SharedExpat               0x0000000104b5123e 0x104b3d000 + 82494
    26  com.adobe.InDesign.XMLParser            0x0000000121188045 0x121180000 + 32837
    27  com.adobe.InDesign.INXCore              0x000000011d05e2f2 0x11d027000 + 226034
    28  com.adobe.InDesign.XMLParser            0x00000001211823cc 0x121180000 + 9164
    29  com.adobe.InDesign.XMLParser            0x00000001211889c2 0x121180000 + 35266
    30  com.adobe.AXE8SharedExpat               0x0000000104b53d40 0x104b3d000 + 93504
    31  com.adobe.AXE8SharedExpat               0x0000000104b524d0 0x104b3d000 + 87248
    32  com.adobe.AXE8SharedExpat               0x0000000104b516f5 0x104b3d000 + 83701
    33  com.adobe.AXE8SharedExpat               0x0000000104b5123e 0x104b3d000 + 82494
    34  com.adobe.InDesign.XMLParser            0x0000000121188045 0x121180000 + 32837
    35  com.adobe.InDesign.INXCore              0x000000011d034274 0x11d027000 + 53876
    36  com.adobe.InDesign.INXCore              0x000000011d0799b0 0x11d027000 + 338352
    37  com.adobe.InDesign.SaveBack             0x000000010bfdee2d 0x10bfdc000 + 11821
    38  com.adobe.InDesign.SaveBack             0x000000010bfddf68 0x10bfdc000 + 8040
    39  com.adobe.InDesign.SaveBack             0x000000010bfddcd4 0x10bfdc000 + 7380
    40  com.adobe.InDesign.Open Place           0x000000011d7baf2f 0x11d7b1000 + 40751
    41  com.adobe.InDesign.Open Place           0x000000011d7ba57a 0x11d7b1000 + 38266
    42  com.adobe.InDesign.Open Place           0x000000011d7b200b 0x11d7b1000 + 4107
    43  com.adobe.InDesign.Open Place           0x000000011d7b2f01 0x11d7b1000 + 7937
    44  PublicLib.dylib                         0x00000001010d4481 Command::DoImmediate(short) + 33
    45  com.adobe.InDesign.Utilities            0x0000000120b7c47c 0x120b7b000 + 5244
    46  com.adobe.InDesign.Utilities            0x0000000120b7c605 0x120b7b000 + 5637
    47  com.adobe.InDesign.AppFramework          0x0000000119b0b26f 0x119b00000 + 45679
    48  PublicLib.dylib                         0x00000001010d3740 CmdUtils::ProcessCommand(ICommand*) + 64
    49  com.adobe.InDesign.Import Export UI          0x000000011cb2a254 0x11cb23000 + 29268
    50  PublicLib.dylib                         0x00000001010d4481 Command::DoImmediate(short) + 33
    51  com.adobe.InDesign.Utilities            0x0000000120b7c47c 0x120b7b000 + 5244
    52  com.adobe.InDesign.Utilities            0x0000000120b7c605 0x120b7b000 + 5637
    53  com.adobe.InDesign.AppFramework          0x0000000119b0b26f 0x119b00000 + 45679
    54  PublicLib.dylib                         0x00000001010d3740 CmdUtils::ProcessCommand(ICommand*) + 64
    55  com.adobe.InDesign.Document Actions          0x000000011b310fb9 0x11b2fc000 + 85945
    56  com.adobe.InDesign.Document Framework          0x000000011b459f43 0x11b32f000 + 1224515
    57  com.adobe.InDesign.AppFramework          0x0000000119b59a2a 0x119b00000 + 367146
    58  com.adobe.InDesign.AppFramework          0x0000000119b5433e 0x119b00000 + 344894
    59  com.adobe.InDesign.AppFramework          0x0000000119b538e5 0x119b00000 + 342245
    60  PublicLib.dylib                         0x00000001011cc69a CScriptProvider::HandleMethodOnObjects(IDType<ScriptID_tag>, IScriptRequestData*, adobe::version_1::vector<InterfacePtr<IScript>, adobe::version_1::capture_allocator<InterfacePtr<IScript> > > const&) + 458
    61  com.adobe.InDesign.Scripting            0x000000011f407724 0x11f3dc000 + 177956
    62  com.adobe.InDesign.Scripting            0x000000011f404738 0x11f3dc000 + 165688
    63  com.adobe.InDesign.Scripting            0x000000011f404d50 0x11f3dc000 + 167248
    64  com.adobe.InDesign.Support for AppleScript          0x000000011f921063 0x11f8f1000 + 196707
    65  com.adobe.InDesign.Support for AppleScript          0x000000011f91e75a 0x11f8f1000 + 186202
    66  com.adobe.InDesign.Support for AppleScript          0x000000011f91dae2 0x11f8f1000 + 183010
    67  com.adobe.InDesign.Support for AppleScript          0x000000011f8f251c 0x11f8f1000 + 5404
    68  com.apple.AE                            0x00007fff900b0078 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 307
    69  com.apple.AE                            0x00007fff900afed9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 37
    70  com.apple.AE                            0x00007fff900afd99 aeProcessAppleEvent + 318
    71  com.apple.HIToolbox                     0x00007fff8e63d709 AEProcessAppleEvent + 100
    72  com.apple.AppKit                        0x00007fff8c5f8836 _DPSNextEvent + 1456
    73  com.apple.AppKit                        0x00007fff8c5f7df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    74  com.apple.AppKit                        0x00007fff8c5ef1a3 -[NSApplication run] + 517
    75  com.adobe.exo.framework                 0x00000001028a7e98 exo::app::OS_AppBase::RunEventLoop() + 56
    76  com.adobe.InDesign.AppFramework          0x0000000119c0dff3 0x119b00000 + 1105907
    77  com.adobe.InDesign.AppFramework          0x0000000119c0d182 0x119b00000 + 1102210
    78  com.adobe.InDesign                      0x0000000100001dbc main + 412
    79  com.adobe.InDesign                      0x0000000100001bb4 start + 52

    Sorry, here is my crash report http://pastebin.com/Yz6RrWZQ

  • InDesign 5.5 interesting script issue.  Please help!

    Hello everyone - I'm having an interesting issue on 3 company Macintosh machines running on Mavericks.  We still are on InDesign 5.5 and use a custom script to save and export files for the advertising teams.  On only these 3 machines, the script appears to run halfway then InDesign freezes with the spinning wheel.  I've manage to trap the problem.  In the Users Library > Caches > Adobe InDesign > Version 7.5 - if I trash the Version 7.5 folder and start up InDesign, the user can start up InDeisign 5.5 & use the script without issue for the day.  When the user either quits InDesign or logs out of the machine, the next time they log in and start InDesign, the script will not function again until I trash that cache file for them.  How do I permanently fix this issue for these users?  All of our other 50 plus macs are working just fine with InDesign 5.5.  Thanks for your help!!

    It would be better to solve it inside of the problem script, but this is an Applescript where the alias enclosed in the quotes is the path to the folder. You'll have to edit the address. Paste into Script Editor, edit, save it as an Application, and add the saved script to your Login item list.
    tell application "Finder"
         --edit file path
        set c to alias "YourHD:Users:UserAccount:Library:Caches:Adobe InDesign:Version 7.5:en_US:Scripting Support:"
        move c to trash
    end tell

  • Version for Sap Script

    Hi,
    How can we know the version of Sap script like Reports?????
    Edited by: subas  Bose on Jun 26, 2008 4:52 PM

    Hi,
    Sorry, Version management is not there for SAP Scripts.
    Below is What u can get is released versions in the script
    Use Tcode SE03 ---> select SEARCH FOR OBJECTS IN REQUESTS/TASKS.
    and execute in the object selection u have many selections like PROG,FUGR, CLASS etc.. in the blank space give FORM and press enter, enable the check box and give the form name and execute.
    it displays all the released requests and tasks .
    Thanks
    Vikranth

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team,
    I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script.
    I have written the code like
    Dim Pages=IndDoc.Pages
    Dim Mytype=TypeName(Pages)
    Pages.Move(InDesign.idLocationOptions.idBefore,IndDoc1.Pages.LastItem)
    but it is giving an error as method Move is not a member of Pages 
    please give mme the solution to move the Multiple pages or a group of page from one Indd to another Indd.

    Hey Peter, if I wan to move several page that part of Auto Flow text, I checked the "delete page after moving" but the content still there, not deleted.
    Is there any way to delete it automatically, just to make sure I have moved that autoflowed page?

  • Creating Selection Screen version in Logical Database

    Hi,
    I want to design my own Selection screen while creating a report with Logical Database. My requirement is not to show the Standard Selection screen of LDB.
    Can it be achieved by creating Selection Screen Version in SE36 and using that version in Attribute of the Report?
    If yes, then how can it be created?

    You can change the Selection Include to include your selection screen version.
    Go to SE36
    Select "Selections"
    Change
    Create a new version like:
    SELECTION-SCREEN BEGIN OF VERSION 904 TEXT-904.
      SELECTION-SCREEN EXCLUDE PARAMETERS: KD_STIDA.
      SELECTION-SCREEN EXCLUDE SELECT-OPTIONS: KD_GJAHR, KD_BUDAT, KD_AUGDT,
                                               KD_ZUONR, KD_UMSKZ.
    SELECTION-SCREEN END   OF VERSION 904.
    Regards,
    Naimesh Patel

  • Selection screen versions in LdB

    The following questions are related to SAP delivered LdBs that are not for HR.
    a) Do you know where the selection screen versions for a delivered LdB are stored?
    b) Can additional selection versions be created /delivered selection screen versions modified? Or the authorization for doing the changes is generally not provided.
    Thank you much,
    Fred.
    Edited by: Fred Myer on Jan 30, 2008 11:16 PM
    Guys, any help?

    Hi,
    Try declaring some global variable in the data delclaration event, and pass the values these variable at selection screen, and use them wherever required.
    Regards,
    Santhosh.

  • Mini Bridge Missing from InDesign CS6 after Upgrade to InDesign Version 8.1

    I discussed this same problem https://forums.adobe.com/message/5833991 after upgrading to the prior version 8.0.2 of InDesign.
    After upgrading to InDesign Version 8.1, Mini Bridge no longer works.  Mini Bridge does not show under the Window menu and shift-clicking the Bridge icon opens the full Bridge, not Mini Bridge.
    With the prior version 8.0.2 problem, I was able to recover Mini Bridge by doing a re-install of InDesign under Window's Safe Mode.  Microsoft has somehow changed Safe Mode and I can no longer do the reinstall using Safe Mode.  I have tried several different ways of reinstalling version 8.1, but none of them correct this problem.  Still no Mini Bridge.
    Mini Bridge does work in Photoshop CS6 with no problem.
    I have read through all of the messages that seem to relate to this problem in this forum, but none of the suggested solutions work for me.
    Can anyone provide me with an answer?  If not, how do I get help from Adobe?  I am willing to pay for support, if necessary.

    RESOLVED - I can't believe it, but I have actually figured this out.
    Getting frustrated with going in circles, I decided to dig into security options.  First off, I opened Windows' Properties for the start-up icon for InDesign.  Right off, I noticed under the Compatibility tab that InDesign was set to run in Compatibility Mode for Windows XP (Service Pack 3).  This did not seem right, so I turned off the option to run in Compatibility Mode and re-started up InDesign.  Low and behold, the option Window | Mini Bridge was now displayed!  And it worked!
    Sorry to have bothered you gentlemen with this problem.  I really appreciate your assistance!
    Mark.

  • Automatic selection production version in MFBF

    Hello !
    I have a material setted with Selection method = 2(Selection by production version) in Material Master, so, I have two production version: V001 & V002, the last one is locked for any usage. 
    I need automatic selection of production version in MFBF , but when I'm doing the confirmation the system show the screen of  production version selection  with two versions .
    Do you know what is missing for automatic selection works ?
    Thanks a lot.
    Vero

    Hi Vernoica ,
    Good Day , PV will be selected based on the lot size and the creation dates.
    It will copy the PV (BOM & Routing ) based on Lot size or Explosion date you defind in MRP-4 view i.e. BOM selection ,BY -explosion date,1-lot size,2- by PV and 3 by PV only.
    If you would like to get rid the selection of PV,
    why dont you try created a production version than only go to material master change screen MM02 in MRP4 view and Select 2 at selection method field.
    In the IMG (OPLD) for Order Type Dependent Parameters, the production version selection is already set to manual selection.  But the production version is always defaulted as version 1 which is the first one in the material master and is not asking to select the version at the time of converting the planned order to a production order!
    You can also check settings in configue trans OPL8 to have routing selection set to automatic selection if you want to avoid placing routing versions in each individual material master. Just another way to look at it
    Hope it will resolve your problem.

  • InDesign CS3 Corner Effect Script

    I have tried to run the InDesign C33 Corner Effect Script so that I may change different points on a frame. However after the script runs I still cannot edit points. There is no dialogue box to manipulate the points. Mac Platform.

    The supplied link is no longer active.
    We are seeing this exact same issue on a few machines in our office. Any further help?!
    Thank you very much!!!
    We double click on the script, and the window that would usually open does not. It's the script to edit specific corners.

  • Why can I not select SD versions of SD programs I purchased?

    Why can I not select SD versions of SD TV programs I purchased? When I go to my program to download it. I click the SD button, that is what I paid for. It will not move over to the SD version to allow me to download it even though I have received notification that I have a new program waiting.

    I found my own solution. While in the Itunes store I did a search for the program by name of the current season. It brought up a list of the current season and it showed that I had an undownloaded episode of the program. I hit the download ad it completed the SD download.

  • Photoshop and indesign version cs3 compatible with "Montain Lion"? Please answer me, otherwise I'd rather stick to my loyal and "Snow Leopard" STEVIE

    Is Adobe Photoshop and Indesign (version cs3) compatible with "Montain Lion"?
    Please answer me, otherwise I'd rather stick to my loyal and "Snow Leopard"

    Welcome to Apple Communities
    It's supported http://www.adobe.com/products/creativesuite/faq.html#lion-os

  • MRP with selected production version

    Dear PP experts,
    I have two production version
    Prod. Version      From lot        To lot size        Base Qty.
       1001                      1                   100                100 Kg.
       1002                      101             9999999          400 Kg.
    The batch size mentioned in the material masters are Mimimum lot size 100 Kg. and Maximum lot size as 400 Kg.
    I have entered PIR in MD61 for the material for 350 Kg. Since I need planned orders selectively of 100 Kg. in MD61 I have maintained in schedule lines tab production version as 1001.
    After running MD41 system creates planned orders with the production version, but the batch size is not as per the production version.
    Pl. let me know what needs to be done.
    Regards,
    Prashant

    Hi Watson,
    I can see some conflicts in your Master Data settings.
    First of all you have set your Lot size ranges in Material Master Data from 100 to 400 Kg.
    And your Production Versions (1001) set lot size range is 1 to 100 Kg.Which may creates conflicts.
    Now your require qty is 350 kg.So as per your lot size restriction set in Material Master will force system to create one planning proposal of 350kg.I can guess you get one plan order of 350kg but due to selection made in (MD61) selected prod. version is 1001 instead of 1002.Which is again wrong
    Now to make the things correct you can have below options,
    1) change Lot size restriction to 1 to 100 in Material Master.So you wil get 3 Plan orders of 100 Kg and 1 of 50 kg.
    or
    2) Instead of changing Lot size in Material Master, use quota arrangement (MEQ1).For this you have to first activate Quota arrangement in MRP 2 view of Material Master.Then go to MEQ1 and create quota for the specified period.Here you can restrict lot size at production version level.
    Regards,
    Dhaval

Maybe you are looking for