External system returned different number of lines than received error

Hi,
While posting invoice in MIRO,i am getting the following error,
"External system returned different number of lines than received"
Please help in resolving this error.
Thanks
Srini

Hi,
Can you please check this sap note..
Note 1499319 - Ext system returned different number of lines than received
Regards

Similar Messages

  • External system Sales Order no and Line Item no in to BAPI_HU_CREATE

    Hi Friends
    Packing is done and Handling units are created in External System.
    For this requirement SAP ECC has to update Handling Units creation and  Materials Packing in to HU with reference External System Sales Order no and Line Item no.
    Could you please advice how & where to input External system Sales Order no and Line Item no in to BAPI_HU_CREATE Function Module while creating Handling Units in SAP ECC system.
    Thanks in Advance.
    SR

    Hi Guru
    Please help on this requirement.
    Thanks
    Ravi

  • IDOC's to external system in different queues.

    Our external system( non sap ) can accept IDOC's HRMD_A, I wanted to know is there a way I can send
    1.)Create
    2.)Change
    3.) Delete
    in three different queues from my SAP system. I have setup the distribution model where i have defined the sender and receiver and message type but I wanted to know is there a way if this can be achieved.
    Points will be awarded.
    Ankur

    Hi ankur,
    u can send the idoc to non-sap system
    when u execute an outbound process an ALE or EDI is processed
    using ALE u can send the idoc to non-sap system also
    Continued data exchange after a release upgrade without requiring special maintenance
    regards,
    sindhu

  • How do I use a different number for imessages than the one for my phone?

    I use two different phone numbers. My main number is not the one associated with my iphone. I want imessages to be sent from my primary number, not the one assigned by default by my phone. I see in settings where I can add another email address, but not where I can add another phone number. How can I change the default number to the one I actually want people to use?

    You can't add another phone number.

  • Two load balanced server sending requests to external system on different protocol

    Hi,
    I have two loadbalanced OEG servers (server A and server B) with same endpoint configurations in envsetting.props. But when requesting the service, it is creting different URI in both servers. In one of server (server A)it sets URI with following details :
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set host='abc.tdc.dk'
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set port='80'
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set scheme='https'
    and fails with following error : ERROR   30/Mar/2015:07:29:34.370 [92b0e940]         [SSL_connect, 0x1220]: error - SSLv2/v3 read server hello A.
    However another server (server B),sets URI as :
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set host='abc.tdc.dk'
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set port='80'
    DEBUG   30/Mar/2015:07:29:34.356 [92b0e940]     Set scheme='http'
    and successfully processes the request.
    So can you please help here to know even if we are using same endpoints configuration (abc.tdc.dk ) and port (80) on both the servers , then why the URL is set as http on one of server and https on another.
    Thanks !!!
    Akshay

    Hi
    Thanks for immediate respose. I tried the ping/acknowledgement example in the biginning itself. It doesn't work. I also tried by changing the agents ( to respective values suitable for my systems) of that example. Then also it failed. The error in that case also same. The message will not propogate from the out going agent.

  • Query returning different number of rows standalone vs insert statement

    Hi,
    We are using Oracle 10g. We are facing a issue where a SELECT inserts 26294 rows when used with a insert statement. The same select (cut-and-paste) when executed standalone, returns only 60 rows. Any idea what could be causing this?
    Thanks in advance,
    Hari Narayanan
    TIAA-CREF
    See details below,
    SQL> INSERT INTO cref.position_recon_breaks (
    2 effective_date,
    3 fund_entity_id,
    4 security_alias,
    5 accounting_system,
    6 pace_shares,
    7 accounting_sys_shares,
    8 accounting_sys_unp_trd_shares
    9 )
    10 SELECT pr.effective_date,
    11 pr.ENTITY_ID,
    12 pr.SECURITY_ALIAS,
    13 'MELLON',
    14 CREF_SHARES PACE_SHARES,
    15 CORP_SHARES ACCOUNTING_SYS_SHARES,
    16 CORP_UNP_TRD_SHARES ACCOUNTING_SYS_UNP_TRD_SHARES
    17 FROM cref.MELLON_POSITION_RECON pr
    18 WHERE ABS(SHARES_DIFFERENCE) >= 1;
    25294 rows created.
    SQL> select count(*) from
    2 (SELECT pr.effective_date,
    3 pr.ENTITY_ID,
    4 pr.SECURITY_ALIAS,
    5 'MELLON',
    6 CREF_SHARES PACE_SHARES,
    7 CORP_SHARES ACCOUNTING_SYS_SHARES,
    8 CORP_UNP_TRD_SHARES ACCOUNTING_SYS_UNP_TRD_SHARES
    9 FROM cref.MELLON_POSITION_RECON pr
    10 WHERE ABS(SHARES_DIFFERENCE) >= 1);
    COUNT(*)
    60

    charred/jzhang,
    Thanks for your responses. Just as an additional info, MELLON_POSITION_RECON is one hell of a view - not written by me :) - with unions and inline queries.
    If it would be of any help, here is the script,
    CREATE OR REPLACE FORCE VIEW CREF.MELLON_POSITION_RECON
    (EFFECTIVE_DATE, FUND_CODE, ENTITY_ID, ENTITY_NAME, SECURITY_ALIAS,
    SECURITY_NAME, PRIMARY_ASSET_ID, CREF_SECURITY_COUNT, CORP_SECURITY_COUNT, CREF_CURRENCY_CODE,
    CORP_CURRENCY_CODE, CREF_EXCHANGE_RATE, CORP_EXCHANGE_RATE, CREF_SHARES, CORP_SHARES,
    CREF_PRICE_LOCAL, CORP_PRICE_LOCAL, CREF_MARKET_VALUE_USD, CORP_MARKET_VALUE_USD, CREF_MARKET_VALUE_LOCAL,
    CORP_MARKET_VALUE_LOCAL, CREF_ACCRUED_INCOME_USD, CORP_ACCRUED_INCOME_USD, CORP_UNP_TRD_MARKET_VALUE, CORP_UNP_TRD_SHARES,
    SHARES_DIFFERENCE, SHARES_DIFF_INCL_UNP, LOCAL_PRICE_DIFFERENCE, MKT_VALUE_USD_DIFF, MKT_VALUE_USD_DIFF_INCL_UNP,
    ACCRUED_INCOME_DIFF)
    AS
    SELECT /*+ ORDERED */
    P.EFFECTIVE_DATE
    ,E.CODE FUND_CODE
    ,P.ENTITY_ID
    ,E.LONG_NAME ENTITY_NAME
    ,P.SECURITY_ALIAS
    ,S.ISSUE_NAME SECURITY_NAME
    ,S.PRIMARY_ASSET_ID
    ,P.CREF_SECURITY_COUNT
    ,P.CORP_SECURITY_COUNT CORP_SECURITY_COUNT
    ,P.CREF_CURRENCY_CODE
    ,P.CORP_CURRENCY_CODE CORP_CURRENCY_CODE
    ,P.CREF_EXCHANGE_RATE
    ,P.CORP_EXCHANGE_RATE CORP_EXCHANGE_RATE
    ,P.CREF_SHARES
    ,P.CORP_SHARES CORP_SHARES
    ,P.CREF_PRICE_LOCAL
    ,P.CORP_PRICE_LOCAL CORP_PRICE_LOCAL
    ,ROUND(P.CREF_MARKET_VALUE_USD,2) CREF_MARKET_VALUE_USD
    ,P.CORP_MARKET_VALUE_USD CORP_MARKET_VALUE_USD
    ,ROUND(P.CREF_MARKET_VALUE_LOCAL,2) CREF_MARKET_VALUE_LOCAL
    ,P.CORP_MARKET_VALUE_LOCAL CORP_MARKET_VALUE_LOCAL
    ,ROUND(P.CREF_ACCRUED_INCOME_USD,2) CREF_ACCRUED_INCOME_USD
    ,P.CORP_ACCRUED_INCOME_USD
    ,P.CORP_UNP_TRD_MARKET_VALUE
    ,P.CORP_UNP_TRD_SHARES
    ,NVL(P.CORP_SHARES, 0) - NVL(P.CREF_SHARES, 0) SHARES_DIFFERENCE
    ,NVL(P.CORP_SHARES,0) +
    (NVL(P.CORP_UNP_TRD_SHARES, 0) - NVL(P.CREF_SHARES, 0)) SHARES_DIFF_INCL_UNP
    ,NVL(P.CREF_PRICE_LOCAL, 0) - NVL(P.CORP_PRICE_LOCAL, 0) LOCAL_PRICE_DIFFERENCE
    ,NVL(ROUND(P.CREF_MARKET_VALUE_USD,2),0) - NVL(P.CORP_MARKET_VALUE_USD,0) MKT_VALUE_USD_DIFF
    ,NVL(ROUND(P.CREF_MARKET_VALUE_USD,2),0) -
    (NVL(P.CORP_MARKET_VALUE_USD, 0) + NVL(P.CORP_UNP_TRD_MARKET_VALUE,0)) MKT_VALUE_USD_DIFF_INCL_UNP
    ,NVL(ROUND(P.CREF_ACCRUED_INCOME_USD,2),0) - NVL(P.CORP_ACCRUED_INCOME_USD, 0) ACCRUED_INCOME_DIFF
    FROM
    SELECT ENTITY_ID
    ,EFFECTIVE_DATE
    ,SECURITY_ALIAS
    ,SUM(CREF_SECURITY_COUNT) CREF_SECURITY_COUNT
    ,SUM(CORP_SECURITY_COUNT) CORP_SECURITY_COUNT
    ,MAX(CREF_CURRENCY_CODE) CREF_CURRENCY_CODE
    ,MAX(CORP_CURRENCY_CODE) CORP_CURRENCY_CODE
    ,MAX(CREF_EXCHANGE_RATE) CREF_EXCHANGE_RATE
    ,MAX(CORP_EXCHANGE_RATE) CORP_EXCHANGE_RATE
    ,SUM(CREF_SHARES) CREF_SHARES
    ,SUM(CORP_SHARES) CORP_SHARES
    ,MAX(CREF_PRICE_LOCAL) CREF_PRICE_LOCAL
    ,MAX(CORP_PRICE_LOCAL) CORP_PRICE_LOCAL
    ,SUM(CREF_MARKET_VALUE_USD) CREF_MARKET_VALUE_USD
    ,SUM(CORP_MARKET_VALUE_USD) CORP_MARKET_VALUE_USD
    ,SUM(CREF_MARKET_VALUE_LOCAL) CREF_MARKET_VALUE_LOCAL
    ,SUM(CORP_MARKET_VALUE_LOCAL) CORP_MARKET_VALUE_LOCAL
    ,SUM(CREF_ACCRUED_INCOME_USD) CREF_ACCRUED_INCOME_USD
    ,SUM(CORP_ACCRUED_INCOME_USD) CORP_ACCRUED_INCOME_USD
    ,MIN(QUERY_TIMESTAMP) QUERY_TIMESTAMP
    ,SUM(CORP_UNP_TRD_MARKET_VALUE) CORP_UNP_TRD_MARKET_VALUE
    ,SUM(CORP_UNP_TRD_SHARES) CORP_UNP_TRD_SHARES
    FROM
    SELECT -- WANT ONE ROW PER FUND PER SECURITY
    /*+ index(p I_POS_ENTID_SRCINTFC_CREF) index (pd) */
    E.FUND_ENTITY_ID ENTITY_ID
    ,P.EFFECTIVE_DATE
    ,PD.SECURITY_ALIAS
    ,SYSDATE QUERY_TIMESTAMP
    ,1 CREF_SECURITY_COUNT
    ,MAX(PD.LOCAL_CURRENCY) CREF_CURRENCY_CODE
    ,MAX(PD.MKT_EXCHANGE_RATE) CREF_EXCHANGE_RATE
    ,SUM(PD.SHARE_PAR_VALUE) CREF_SHARES
    ,MAX(PD.PRICE) CREF_PRICE_LOCAL
    ,SUM(PD.MARKET_VALUE) CREF_MARKET_VALUE_USD
    ,SUM(PD.LOCAL_MARKET_VALUE) CREF_MARKET_VALUE_LOCAL
    ,SUM(PD.ACCRUED_INCOME) CREF_ACCRUED_INCOME_USD
    ,0 CORP_SECURITY_COUNT
    ,TO_CHAR(NULL) CORP_CURRENCY_CODE
    ,0 CORP_SHARES
    ,TO_NUMBER(NULL) CORP_PRICE_LOCAL
    ,TO_NUMBER(NULL) CORP_EXCHANGE_RATE
    ,0 CORP_MARKET_VALUE_USD
    ,0 CORP_MARKET_VALUE_LOCAL
    ,0 CORP_ACCRUED_INCOME_USD
    ,0 CORP_UNP_TRD_MARKET_VALUE
    ,0 CORP_UNP_TRD_SHARES
    FROM CREF.ENTITY E,
    CREF.ENTITY EF                fund entity       NF
    ,HOLDINGDBO.POSITION P
    ,(SELECT MAX(EFFECTIVE_DATE) CURRENT_DATE
    FROM HOLDINGDBO.POSITION P,
    PACE_MASTERDBO.INTERFACES I
    WHERE I.SHORT_DESC = 'MELLON'
    AND I.INSTANCE = P.SRC_INTFC_INST) DT
    ,HOLDINGDBO.POSITION_DETAIL PD
    ,PACE_MASTERDBO.INTERFACES I
    WHERE E.PORTFOLIO_ENTITY_TYPE_CODE = 'PORT'
    AND E.ENTITY_ID = P.ENTITY_ID
    AND EF.ENTITY_ID = E.FUND_ENTITY_ID           -- NF
    AND EF.ACCOUNTING_SYSTEM = 'MELLON'      -- NF
    AND E.ENTITY_ID = P.ENTITY_ID
    AND I.SHORT_DESC = 'STARDIRECT'
    AND I.INSTANCE = P.SRC_INTFC_INST
    AND P.EFFECTIVE_DATE = DT.CURRENT_DATE
    AND P.POSITION_ID = PD.POSITION_ID
    -- "GROUP BY" COMBINES THE LONG AND SHORT POSITIONS
    GROUP BY P.EFFECTIVE_DATE, E.FUND_ENTITY_ID, PD.SECURITY_ALIAS
    UNION ALL
    SELECT -- CORPORATE SENDS ONE ROW PER FUND PER SECURITY (NO SHORTS)
    /*+ index(p I_POS_ENTID_SRCINTFC_CREF) index (pd) */
    E.ENTITY_ID
    ,P.EFFECTIVE_DATE
    ,PD.SECURITY_ALIAS
    ,SYSDATE QUERY_TIMESTAMP
    ,0 CREF_SECURITY_COUNT
    ,TO_CHAR(NULL) CREF_CURRENCY_CODE
    ,0 CREF_SHARES
    ,TO_NUMBER(NULL) CREF_PRICE_LOCAL
    ,TO_NUMBER(NULL) CREF_EXCHANGE_RATE
    ,0 CREF_MARKET_VALUE_USD
    ,0 CREF_MARKET_VALUE_LOCAL
    ,0 CREF_ACCRUED_INCOME_USD
    ,1 CORP_SECURITY_COUNT
    ,PD.LOCAL_CURRENCY CORP_CURRENCY_CODE
    ,PD.SHARE_PAR_VALUE CORP_SHARES
    ,PD.PRICE CORP_PRICE_LOCAL
    ,pd.mkt_exchange_rate CORP_EXCHANGE_RATE
    ,PD.MARKET_VALUE CORP_MARKET_VALUE_USD
    ,PD.LOCAL_MARKET_VALUE CORP_MARKET_VALUE_LOCAL
    ,PD.ACCRUED_INCOME CORP_ACCRUED_INCOME_USD
    ,0 CORP_UNP_TRD_MARKET_VALUE
    ,0 CORP_UNP_TRD_SHARES
    FROM CREF.ENTITY E
    ,HOLDINGDBO.POSITION P
    ,(SELECT MAX(EFFECTIVE_DATE) CURRENT_DATE
    FROM HOLDINGDBO.POSITION P,
    PACE_MASTERDBO.INTERFACES I
    WHERE I.SHORT_DESC = 'MELLON'
    AND I.INSTANCE = P.SRC_INTFC_INST) DT
    ,HOLDINGDBO.POSITION_DETAIL PD
    ,PACE_MASTERDBO.INTERFACES I
    WHERE E.FUND_FLAG = 'Y' --
    AND E.ENTITY_ID = P.ENTITY_ID
    AND I.SHORT_DESC = 'MELLON'
    AND I.INSTANCE = P.SRC_INTFC_INST
    AND P.EFFECTIVE_DATE = DT.CURRENT_DATE
    AND P.POSITION_ID = PD.POSITION_ID
    UNION ALL
    SELECT
    UTS.FUND_ENTITY_ID ENTITY_ID
    ,UTS.EFFECTIVE_DATE
    ,UTS.SECURITY_ALIAS
    ,SYSDATE QUERY_TIMESTAMP
    ,0 CREF_SECURITY_COUNT
    ,TO_CHAR(NULL) CREF_CURRENCY_CODE
    ,0 CREF_SHARES
    ,TO_NUMBER(NULL) CREF_PRICE_LOCAL
    ,TO_NUMBER(NULL) CREF_EXCHANGE_RATE
    ,0 CREF_MARKET_VALUE_USD
    ,0 CREF_MARKET_VALUE_LOCAL
    ,0 CREF_ACCRUED_INCOME_USD
    ,0 CORP_SECURITY_COUNT
    ,TO_CHAR(NULL) CORP_CURRENCY_CODE
    ,0 CORP_SHARES
    ,TO_NUMBER(NULL) CORP_PRICE_LOCAL
    ,TO_NUMBER(NULL) CORP_EXCHANGE_RATE
    ,0 CORP_MARKET_VALUE_USD
    ,0 CORP_MARKET_VALUE_LOCAL
    ,0 CORP_ACCRUED_INCOME_USD
    ,UTS.SUM_MARKET_VALUE CORP_UNP_TRD_MARKET_VALUE
    ,UTS.SUM_SHARES CORP_UNP_TRD_SHARES
    FROM
    (SELECT MAX(EFFECTIVE_DATE) CURRENT_DATE
    FROM HOLDINGDBO.POSITION P,
    PACE_MASTERDBO.INTERFACES I
    WHERE I.SHORT_DESC = 'MELLON'
    AND I.INSTANCE = P.SRC_INTFC_INST) DT
    ,cref.UNPROCESSED_TRADES_SUM UTS
    WHERE DT.CURRENT_DATE = UTS.EFFECTIVE_DATE
    AND UTS.UPDATED_BY = 'MELLON'
    GROUP BY EFFECTIVE_DATE, ENTITY_ID, SECURITY_ALIAS
    ) P,
    cref.ENTITY E,
    SECURITYDBO.SECMASTER_HISTORY S
    WHERE P.ENTITY_ID = E.ENTITY_ID
    AND P.SECURITY_ALIAS = S.SECURITY_ALIAS
    AND S.SRC_INTFC_INST = (SELECT INSTANCE FROM PACE_MASTERDBO.INTERFACES
    WHERE SHORT_DESC = 'EAGLE PACE')
    AND S.EFFECTIVE_DATE = (SELECT MAX(S1.EFFECTIVE_DATE)
    FROM SECURITYDBO.SECMASTER_HISTORY S1
    WHERE S1.SRC_INTFC_INST = S.SRC_INTFC_INST
    AND S1.SECURITY_ALIAS = S.SECURITY_ALIAS
    AND S1.EFFECTIVE_DATE <= P.EFFECTIVE_DATE);

  • Mysql query returns different number of records from coldfusion and navicat

    Hi
    I'm hoping that someone can suggest a basic strategy to debug this.
    I have a fairly large and complicated query that is executed by a function in a cfc.
    It returns (for example) 100 rows.
    If I use cfdump and then copy and paste the SQL of the query (with the variables, of course) into Navicat and execute exactly the same query on the same mySQL database, it returns 130 rows.
    Same SQL string, same database, same data - the only difference is that in one instance Navicat submits the query and in the other, Coldfusion does.
    Has anyone ever had anything like this happen before?

    Ok I found my own bug. Of *course* the sql queries were not identical.. they could not possibly have been. My mistake was thinking that they were.
    The problem was part of the WHERE clause:
    AND orderid in (500,503,505)
    In the coldfusion code this was
    AND orderid in (<cfqueryparam cfsqltype="cf_sql_varchar" value="#lstOrderID#">)
    which of course rendered in mySQL as AND orderid in ('500,503,505')
    This was not immediately apparent as the cfdump returns this as AND orderid in (?) with the variable in the array below.

  • Automator returns different BASH script result than Terminal-

    Hello all,
    I didn't find an Automator section for OS X 10.6, so I hope this is the proper place to post a question.
    Objective:
    Right-click on a file, have a Workflow return a TextEdit document or the ClipBoard with the SHA1 hash for that file. I want to bypass opening Terminal every time I have to verify a file's SHA1 hash.
    Difficulty:
    The SHA1 output from Workflow is not the same as the SHA1 output from the Terminal. Both cases are supposed to run this command:
    /usr/bin/openssl sha1 <path and name of file>
    Steps taken:
    So far, I created a simple Workflow as follows:
    Get Selected Finder Items
    New TextEdit Document
    Run (bash) Shell Script (to stdin): /usr/bin/openssl sha1 $1
    Set Contents of TextEdit Document (Appending)
    The output from the Workflow looks like this:
    4313214a162ed89e5180a7c47a8b0fe2e17801bd
    The Terminal output looks like this:
    SHA1(Screen shot 2010-03-31 at 2.35.08 PM.png)= 525cf5fb1f6e124a24cb4282a09851ca94d177ba
    It is clear that these two hashes are not the same. What I don't get is, why?
    Any help here would be greatly appreciated.

    Just so others can also benefit from my efforts, I have found the solution and wanted to share.
    The Workflow should look like this:
    New TextEdit Document
    Get Selected Finder Items
    Run (Bash) Shell Script (as arguments)
    Set Contents of TextEdit Document
    The bash shell script should look like this:
    /usr/bin/openssl sha1 "$@"; echo "" 2>&1
    /usr/bin/openssl sha "$@"; echo "" 2>&1
    /usr/bin/openssl md5 "$@"; echo "" 2>&1
    /usr/bin/openssl md4 "$@" 2>&1
    This will make a very nice output that looks like this:
    SHA1(/Users/andrew-grant/Desktop/Home Budgets.fp7)= 59b35dec0dacf9c5f85ec86ded20c385bdc69f30
    SHA1(/Users/andrew-grant/Desktop/CHKTAPE.LZW)= 8adf0dd993569c576cfbc1a973e5f3bc2e21533a
    SHA(/Users/andrew-grant/Desktop/Home Budgets.fp7)= e9ed0f4a006262ab364069b455e459052e909cab
    SHA(/Users/andrew-grant/Desktop/CHKTAPE.LZW)= 01fde6202b0df4d7d8a3f726a5d7681ffc3863ee
    MD5(/Users/andrew-grant/Desktop/Home Budgets.fp7)= 01ab9a63aea217fa0ee11a28a4d23eeb
    MD5(/Users/andrew-grant/Desktop/CHKTAPE.LZW)= b388e3333a84fe3e821f7c4e1f236950
    MD4(/Users/andrew-grant/Desktop/Home Budgets.fp7)= ef2746d7f3fd41f1846fe950ea79a856
    MD4(/Users/andrew-grant/Desktop/CHKTAPE.LZW)= 9db75e3347e5e5b446e54b7b883e558d
    I hope this helps the next person looking for something similar.

  • How to get the number of lines of a file?

    Folks:
    Is there a way to get the number of lines of a text file? I don't know if there is an existing method to do that.
    Thanks a lot.

    HI
    I found some solution
    other than increment loop and all
    here is the code it might helpful to u
    //returns the number of lines in a file
    //author : Ravindra S
    //Symphony software Hyderabad
    try
    RandomAccessFile randFile = new RandomAccessFile(csvFile,"r");
    long lastRec=randFile.length();
    randFile.close();
    FileReader fileRead = new FileReader(csvFile);
    LineNumberReader lineRead = new LineNumberReader(fileRead);
    lineRead.skip(lastRec);
    countRec=lineRead.getLineNumber()-1;
    fileRead.close();
    lineRead.close();
    catch(IOException e)

  • Script to determine number of lines of text in a paragraph?

    I'm revisiting an issue I first posted here last summer, thanks to all who offered help, but I've not been able to sort it out.
    http://forums.adobe.com/thread/455526?tstart=0
    What I'm after is  a 'search function' to insert into a FindChangeByList.
    Jongware suggested the following - but when inserted into my list I can't get it to do anything - it doesn't throw up a Javascript error.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    I regularly receive a 'word' document on which I run a 'FindChangeByList' which cleans up and formats the text with a number of GREP/text searches.
    One of the search lines converts a particluar string of text to a paragraph style "Callout_3" (the most common occurence of Callouts).
    This style applies a paragraph rule, above and below the line, to create a coloured block/band out of which said text is reveresed.
    The problem that I have is that the style (because of the paragraph rules), only works correctly if the paragraph has x3 lines of text.
    I have styles set up for every other eventuality - Callout_1 (for single line of text), Callout_2 (for x2 lines of text) etc.
    What I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly to the number of lines in each paragraph/Callout.
    Any further thoughts?
    Steve

    Hi Steve!
    Well, I said it was untested ... Found two major errors. First one is also visible when you manually search for the style "Callout_3". Rather than marking each and every paragraph on its own, InDesign gathers as much as possible. Hence, just testing paragraph[0] would miss out all other paragraphs. Explicitly looping over all paragraphs per "found item" does work.
    The other one is sort of a "syntax" error. Merely testing "lines == 2" does not work -- but it doesn't give an error either! Apparently, it's okay to compare an object ("lines") to a number, even though it doesn't work. The property to check is "lines.length" -- that returns the number of lines for a paragraph.
    Putting it all together results in this script.
    'And now I shall test it,' said Wen. This time he twisted it gently to and fro. 'That si-si-si That simple-ple, eh eheh simple, eh?'
    ... And I tested it.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    for (var j=0; j<foundItems[i].paragraphs.length; j++)
      if (foundItems[i].paragraphs[j].lines.length == 2)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[j].lines.length == 1)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_1";

  • Different number of records in RSA3 for Full and INIT

    Hi All,
    I am about to load the data from 0FI_GL_4 and checked it in RSA3 for the number of records. It returned different number of records when I run the extract with options 'F' and 'C'. Why is it so? This is the first time I am loading the data into BW for this datasource. I would expect the number of records to be same if I do either a full extract or an init but surprised by seeing different number of records.
    Best Regards,
    James.

    Hi James,
    Probably it's because of the time stamps stored in table BWOM2_TIMEST.
    If you run a delta init and than a delta update then the number of the records should match with the record of the full update.
    You can find some more info about table BWOM2_TIMEST here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a7f2f294-0501-0010-11bb-80e0d67c3e4a#527,7,Timestamp%20Mechanism:%20New%20documents
    Bye,
         Zsolt

  • SSIS OLE DB Source in Data Flow Task calling SP that returns variable number of column as output

    We have one old Stored Proc that I need to reuse. But that stored proc returns different number of Columns as output depending on input Parameter. Say, if I pass 1 to 9 it will return 'ID', if i pass 10 to 33 it will return 'ID', 'Name',  if I pass
    34 to 51 it will return 'ID', 'Name', 'DefaultPosition' 
    In this way.
    Now I wanted to use this in OLE DB Source in SSIS DFT. 
    During that time immediately it is picking all possible columns in Available External Columns. Even if I manually select/delete those, package is failing at Runtime, because in Runtime the parameter this will get, it should always return one & only one
    column which is ID. [Because in this package I will only have to pass parameters like, 1 or 2 or 5 or 7 or 9.
    Which in every  case should return only ID from stored proc.
    Any Idea how I can get this please?
    Regards, Avik M.

    Has any one tried something like it? Could you please provide me a sample if you have done it.
    I tried these options but always got errors as
    [usp_return [64]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E55.An OLE DB record is available.  Source:
    "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E55  Description: "Column does not exist.".
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "usp_return" (64) returned error code 0xC0202009.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning
    of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    ~ Thank you so much
    Regards, Avik M.

  • Production Order and external system non-SAP

    Dear Friends,
    I need to send a Production Order to a external system no SAP, and upload the information back to SAP,
    SAP does something standard to accomplish this task?
    To send Production Order, I created an IDOC with report RCCLORD, this IDOC contains all information of a production order (AUFNR, WERKS,..) and all operations and materials. But I don't know how to process the information returned.
    Also I have read some information about the interface PP-PDC, but I don't know how to use it.
    Please, Can anyone tell me the best way to accomplish this task?
    this is the scenario:
    SAP R/3 -
    > Production Order -
    > External System
    External System -
    > Return information about Production Order -
    > SAP R/3
    Thanks!

    Hi,
    PP-PDC is for confirmations only, see further details
    http://help.sap.com/erp2005_ehp_05/helpdata/en/31/fcbd3411d411d3b6b60000e8359890/frameset.htm
    maybe usage of POI is an option for you. See details here
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/1a/0e347b539911d1898b0000e8322d00/frameset.htm
    BR Sabine

  • Number of lines in a file

    Is there a method that returns the number of lines in a text file? I'm trying to make an array of arrays, with each inner array holding 4 strings from 4 consecutive lines from a file, and the outer array holding every one of those arrays that are possible in the file. I can't anticipate the amount of 4-line blocks im going to have tho, so i need something that returns the number of lines available and divides that by four. I'll then populate the outer array by looping that many times. If any of that made sense...

    Is there a method that returns the number of lines in
    a text file? I'm trying to make an array of arrays,
    with each inner array holding 4 strings from 4
    consecutive lines from a file, and the outer array
    holding every one of those arrays that are possible
    in the file. I can't anticipate the amount of 4-line
    blocks im going to have tho, so i need something that
    returns the number of lines available and divides
    that by four. I'll then populate the outer array by
    looping that many times. If any of that made sense...You would do better to use java.util.List implementations such as ArrayList and LinkedList then you don't need to know the number of lines.

  • Different PO item number in SAP and in external system

    We are sending Purchase Orders to external system via Idoc and receiving dispatch advices (Inbound delivery) from the external systems via Idoc. In SAP PO line items are numbered as 10,20,30....... In the external system the line items are numbered as 1,2,3........
    So when Inbound delivery is received into SAP from external system it is failing due to line item numbers are not matching.
    I got info that this issue can be resolved by using fields E1EDL24-POSNR and E1EDL24-POSEX correctly. I do not know exactly how.The Idoc type used is DESADV.
    Please help with this issue.

    You can see these fields in WE02 when you process with your idoc number.If you want to edit idoc POsnr from 1...10 then you can edit idoc through we19 transaction.
    If you want perminanat solution then check with ABAPer to pass one zero after line item number as your external system passes 1,2....10..etc.
    This can possible check with your technical team.

Maybe you are looking for