Query related to write() and setsockopt()

Hi ,
This query is based on Solaris10. I will just brief out the issue and also the information which I am seeking. Here I am creating a TCP socket, and then increasing the socket buffer by using setsockopt(). Here is the call "setsockopt(fd, SOL_SOCKET, SO_SNDBUF,&txBufSize, sizeof(txBufSize))" . Here txbufsize is nothing but an integer that has a value equal to 65536.
Here I am writing some data by using the write system call like "write(fd, (char*) pData, (int) length));" Here The logic is to write to the socket fd, by using the above write () the pData of length 204 bytes continously for 40 times in a second. That means in a second maximum possibility of writing to the socket buffer is 204*40 ie. 8160 bytes.
The issue is after writing 8 to 9 times, that is after a successful write of around 1836 bytes of data (9 times * with 204 bytes each), write is failing with an error number "EWOULDBLOCK". The man page is giving an information that error code indicating that there is no free room available in the socket transmit buffer. But as I said earlier the buffer which I send so far is only 1836 bytes, also the socket buffer which I have allocated by using 'setsockopt' is 65536 which is much higher value.
Here what I am looking for is two things.
1. Does anybody has any insight why this write() is failing with EWOULDBLOCK, the same code was working fine in Solaris 8 as well as in 9. The same code is recently ported to Solaris10. This behaviour is observed only in Solaris10.
2. Is there any way I can debug how much buffer is already written or how much buffer is still free to use for writing, before I initiate a write(). It would be really great if anyone can point out a debugging tool or is there any way I can instrument the code with proper logs to print out the buffer each time before the write() call.
Thanks,
Sree

Actually, there was a typo in the bigAdmin article. The tunable parameter in question is actually called
tcp_fusion_rcv_unread_min
and is set in /etc/system as follows:
set ip:tcp_fusion_rcv_unread_min=0
The parameter description is:
This is the minimum amount of outstanding writes allowed on a synchronous streams-enabled receiving endpoint before the sender gets flow-controlled. Setting this value to 0 means that the data block limit is equivalent to the byte count limit, which essentially disables the check. Flow control for TCP fusion in synchronous stream mode is achieved by checking the size of receive buffer and the number of data blocks, both set to different limits. This is different that regular stream flow control. The need for this limit is to ensure that the sending and receiving processes are both getting the resources they need to process the data and that neither is starving the other.

Similar Messages

  • MRP query related to MTO and MTS

    Dear Gurus,
    I have got 2 Plants.......Plant A(Manufacturing Plant) and Plant B (Selling Plant)
    My scenario is Make to Order, where the sales order is getting created in Plant B(selling Plant) for Export Material
    1)when I run the MRP for Export material by MD50 ......Planned order should be created in Plant A and it should show in MD04 screen then only I can convert that planned order into production order.
    2) After confirmation of that order and after GR.....stock should go to Plant B so that SD person will deliver that stock to the respected customer.
    3)when I run the MRP by MD50, in the material BOM.....if any shortage of RAW MATERIAL OR PACKING MATERIAL then collective PR should be created in Plant B(selling plant).
    what setting we should maintain in Meterial master related to PP for all raw/packing/semifinish/finish materials in both the plants related to MTS and MTO?
    Could you provide me solution for the above queries.
    Max

    Dear
    This can be achieved by using special procurement type (80 production in another plant) in all production master data (material master for inhouse production, BOM, Routing and production version) will be made in plant B and in plant A same material will have material master for MRP i.e. MRP group, MRP type MRP controller Procurement type special procurement (80) in MRP2 production storage location, planning strategy etc.
    you can see in MD04 for plant B delivery plant will be A. and in MD04 for plant A planning plant B.
    production order will be confirmed in plant A and GR will be done in Plant B.
    and purchase requisitions for component will be raised from plant A. if all components are required to be procured in plant B, all component will have also special procurement either 40     Stock transfer (proc.from alter.plant)
    or 70     Withdrawal from alternative plant.
    I hope this will solve your issue. Kindly let me know if your issue will solved or not.
    Thanks
    Muhammad Ashfaq

  • A query related to ProgressBar and its placing inside Container

    Hi ,
    I tried an example with  Flex3 ProgressBar .I am posting the scenario in which it was correct in one case and wrong in another case .
    Please tell me what  is wrong here in the wrong case :
    The Program is related to :
    I have button on click of that i will be loading the Image . There is no Button and its event Listener Mentioned here .
    Correct Approach :
    This works fine as the Image and ProgressBar are in the same Container called HBox
    <mx:HBox>
    <mx:Image id="image" autoload="false"/>
    <mx:ProgressBar id="MYPB" source="{image}"/>
    </mx:HBox>
    Wrong Approach :
    The below isn't working as i placed ProgressBar outside the container called as HBox
    <mx:HBox>
    <mx:Image id="image" autoload="false"/>
    </mx:HBox>
    <mx:ProgressBar id="MYPB" source="{image}"/>
    Please share your ideas as why this behaves this way .

    Hi Kiran.
    I don't think either of the approach is wrong , it no way effected by placing the ProgressBar inside a container or outside the container.
    Run the sample application below. It will load for both approaches.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
            <![CDATA[
                public function loadImage1():void {
                  image1.load('assets/liazon_logo.png');
                public function loadImage2():void {
                  image2.load('assets/liazon_logo.png');
            ]]>
        </mx:Script>
    <mx:HBox>
      <mx:Image id="image1" autoLoad="false"/>
    </mx:HBox>
    <mx:ProgressBar id="MYPB1" source="{image1}"/>
    <mx:Button label="Load Image1" click="loadImage1()"/>
    <mx:HBox>
      <mx:Image id="image2" autoLoad="false"/>
      <mx:ProgressBar id="MYPB2" source="{image2}"/>
    </mx:HBox>
    <mx:Button label="Load Image2" click="loadImage2()"/>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Query related to excution and performance of count in select statement

    Hi,
    What are the difference between
    select count(1) from table
    and
    select count(*) from table

    Thanks for the reply.I searched lots of thread for the same and found that it's same (excution wise and performance wise).
    But in few thread i found that someone is saying
    "At the time of exceution Count(1) will conevrted internally to count(*) " --- is it correct
    "is there any soecial significance of using count(42)" ?
    Tx,
    Anit

  • Query reg. Resource and time allocation in cProjects

    Wondering if someone can answer this query related to -  Resource and time allocation in cProjects.
    I understand the following regarding creating cProject -
    1 - Project manager creates a cProject for any upcoming new project in the organization.
    2 - Phases and Tasks will be created automatically (at our end) based on the template selected while creating the cProject.
    3 - Project manager assigns the resources to the project.
    4 - Allocate start date and end date for the resources against Tasks or Phase -
    > This is the point where there isn't enough documentation to help me progress further. Please can someone suggest how and where do we specify the start date and end date to a resource in cProject.
    A sample document on the BEST approach to create cProject, assign reources to tasks, allocate start date and end date would indeed help further clarify my doubt.
    I wante to create a cProject with various tasks, assign resources, start and end date for each task. As the project progresses,
    I want to execute a report to track the progress of this cProject as resources go on completing a task.
    Thanks,
    RB

    Hi Pramod,
       Thanks for your reply. Below are some queries based on few points mentioned by you.
    Allocate start date and end date for the resources against Tasks or Phase -
    When we prepare Project template, we define all project structure with phase, tasks, milestones, etc. - OK
    Also we define phase and task depedency, duration for tasks. - OK
    In actual Project execution PM creates project with reference to template, he add or delete any task / phase, changes duration if required. - How do you change duration of the task ? What series of events or clicks need to be followed ? Would be nice if atleast one option is listed.
    While in project planning, planner has to enter start and end date for project. - OK
    cProject scedules all other dates accordingly. We need not to go to individual phase or task to adjust dates. one can adjust only duration and depency to get required dates for tasks. This is standard planning phelosophy used in CPR, MSP or Primavra I believe. - At phase level, I can see Earliest start + finish and Latest start + finish dates populated automatically. In addition Start date constraint and Finish data constraints fields are available and empty. Is it mandatory to enter these dates ?
    While doing resource assignment, the start and end dates are coming from task assigned to particular Project Role. - At Task level, I can see Earliest start + finish and Latest start + finish dates populated automatically. In addition Start date constraint and Finish data constraints fields are available and empty. Is it mandatory to enter these dates ?
    cProjects automatically schedules the plan in create status, once the project released and actual status updated in cProjects, Project plan needs to schedules manually with help of schedule button in Project menu.- When I click Schedule button, message - Bottom-up scheduling was carried out is populated on screen. What is Bottom-up scheduling ?
    Would be nice to get reply to above queries.
    Thanks,
    RB

  • Need query to get parent and child relations

    Hi,
    SELECT
    a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    The above query gives a project and its child.
    Child project can inturn have child projects.
    But the above query gives only the first level.
    To obtain second level I am presently using the following query
    SELECT
    a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    UNION ALL
    SELECT
    a.ID, a.UNIQUE_NAME, g.ID, g.UNIQUE_NAME, 2 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d,
    prSubProject e,
    prTask f,
    srm_projects g
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    AND d.ID = f.PRPROJECTID
    AND f.prID = e.prTaskID
    AND e.PRREFPROJECTID=g.id
    But the problem is there is no limit on levels. They can go on to 20 to 30.
    So i need a query which gives me all the levels and not as above one where i am specifying till wht level.
    Please guide me.

    Thanks.
    Please find the table structures
    CREATE TABLE SRM_PROJECTS
    ID NUMBER NOT NULL,
    NAME VARCHAR2(240 BYTE),
    UNIQUE_NAME VARCHAR2(60 BYTE),
    DESCRIPTION VARCHAR2(2286 BYTE),
    IS_ACTIVE NUMBER DEFAULT 1 NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CREATED_BY NUMBER NOT NULL,
    LAST_UPDATED_DATE DATE NOT NULL,
    LAST_UPDATED_BY NUMBER NOT NULL,
    CREATE TABLE PRTASK
    PRUID VARCHAR2(32 BYTE),
    PRID NUMBER(10),
    PRPROJECTID NUMBER(10),
    PRISUNPLANNED NUMBER(10) DEFAULT 0 NOT NULL,
    PRSHORTNAME VARCHAR2(48 BYTE),
    PRNAME VARCHAR2(450 BYTE),
    PREXTERNALID VARCHAR2(48 BYTE),
    PRISMILESTONE NUMBER(10) DEFAULT 0 NOT NULL,
    PRCATEGORY VARCHAR2(96 BYTE),
    CREATE TABLE PRSUBPROJECT
    PRUID VARCHAR2(32 BYTE),
    PRID NUMBER(10),
    PRTASKID NUMBER(10),
    PRREFPROJECTID NUMBER(10),
    PRREFTASKID NUMBER(10),
    PRISREADONLY NUMBER(10) DEFAULT 0 NOT NULL,
    PRISIPD NUMBER(10) DEFAULT 0 NOT NULL,
    PRMODBY VARCHAR2(96 BYTE),
    PRMODTIME DATE
    )

  • How to use one query against multiple table and recieve one report?

    I have duplicate tables, (except for their names of course) with commodities prices. They have the same column headings, but the data is different of course. I have a query that gives me a certain piece of information I am looking for but now I need to run this query against every table. I will do this every day as well, to see if the buying criteria is met. There are alot of tables though (256). Is there a way to say run query in all tables and return the results in one place? Thanks for your help.

    hey
    a. the all 256 tables whuld be one big partitoned table
    b. you can use all_tables in order to write a select that will write the report for you:
    SQL> set head off
    SQL> select 'select * from (' from dual
      2  union all
      3  select 'select count(*) from ' || table_name || ' union all ' from a
      4  where table_name like 'DB%' AND ROWNUM <= 3
      5  union all
      6  select ')' from dual;
    select * from (
    select count(*) from DBMS_LOCK_ALLOCATED union all
    select count(*) from DBMS_ALERT_INFO union all
    select count(*) from DBMS_UPG_LOG$ union all
    remove the last 'union all', and tun the generated quary -
    SQL> set head on
    SQL> select * from (
      2  select count(*) from DBMS_LOCK_ALLOCATED union all
      3  select count(*) from DBMS_ALERT_INFO union all
      4  select count(*) from DBMS_UPG_LOG$
      5  );
      COUNT(*)
             0
             0
             0
    Amiel

  • Can you run two songs at once? One to write and one to record?

    I have dozens of midi objects, cable routings for writing and now have added dozens of audio tracks and inputs for recording my external and internal synths. (24 tracks in realtime one pass. Not bouncing but tracking. Its so cool.)
    PROBLEM: As I improve the audio workflow in a song, importing that layer into older songs creates D.I.S.CO.R.D. (Digital Input Sequencer Copy Object Reassignment Disaster!)
    QUERY: Can I just use one song for writing and playing and then run another "audio input based" song in the background locked via internal time code so it can RECORD or CAPTURE what this song plays?
    Or is there finally a way to import audio layers without "rebuilding the whole house"?

    Maybe I'm not understanding your difficulty, but I
    don't see why you have to have multiple setups, or
    copy/paste/import/whatever from one song to another.
    ..........Been tracking and mixing in the same sequence for
    years.
    Why? Well......
    1) there's dozens of midi modules, virtual modules and custom transformer splitter objects at the writing stage,
    2) dozens of tracks, input objects and reverb busses at the "tracking stage"
    3) and multiple master inserts at the mixing and output stage that output anywhere from 2 to 24 stems with their own reverbs.
    When the room works it works beautifully but there are different configurations of the above for a tv series gig, movie gig, album gig etc and I'd love to be able to change config 2 or 3 without having objects jumble all over config 1.
    I write and work in combinations of old and new gear from Spectrasonics and NI softsynth engines to an Oberheim Expander Roland JX10 and and Yamaha TX 816s. They all have different personalities and all work reliably and have far outlived their sys ex storage software (remember Galaxy/Sounddiver? Bye Bye since System 10)
    Last year I expelled my dig gear (after too many DAE errors for all that money) and I went MOTU native and love it. But I started one interface at a time and built up my new tricks and routings gradually. As a result everytime I add another MOTU interface and change some routings around all my songs have to be retaught new routings even when its just callin up a midi writing template. Hence the need for better importing of environents or a way to reliably alter one area of the above without having to recheck all the others. And it may mean a 2 computer rig. The second computer becomes the "multitrack/master recorder", and only changes during a major upgrade while midi modules and virtual synths can come and go on computer 1.
    In a few weeks my studio setup tech will come in and we'll redo all our flow charts which I'll send to you if interested. Then you'll either empathize with my problem or think I'm nuts.
    Thanks for your continued interest. Its nice to lament to someone who at least knows the vocabulary.
    Amin
    G5 dual 2.5   Mac OS X (10.3.9)   Stylus AND my original Minimoog. Lots of MOTU. No more Digi.

  • Query relating to the creation of Managed Service Accounts

    Hi Folks
    I am studying for my 70-411 exam and have a query relating to the creation of Managed Service Accounts.
    I have successfully created an MSA account named 'MSATest' on a DC  using:
     new-adserviceaccount -name msatest –dnshostname home-dc-01 -passthru
    and
     add-AdcomputerServiceAccount -identity home-ap-01 -serviceaccount msatest -passthru
    However the guide that I am using now says that I now need to run:  Install-ADServiceAccount on the host computer in the domain to install the MSA in order to make available it available for use by services.
    So on my member server (home-ap-01) I have installed the Active Directory Module for powershell and ran:
    PS C:\Users\administrator.PCECORP> Install-ADServiceAccount -Identity msatest
    Install-ADServiceAccount : Cannot install service account. Error Message: 'An
    unspecified error has occurred'.
    At line:1 char:1
    + Install-ADServiceAccount -Identity msatest
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (msatest:String) [Install-ADServiceA
       ccount], ADException
        + FullyQualifiedErrorId : InstallADServiceAccount:PerformOperation:Install
       ServiceAcccountFailure,Microsoft.ActiveDirectory.Management.Commands.Insta
      llADServiceAccount
    PS C:\Users\administrator.PCECORP>
    However this errors, Have I misunderstood the purpose of the Install-ADServiceAccount ?  or am I doing something wrong?
    Thanks in advance for you help.

    Try using  -RestrictToSingleComputer parameter when creating service account with New-ADServiceAccount.
    Gleb.
    Hi Gleb
    Thank you for your help, it is appreciated.  That did the trick.
    All the best.

  • Query related to multiple attachments in mail adapter

    Hi,
    I have a query related to multiple attachments in receiver mail adapter.
    I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
    To clarify the requirement more let us take an example
    Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
    For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
    Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
    Thanks & Regards
    Prabhat

    Hi,
    I resolved the issue on my own. Thanks for your help and support.
    Thanks & Regards
    Prabhat

  • How to make relation between  gl_je_lines  and wip_transaction_accounts

    I try to write script to make relation between GL and WIP, wip_transaction_accounts and mtl_material_transactions
    1.
    SELECT
    (SELECT meaning
    FROM mfg_lookups
    WHERE lookup_type = 'WIP_TRANSACTION_TYPE'
    AND lookup_code =
    (SELECT TRANSACTION_TYPE
    FROM wip_transactions
    WHERE transaction_id = wta.transaction_id
    ) "Transaction Type" ,
    gjb.NAME "Journal Batch Name" ,
    gjh.NAME "Journal Name" ,
    gjh.je_source "JE Source" ,
    gjh.je_category "JE Category" ,
    glp.period_num "GL Month" ,
    glp.period_year "GL Year" ,
    gjh.default_effective_date "GL Date" ,
    NVL(gje.accounted_dr,0) -NVL( gje.accounted_cr,0) "GL Line Amount" ,
    gje.description "GL Line Description" ,
    (SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = wta.organization_id
    ) "ORG Name" ,
    NULL "Vendor/Customer Name" ,
    NULL "SO/PO Number" ,
    NULL "Reference Number" ,
    NULL "AP/AR Invoice Number" ,
    NULL "Doc Sequence Value" ,
    NULL "Invoice Type Lookup Code" ,
    NULL "Check Number" ,
    NULL "Line Type" ,
    NULL "Category" ,
    NVL (wta.base_transaction_value, 0) "Transaction Amt" ,
    NULL "AR/PO Receipt Number" ,
    NULL "Applied Invoice Number" ,
    (SELECT a.segment1
    FROM mtl_system_items_b a ,
    wip_discrete_jobs b
    WHERE a.inventory_item_id = b.primary_item_id
    AND a.organization_id = b.organization_id
    AND b.wip_entity_id = wta.wip_entity_id
    AND b.organization_id = wta.organization_id
    ) "Item Name" ,
    gcc.segment1 "Company" ,
    gcc.segment2 "Department" ,
    gcc.segment3 "Account" ,
    (SELECT description
    FROM fnd_flex_values_vl fnd
    WHERE flex_value_set_id = 1009707
    AND TO_CHAR (fnd.flex_value) = gcc.segment3
    ) "Account Description" ,
    gcc.segment4 "Intercompany" ,
    NULL "JE Category Description" ,
    NULL "AP Invoice Line Description"
    TRUNC (wta.transaction_date) "JE Creation/Inv Trans Date" ,
    NULL "JE Created By" ,
    NULL "Reversal Flag" ,
    NULL "Reason Code" ,
    NULL "Subinventory Name" ,
    wta.primary_quantity "Quantity" ,
    NVL (wta.base_transaction_value, 0) "Value" ,
    gje.context ,
    gje.attribute1 ,
    gje.attribute2 ,
    gje.attribute3 ,
    gje.attribute4 ,
    gje.attribute5 ,
    DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status"
    FROM gl_je_lines gje ,
    gl_je_headers gjh ,
    gl_je_batches gjb ,
    wip_transaction_accounts wta ,
    gl_code_combinations gcc ,
    gl_periods glp
    WHERE 1 =1
    AND gje.je_header_id = gjh.je_header_id
    AND gjh.je_batch_id = gjb.je_batch_id
    AND UPPER (gjh.je_source) = 'INVENTORY'
    AND gcc.code_combination_id = gje.code_combination_id
    AND wta.reference_account = gje.code_combination_id
    AND TRUNC(wta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
    AND gje.reference_1 = wta.gl_batch_id
    AND gje.gl_sl_link_table = 'WTA'
    AND glp.period_name = gjh.period_name
    AND glp.period_set_name = 'OVT_US_CAL'
    ==
    2.
    SELECT mtt.transaction_type_name "Transaction Type" ,to_char(mmt.transaction_date,'mm/dd/yyyy hh:mi:ss') as teas, mta.transaction_id,mta.organization_id, mmt.organization_id,
    gjb.NAME "Journal Batch Name" ,
    gjh.NAME "Journal Name" ,
    gjh.je_source "JE Source" ,
    gjh.je_category "JE Category" ,
    glp.period_num "GL Month" ,
    glp.period_year "GL Year" ,
    gjh.default_effective_date "GL Date" ,
    NVL(gje.accounted_dr,0) - NVL(gje.accounted_cr,0) "GL Line Amount" ,
    gje.description "GL Line Description" ,
    (SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = mta.organization_id
    ) "ORG Name" ,
    NULL "Vendor/Customer Name" ,
    NULL "SO/PO Number" ,
    mmt.TRANSACTION_REFERENCE "Reference Number" ,
    NULL "AP/AR Invoice Number" ,
    NULL "Doc Sequence Value" ,
    NULL "Invoice Type Lookup Code" ,
    NULL "Check Number" ,
    NULL "Line Type" ,
    NULL "Category" ,
    NVL (mta.base_transaction_value, 0) "Transaction Amt" ,
    NULL "AR/PO Receipt Number" ,
    NULL "Applied Invoice Number" ,
    (SELECT segment1
    FROM mtl_system_items_b
    WHERE inventory_item_id = mmt.inventory_item_id
    AND organization_id = mmt.organization_id
    ) "Item Name" ,
    gcc.segment1 "Company" ,
    gcc.segment2 "Department" ,
    gcc.segment3 "Account" ,
    (SELECT description
    FROM fnd_flex_values_vl fnd
    WHERE flex_value_set_id = 1009707
    AND TO_CHAR (fnd.flex_value) = gcc.segment3
    ) "Account Description" ,
    gcc.segment4 "Intercompany" ,
    NULL "JE Category Description" ,
    NULL "AP Invoice Line Description"
    TRUNC (mta.transaction_date) "JE Creation/Inv Trans Date" ,
    NULL "JE Created By" ,
    NULL "Reversal Flag" ,
    (SELECT MGD.SEGMENT1
    FROM MTL_GENERIC_DISPOSITIONS MGD,
    MTL_MATERIAL_TRANSACTIONS MMTT
    WHERE MGD.DISPOSITION_ID = MMTT.TRANSACTION_SOURCE_ID
    AND MMTT.TRANSACTION_SOURCE_TYPE_ID = 6
    AND MGD.ORGANIZATION_ID = MMTT.ORGANIZATION_ID
    AND MMTT.TRANSACTION_ID = MMT.TRANSACTION_ID
    ) "Reason Code" ,
    mmt.SUBINVENTORY_CODE "Subinventory Name" ,
    mta.primary_quantity "Quantity" ,
    NVL (mta.base_transaction_value, 0) "Value" ,
    gje.context ,
    gje.attribute1 ,
    gje.attribute2 ,
    gje.attribute3 ,
    gje.attribute4 ,
    gje.attribute5 ,
    DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status" -
    FROM gl_je_lines gje ,
    gl_je_headers gjh ,
    gl_je_batches gjb ,
    mtl_transaction_accounts mta ,
    mtl_material_transactions mmt ,
    mtl_transaction_types mtt ,
    gl_code_combinations gcc ,
    gl_periods glp
    WHERE 1 =1
    AND mta.transaction_id = mmt.transaction_id
    AND gje.je_header_id = gjh.je_header_id
    AND gjh.je_batch_id = gjb.je_batch_id
    AND UPPER (gjh.je_source) = 'INVENTORY'
    AND gcc.code_combination_id = gje.code_combination_id
    AND mta.reference_account = gje.code_combination_id
    AND TRUNC(mta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
    and mta.request_id=mmt.request_id
    and mta.inventory_item_id=mmt.inventory_item_id
    AND gje.reference_1 = mta.gl_batch_id
    AND gje.gl_sl_link_table = 'MTA'
    AND mtt.transaction_type_id = mmt.transaction_type_id
    AND glp.period_name = gjh.period_name
    AND glp.period_set_name = 'OVT_US_CAL'
    When gl_je_lines have multiple line this script on the same transaction_id it will get wrong information. By setup all wip_transaction_accounts.GL_SL_Lind_id and mtl_transaction_accounts.GL_SL_Lind_id is null
    Anyone can help?

    Hello.
    How are you reaching the inconsistencies ? Are you comparing report's results?
    Octavio

  • Query related to Email adapter

    Hi,
    I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
    My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
    My query is is related to Standard module processors sequence.
    For 3 files in mail attachments(.xml , pdf & .txt)  what should be the module processors sequence in receiver email adapter?
    Currently I am using the following module processors sequence
    1     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans2
    2     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     swap
    3     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans1
    4     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    swap -> swap.keyName -> payload-name
    swap> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file1
    trans2>Transform.ContentDescription>inline
    Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt)  should go as an attachments in the reciever email adapter.
    Thanks & Regards
    Prabhat

    it would be something like this, Try this
    1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
    2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
    3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
    4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
    5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
    6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
    7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    swapxml -> swap.keyName -> payload-name
    swapxml> swap.keyValue> file2
    swappdf -> swap.keyName -> payload-name
    swappdf> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file2
    trans2>Transform.ContentDisposition>attachment
    trans2> Transform.ContentType>application/xml;name="file2.xml"
    trans3> Transform.ContentDescription>file3
    trans3> Transform.ContentDisposition>attachment
    trans3> Transform.ContentType>application/txt;name="file3.txt"
    mail --> mime.contenttype   --> multipart/mixed
    I have not tried this myself. but it should work

  • Query related to GAL

    Hello All,
    We are in process of implementing Exchange 2013 in our Organization and had a Query related to GAL.
    Below is our Environment description:
    01. We have a Single Forest and Single Domain Architecture.
    02. We will have separate Active Directory Sites for all 3 Regions across Global.
    03. Exchange 2013 will be installed in each region.
    04. In APAC region Exchange 2013 Language pack for Japanese will be installed to support Japanese language.
    Our Requirement:
    ================
    01. When a Japanese User tries to browse GAL all the display names have to be displayed in Japanese language and when a user who resides other Region (Europe or AMERICAS) tries to browse GAL the Address list has to be displayed in default English Language.
    Can someone guide us on how this can be achieved?
    Awaiting for all your suggestions.
    Thanks in advance.
    Thanks & Regards,
    Nagaraj N
    Nagaraj N

    Hi Nagaraj,
    Here are some requirements that I am still not quite sure. Could you please provide more information about it? Such as:
    1. Do you mean one user have two display names: one with Japanese language used for users in Japan, one with English language used for English users? Then we filter address lists with language difference. Based on my knowledge, one email address is generally
    involved for one display name.
    2. If there are both Japanese users and English Language users in the forest, and you just need Japanese users view users whose name is displayed as Japanese language. We can use
    Address book policies (ABPs) to segment users into specific groups to provide customized views of your organization’s global address list (GAL).
    To show different GAL for different users, we can specify the CustomAttribute1-15 property to divide your organizations. For example, we can set the CustomAttribute15 property for Japanese users to
    Japan. Just like:
    Set-Mailbox –Identity JapanUser1 –CustomAttribute15 Japan
    Then we can create global address list for Japanese that includes all of the recipients that exists in the address lists and room address list:
    New-GlobalAddressList -Name "GAL_Japan" -RecipientFilter {(CustomAttribute15 -eq "Japan")}
    For detailed steps about how to create and apply the Address Book Policies, please refer to:
    http://technet.microsoft.com/en-us/library/jj657455(v=exchg.150).aspx
    Hope it helps.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Query related to DataGuard Archicture...

    Hi All,
    I want to implement DataGuard Archicture in my setup, I'hv one query related to different operating system in my setup, I'hv two server one for primary and the other for standby Database with 10g DB R2. In one server having Linux os and the other own has Solaris, so DataGuard will work on different os or both server os should be same? And if I'hv 2 GB then will it be create any prob?
    pl. suggest me.

    A requirement for standby is both databases must be on the same platform and on the same db version, this requirement applies even if you are on a logical or on a physical dataguard database.
    You can verify the Step by Step instructions to create a standby database:
    Step-byStep Instructions for Creating a Logical Standby Database
    Step-by-Step Instructions for Creating a Physical Standby Database
    ~ Madrid

  • Query related to withhold tax

    Hi  Freinds,
    This is mamatha i have a query related to withhold tax .what is diff b/w business place and section code.what is importance of section code.
    Regards
    S Mamatha
    Please, search SDN

    For India, witholding tax, you need to create the business place and section code with the same id.
    Section code is additional field provided by sap for tds related processig, reports etc.
    Regards,
    SDNer

Maybe you are looking for

  • Planning Book Grids in DP

    Hi, I have a standard planning book / data view created in DP. However I want to activate a second grid so I can organise the key figures of one data view in 2 grids - does anyone know how I activate this? I thought it was in the planning book settin

  • Labview: TCp Open Issue!

    Hi Everyone,     I'm working on a MODBUS routine for communication with one of our control modules. I'm using NI's Modbus library to initiate a connection, check the registers, etc then report the results back to a teststand seq for fruther analysis.

  • Sending Java object using E-Mail

    Dear Experts, In my application I am trying write java Object in a file. Then I have to attach that file with an E-Mail. In the receiver side I have to download the file and read the Java Object from file. The Problem is , when I am sending and recei

  • HT201077 How do I change the primary email linked to my Photo Stream

    As I no longer use this primary email I need to be able to put in my new gmail email.

  • Error in Upgrade for Workbooks from 3.X to 7.0

    Hi guys....i hope somebody could help me with this.....i have my new 7.0 system its an upgrade of 3.X, and i have a very strange problem....when i open workbooks in BEx Analyzer 7.0 a pop up message is shown that said the workbooks will be upgraded t