Data driven subscription not working properly.

Dear All
I am in trouble in finding solution to this please help me on this.
I have a data driven subscription which sends group wise multiple mail to recipients.
Now when subsciption runs it only send one email to one recipient and in status show like..
where in reportserver database it shows single execution of subscription .
Kindly note last run : 11:02:06
this is log files for above run time :
library!WindowsService_1!fc8!09/26/2014-11:02:06:: i INFO: Schedule 885a4ed9-3722-4867-92c2-f6af77533064 executed at 09/26/2014 11:02:06.
schedule!WindowsService_1!fc8!09/26/2014-11:02:06:: Creating Time based subscription notification for subscription: f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6
library!WindowsService_1!fc8!09/26/2014-11:02:06:: i INFO: Schedule 885a4ed9-3722-4867-92c2-f6af77533064 execution completed at 09/26/2014 11:02:06.
library!WindowsService_1!a04!09/26/2014-11:02:06:: i INFO: Handling data-driven subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report /EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report
Server Email.
library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
notification!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
library!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
notification!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
notification!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
notification!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
notification!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
library!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
library!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
library!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
library!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to GetSystemPermissionsAction().
library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to ListSubscriptionsAction(null, null).
library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to GetSystemPropertiesAction().
library!WindowsService_1!1174!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!fc8!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!a04!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!ae4!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!7c0!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
or low disk condition within the database.;
emailextension!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 93) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
notification!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
timeout or low disk condition within the database.Mail will not be resent.
library!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
or low disk condition within the database.;
emailextension!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 95) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
notification!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
timeout or low disk condition within the database.Mail will not be resent.
library!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
or low disk condition within the database.;
emailextension!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 90) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
notification!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
timeout or low disk condition within the database.Mail will not be resent.
library!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
or low disk condition within the database.;
emailextension!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 88) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
notification!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
timeout or low disk condition within the database.Mail will not be resent.
library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to GetSystemPermissionsAction().
library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to ListSubscriptionsAction(null, null).
library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to GetSystemPropertiesAction().
I am not getting why it is happening .. hope this is enough to understand issue
Dilip Patil..

Make sure you have enough space for ReportserverTempDb and SQL Server TempDB for getting the data from respective database.
As per the errors seems query has issues with blockings.
Transaction (Process ID 90) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Please verify the query in SSMS and make sure the results are appearing smoothly.
Regards, Pradyothana DP http://www.dbainhouse.blogspot.in/ .Please Mark This As Answer if it solved your issue.

Similar Messages

  • Date format is not working properly for Calender value help

    Hi Experts,
    We have two problems.
    1. We want to change the format of date displayed. We want format of dd-MMM-yy. For that we have created one Simple
    Type Dictionary Object with Displaying format dd-MMM-yy. It is working
    fine for the non editable UI. But once I apply the dictionary type
    object as data type for an input field, probem happens. Once the user
    choose a date from calender value help the value in the input field is
    coming like 01-011-12 not like 01-Jan-12.
    The date format is not changing from the calender. But if we set the
    display format of the dictionary object to MM-dd-yy or MM/dd/yy or
    dd/MM/yy or dd-MM-yy the format conversion from calender to input field
    is happening properly.
    The only problem once we put MMM in place of MM for the input field
    where user is selecting from a calender value help.
    2. We want to restrict users from entering the value manually for date input field. The user
    should be able only to enter value by selecting from calender value
    help.
    Please give suitable solution for these problems
    Thanks
    Shankha

    Hi Sankha,
    Please refer the links below:
    http://scn.sap.com/thread/1659463
    http://scn.sap.com/thread/1533443
    Regards,
    Manoj

  • Web service proxy and data control are not working properly

    Hi,
    I am working on jDeveloper 11.1.1.6
    I have a SOA web service which requires 3 inputs and return with a set of data.
    When I tried testing that web service in soapUI it is working perfect. But when I have created a web service proxy in my application and trying to test it from class (*******_ptClient) main method everytime it is replying with the output null
    Also When I am requesting from the main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side.
    After that I have created web service data control and tested in that case also it is not showing any result.
    What could be the problem ?
    Please help.
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Shay Shmeltzer,
    Thanks for the reply.
    I tried in HTTP Analyzer in JDeveloper and there also it is not working. My concern is :-
    There are many other web services deployed on the same SOA server in same partition and they are working fine in HTTP analyzer and I am able to create and use the web service proxy as well. So as per my understanding there is nothing like network issues between SOA server and jDeveloper.
    1 more thing When I am creating the proxy for this web service and requesting from the proxy's main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side. The problem is jDeveloper is not able to get back that response which SOA is returning.
    Please Help.
    -- NavinK

  • Access Control Mechanism (data level security) not working properly

    Hi Experts,
    I have done datalevel security for groups by help of a database table. This table contains UserId, Dept. code, GroupName column. UserID are verified by LDAP server during logging into Dashboard. I have made two init blocks for GroupName and Dept.Code .
    Query is :
    SELECT 'Group', GroupName from TABLE
    Where
    UserId = ':USER'
    Similiar query is for Dept Code.
    There are two groups ; 1. CC_User 2. Full_User. I have applied filter in PERMISSIONS for CC_User on Fact table on Dept Code. So, user in this group may see data for Dept Code aligned to him in the table. All_User may see whole data for All Dept Codes as NO filter is applied on this group.
    Dept Code , UserId and GroupName are Varchar.
    Now problem is this when a user have membership of one group , it works fine. For CC_user it shows data for its Dept Code and All_user may see whole data.
    But When A user have permission of both the groups , only data related to CC_User group is visible. But, in my view , maximum permmision out of the both groups must be applied to the user if he belongs to more than one group.
    So , here , he must see whole data, as All_user group can see full data.
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.

    848839 wrote:
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.Indeed it does. The most restrictive filters get applied if a user belongs to multiple groups that have filters at various levels of data because its always an AND clause in the where condition. This is the sort of behavior in various tools I have seen apart from OBIEE.
    Hope this helps.
    Regards,
    -Amith.

  • DAC  - Reset Data Sources does not work properly

    Hi,
    I am trying to run a full load by selecting Reset Data Sources in DAC. However, when i select this option, only the data after Jan 11, 2014 gets picked up in the ETL. I have data starting from year 2010 in my database.
    How do i ensure that the full set of data gets picked up for full load?

    Hi Srini,
    The value of INITIAL EXTRACT DATE is as follows:
    $$INITIAL_EXTRACT_DATE
    Timestamp
    Value=19700101 at 00:00:00:00_dac_sep_Formatter=MM/DD/YYYY_dac_sep_Function=TO_CUSTOM_dac_sep_Runtime=Static
    How does this work? Actually this was working fine for DAC 10g and the client was able to perform full loads by resetting the data sources.
    What could be the issue with DAC 11g?

  • Cannot Edit My Data Driven Subscription

    "The value provided for the StartDateTime field is not valid for its type. It cannot be converted from a string value to the type that is required. (rsElementTypeMismatch)
    Get Online Help
    Home
    I'm a noobie. Getting the above error message SS 2012. Here's what happened. About 20 minutes ago I created a data driven subscription which worked fine (I set it for every five minutes, it ran 3 times). Then I edited the schedule but made a typo generating
    the above error.  The report is still running every five minutes. I'm going to have to put a stop to SqlAgent.
    When I click the Edit button I get the error message again, immediately  - I never get a chance to edit the subscription. I suppose I could delete it, but isn't there a way to edit it?

    Thanks! That's an excellent solution, although it basically asks me to script my own version of Report Manager so I can edit a subscription whenever Report Manager fails to do its job. It's a great idea, although it's a little scary as I would worry about
    making a scripting error that crashes/corrupts the service. I was hoping for an easier solution.
    Does this kind of thing happen often?  I hope not.
    I've not seen this myself but have heard from my own colleagues facing this. The solution I suggested has worked for some of the cases atleast
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Creating Data Driven Subscription does not allow me to get Auto copy from Query.

    I am trying to create a data driven Subscription for sharepoint document Library.  I have a table I populate with values.  Then a stored procedure that exec and returns the values.  I use this in my data driven subscription. 
    Here is what my table looks like
    intSubscriptionID strSubscriptionName strFileName strPath strRenderFormat strWriteMode strFileExt strTitle strAutoCopy strUserName strPassword strVar1 strVar2 strVar3 strVar4 strVar5 strVar6 strVar7 strVar8 strVar9 strVar10 bitEnabled
    400 Billing - Invoice_ParentChildRollup 19_Jan2015 http://eagleviewportal/BusinessIntelligenceCenter/AccountingBI/Reports/New Excel Overwrite True Invoice_ParentChildRollup False NULL NULL 0000019 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    401 Test Daily Order and Pending Status by SubAccount Test Daily Order and Pending Status by SubAccount http://eagleviewportal/BusinessIntelligenceCenter/ClientRelationsBI/Reports/New Excel Overwrite True Test
    Daily Order and Pending Status by SubAccount True NULL NULL 152884 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    I can use all the values and it creates my subscription no problem as long as I do not try to use the autocopy. 
    If I select Use no Value  all works great. 
    If I select Specify a static Value and then choose True it gives me an error The AutoCopy Delivery setting cannot be set to True if the WriteMode Delivery setting is not set to Overwrite.  as you can see that value is set to overwrite.  If I use
    hard coded word OverWrite instead of getting it from query it works.
    If I do the same step above but select False it seems to work as well.
    If I try to choose the value from the query then it errors with the generic Sorry Something went wrong. I cannot find any value in url logs.
    Ken Craig

    Hi Ken,
    I have reproduced the same issue as you encountered. If you choose both value for the fields(WriteMode and AutoCopy) from query, SharePoint will result in an error page. I finally fixed the issue by manually updating the table
    dbo.Subscriptions from the reporting service database. To make this, please first copy the value of field
    ExtensionSettings from the subscription table.
    Change the WRITEMODE and AUTOCOPY from "<ParameterValue><Name>WRITEMODE</Name><Value>Overwrite</Value></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Value>AutoCopy</Value></ParameterValue>"
    to "<ParameterValue><Name>WRITEMODE</Name><Field>strWriteMode</Field></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Field>strAutoCopy</Field></ParameterValue>".
    Here Value means the static value, and field means the name of the query field. After you modify it, copy the settings back to field
    ExtensionSettings or use update SQL to update it.
    At last, your data driven subscription should be like this:
    Thanks,
    Reken Liu

  • SSRS Data Driven Subscription - Analysis Services OLE DB Provider Not Recent Enough

    We are creating  new SSRS Data Driven Subscription. After entering the command query (which has been tested and is valid) we are getting the following error when the wizard validates the query in step 3:
    The dataset cannot be generated. An error occurred while connecting to a data source, or the query is not valid for the data source. (rsCannotPrepareQuery). The current version of Analysis Services OLE DB Provider is not recent enough to perform
    this check.
    The data source involved and the query are all working as we have reports running on this server that use this data source. We've looked into the OLE DB Provider and both the SSAS server and the SSRS server (they are on different servers) appear to have
    the same versions installed. Both the SSRS and SSAS servers are running SQL 2012 SP2.
    Any suggestions would be appreciated as I haven't had much success locating the cause.

    Hi Tymbow,
    Per my understanding that you got the error message in the step3 when creating the DataDriven Subscription, right?
    I have checked the error message and as you have mentioned that other reports which have the same connection string works fine in report server, so the issue can be cause by the query you are using in the step3 is not correct, sometimes although it
    will work in database or in the desginer, it will have some limitation in the commend query.
    Please provide the connection string you are using and also the commend query to help us better understanding of the issue.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Data Driven Subscriptions Error - the query processor could not start the necessary thread resources for parallel query execution

    Hi,
    We are getting the following error when certain data driven subscriptions are fired off: "the query processor could not start the necessary thread resources for parallel query execution".  I've read other posts that have the same error, and
    the solution usually involves adjusting MaxDOP to limit the number of queries that are fired off in parallel.  
    Unfortunately, we cannot change this setting on our server for performance reasons (outside of data driven subscriptions, it negatively impacts our ETL processing times).  We tried putting query hints like "OPTION (MAXDOP 2);" in the reports
    that are causing the error, but it did not resolve the problem.
    Are there any settings within Reporting Services that can be adjusted to limit the number of subscriptions that get fired off in parallel?
    Any help is appreciated - thanks!

    Yes, that is correct.  It's a painful problem, because you don't know which specific subscription failed. For example, we have a data driven subscription that sends out about 800 emails. Lately, we've been having a handful of them fail. You don't know
    which ones out of the 800 failed though, even from the RS log files - all it tells you is that "the
    query processor could not start the necessary thread resources for parallel query execution".
    Thanks, I'll try changing <MaxQueueThreads> and will let you know if it works.
    On a side note: I've noticed that it is only reports with cascading parameters (ex. where parameter 2 is dependent on the selection from parameter 1) that get this error message...

  • FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow.

    FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow and never finishes loading ANY page.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • How to pass multi-value parameters to DDS (data driven subscription)?

    Using RS2005, how should multivalue parameters be stored in a database field so that a data driven subscription can properly read and use them?  I have so far had no luck using syntax of:
    1)  parm1, parm2
    2)  parm1,parm2
    Do single qutoes need to explicitly wrap the values?  Can you please provide an example and a SQL INSERT statement using parm1 and parm2 to demonstrate what to store in the database field? 
    Thanks!!

    I have skimmed through this an have ran into this problem before but not with RS specifically, but with other ASP.NET apps I have built.  Maybe this work around will help.
    In my database I created a table function I call udf_Split List.  It looks like this: (Can't remember where I got this from, but it's not my own.)
    CREATE
    FUNCTION [dbo].[udf_SplitList]
    @List
    varchar(max),
    @SplitOn
    nvarchar(5)
    RETURNS
    @RtnValue table
    Id
    int
    identity(1,1),
    Value
    nvarchar(100)
    AS
    BEGIN
    While
    (Charindex(@SplitOn,
    @List)
    > 0)
    Begin
    Insert
    Into @RtnValue
    (value)
    Select Value
    =
    ltrim(rtrim(Substring(@List,
    1,
    Charindex(@SplitOn,
    @List)
    - 1)))
    Set @List
    =
    Substring(@List,Charindex(@SplitOn,
    @List)
    +
    len(@SplitOn),
    len(@List))
    End
    Insert
    Into @RtnValue
    (Value)
    Select Value
    =
    ltrim(rtrim(@List))
    Return
    END
    Then, in my query I used the following parameter: QueriedField IN(select value from dbo.udf_SplitList(@Parameter,',')  (I used commas to separate the list, but you can use whatever you like (;,|,*, etc.)
    For you @Parameter would be your DDS list parameter.  Hope this helps.  You can enter your list like Item1,Item2,Item3 etc.

  • Special Characters in the file name in Data Driven Subscription via File Share

    Hi,
    I am trying to create a Data Driven Subscription with option to delivery as  windows file share in SQL server 2005. I need to save the report as a pdf with the following file name  '[City] City_Name', but it errors out and it is because of the
    Square Brackets. Is there any way i can save the file using the Square brackets as i mentioned above.
    I am using a query to get the filename and filepath. It works fine as long as i do not have [], but i need to save the file as i mentioned along with the Square Brackets.
    Please help.

    Hello,
    I can reproduce the issue on my test environment: When I create a Data Driven Subscription and specify the report name by get from a subscription delivery table, and the value of the "report name" column contains square brackets. The subscription failed
    with following error in the error log:
    ERROR: Error occurred processing subscription ab9523a6-0256-4607-b818-a7666204d018:
    The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the file name.
    notification!WindowsService_1!1f24!05/30/2014-15:31:02:: i INFO: Notification 0cf5a356-3172-4108-9d8c-58ea81a0b80a completed.  Success: False, Status: The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the
    file name., DeliveryExtension: Report Server FileShare, Report: Report6, Attempt 0
    It seems that the behavior is by design. please avoid using square brackets as file name. Maybe you can try to use parentheses () instead.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Is it possible to output a report as a text file (.txt) in a Data Driven Subscription?

    Is it possible to create a Data Driven Subscription report as a text file output to a shared folder? Thanks.
    Kahlua

    Hi Vicky:
    Thank you for your reply. I changed the config file in SSRS and it works. I managed to generate a text file with Data Driven Subscription as the report output in a shared folder. However is it possible not to have the "double quote" wrapping around
    the text. Do I need to modify the config file to remove the "double quote" and how. Thanks. 
    Kahlua
    <Render>
    <Extension Name="XML" Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering"/>
    <Extension Name="NULL" Type="Microsoft.ReportingServices.Rendering.NullRenderer.NullReport,Microsoft.ReportingServices.NullRendering" Visible="False"/>
    <Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering"/>
    <Extension Name="PDF" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering"/>
    <Extension Name="TAB" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
    <OverrideNames>
    <Name Language="en-US">TAB (Tab Delimited Text File)</Name>
    </OverrideNames>
    <Configuration>
    <DeviceInfo>
    <FieldDelimiter xml:space="preserve">[TAB]</FieldDelimiter>
    <UseFormattedValues>True</UseFormattedValues>
    <NoHeader>True</NoHeader>
    <FileExtension>txt</FileExtension>
    <Qualifier xml:space="preserve"></Qualifier>
    <ExcelMode>False</ExcelMode>
    </DeviceInfo>
    </Configuration>
    </Extension>
    <Extension Name="RGDI" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.RGDIRenderer,Microsoft.ReportingServices.ImageRendering" Visible="False" LogAllExecutionRequests="False"/>
    <Extension Name="HTML4.0" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="False" LogAllExecutionRequests="False"/>
    <Extension Name="MHTML" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering"/>
    <Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering"/>
    <Extension Name="RPL" Type="Microsoft.ReportingServices.Rendering.RPLRendering.RPLRenderer,Microsoft.ReportingServices.RPLRendering" Visible="false" LogAllExecutionRequests="false"/>
    <Extension Name="IMAGE" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRenderer,Microsoft.ReportingServices.ImageRendering"/>
    <Extension Name="WORD" Type="Microsoft.ReportingServices.Rendering.WordRenderer.WordDocumentRenderer,Microsoft.ReportingServices.WordRendering"/>
    </Render>

  • Undo is not working properly (grayed out)

    Undo is not working properly in Indesign CC 9.2. I am using a 17" MBP running OSX 10.9.1.
    Processor: 2.2 GHz Intel Core i7
    Memory: 4GB 1333 MHz DDR3
    I ran into this issue doing a publication layout. I was not doing anything overly complicated. Copying/pasting, placing images, adding text boxes, copying/pasting text boxes. It seems to happen without rhyme or reason.
    I know that is not helpful for troubleshooting so I was able to isolate the problem. Here is how to recreate it.
    Open new doc (standard letter)
    Create text box with random text
    copy the text box (cmd C)
    paste the text box (cmd V)
    move the resulting text box using selection tool (V)
    select NEW text box (selection tool)
    copy the NEW text box (cmd C)
    paste the NEW text box (cmd V)
    move the text box (selection tool).
    Repeat until there are 5 text boxes (at least).
    Undo the various actions after placing and moving the 5 text boxes.
    I cannot undo back to a "new document."
    In some cases I can only undo 2 actions before "undo" becomes grayed out, and in some cases, I can undo up to 9 or 10 actions before it gets grayed out.
    Other programs running:
    Illustrator
    Photoshop
    Text Edit
    MS Word 2011
    Excell 2011
    Messages
    Chrome
    Finder
    Fetch (FTP software)
    I need to have these programs running simultaneously in many cases and have done so successfully in the past. I have a feeling it might be a memory issue, but I have not seen a similar post and I never had the issue with CS5 running with an identical setup. I was able to undo actions up until my previous save in CS5 sometimes 25-30 actions.

    I unplugged the USB items and the problem still persisted so it is not related to any of those.
    I shut down InDesign and tried reopening. InDesign crashed at reopen. I have provided the log below. Hopefully this shows where the problem is occurring.
    Process:         Adobe InDesign CC [3814]
    Path:            /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
    Identifier:      com.adobe.InDesign
    Version:         9.2.0.69 (9200)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [172]
    Responsible:     Adobe InDesign CC [3814]
    User ID:         ***
    Date/Time:       2014-01-27 11:58:37.300 -0800
    OS Version:      Mac OS X 10.9.1 (13B42)
    Report Version:  11
    Anonymous UUID:  ********************
    Sleep/Wake UUID: *********************
    Crashed Thread:  8
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    abort() called
    *** error for object 0x6180002737c0: Heap corruption detected, free list canary is damaged
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib         0x00007fff8af44622 __open_nocancel + 10
    1   libsystem_c.dylib             0x00007fff8fa09c9b __opendir2$INODE64 + 59
    2   com.apple.CoreFoundation       0x00007fff8d160d4a _CFIterateDirectory + 74
    3   com.apple.CoreFoundation       0x00007fff8d1636b3 _CFBundleCopyInfoDictionaryInDirectoryWithVersion + 627
    4   com.apple.CoreFoundation       0x00007fff8d16331d CFBundleGetInfoDictionary + 141
    5   com.apple.CoreFoundation       0x00007fff8d15fb5b _CFBundleCreate + 827
    6   com.apple.CoreFoundation       0x00007fff8d1a3e89 _CFBundleEnsureBundleExistsForImagePath + 89
    7   com.apple.CoreFoundation       0x00007fff8d24bb93 _CFBundleEnsureAllBundlesUpToDateAlreadyLocked + 67
    8   com.apple.CoreFoundation       0x00007fff8d1a3bf8 CFBundleGetBundleWithIdentifier + 248
    9   com.adobe.InDesign.AWS         0x000000011667d2bc 0x116676000 + 29372
    10  com.adobe.InDesign.AWS         0x000000011667a577 0x116676000 + 17783
    11  com.adobe.InDesign.AWS         0x000000011667a370 0x116676000 + 17264
    12  com.adobe.InDesign.AWS         0x00000001166772a7 0x116676000 + 4775
    13  com.adobe.InDesign.AWS         0x0000000116683fb0 0x116676000 + 57264
    14  com.adobe.InDesign.AWS         0x000000011668472e 0x116676000 + 59182
    15  com.adobe.InDesign.AWSUI       0x0000000116646597 0x116636000 + 66967
    16  com.adobe.InDesign.AWSUI       0x0000000116645f05 0x116636000 + 65285
    17  com.adobe.InDesign.AppFramework 0x000000010d6739bb 0x10d632000 + 268731
    18  ObjectModelLib.dylib           0x0000000104b2fcd3 0x104b10000 + 130259
    19  ObjectModelLib.dylib           0x0000000104b4306c 0x104b10000 + 209004
    20  ObjectModelLib.dylib           0x0000000104b3e3fc ShuksanInit(IStartupScreen* (*)(), IPlugIn*) + 7676
    21  com.adobe.InDesign             0x0000000100001c7e main + 94
    22  com.adobe.InDesign             0x0000000100001bb4 start + 52
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib         0x00007fff8af45662 kevent64 + 10
    1   libdispatch.dylib             0x00007fff9067043d _dispatch_mgr_invoke + 239
    2   libdispatch.dylib             0x00007fff90670152 _dispatch_mgr_thread + 52
    Thread 2:
    0   libsystem_kernel.dylib         0x00007fff8af44716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib       0x00007fff97874c77 _pthread_cond_wait + 787
    2   com.apple.CoreServices.CarbonCore 0x00007fff92a51c37 TSWaitOnConditionTimedRelative + 148
    3   com.apple.CoreServices.CarbonCore 0x00007fff92a2238d MPWaitOnQueue + 192
    4   PMRuntime.dylib               0x0000000101682be1 0x101681000 + 7137
    5   com.apple.CoreServices.CarbonCore 0x00007fff92a2290b PrivateMPEntryPoint + 58
    6   libsystem_pthread.dylib       0x00007fff97872899 _pthread_body + 138
    7   libsystem_pthread.dylib       0x00007fff9787272a _pthread_start + 137
    8   libsystem_pthread.dylib       0x00007fff97876fc9 thread_start + 13
    Thread 3:
    0   libsystem_kernel.dylib         0x00007fff8af44e6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff97873f08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff97876fb9 start_wqthread + 13
    Thread 4:
    0   libsystem_kernel.dylib         0x00007fff8af4534a fstat$INODE64 + 10
    1   IMSLib.dylib                   0x0000000119a3d2dd 0x1199c0000 + 512733
    2   IMSLib.dylib                   0x00000001199f3616 0x1199c0000 + 210454
    3   IMSLib.dylib                   0x00000001199f39ef 0x1199c0000 + 211439
    4   IMSLib.dylib                   0x0000000119a1f3c8 0x1199c0000 + 390088
    5   IMSLib.dylib                   0x00000001199f328d 0x1199c0000 + 209549
    6   IMSLib.dylib                   0x0000000119a2ebdf 0x1199c0000 + 453599
    7   IMSLib.dylib                   0x00000001199f64f0 0x1199c0000 + 222448
    8   IMSLib.dylib                   0x00000001199f894b 0x1199c0000 + 231755
    9   IMSLib.dylib                   0x0000000119a3fc0e 0x1199c0000 + 523278
    10  IMSLib.dylib                   0x0000000119a40a0b 0x1199c0000 + 526859
    11  IMSLib.dylib                   0x00000001199ea34e 0x1199c0000 + 172878
    12  IMSLib.dylib                   0x00000001199ded11 0x1199c0000 + 126225
    13  IMSLib.dylib                   0x00000001199d37ef 0x1199c0000 + 79855
    14  IMSLib.dylib                   0x00000001199e3851 0x1199c0000 + 145489
    15  IMSLib.dylib                   0x00000001199da4f1 0x1199c0000 + 107761
    16  IMSLib.dylib                   0x00000001199cce14 0x1199c0000 + 52756
    17  libsystem_pthread.dylib       0x00007fff97872899 _pthread_body + 138
    18  libsystem_pthread.dylib       0x00007fff9787272a _pthread_start + 137
    19  libsystem_pthread.dylib       0x00007fff97876fc9 thread_start + 13
    Thread 5:
    0   libsystem_kernel.dylib         0x00007fff8af44e6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff97873f08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff97876fb9 start_wqthread + 13
    Thread 6:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x00007fff8af40a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff8af3fd18 mach_msg + 64
    2   com.apple.CoreFoundation       0x00007fff8d1b0315 __CFRunLoopServiceMachPort + 181
    3   com.apple.CoreFoundation       0x00007fff8d1af939 __CFRunLoopRun + 1161
    4   com.apple.CoreFoundation       0x00007fff8d1af275 CFRunLoopRunSpecific + 309
    5   com.apple.Foundation           0x00007fff975a1907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
    6   com.apple.Foundation           0x00007fff975a170b __NSThread__main__ + 1318
    7   libsystem_pthread.dylib       0x00007fff97872899 _pthread_body + 138
    8   libsystem_pthread.dylib       0x00007fff9787272a _pthread_start + 137
    9   libsystem_pthread.dylib       0x00007fff97876fc9 thread_start + 13
    Thread 7:
    0   libsystem_kernel.dylib         0x00007fff8af44e6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff97873f08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff97876fb9 start_wqthread + 13
    Thread 8 Crashed:
    0   libsystem_kernel.dylib         0x00007fff8af44866 __pthread_kill + 10
    1   libsystem_pthread.dylib       0x00007fff9787335c pthread_kill + 92
    2   libsystem_c.dylib             0x00007fff8fa39bba abort + 125
    3   libsystem_malloc.dylib         0x00007fff919a5bf9 nanozone_error + 486
    4   libsystem_malloc.dylib         0x00007fff919a5dbb _nano_malloc_check_clear + 445
    5   libsystem_malloc.dylib         0x00007fff919a46c4 nano_malloc + 35
    6   libsystem_malloc.dylib         0x00007fff919a287c malloc_zone_malloc + 71
    7   libsystem_malloc.dylib         0x00007fff919a3290 malloc + 42
    8   libc++abi.dylib               0x00007fff90c5853e operator new(unsigned long) + 30
    9   libstdc++.6.dylib             0x00007fff8f47d0be std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) + 102
    10  libstdc++.6.dylib             0x00007fff8f47d00d std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) + 35
    11  libstdc++.6.dylib             0x00007fff8f47dae6 std::string::reserve(unsigned long) + 62
    12  libstdc++.6.dylib             0x00007fff8f47de3b std::string::append(char const*, unsigned long) + 101
    13  IMSLib.dylib                   0x0000000119a414fb 0x1199c0000 + 529659
    14  IMSLib.dylib                   0x0000000119a416a2 0x1199c0000 + 530082
    15  IMSLib.dylib                   0x00000001199ea192 0x1199c0000 + 172434
    16  IMSLib.dylib                   0x00000001199ded11 0x1199c0000 + 126225
    17  IMSLib.dylib                   0x00000001199d37ef 0x1199c0000 + 79855
    18  IMSLib.dylib                   0x00000001199e3851 0x1199c0000 + 145489
    19  IMSLib.dylib                   0x00000001199da4f1 0x1199c0000 + 107761
    20  IMSLib.dylib                   0x00000001199cce14 0x1199c0000 + 52756
    21  libsystem_pthread.dylib       0x00007fff97872899 _pthread_body + 138
    22  libsystem_pthread.dylib       0x00007fff9787272a _pthread_start + 137
    23  libsystem_pthread.dylib       0x00007fff97876fc9 thread_start + 13
    Thread 9:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib         0x00007fff8af449aa __select + 10
    1   com.apple.CoreFoundation       0x00007fff8d1fbd43 __CFSocketManager + 867
    2   libsystem_pthread.dylib       0x00007fff97872899 _pthread_body + 138
    3   libsystem_pthread.dylib       0x00007fff9787272a _pthread_start + 137
    4   libsystem_pthread.dylib       0x00007fff97876fc9 thread_start + 13
    Thread 10:
    0   libsystem_kernel.dylib         0x00007fff8af44e6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff97873f08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib       0x00007fff97876fb9 start_wqthread + 13
    Thread 8 crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000000  rbx: 0x0000000119dfa000  rcx: 0x0000000119df8958  rdx: 0x0000000000000000
      rdi: 0x0000000000007c13  rsi: 0x0000000000000006  rbp: 0x0000000119df8980  rsp: 0x0000000119df8958
       r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000008000000  r11: 0x0000000000000206
      r12: 0x0000000104bf7000  r13: 0x00006180002737c0  r14: 0x0000000000000006  r15: 0x0000000000000000
      rip: 0x00007fff8af44866  rfl: 0x0000000000000206  cr2: 0x00000001083c9000
    Logical CPU:     0
    Error Code:      0x02000148
    Trap Number:     133
    Binary Images:
           0x100000000 -        0x100005fff +com.adobe.InDesign (9.2.0.69 - 9200) <B7C09BD6-74AF-323E-8D22-D5E1F7965643> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
           0x10000c000 -        0x10000eff7 +com.adobe.InDesign.InDesignModelAndUI (9.0 - 0) <612870BE-869E-3165-9714-55F900A66BCC> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/InDesignModelAndUI.framework/Versions/A/InDesignModelAndUI
           0x100014000 -        0x10001cfff +com.adobe.coretech.adobesplashkit (AdobeSplashKit Version 1.0 - 1.0) <65BFDA83-4121-3D12-9BBE-9F4FF1DB3D6A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeSplashKit.framework/Versions/A/AdobeSplashKit
           0x100025000 -        0x10002ffff +ASLSupportLib.dylib (1) <1039F962-C495-36E4-B868-3DA5C43E3EBF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/ASLSupportLib.dylib
           0x100037000 -        0x10013aff7 +DV_WidgetBinLib.dylib (1) <57491245-3B90-3D4B-B4B6-4441EE325E3C> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/DV_WidgetBinLib.dylib
           0x1001d5000 -        0x10021aff7 +TextPanelLib.dylib (1) <4B30610F-C637-3910-A413-C40325795CAD> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/TextPanelLib.dylib
           0x100237000 -        0x100398fff +WidgetBinLib.dylib (1) <50EE77D3-591B-306F-9D62-2026938837EE> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/WidgetBinLib.dylib
           0x10044a000 -        0x100616fff +com.adobe.owl (AdobeOwl version 5.0.24 - 5.0.24) <1C99AA07-E73F-370B-82FA-01C1C4AAF97D> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeOwl.framework/Versions/A/AdobeOwl
           0x100659000 -        0x10089dfff +com.adobe.dvacore.framework (7.0.849324 - 7.0.849324.0) <08EB97C1-03E5-3C1B-B154-C886807BC6F1> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvacore.framework/Versions/A/dvacore
           0x100964000 -        0x100df1ff7 +com.adobe.dvaui.framework (7.0.849324 - 7.0.849324.0) <25942AAC-0437-303F-9663-B17113468EBB> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvaui.framework/Versions/A/dvaui
           0x101089000 -        0x101089fff +com.adobe.InDesign.InDesignModel (9.0 - 0) <7DCCCD9E-8ECB-330B-84AF-4F090F82BBBA> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/InDesignModel.framework/Versions/A/InDesignModel
           0x10108e000 -        0x10109cfff +com.adobe.boost_threads.framework (7.0.847203 - 7.0.847203.0) <A0AE19A9-2B8E-310A-8AC1-0E2E026E7A40> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_threads.framework/Versions/A/boost_threads
           0x1010b2000 -        0x1010b8ff7 +com.adobe.boost_date_time.framework (7.0.847203 - 7.0.847203.0) <F30F59C3-41C0-3DB1-899A-E2491EA25263> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_date_time.framework/Versions/A/boost_date_time
           0x1010c7000 -        0x101536ff7 +PublicLib.dylib (1) <1B305F6E-A0D3-39A3-91FE-B878D638B7A7> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/PublicLib.dylib
           0x101681000 -        0x10168bfff +PMRuntime.dylib (1) <0164EA5E-E56E-332F-901A-5E514833C38F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/PMRuntime.dylib
           0x101694000 -        0x1016abff7 +com.adobe.AFL (AdobeAFL 1.5.0 - 1.5) <1C46F2BE-2E4D-3E25-ACDF-85E2962B92DF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeAFL.framework/Versions/A/AdobeAFL
           0x1016ba000 -        0x1019cbff7 +com.adobe.CoolType (AdobeCoolType 5.15.00.31977 - 5.15.00.31977) <42323DBD-3A6D-3C41-A2C1-2B944789D8A9> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeCoolType.framework/Versions/A/AdobeCoolType
           0x101a13000 -        0x101a30fff +com.adobe.BIB (AdobeBIB 1.2.03.31977 - 1.2.03.31977) <A69D3AA0-9248-3B77-991B-89B2B7FE46BB> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeBIB.framework/Versions/A/AdobeBIB
           0x101a38000 -        0x101b7efff +com.adobe.ACE (AdobeACE 2.20.02.31977 - 2.20.02.31977) <3A212837-B075-34C0-96E9-5A4019C9DFEE> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeACE.framework/Versions/A/AdobeACE
           0x101b92000 -        0x102163fff +com.adobe.AGM (AdobeAGM 4.30.29.31977 - 4.30.29.31977) <BFFDBF0E-28EF-3720-93BE-293618541D26> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeAGM.framework/Versions/A/AdobeAGM
           0x102200000 -        0x10223dfff +com.adobe.ARE (AdobeARE 1.5.02.31977 - 1.5.02.31977) <73174C59-1DDC-3416-A0AD-4D70930ABA60> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeARE.framework/Versions/A/AdobeARE
           0x102245000 -        0x10226bfff +com.adobe.BIBUtils (AdobeBIBUtils 1.1.01 - 1.1.01) <FA20BCA0-05BF-35ED-95B7-5775B8310D12> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeBIBUtils.framework/Versions/A/AdobeBIBUtils
           0x102273000 -        0x10280cfff +com.adobe.MPS (AdobeMPS 5.8.1.31977 - 5.8.1.31977) <96C4D283-326B-3E50-B555-534492C6AA95> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeMPS.framework/Versions/A/AdobeMPS
           0x102889000 -        0x1028a7fff +com.adobe.dvaflashview.framework (7.0.849324 - 7.0.849324.0) <46FFD5B4-2182-3CC3-A258-486E585A5B2D> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvaflashview.framework/Versions/A/dvaflashview
           0x1028bf000 -        0x1028c3ff7 +com.adobe.ape.shim (3.4.0.29366 - 3.4.0.29366) <B9447EE8-6F91-9E85-C163-96600BF70764> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/adbeape.framework/Versions/A/adbeape
           0x1028ca000 -        0x10298cfff +com.adobe.exo.framework (7.0.849324 - 7.0.849324.0) <AF41BB10-6BB7-3645-9F60-AE77E54F04F1> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/exo.framework/Versions/A/exo
           0x102a2a000 -        0x102ad8fff +com.adobe.dvaworkspace.framework (7.0.849324 - 7.0.849324.0) <97F274A8-A56B-3F3A-AAA7-66B9FBEFEBF1> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvaworkspace.framework/Versions/A/dvaworkspace
           0x102b5b000 -        0x1031fafff +com.adobe.PlugPlugOwl (4.2.0.36 - 4.2.0.36) <D6EC53B4-E257-3698-8EA8-24D4E3D98EBD> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/PlugPlugOwl.framework/Versions/A/PlugPlugOwl
           0x1034ef000 -        0x10351bff7 +libtbb.dylib (0) <64B7013E-D548-3F7B-A2FB-28B7B932275C> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/libtbb.dylib
           0x103536000 -        0x103555fe7 +libtbbmalloc.dylib (0) <6887ED68-67ED-3748-82DA-B39A3EB210BB> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/libtbbmalloc.dylib
           0x10357a000 -        0x1042bffff +com.adobe.ICUData (4.0 - 3.61) <01D90725-4B10-312C-9546-9C0CCCA1B7BB> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/ICUData.framework/Versions/4.0/libicudata.40.0.dylib
           0x1042d3000 -        0x104404ff7 +com.adobe.ICUInternationalization (4.0 - 3.61) <CD4AD967-00CD-3979-8F82-1166E2058FA6> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/ICUInternationalization.framework/Versions/4.0/libicui18n.40.0 .dylib
           0x104458000 -        0x10454eff7 +com.adobe.ICUUnicode (4.0 - 3.61) <2352E6C8-3431-3A99-92B9-382E85A018AC> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/ICUUnicode.framework/Versions/4.0/libicuuc.40.0.dylib
           0x104586000 -        0x1046b4fff +com.winsoft.wrservices (WRServices 7.0.0 - 7.0.0) <0853A41B-A14A-37B7-B27F-457F87865EAD> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/WRServices.framework/Versions/A/WRServices
           0x10470f000 -        0x1047fffff +com.adobe.amtlib (7.0.0.247 - 7.0.0.247) <48D8FFDB-DFEA-310D-BAE3-DFD8D05B0160> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/amtlib.framework/Versions/A/amtlib
           0x104812000 -        0x104814fff +com.adobe.AdobeCrashReporter (7.0 - 7.1) <B68D0D42-8DEB-3F22-BD17-981AC060E9D7> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/AdobeCrashReporter
           0x10481a000 -        0x1048d1ff7 +com.adobe.boost_regex.framework (7.0.847203 - 7.0.847203.0) <F1C659D9-D3E8-3ACE-8368-9161529A6A66> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_regex.framework/Versions/A/boost_regex
           0x10493b000 -        0x1049aaff7 +com.adobe.adobe_caps (adobe_caps 7.0.0.21 - 7.0.0.21) <CE3C6356-9EE2-3B88-8261-8612A0743F56> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/adobe_caps.framework/Versions/A/adobe_caps
           0x1049b5000 -        0x1049c0fff +com.adobe.boost_signals.framework (7.0.847203 - 7.0.847203.0) <E0B3BB47-4294-3D65-8979-29B2D6C5DD2E> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_signals.framework/Versions/A/boost_signals
           0x1049cf000 -        0x1049d3fff +com.adobe.boost_system.framework (7.0.847203 - 7.0.847203.0) <70F73B9F-8416-37BF-9294-086AE475B743> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_system.framework/Versions/A/boost_system
           0x1049d9000 -        0x104a7afff +com.adobe.ICUConverter (4.0 - 3.61) <46764474-111C-3B13-AF62-002B71877405> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/ICUConverter.framework/Versions/4.0/libicucnv.40.0.dylib
           0x104a9a000 -        0x104afcfff +DataBaseLib.dylib (1) <670C9B64-DD9A-3B32-BDA9-22D6EA26A5EF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/DataBaseLib.dylib
           0x104b10000 -        0x104b7dfff +ObjectModelLib.dylib (1) <38EFA738-542E-32EB-A5AA-45380C5CCAAF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/ObjectModelLib.dylib
           0x104b9a000 -        0x104bbefff +com.adobe.AXE8SharedExpat (AdobeAXE8SharedExpat 3.8.0.30807 - 3.8.0.30807) <16FF5E16-19E0-3CE1-A68E-27567234429F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeAXE8SharedExpat.framework/Versions/A/AdobeAXE8SharedExpat
           0x108348000 -        0x108386fff +com.adobe.InDesign.Dictionary Editor Dialog (9.2.0.69 - 0) <EC06E951-7EDF-306A-85E2-B52805F8110C> /Applications/Adobe InDesign CC/*/Dictionary Editor Dialog
           0x1083a7000 -        0x1083b6ff7 +com.adobe.InDesign.DTTransform (9.2.0.69 - 0) <417A914C-BEA9-3AF6-94BC-158C93DCDC56> /Applications/Adobe InDesign CC/*/DTTransform
           0x10846c000 -        0x108479ff7 +com.adobe.InDesign.Text Color Panel (9.2.0.69 - 0) <B9722BDD-B3B2-3B6B-90EC-D7B52D54C678> /Applications/Adobe InDesign CC/*/Text Color Panel
           0x108482000 -        0x108496ff7 +com.adobe.InDesign.Story Panel (9.2.0.69 - 0) <989D8312-C513-36B9-9A2A-A161EC806905> /Applications/Adobe InDesign CC/*/Story Panel
           0x1084a5000 -        0x1084afff7 +com.adobe.InDesign.Span Columns Panel (9.2.0.69 - 0) <15F063E0-7874-30AE-841C-C10A12CF8B5E> /Applications/Adobe InDesign CC/*/Span Columns Panel
           0x1084b8000 -        0x1084c9ff7 +com.adobe.InDesign.SING (9.2.0.69 - 0) <3CC6846B-D663-31F2-BAB9-03BCAD89606E> /Applications/Adobe InDesign CC/*/SING
           0x1084d3000 -        0x1084ddfff +com.adobe.InDesign.Justification Panel (9.2.0.69 - 0) <4F940073-AAF8-3FDF-87FA-04A8DC87679D> /Applications/Adobe InDesign CC/*/Justification Panel
           0x109caa000 -        0x109cabff7 +com.adobe.InDesign.Metadata Database Filter (9.2.0.69 - 0) <3BE1DF86-81E8-359D-A40E-84EC7A016E16> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Metadata Database Filter.InDesignPlugin/Metadata Database Filter
           0x109cb0000 -        0x109ccaff7 +com.adobe.InDesign.IME (9.2.0.69 - 0) <905334C5-8BF8-3958-8216-720BDB4D3A1F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/IME.InDesignPlugin/IME
           0x109cda000 -        0x109cddfff +com.adobe.InDesign.Global Preferences Panel (9.2.0.69 - 0) <3B261D67-E6B5-32E3-AC7E-AFCCDC9B75CB> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Global Preferences Panel.InDesignPlugin/Global Preferences Panel
           0x109ce3000 -        0x109cedfff +com.adobe.InDesign.Workgroup Client UI (9.2.0.69 - 0) <5025F9EC-7C4C-377B-92F0-EC208F75B671> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Workgroup Client UI.InDesignPlugin/Workgroup Client UI
           0x10aa1f000 -        0x10aa23fff  com.apple.agl (3.2.3 - AGL-3.2.3) <1B85306F-D2BF-3FE3-9915-165237B491EB> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
           0x10af61000 -        0x10af9ffff +com.adobe.AAM.AdobeUpdaterNotificationFramework (UpdaterNotifications 7.0.1.102 - 7.0.1.102) <75ADE364-1107-3DA7-84A2-26C6874EB881> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/UpdaterNotifications.framework/Versions/A/UpdaterNotifications
           0x10afdc000 -        0x10afeefff +com.adobe.boost_filesystem.framework (7.0.847203 - 7.0.847203.0) <B0F56E9F-BAAB-34C5-93C4-C713203AB0DF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/boost_filesystem.framework/Versions/A/boost_filesystem
           0x10c6ee000 -        0x10c6f0ff7  com.apple.textencoding.unicode (2.6 - 2.6) <0EEF0283-1ACA-3147-89B4-B4E014BFEC52> /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
           0x10c6f5000 -        0x10c6f9fff +com.adobe.InDesign.Help (9.2.0.69 - 0) <09CFAB79-828F-39A9-8E6C-634999CF4EC8> /Applications/Adobe InDesign CC/*/Help
           0x10d632000 -        0x10d7f8ff7 +com.adobe.InDesign.AppFramework (9.2.0.69 - 0) <D84FAD4D-B653-3EB4-8FDA-7264A51F7359> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/AppFramework.InDesignPlugin/AppFramework
           0x10e0cf000 -        0x10e255ff7 +com.adobe.InDesign.SettingsInCloud (9.2.0.69 - 0) <EC5B37FA-9195-3243-9D62-C6A5FB8E394A> /Applications/Adobe InDesign CC/*/SettingsInCloud
           0x10e640000 -        0x10e7feff7 +com.adobe.InDesign.Text Walker (9.2.0.69 - 0) <BA84432B-6B10-3684-982F-856AB2248204> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Walker.InDesignPlugin/Text Walker
           0x10e856000 -        0x10e8a7fff +com.adobe.InDesign.Linguistics (9.2.0.69 - 0) <13A4BC6D-4C68-3884-9059-5837B952EC17> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Linguistics.InDesignPlugin/Linguistics
           0x10e8c1000 -        0x10e927fff +com.adobe.InDesign.Text Panel (9.2.0.69 - 0) <70BA1FF5-A8FD-3D59-976A-5AE782CB79ED> /Applications/Adobe InDesign CC/*/Text Panel
           0x10e94a000 -        0x10e996ff7 +com.adobe.InDesign.Spelling Panel (9.2.0.69 - 0) <B208BBCC-1AAB-354C-9CA6-44C6B5D35946> /Applications/Adobe InDesign CC/*/Spelling Panel
           0x10e9b0000 -        0x10ec14fff +com.adobe.InDesign.Package and Preflight (9.2.0.69 - 0) <6590908A-0A78-32F4-A455-ABBEC9D97B5E> /Applications/Adobe InDesign CC/*/Package and Preflight
           0x10ec5a000 -        0x10ecc7ff7 +com.adobe.AdobeXMPCore (Adobe XMP Core 5.5 -c 21 - 79.154911) <E8E31BC1-F7BC-3018-8CF8-AC3C7B2DCEA2> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeXMP.framework/Versions/A/AdobeXMP
           0x10ecd3000 -        0x10eda5fff +com.adobe.InDesign.Text Editor (9.2.0.69 - 0) <C8F82611-461D-3339-A65E-51190B515F9F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Editor.InDesignPlugin/Text Editor
           0x10edd5000 -        0x10efe3fff +com.adobe.InDesign.Layout UI (9.2.0.69 - 0) <5BC0A7D6-7A69-346C-B5A1-4F4AF2AC5F01> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Layout UI.InDesignPlugin/Layout UI
           0x10f043000 -        0x10f0b3fff +com.adobe.InDesign.Import Export UI (9.2.0.69 - 0) <FFA896AE-BAF9-30EC-A788-25AD02061296> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Import Export UI.InDesignPlugin/Import Export UI
           0x10f0da000 -        0x10f1e8fff +com.adobe.InDesign.Hyperlinks (9.2.0.69 - 0) <BF029BB8-6578-303F-A983-9ADEE43AB7A4> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Hyperlinks.InDesignPlugin/Hyperlinks
           0x10f213000 -        0x10f2b7fff +com.adobe.InDesign.Master Page (9.2.0.69 - 0) <557BD678-3F9D-3A4F-ABDA-8A1DD7D41AF6> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Master Page.InDesignPlugin/Master Page
           0x10f2d1000 -        0x10f2fffff +com.adobe.InDesign.Utilities (9.2.0.69 - 0) <9F7A613A-54DB-3604-B811-FCE0BC56F416> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Utilities.InDesignPlugin/Utilities
           0x10f31a000 -        0x10f417fff +com.adobe.InDesign.Color Management (9.2.0.69 - 0) <33023C59-D4C5-3BF2-8C42-54BD6E50E651> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Color Management.InDesignPlugin/Color Management
           0x10f444000 -        0x10f659ff7 +com.adobe.InDesign.Application UI (9.2.0.69 - 0) <2235307F-D211-397C-BAA7-34028F1C4F56> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Application UI.InDesignPlugin/Application UI
           0x10f6f0000 -        0x10fa0eff7 +com.adobe.dvaadameve.framework (7.0.849324 - 7.0.849324.0) <FF303DE3-2F53-3AA7-94E7-93B46DB28918> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvaadameve.framework/Versions/A/dvaadameve
           0x10fce4000 -        0x10fd33fff +com.adobe.headlights.LogSessionFramework (2.1.2.1785) <160BF2F9-B418-31C5-866F-6FADA1B720ED> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/LogSession.framework/Versions/A/LogSession
           0x10fd59000 -        0x10fe17fff +com.adobe.AdobeExtendScript (ExtendScript 4.5.5 - 4.5.5.31983) <7764EE73-651A-3D8A-9B0F-A25DF57D79E1> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeExtendScript.framework/Versions/A/AdobeExtendScript
           0x10fe3f000 -        0x10feeaff7 +com.adobe.AdobeScCore (ScCore 4.5.5 - 4.5.5.31983) <0E9111E5-ECBF-3C1C-82DB-9A945F1A573C> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeScCore.framework/Versions/A/AdobeScCore
           0x10ff14000 -        0x110064fff +com.adobe.dvascriptui.framework (7.0.849324 - 7.0.849324.0) <EC31CE70-34C1-31E0-A68D-F49D99ADA604> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/dvascriptui.framework/Versions/A/dvascriptui
           0x110186000 -        0x110366fff +com.adobe.InDesign.Document Framework (9.2.0.69 - 0) <ABC1E3A8-3AC3-3199-B572-B734998B696E> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Document Framework.InDesignPlugin/Document Framework
           0x1106d2000 -        0x110813fff +com.adobe.InDesign.SangamServicer-Mapper (9.2.0.69 - 0) <F2E5BD34-3091-317F-88A8-0B6090F262E0> /Applications/Adobe InDesign CC/*/SangamServicer-Mapper
           0x110837000 -        0x1108a0fff +com.adobe.AdobeSangam (AdobeSangam 5.65.0.31977 - 5.65.0.31977) <81A4C7F3-E791-3AD1-A44B-CF5BB5B6A545> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeSangam.framework/Versions/A/AdobeSangam
           0x1108ee000 -        0x11091aff7 +com.adobe.Reader for DOCX (Reader for DOCX 5.65.0.31977 - 5.65.0.31977) <C21B199B-542B-34CD-8F0E-F38D970D88BD> /Applications/Adobe InDesign CC/*/Reader for DOCX
           0x110925000 -        0x110a23ff7 +com.adobe.AXEDOMCore (AdobeAXEDOMCore 3.8.0.30807 - 3.8.0.30807) <DF0EC9F6-D499-39B8-B2F4-CAF4F742D702> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeAXEDOMCore.framework/Versions/A/AdobeAXEDOMCore
           0x110a39000 -        0x110b16fff +com.adobe.AXEXSLT (AdobeAXSLE 3.8.0.30807 - 3.8.0.30807) <6299FB87-471B-3EA2-9E02-6DEA293FA533> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeAXSLE.framework/Versions/A/AdobeAXSLE
           0x110b2b000 -        0x110b96ff7 +com.adobe.AdobeSangamML (AdobeSangamML 5.65.0.31977 - 5.65.0.31977) <BF6D92E9-AF42-3B9F-BBDD-FBCDE605C4BE> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeSangamML.framework/Versions/A/AdobeSangamML
           0x110bba000 -        0x110c18ff7 +com.adobe.Reader for Excel (Reader for Excel 5.65.0.31977 - 5.65.0.31977) <628DA00F-210B-3856-89F3-66393386E801> /Applications/Adobe InDesign CC/*/Reader for Excel
           0x110c2b000 -        0x110c3ffff +com.adobe.AdobeSFL (AdobeSFL 1.1.0.31977 - 1.1.0.31977) <A1874DA3-6F12-333D-8941-ED3A08A1E265> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeSFL.framework/Versions/A/AdobeSFL
           0x110c47000 -        0x110d3cfff +com.adobe.Reader for Quark (Reader for Quark 5.65.0.31977 - 5.65.0.31977) <7877BBF5-B31A-3CA9-9E8E-3FDFB174F261> /Applications/Adobe InDesign CC/*/Reader for Quark
           0x110d56000 -        0x110db1ff7 +com.adobe.Reader for RTF (Reader for RTF 5.65.0.31977 - 5.65.0.31977) <3ACB0F8E-0B51-3E5C-B924-A31D1D6606F6> /Applications/Adobe InDesign CC/*/Reader for RTF
           0x110dca000 -        0x110e38ff7 +com.adobe.Reader for Word (Reader for Word 5.65.0.31977 - 5.65.0.31977) <27531852-B602-3785-94C0-3B316DBEC69C> /Applications/Adobe InDesign CC/*/Reader for Word
           0x110e4d000 -        0x110eb3fff +com.adobe.Reader for XLSX (Reader for XLSX 5.65.0.31977 - 5.65.0.31977) <D896568B-FB6A-3036-91FC-A1DF0FA820DF> /Applications/Adobe InDesign CC/*/Reader for XLSX
           0x110ecd000 -        0x110ed5ff7 +com.adobe.ZTextReader (ZTextReader 5.65.0.31977 - 5.65.0.31977) <28B268EF-A3AD-3933-B4DC-247428D3A88D> /Applications/Adobe InDesign CC/*/ZTextReader
           0x110f5c000 -        0x110fcbfff +com.adobe.InDesign.XMLParser (9.2.0.69 - 0) <745F02C0-071B-3979-B284-391BA59D9CF5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/XMLParser.InDesignPlugin/XMLParser
           0x110fe1000 -        0x111204fff +com.adobe.InDesign.XML (9.2.0.69 - 0) <97314A64-BB21-3965-B9D3-F4C219C3DCDF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/XML.InDesignPlugin/XML
           0x11124e000 -        0x11127bfff +com.adobe.InDesign.WorldReady (9.2.0.69 - 0) <787871A9-77D2-3095-8930-4F140D091F0A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/WorldReady.InDesignPlugin/WorldReady
           0x11128b000 -        0x1112c8ff7 +com.adobe.InDesign.Workgroup (9.2.0.69 - 0) <FEA65E81-92F4-36EE-940C-3C7BD07DB7F4> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Workgroup.InDesignPlugin/Workgroup
           0x1112d8000 -        0x1112fafff +com.adobe.InDesign.Workgroup Client (9.2.0.69 - 0) <2447A61F-74CA-38D1-9444-22A25D2DEE98> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Workgroup Client.InDesignPlugin/Workgroup Client
           0x111308000 -        0x111416fff +com.adobe.InDesign.Widgets (9.2.0.69 - 0) <A9FB91A0-7CDB-3025-B6AC-D53BA8BBEB1E> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Widgets.InDesignPlugin/Widgets
           0x11147c000 -        0x1115c0ff7 +com.adobe.InDesign.Transparency (9.2.0.69 - 0) <636FD3CD-06FE-3D25-A252-368317D80C66> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Transparency.InDesignPlugin/Transparency
           0x1115eb000 -        0x11259ffef +com.adobe.psl (AdobePSL 14.0.0.31988 - 14.0.0.31988) <1EBD1547-F7B1-379D-8F50-FB49C7E01A58> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobePSL.framework/Versions/A/AdobePSL
           0x112762000 -        0x11281bff7 +com.adobe.JP2K (1.2.2 - 1.2.2.31977) <8BD41D6E-B8A2-36FA-B855-7CF02E856A08> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeJP2K.framework/Versions/A/AdobeJP2K
           0x112842000 -        0x1128a4fff +com.adobe.InDesign.TOC (9.2.0.69 - 0) <99A6C9FF-2F20-3475-A9CF-24C7B0F63CF3> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/TOC.InDesignPlugin/TOC
           0x1128b8000 -        0x112ebbff7 +com.adobe.InDesign.Text (9.2.0.69 - 0) <4216A99F-7F58-3E9B-A37E-8178A6ED812A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text.InDesignPlugin/Text
           0x112f59000 -        0x112fcfff7 +com.adobe.InDesign.Text Wrap (9.2.0.69 - 0) <8B65C672-BB4E-3F46-A7C5-6B2D0331C0F5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Wrap.InDesignPlugin/Text Wrap
           0x112fe8000 -        0x11300cfff +com.adobe.InDesign.Text Wrap Path (9.2.0.69 - 0) <D826BA05-20A8-367F-9414-573944D46303> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Wrap Path.InDesignPlugin/Text Wrap Path
           0x113015000 -        0x11302bff7 +com.adobe.InDesign.Text Editor Model (9.2.0.69 - 0) <C997B3C0-98C6-34A5-89E0-DBD7FB071AD6> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Editor Model.InDesignPlugin/Text Editor Model
           0x113036000 -        0x11308cff7 +com.adobe.InDesign.Text Attributes (9.2.0.69 - 0) <F90E2E25-38B2-3F12-8902-D5A56D6AD919> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Text Attributes.InDesignPlugin/Text Attributes
           0x1130a7000 -        0x113104ff7 +com.adobe.InDesign.TableStyles (9.2.0.69 - 0) <4D83BFF9-CAF4-34EF-BEAE-86E2D8A1D14F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/TableStyles.InDesignPlugin/TableStyles
           0x113117000 -        0x113349fff +com.adobe.InDesign.Table Model (9.2.0.69 - 0) <829471A3-999A-3B01-BD5A-B2ADC2F2972A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Table Model.InDesignPlugin/Table Model
           0x113385000 -        0x1133d8ff7 +com.adobe.InDesign.Image Filters (9.2.0.69 - 0) <F3DF9DCA-6073-3DF8-89EB-18F8D1DB8902> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Image Filters.InDesignPlugin/Image Filters
           0x1133e4000 -        0x11346ffff +com.adobe.InDesign.SVGExport (9.2.0.69 - 0) <E86D7C69-48CA-362B-B3A0-CC2C8F4B31B5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/SVGExport.InDesignPlugin/SVGExport
           0x113489000 -        0x113547fff +com.adobe.SVGExport (AdobeSVGExport 6.0 - 6.0) <2FAB4B9A-EDB9-0FF9-55B2-52DEC380D2BF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeSVGExport.framework/Versions/A/AdobeSVGExport
           0x11356a000 -        0x11360efff +com.adobe.InDesign.Support for JavaScript (9.2.0.69 - 0) <EC1C0215-E510-3D0F-B692-E2F8853811D9> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Support for JavaScript.InDesignPlugin/Support for JavaScript
           0x113639000 -        0x113690ff7 +com.adobe.InDesign.Support for AppleScript (9.2.0.69 - 0) <7D7706C3-B3C9-3B96-8473-CAD03A053148> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Support for AppleScript.InDesignPlugin/Support for AppleScript
           0x1136a6000 -        0x1137a8ff7 +com.adobe.InDesign.Graphics (9.2.0.69 - 0) <FCBDB8E7-46E8-3987-9BCB-0E3177F00F11> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Graphics.InDesignPlugin/Graphics
           0x1137cc000 -        0x113827ff7 +com.adobe.InDesign.Stroke and Fill (9.2.0.69 - 0) <72D3DE23-CFCC-3821-80AE-0908DB5768F5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Stroke and Fill.InDesignPlugin/Stroke and Fill
           0x11383f000 -        0x113980ff7 +com.adobe.InDesign.Spread (9.2.0.69 - 0) <AF10A69E-0D98-3E25-ABE5-CC310529098A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Spread.InDesignPlugin/Spread
           0x1139b2000 -        0x113a14fff +com.adobe.InDesign.Spread UI (9.2.0.69 - 0) <B7A3AE3F-DC65-34F6-B601-1780AF9220D9> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Spread UI.InDesignPlugin/Spread UI
           0x113a30000 -        0x113a7afff +com.adobe.InDesign.Spline (9.2.0.69 - 0) <53E6EF37-C070-39BE-BB18-2703B2041EC6> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Spline.InDesignPlugin/Spline
           0x113a92000 -        0x113adaff7 +com.adobe.InDesign.Spline UI (9.2.0.69 - 0) <9FC93D14-6D7C-32EE-BF90-3756FEA25FEE> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Spline UI.InDesignPlugin/Spline UI
           0x113af6000 -        0x113b09ff7 +com.adobe.InDesign.Spelling Service (9.2.0.69 - 0) <1E6AAFFE-ACCA-3E0B-AA63-37A767CC336E> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Spelling Service.InDesignPlugin/Spelling Service
           0x113b18000 -        0x113b26fff +com.adobe.InDesign.Sound (9.2.0.69 - 0) <43D68A27-E17F-3E9D-A02D-EB3230178339> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Sound.InDesignPlugin/Sound
           0x113b32000 -        0x113bbcfff +com.adobe.InDesign.SharedContent (9.2.0.69 - 0) <3863D336-3468-35E6-8298-3C1BFB37FBA5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/SharedContent.InDesignPlugin/SharedContent
           0x113bdd000 -        0x113c05fff +com.adobe.InDesign.Sections (9.2.0.69 - 0) <4DB2B4F0-124A-36F1-B1A3-9BFA36BB2FCF> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Sections.InDesignPlugin/Sections
           0x113c16000 -        0x113cc4fff +com.adobe.InDesign.Scripting (9.2.0.69 - 0) <01395410-7F18-323A-BF92-4FAC6F3ECCD5> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Scripting.InDesignPlugin/Scripting
           0x113ce3000 -        0x113d0dff7 +com.adobe.InDesign.Rulers (9.2.0.69 - 0) <C21FAD98-14EA-3E6F-9D58-7DED5B0EFB76> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Rulers.InDesignPlugin/Rulers
           0x113d20000 -        0x113eb5fff +com.adobe.InDesign.Print (9.2.0.69 - 0) <4E53767E-8497-32D1-B922-735E610640E2> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Print.InDesignPlugin/Print
           0x113ee2000 -        0x113f21ff7 +com.adobe.InDesign.PNG Import Filter (9.2.0.69 - 0) <3EA87A99-3FBF-38E5-BE00-896001E5AD91> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/PNG Import Filter.InDesignPlugin/PNG Import Filter
           0x113f31000 -        0x113f6afff +com.adobe.InDesign.Photoshop Import Filter (9.2.0.69 - 0) <B62B89C7-29F4-3058-BBD9-62BAB193B133> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Photoshop Import Filter.InDesignPlugin/Photoshop Import Filter
           0x113f7a000 -        0x113fe0fff +com.adobe.InDesign.Book (9.2.0.69 - 0) <A57C7841-5282-3A46-8202-CAB3C70DFBD0> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Book.InDesignPlugin/Book
           0x113ff7000 -        0x11410dff7 +com.adobe.InDesign.Image (9.2.0.69 - 0) <E026A24C-EF82-33E8-95FD-463A23618CB2> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Image.InDesignPlugin/Image
           0x114139000 -        0x114145ff7 +com.adobe.InDesign.Group (9.2.0.69 - 0) <8DF66586-0FC5-3EA5-8F0D-6083387F0697> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Group.InDesignPlugin/Group
           0x114152000 -        0x114294fe7 +com.adobe.InDesign.EPS Page Item (9.2.0.69 - 0) <CFD4D636-06B2-3969-91FA-ED68F0873111> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/EPS Page Item.InDesignPlugin/EPS Page Item
           0x1142d3000 -        0x11451ffff +com.adobe.InDesign.PDF (9.2.0.69 - 0) <36EED87F-F233-3B82-83C4-57584FEBE296> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/PDF.InDesignPlugin/PDF
           0x114561000 -        0x114665fff +com.adobe.PDFPort (AdobePDFPort 2.1.0.31977 - 2.1.0.31977) <83787D51-C878-3CFF-A3A2-F2107F7BB920> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobePDFPort.framework/Versions/A/AdobePDFPort
           0x114678000 -        0x1146a1ff7 +com.adobe.PDFSettings (AdobePDFSettings 1.04.0 - 1.4) <E07D101E-E47A-392A-8A44-005B49393DEC> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobePDFSettings.framework/Versions/A/AdobePDFSettings
           0x1146ab000 -        0x114917ff7 +com.adobe.InDesign.Generic Page Item (9.2.0.69 - 0) <F0DECCE6-EAF5-30C0-8FB0-48FA56CB3503> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Generic Page Item.InDesignPlugin/Generic Page Item
           0x114963000 -        0x1149a7fff +com.adobe.InDesign.Path Type (9.2.0.69 - 0) <32D8F2D5-AF06-375A-85ED-C4E42D3B790B> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Path Type.InDesignPlugin/Path Type
           0x1149c0000 -        0x1149caff7 +PathTypeLib.dylib (1) <A6E44FB4-61D6-3729-B3DD-A4D22EEC73B3> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/PathTypeLib.dylib
           0x1149d3000 -        0x114a88fff +com.adobe.InDesign.Paragraph Composer (9.2.0.69 - 0) <EEE3D51D-AF42-30AF-A8BA-DE663DC95888> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Paragraph Composer.InDesignPlugin/Paragraph Composer
           0x114a99000 -        0x114adafff +com.adobe.InDesign.Open Place (9.2.0.69 - 0) <6CBC4B8F-3B3D-3B14-9512-6808497AC68A> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Open Place.InDesignPlugin/Open Place
           0x114aee000 -        0x114b06ff7 +com.adobe.InDesign.Movie (9.2.0.69 - 0) <FD78448B-F572-32C2-9580-4A0681AC69EE> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Movie.InDesignPlugin/Movie
           0x114b15000 -        0x114ba0fff +com.adobe.InDesign.Metadata (9.2.0.69 - 0) <361ED9DD-BAD7-35E5-AFE5-3176BAD1C0FC> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Metadata.InDesignPlugin/Metadata
           0x114bbd000 -        0x114ccafff +com.adobe.AdobeXMPFiles (Adobe XMP Files 5.6 -f 81 - 79.154911) <38348CA8-7905-3AA4-AA00-95A6D912C491> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/Frameworks/AdobeXMPFiles.framework/Versions/A/AdobeXMPFiles
           0x114d00000 -        0x114d5cff7 +com.adobe.InDesign.Media (9.2.0.69 - 0) <560CE1DB-99AF-389F-8BC2-37D5F83C110F> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Media.InDesignPlugin/Media
           0x114d72000 -        0x114eacfff +com.adobe.InDesign.Links (9.2.0.69 - 0) <1BCD7856-3DD0-3C58-AF61-0E430CF5EFBC> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Links.InDesignPlugin/Links
           0x114ee1000 -        0x114f0afff +com.adobe.InDesign.Layout (9.2.0.69 - 0) <98815961-6446-3917-B266-7E3DB625B782> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Layout.InDesignPlugin/Layout
           0x114f19000 -        0x114f46fff +com.adobe.InDesign.Layer (9.2.0.69 - 0) <94604B73-0E52-30CB-9CC0-805F5B138FE4> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/Layer.InDesignPlugin/Layer
           0x114f59000 -        0x115029fff +com.adobe.InDesign.INXCore (9.2.0.69 - 0) <FCF49243-A7FD-3993-A242-7ECAB3971857> /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Required/INXCore.InDesignPlugin/INXCore
           0x115051000 -        0x115157ff7 +com.adobe.InDesign.Indexing (9.2.0.69 - 0) <CD23A88C-DBB2-3F46-91CC

  • Hi ALL i have a BDC code  it is not working properly

    this BDC code is not working properly , when ever the file is transfering BDC is aborting in the case of   invalid material/batch comes into teh picture... so please could you ''Check for invalid material/batch combinations so they are not processed by the BDC in the program and correctly output in an exception report''
    *****************************CODE HERE*****************************
    S E L E C T I O N S C R E E N
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_file LIKE rlgrap-filename,
    p_arch LIKE rlgrap-filename. "RM080107
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_mode LIKE ctu_params-dismode DEFAULT 'N'.
    SELECTION-SCREEN END OF BLOCK b1.
    I N C L U D E S
    INCLUDE zwm_np_stock_recon_top.
    INCLUDE zwm_np_stock_recon_f01.
    I N I T I A L I Z A T I O N
    INITIALIZATION.
    PERFORM get_interface_filename USING c_interface_file p_file.
    PERFORM get_interface_filename USING c_archive_file p_arch."RM080107
    S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    PERFORM read_file USING p_file.
    PERFORM pre_processing.
    E N D O F S E L E C T I O N
    END-OF-SELECTION.
    PERFORM process_checks.
    IF w_no_change = 'X'.
    WRITE: / text-b03.
    WRITE: / sy-uline(34).
    ELSE.
    PERFORM bdc_mi09.
    PERFORM file_check_report.
    PERFORM bdc_report.
    ENDIF.
    PERFORM post_process_checks.
    *-- Move the processed file to archive directory
    PERFORM move_file.
    ...*************.........first include...................************
    INCLUDE ZWM_NP_STOCK_RECON_TOP *
    Data declaration ----------------------------------------------
    TYPES: st_rawdata(2000) TYPE c.
    TYPES: BEGIN OF st_stck_cnt,
    werks TYPE iseg-werks, "plant
    lgort TYPE iseg-lgort, "storage location
    matnr TYPE iseg-matnr, "material number
    charg TYPE iseg-charg, "batch
    vfdat TYPE mch1-vfdat, "Sell by date
    lwedt TYPE mch1-lwedt, "Manufacture date
    quarn(8) TYPE n, "qaunrantine quantity
    menge(8) TYPE n, "quantity on hand
    message(1), "Message Type (E/W/I)
    msg_txt TYPE t100-text, "Message Text
    zerostck(1), "Zero stock identifier "RM220307
    END OF st_stck_cnt.
    TYPES: BEGIN OF st_batch_errors,
    matnr TYPE iseg-matnr, "material number
    charg TYPE iseg-charg, "batch
    clabs TYPE mchb-clabs, "Stock Balance
    END OF st_batch_errors.
    DATA:
    t_rawdata TYPE TABLE OF st_rawdata,
    w_rawdata TYPE st_rawdata,
    t_stck_cnt TYPE TABLE OF st_stck_cnt,
    d_stck_cnt TYPE TABLE OF st_stck_cnt, "RM191006
    w_stck_cnt TYPE st_stck_cnt,
    t_batch_errors TYPE TABLE OF st_batch_errors,
    w_batch_errors TYPE st_batch_errors,
    t_messtab LIKE bdcmsgcoll OCCURS 0,
    w_messtab LIKE LINE OF t_messtab,
    w_no_change.
    CONSTANTS: c_interface_file(26) TYPE c VALUE 'ZNP_STOCK_RECON',
    c_archive_file(26) TYPE c
    VALUE 'ZNP_STOCK_RECON_ARCHIVE'. "RM080107
    .*************................second include..........************
    ***INCLUDE ZWM_NEXTPHARMA_STOKRECON_F01 .
    *& Form read_file
    reads NextPharma file sent through via webmethods
    -->P_FILENAME
    FORM read_file USING p_filename.
    CLEAR: t_rawdata,
    w_rawdata.
    REFRESH: t_rawdata.
    OPEN DATASET p_filename FOR INPUT IN TEXT MODE.
    IF sy-subrc <> 0.
    MESSAGE e720(01).
    ENDIF.
    DO.
    READ DATASET p_filename INTO w_rawdata.
    IF sy-subrc <> 0.
    EXIT.
    ELSE.
    APPEND w_rawdata TO t_rawdata.
    ENDIF.
    ENDDO.
    CLOSE DATASET p_filename.
    ENDFORM. " read_file
    *& Form pre_processing
    Read file values into internal table
    FORM pre_processing.
    DATA: lw_matnr TYPE iseg-matnr.
    LOOP AT t_rawdata INTO w_rawdata.
    lw_matnr = w_rawdata+21(20). "RM031006
    lw_matnr = w_rawdata+22(18). "RM031006
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
    input = lw_matnr
    IMPORTING
    output = lw_matnr
    EXCEPTIONS
    length_error = 1
    OTHERS = 2.
    MOVE: lw_matnr TO w_stck_cnt-matnr.
    w_stck_cnt-werks = w_rawdata+14(4).
    w_stck_cnt-lgort = w_rawdata+18(4).
    w_stck_cnt-charg = w_rawdata+84(25).
    w_stck_cnt-vfdat = w_rawdata+109(8).
    w_stck_cnt-lwedt = w_rawdata+117(8).
    w_stck_cnt-quarn = w_rawdata+141(8).
    w_stck_cnt-menge = w_rawdata+125(8).
    APPEND w_stck_cnt TO t_stck_cnt.
    CLEAR w_stck_cnt.
    ENDLOOP.
    SORT t_stck_cnt BY werks
    lgort
    matnr
    charg.
    DELETE ADJACENT DUPLICATES FROM t_stck_cnt.
    ENDFORM. " pre_processing
    *& Form bdc_mi09
    Run file data via BDC TCODE: MI09
    FORM bdc_mi09.
    DATA: t_bdcdata TYPE TABLE OF bdcdata,
    w_bdcdata TYPE bdcdata,
    lw_datum(10) TYPE c,
    lw_count(2) TYPE n.
    WRITE sy-datum TO lw_datum DD/MM/YYYY.
    Front Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0700'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Enter
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '/00'.
    APPEND w_bdcdata TO t_bdcdata.
    Count Date
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'RM07I-ZLDAT'.
    w_bdcdata-fval = lw_datum.
    APPEND w_bdcdata TO t_bdcdata.
    Document Date
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'RM07I-BLDAT'.
    w_bdcdata-fval = lw_datum.
    APPEND w_bdcdata TO t_bdcdata.
    Plant
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'IKPF-WERKS'.
    w_bdcdata-fval = w_stck_cnt-werks.
    APPEND w_bdcdata TO t_bdcdata.
    Storage Location
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'IKPF-LGORT'.
    w_bdcdata-fval = w_stck_cnt-lgort.
    APPEND w_bdcdata TO t_bdcdata.
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    Do not submit items with Errors against them
    CHECK w_stck_cnt-message NE 'E' AND
    w_stck_cnt-zerostck NE 'X'.
    "RM220307
    lw_count = lw_count + 1.
    Input Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0731'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Page Down
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '=P+'.
    APPEND w_bdcdata TO t_bdcdata.
    Material
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-MATNR(01)'.
    w_bdcdata-fval = w_stck_cnt-matnr.
    APPEND w_bdcdata TO t_bdcdata.
    Batch
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-CHARG(01)'.
    w_bdcdata-fval = w_stck_cnt-charg.
    APPEND w_bdcdata TO t_bdcdata.
    IF w_stck_cnt-menge NE 0.
    Quantity
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-ERFMG(01)'.
    w_bdcdata-fval = w_stck_cnt-menge.
    APPEND w_bdcdata TO t_bdcdata.
    *-- Begin RM220307 - We need to create an item when the quantity is zero
    *-- in file and is non-zero in SAP
    ELSE.
    Zero Stock indicator
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-XNULL(01)'.
    w_bdcdata-fval = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    *-- End RM220307
    ENDIF.
    ENDLOOP.
    CHECK lw_count NE 0.
    After all line items have been input
    Final Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0731'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Save Document
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '=BU'.
    APPEND w_bdcdata TO t_bdcdata.
    CALL TRANSACTION 'MI09' USING t_bdcdata
    MODE p_mode
    MESSAGES INTO t_messtab.
    ENDFORM. " bdc_mi09
    *& Form bdc_report
    Write BDC Messages.
    FORM bdc_report.
    DATA: lw_text TYPE t100-text.
    SKIP.
    WRITE: / text-b01.
    WRITE: / sy-uline(21).
    SKIP.
    Write BDC Messages
    LOOP AT t_messtab INTO w_messtab WHERE msgspra = sy-langu.
    MESSAGE ID w_messtab-msgid TYPE w_messtab-msgtyp
    NUMBER w_messtab-msgnr
    WITH w_messtab-msgv1
    w_messtab-msgv2
    w_messtab-msgv3
    w_messtab-msgv4
    INTO lw_text.
    WRITE: / lw_text.
    ENDLOOP.
    ENDFORM. " bdc_report
    *& Form process_checks
    Perform process check before creating BDC Session
    FORM process_checks.
    DATA: lw_clabs LIKE mchb-clabs,
    lw_menge LIKE mchb-clabs,
    lw_matnr LIKE mara-matnr,
    lw_charg LIKE mch1-charg,
    lw_fail,
    lw_vfdat TYPE mch1-vfdat,
    lv_sell TYPE c, "RM191006
    lv_qty(8) TYPE c. "RM191006
    CLEAR: d_stck_cnt[], d_stck_cnt. "RM191006
    Check if any of the stock figures differ from current stock figures
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    lw_menge = w_stck_cnt-menge.
    SELECT SINGLE clabs INTO lw_clabs
    FROM mchb
    WHERE matnr = w_stck_cnt-matnr
    AND werks = w_stck_cnt-werks
    AND lgort = w_stck_cnt-lgort
    AND charg = w_stck_cnt-charg.
    IF sy-subrc = 0.
    IF lw_clabs NE lw_menge.
    lw_fail = 'X'.
    *-- Begin RM220307 - Do not create PI item if the stock is zero in the
    *-- file and is zero in SAP
    EXIT.
    ELSEIF lw_clabs = 0 AND lw_menge = 0.
    w_stck_cnt-zerostck = 'X'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    ENDIF.
    *-- End RM220307
    ELSE.
    lw_fail = 'X'.
    ERROR
    ENDIF.
    ENDLOOP.
    If no differences are found set NO CHANGE Flag
    IF lw_fail NE 'X'.
    w_no_change = 'X'.
    EXIT.
    ENDIF.
    Check for Errors in file data
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    CLEAR lv_sell. "RM191006
    SELECT SINGLE matnr INTO lw_matnr
    FROM mara
    WHERE matnr = w_stck_cnt-matnr.
    IF sy-subrc NE 0.
    Invalid Material (E)
    w_stck_cnt-message = 'E'.
    w_stck_cnt-msg_txt = 'Invalid Material'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    ENDIF.
    SELECT SINGLE charg vfdat
    INTO (lw_charg, lw_vfdat)
    FROM mch1 "KOB01 - changed from MCHA
    WHERE matnr = w_stck_cnt-matnr
    AND charg = w_stck_cnt-charg.
    AND werks = w_stck_cnt-werks.
    IF sy-subrc NE 0.
    Invalid Material Batch (E)
    w_stck_cnt-message = 'E'.
    CONCATENATE 'Invalid Material Batch for plant' w_stck_cnt-werks
    INTO w_stck_cnt-msg_txt SEPARATED BY space.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    ELSE.
    IF w_stck_cnt-vfdat <> lw_vfdat.
    Sell by dates do not match (W)
    w_stck_cnt-message = 'W'.
    w_stck_cnt-msg_txt =
    'Sell by Date does not match Shelf life Expiry Date'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    lv_sell = 'X'. "RM191006
    CONTINUE. "RM191006
    ENDIF.
    ENDIF.
    IF w_stck_cnt-quarn > 0.
    Quarantine balance not Zero (W)
    w_stck_cnt-message = 'W'.
    *-- Begin RM191006
    *-- We do want all warning messages on the report
    lv_qty = w_stck_cnt-quarn.
    CONDENSE lv_qty NO-GAPS.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = lv_qty
    IMPORTING
    output = lv_qty.
    w_stck_cnt-msg_txt = 'Quarantine balance is not zero'.
    CONCATENATE 'Quarantine balance is ' lv_qty '- not zero'
    INTO w_stck_cnt-msg_txt SEPARATED BY space.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    IF lv_sell = 'X'.
    APPEND w_stck_cnt TO d_stck_cnt.
    CLEAR lv_sell.
    ELSE.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    ENDIF.
    *-- End RM191006
    ENDIF.
    ENDLOOP.
    *-- Begin RM191006
    *-- Finally get all the records into dummy table to report
    APPEND LINES OF t_stck_cnt TO d_stck_cnt.
    SORT d_stck_cnt.
    DELETE ADJACENT DUPLICATES FROM d_stck_cnt.
    *-- End RM191006
    ENDFORM. " process_checks
    *& Form file_check_report
    Write warning and Error messages from File checks
    FORM file_check_report.
    WRITE: /2 'Material',
    22 'Batch',
    32 'Sell By',
    45 'Message Text'.
    WRITE: /2 sy-uline(115).
    SKIP.
    LOOP AT t_stck_cnt INTO w_stck_cnt. "RM191006
    LOOP AT d_stck_cnt INTO w_stck_cnt. "RM191006
    CHECK w_stck_cnt-message NE ' '.
    WRITE: /2 w_stck_cnt-matnr,
    22 w_stck_cnt-charg,
    32 w_stck_cnt-vfdat,
    43 w_stck_cnt-message,
    45 w_stck_cnt-msg_txt.
    ENDLOOP.
    ENDFORM. " file_check_report
    *& Form post_process_checks
    Check Material Batches in SAP against NP File
    FORM post_process_checks.
    RANGES: r_matnr FOR mchb-matnr,
    r_lgort FOR mchb-lgort,
    r_werks FOR mchb-werks.
    SORT t_stck_cnt.
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    AT END OF matnr.
    r_lgort-sign = 'I'.
    r_lgort-option = 'EQ'.
    r_lgort-low = w_stck_cnt-lgort.
    APPEND r_lgort.
    r_werks-sign = 'I'.
    r_werks-option = 'EQ'.
    r_werks-low = w_stck_cnt-werks.
    APPEND r_werks.
    r_matnr-sign = 'I'.
    r_matnr-option = 'EQ'.
    r_matnr-low = w_stck_cnt-matnr.
    APPEND r_matnr.
    ENDAT.
    ENDLOOP.
    Select all material batches for NP Materials
    SELECT matnr charg clabs
    INTO TABLE t_batch_errors
    FROM mchb
    WHERE werks IN r_werks
    AND lgort IN r_lgort.
    IF sy-subrc EQ 0.
    Check if the Material Batches are in the NP file
    LOOP AT t_batch_errors INTO w_batch_errors.
    Disregard Batches without positive unrestricted stock
    IF w_batch_errors-clabs LE 0.
    DELETE t_batch_errors.
    CONTINUE.
    ENDIF.
    READ TABLE t_stck_cnt INTO w_stck_cnt
    WITH KEY matnr = w_batch_errors-matnr
    charg = w_batch_errors-charg.
    IF sy-subrc = 0.
    DELETE t_batch_errors.
    ENDIF.
    ENDLOOP.
    ENDIF.
    CHECK NOT t_batch_errors[] IS INITIAL.
    Write Batch chak results to report
    SKIP.
    WRITE: / text-b02.
    WRITE: / sy-uline(74).
    WRITE: /2 'Material',
    22 'Batch'.
    WRITE: /2 sy-uline(32).
    SKIP.
    LOOP AT t_batch_errors INTO w_batch_errors.
    WRITE: /2 w_batch_errors-matnr,
    22 w_batch_errors-charg.
    ENDLOOP.
    ENDFORM. " post_process_checks
    G E T _ I N T E R F A C E _ F I L E N A M E
    FORM get_interface_filename USING filename lw_path.
    DATA: i_file TYPE filename-fileintern,
    out_filename LIKE v_path-pathextern.
    CLEAR: out_filename.
    i_file = filename.
    get the interface filename to be used when creating file
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    logical_filename = i_file
    IMPORTING
    file_name = out_filename
    EXCEPTIONS
    file_not_found = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    MOVE out_filename TO lw_path.
    IF filename NE c_archive_file. "RM080107
    CONCATENATE lw_path 'NP_StockBalance.dat'
    INTO lw_path.
    *-- Begin RM080107 - Add timestamp to the archived file
    ELSE.
    CONCATENATE lw_path 'NP_StockBalance' sy-datum sy-uzeit '.dat'
    INTO lw_path.
    ENDIF.
    *-- End RM080107
    ELSE.
    ENDIF.
    ENDFORM. "get_interface_filename
    *& Form move_file RM080107
    Move the processed file to archive directory
    FORM move_file.
    *-- At last move the file to archive directory
    OPEN DATASET p_arch FOR OUTPUT IN TEXT MODE.
    IF sy-subrc = 0.
    LOOP AT t_rawdata INTO w_rawdata.
    TRANSFER w_rawdata TO p_arch.
    ENDLOOP.
    ENDIF.
    CLOSE DATASET p_arch.
    DELETE DATASET p_file.
    ENDFORM. " move_file

    Hi,
    S E L E C T I O N S C R E E N
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_file LIKE rlgrap-filename,
    p_arch LIKE rlgrap-filename. "RM080107
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_mode LIKE ctu_params-dismode DEFAULT 'N'.
    SELECTION-SCREEN END OF BLOCK b1.
    I N C L U D E S
    INCLUDE zwm_np_stock_recon_top.
    INCLUDE zwm_np_stock_recon_f01.
    I N I T I A L I Z A T I O N
    INITIALIZATION.
    PERFORM get_interface_filename USING c_interface_file p_file.
    PERFORM get_interface_filename USING c_archive_file p_arch."RM080107
    S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    PERFORM read_file USING p_file.
    PERFORM pre_processing.
    E N D O F S E L E C T I O N
    END-OF-SELECTION.
    PERFORM process_checks.
    IF w_no_change = 'X'.
    WRITE: / text-b03.
    WRITE: / sy-uline(34).
    ELSE.
    PERFORM bdc_mi09.
    PERFORM file_check_report.
    PERFORM bdc_report.
    ENDIF.
    PERFORM post_process_checks.
    *-- Move the processed file to archive directory
    PERFORM move_file.
    ...*************.........first include...................************
    INCLUDE ZWM_NP_STOCK_RECON_TOP *
    Data declaration ----------------------------------------------
    TYPES: st_rawdata(2000) TYPE c.
    TYPES: BEGIN OF st_stck_cnt,
    werks TYPE iseg-werks, "plant
    lgort TYPE iseg-lgort, "storage location
    matnr TYPE iseg-matnr, "material number
    charg TYPE iseg-charg, "batch
    vfdat TYPE mch1-vfdat, "Sell by date
    lwedt TYPE mch1-lwedt, "Manufacture date
    quarn(8) TYPE n, "qaunrantine quantity
    menge(8) TYPE n, "quantity on hand
    message(1), "Message Type (E/W/I)
    msg_txt TYPE t100-text, "Message Text
    zerostck(1), "Zero stock identifier "RM220307
    END OF st_stck_cnt.
    TYPES: BEGIN OF st_batch_errors,
    matnr TYPE iseg-matnr, "material number
    charg TYPE iseg-charg, "batch
    clabs TYPE mchb-clabs, "Stock Balance
    END OF st_batch_errors.
    DATA:
    t_rawdata TYPE TABLE OF st_rawdata,
    w_rawdata TYPE st_rawdata,
    t_stck_cnt TYPE TABLE OF st_stck_cnt,
    d_stck_cnt TYPE TABLE OF st_stck_cnt, "RM191006
    w_stck_cnt TYPE st_stck_cnt,
    t_batch_errors TYPE TABLE OF st_batch_errors,
    w_batch_errors TYPE st_batch_errors,
    t_messtab LIKE bdcmsgcoll OCCURS 0,
    w_messtab LIKE LINE OF t_messtab,
    w_no_change.
    CONSTANTS: c_interface_file(26) TYPE c VALUE 'ZNP_STOCK_RECON',
    c_archive_file(26) TYPE c
    VALUE 'ZNP_STOCK_RECON_ARCHIVE'. "RM080107
    .*************................second include..........************
    ***INCLUDE ZWM_NEXTPHARMA_STOKRECON_F01 .
    *& Form read_file
    reads NextPharma file sent through via webmethods
    -->P_FILENAME
    FORM read_file USING p_filename.
    CLEAR: t_rawdata,
    w_rawdata.
    REFRESH: t_rawdata.
    OPEN DATASET p_filename FOR INPUT IN TEXT MODE.
    IF sy-subrc <> 0.
    MESSAGE e720(01).
    ENDIF.
    DO.
    READ DATASET p_filename INTO w_rawdata.
    IF sy-subrc <> 0.
    EXIT.
    ELSE.
    APPEND w_rawdata TO t_rawdata.
    ENDIF.
    ENDDO.
    CLOSE DATASET p_filename.
    ENDFORM. " read_file
    *& Form pre_processing
    Read file values into internal table
    FORM pre_processing.
    DATA: lw_matnr TYPE iseg-matnr.
    LOOP AT t_rawdata INTO w_rawdata.
    lw_matnr = w_rawdata+21(20). "RM031006
    lw_matnr = w_rawdata+22(18). "RM031006
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
    input = lw_matnr
    IMPORTING
    output = lw_matnr
    EXCEPTIONS
    length_error = 1
    OTHERS = 2.
    MOVE: lw_matnr TO w_stck_cnt-matnr.
    w_stck_cnt-werks = w_rawdata+14(4).
    w_stck_cnt-lgort = w_rawdata+18(4).
    w_stck_cnt-charg = w_rawdata+84(25).
    w_stck_cnt-vfdat = w_rawdata+109(8).
    w_stck_cnt-lwedt = w_rawdata+117(8).
    w_stck_cnt-quarn = w_rawdata+141(8).
    w_stck_cnt-menge = w_rawdata+125(8).
    APPEND w_stck_cnt TO t_stck_cnt.
    CLEAR w_stck_cnt.
    ENDLOOP.
    SORT t_stck_cnt BY werks
    lgort
    matnr
    charg.
    DELETE ADJACENT DUPLICATES FROM t_stck_cnt.
    ENDFORM. " pre_processing
    *& Form bdc_mi09
    Run file data via BDC TCODE: MI09
    FORM bdc_mi09.
    DATA: t_bdcdata TYPE TABLE OF bdcdata,
    w_bdcdata TYPE bdcdata,
    lw_datum(10) TYPE c,
    lw_count(2) TYPE n.
    WRITE sy-datum TO lw_datum DD/MM/YYYY.
    <b>select single MATNR
                       WERKS
                       CHARG
               from MCHA
               into (l_matnr, l_werks, l_charg)
               where matnr = w_stck_cnt-matnr
                  and werks = w_stck_cnt-werks.
                  and charg =  w_stck_cnt-charg.
    if sy-subrc ne 0.
    continue.
    endif.</b>
    Front Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0700'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Enter
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '/00'.
    APPEND w_bdcdata TO t_bdcdata.
    Count Date
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'RM07I-ZLDAT'.
    w_bdcdata-fval = lw_datum.
    APPEND w_bdcdata TO t_bdcdata.
    Document Date
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'RM07I-BLDAT'.
    w_bdcdata-fval = lw_datum.
    APPEND w_bdcdata TO t_bdcdata.
    Plant
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'IKPF-WERKS'.
    w_bdcdata-fval = w_stck_cnt-werks.
    APPEND w_bdcdata TO t_bdcdata.
    Storage Location
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'IKPF-LGORT'.
    w_bdcdata-fval = w_stck_cnt-lgort.
    APPEND w_bdcdata TO t_bdcdata.
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    Do not submit items with Errors against them
    CHECK w_stck_cnt-message NE 'E' AND
    w_stck_cnt-zerostck NE 'X'.
    "RM220307
    lw_count = lw_count + 1.
    Input Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0731'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Page Down
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '=P+'.
    APPEND w_bdcdata TO t_bdcdata.
    Material
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-MATNR(01)'.
    w_bdcdata-fval = w_stck_cnt-matnr.
    APPEND w_bdcdata TO t_bdcdata.
    Batch
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-CHARG(01)'.
    w_bdcdata-fval = w_stck_cnt-charg.
    APPEND w_bdcdata TO t_bdcdata.
    IF w_stck_cnt-menge NE 0.
    Quantity
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-ERFMG(01)'.
    w_bdcdata-fval = w_stck_cnt-menge.
    APPEND w_bdcdata TO t_bdcdata.
    *-- Begin RM220307 - We need to create an item when the quantity is zero
    *-- in file and is non-zero in SAP
    ELSE.
    Zero Stock indicator
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'ISEG-XNULL(01)'.
    w_bdcdata-fval = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    *-- End RM220307
    ENDIF.
    ENDLOOP.
    CHECK lw_count NE 0.
    After all line items have been input
    Final Screen
    CLEAR w_bdcdata.
    w_bdcdata-program = 'SAPMM07I'.
    w_bdcdata-dynpro = '0731'.
    w_bdcdata-dynbegin = 'X'.
    APPEND w_bdcdata TO t_bdcdata.
    Save Document
    CLEAR w_bdcdata.
    w_bdcdata-fnam = 'BDC_OKCODE'.
    w_bdcdata-fval = '=BU'.
    APPEND w_bdcdata TO t_bdcdata.
    CALL TRANSACTION 'MI09' USING t_bdcdata
    MODE p_mode
    MESSAGES INTO t_messtab.
    ENDFORM. " bdc_mi09
    *& Form bdc_report
    Write BDC Messages.
    FORM bdc_report.
    DATA: lw_text TYPE t100-text.
    SKIP.
    WRITE: / text-b01.
    WRITE: / sy-uline(21).
    SKIP.
    Write BDC Messages
    LOOP AT t_messtab INTO w_messtab WHERE msgspra = sy-langu.
    MESSAGE ID w_messtab-msgid TYPE w_messtab-msgtyp
    NUMBER w_messtab-msgnr
    WITH w_messtab-msgv1
    w_messtab-msgv2
    w_messtab-msgv3
    w_messtab-msgv4
    INTO lw_text.
    WRITE: / lw_text.
    ENDLOOP.
    ENDFORM. " bdc_report
    *& Form process_checks
    Perform process check before creating BDC Session
    FORM process_checks.
    DATA: lw_clabs LIKE mchb-clabs,
    lw_menge LIKE mchb-clabs,
    lw_matnr LIKE mara-matnr,
    lw_charg LIKE mch1-charg,
    lw_fail,
    lw_vfdat TYPE mch1-vfdat,
    lv_sell TYPE c, "RM191006
    lv_qty(8) TYPE c. "RM191006
    CLEAR: d_stck_cnt[], d_stck_cnt. "RM191006
    Check if any of the stock figures differ from current stock figures
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    lw_menge = w_stck_cnt-menge.
    SELECT SINGLE clabs INTO lw_clabs
    FROM mchb
    WHERE matnr = w_stck_cnt-matnr
    AND werks = w_stck_cnt-werks
    AND lgort = w_stck_cnt-lgort
    AND charg = w_stck_cnt-charg.
    IF sy-subrc = 0.
    IF lw_clabs NE lw_menge.
    lw_fail = 'X'.
    *-- Begin RM220307 - Do not create PI item if the stock is zero in the
    *-- file and is zero in SAP
    EXIT.
    ELSEIF lw_clabs = 0 AND lw_menge = 0.
    w_stck_cnt-zerostck = 'X'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    ENDIF.
    *-- End RM220307
    ELSE.
    lw_fail = 'X'.
    ERROR
    ENDIF.
    ENDLOOP.
    If no differences are found set NO CHANGE Flag
    IF lw_fail NE 'X'.
    w_no_change = 'X'.
    EXIT.
    ENDIF.
    Check for Errors in file data
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    CLEAR lv_sell. "RM191006
    SELECT SINGLE matnr INTO lw_matnr
    FROM mara
    WHERE matnr = w_stck_cnt-matnr.
    IF sy-subrc NE 0.
    Invalid Material (E)
    w_stck_cnt-message = 'E'.
    w_stck_cnt-msg_txt = 'Invalid Material'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    ENDIF.
    SELECT SINGLE charg vfdat
    INTO (lw_charg, lw_vfdat)
    FROM mch1 "KOB01 - changed from MCHA
    WHERE matnr = w_stck_cnt-matnr
    AND charg = w_stck_cnt-charg.
    AND werks = w_stck_cnt-werks.
    IF sy-subrc NE 0.
    Invalid Material Batch (E)
    w_stck_cnt-message = 'E'.
    CONCATENATE 'Invalid Material Batch for plant' w_stck_cnt-werks
    INTO w_stck_cnt-msg_txt SEPARATED BY space.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    ELSE.
    IF w_stck_cnt-vfdat <> lw_vfdat.
    Sell by dates do not match (W)
    w_stck_cnt-message = 'W'.
    w_stck_cnt-msg_txt =
    'Sell by Date does not match Shelf life Expiry Date'.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    lv_sell = 'X'. "RM191006
    CONTINUE. "RM191006
    ENDIF.
    ENDIF.
    IF w_stck_cnt-quarn > 0.
    Quarantine balance not Zero (W)
    w_stck_cnt-message = 'W'.
    *-- Begin RM191006
    *-- We do want all warning messages on the report
    lv_qty = w_stck_cnt-quarn.
    CONDENSE lv_qty NO-GAPS.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = lv_qty
    IMPORTING
    output = lv_qty.
    w_stck_cnt-msg_txt = 'Quarantine balance is not zero'.
    CONCATENATE 'Quarantine balance is ' lv_qty '- not zero'
    INTO w_stck_cnt-msg_txt SEPARATED BY space.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    CONTINUE.
    IF lv_sell = 'X'.
    APPEND w_stck_cnt TO d_stck_cnt.
    CLEAR lv_sell.
    ELSE.
    MODIFY t_stck_cnt FROM w_stck_cnt.
    ENDIF.
    *-- End RM191006
    ENDIF.
    ENDLOOP.
    *-- Begin RM191006
    *-- Finally get all the records into dummy table to report
    APPEND LINES OF t_stck_cnt TO d_stck_cnt.
    SORT d_stck_cnt.
    DELETE ADJACENT DUPLICATES FROM d_stck_cnt.
    *-- End RM191006
    ENDFORM. " process_checks
    *& Form file_check_report
    Write warning and Error messages from File checks
    FORM file_check_report.
    WRITE: /2 'Material',
    22 'Batch',
    32 'Sell By',
    45 'Message Text'.
    WRITE: /2 sy-uline(115).
    SKIP.
    LOOP AT t_stck_cnt INTO w_stck_cnt. "RM191006
    LOOP AT d_stck_cnt INTO w_stck_cnt. "RM191006
    CHECK w_stck_cnt-message NE ' '.
    WRITE: /2 w_stck_cnt-matnr,
    22 w_stck_cnt-charg,
    32 w_stck_cnt-vfdat,
    43 w_stck_cnt-message,
    45 w_stck_cnt-msg_txt.
    ENDLOOP.
    ENDFORM. " file_check_report
    *& Form post_process_checks
    Check Material Batches in SAP against NP File
    FORM post_process_checks.
    RANGES: r_matnr FOR mchb-matnr,
    r_lgort FOR mchb-lgort,
    r_werks FOR mchb-werks.
    SORT t_stck_cnt.
    LOOP AT t_stck_cnt INTO w_stck_cnt.
    AT END OF matnr.
    r_lgort-sign = 'I'.
    r_lgort-option = 'EQ'.
    r_lgort-low = w_stck_cnt-lgort.
    APPEND r_lgort.
    r_werks-sign = 'I'.
    r_werks-option = 'EQ'.
    r_werks-low = w_stck_cnt-werks.
    APPEND r_werks.
    r_matnr-sign = 'I'.
    r_matnr-option = 'EQ'.
    r_matnr-low = w_stck_cnt-matnr.
    APPEND r_matnr.
    ENDAT.
    ENDLOOP.
    Select all material batches for NP Materials
    SELECT matnr charg clabs
    INTO TABLE t_batch_errors
    FROM mchb
    WHERE werks IN r_werks
    AND lgort IN r_lgort.
    IF sy-subrc EQ 0.
    Check if the Material Batches are in the NP file
    LOOP AT t_batch_errors INTO w_batch_errors.
    Disregard Batches without positive unrestricted stock
    IF w_batch_errors-clabs LE 0.
    DELETE t_batch_errors.
    CONTINUE.
    ENDIF.
    READ TABLE t_stck_cnt INTO w_stck_cnt
    WITH KEY matnr = w_batch_errors-matnr
    charg = w_batch_errors-charg.
    IF sy-subrc = 0.
    DELETE t_batch_errors.
    ENDIF.
    ENDLOOP.
    ENDIF.
    CHECK NOT t_batch_errors[] IS INITIAL.
    Write Batch chak results to report
    SKIP.
    WRITE: / text-b02.
    WRITE: / sy-uline(74).
    WRITE: /2 'Material',
    22 'Batch'.
    WRITE: /2 sy-uline(32).
    SKIP.
    LOOP AT t_batch_errors INTO w_batch_errors.
    WRITE: /2 w_batch_errors-matnr,
    22 w_batch_errors-charg.
    ENDLOOP.
    ENDFORM. " post_process_checks
    G E T _ I N T E R F A C E _ F I L E N A M E
    FORM get_interface_filename USING filename lw_path.
    DATA: i_file TYPE filename-fileintern,
    out_filename LIKE v_path-pathextern.
    CLEAR: out_filename.
    i_file = filename.
    get the interface filename to be used when creating file
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    logical_filename = i_file
    IMPORTING
    file_name = out_filename
    EXCEPTIONS
    file_not_found = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    MOVE out_filename TO lw_path.
    IF filename NE c_archive_file. "RM080107
    CONCATENATE lw_path 'NP_StockBalance.dat'
    INTO lw_path.
    *-- Begin RM080107 - Add timestamp to the archived file
    ELSE.
    CONCATENATE lw_path 'NP_StockBalance' sy-datum sy-uzeit '.dat'
    INTO lw_path.
    ENDIF.
    *-- End RM080107
    ELSE.
    ENDIF.
    ENDFORM. "get_interface_filename
    *& Form move_file RM080107
    Move the processed file to archive directory
    FORM move_file.
    *-- At last move the file to archive directory
    OPEN DATASET p_arch FOR OUTPUT IN TEXT MODE.
    IF sy-subrc = 0.
    LOOP AT t_rawdata INTO w_rawdata.
    TRANSFER w_rawdata TO p_arch.
    ENDLOOP.
    ENDIF.
    CLOSE DATASET p_arch.
    DELETE DATASET p_file.
    ENDFORM. " move_file
    Best regards,
    Prashant

Maybe you are looking for

  • SAP HANA Attribute View- Not able to add objects

    Hi All, I've created one attribute view in Modeler Perspective. Trying to add tables on data foundation using "Add Objects". But when table name is entered in pop-up window, it hangs (not-responding). And error log got created as below. I'm not able

  • How to stop a process chain after the current running process

    Hi experts, I try to stop a running process chain, but only at the end of the current process load. I try to unscheduled process chain : the job of the current process is killed and the process stop I try to execute the programm rspc_process_finsh :

  • Changing thinkvanta​ge key and fn+functio​n keys: How do you do it?

    I really hated the lenovo utilities, and decided not to reinstall them after  formatting. However, I do think that they put very useful fn+function keys, and would still like to use them, as well as the thinkvantage button. Functionally, I would like

  • Missing tools in tool drop

    I was trying to create headers and footers and went to tools but there is no document settings tool. All I have is find, print, settings and go to help. Am I missing something?

  • Scheduling workbooks using the command line

    Hi, can anyone tell me if it's possible to schedule workbooks in Discoverer using the command line interface? If so, could you point me in the direction of any relevant documentation? We've got 300+ reports to schedule on a regular basis and it would