How to use "Number of segments in a message" macro

When we export an EDIFACT document guideline file to Oracle 2.0 format, we have an option of enabling several macro nodes. One of them is "Number of segments in a message", which can be populate UNT+0074 element.
However, in transforming XML for an EDIFACT document, such as:
<ns0:Segment-UNT>
<ns0:Element-0074>###</ns0:Element-0074>
<ns0:Element-0062>MESSAGE_ID</ns0:Element-0062>
</ns0:Segment-UNT>
we do NOT know how to reference the  "Number of segments in a message" macro. Currently we have to use a different approach.
We would highly appreciate if someone could enlighten us on using the macros.
We have searched all B2B documentations, and could not find any hints.
LXZ

Re: Segment SE - How to generate automatically for EDI_4010_850
Hope this helps

Similar Messages

  • How to use E1BPPAREX - IDoc Segment enhancement

    Hi,
    can you provide me with some details on "how to use the E1BPPAREX" IDoc Segment ?
    I want to enhance the standard PRICECATALOGUE02 IDoc with some customer defined fields.
    There is a use of a STRUCTURE FIELD and 4 VALUEPARTS.
    What kind of structure do i have to use ?
    I red something about to enter 2 kind of structures ?
    a) the first part = wrf_pricat_key*
    b) second part = DDIC userdefined structure.
    Thx,
    Gordon

    Hi Gordon,
    1. Map customer data in E1BPPAREX segment fields:
    STRUCTURE     CHAR     30     0     Structure name of  BAPI table extension
    VALUEPART1     CHAR     240     0     Data part of BAPI extension parameter
    VALUEPART2     CHAR     240     0     Data part of BAPI extension parameter
    VALUEPART3     CHAR     240     0     Data part of BAPI extension parameter
    VALUEPART4     CHAR     240     0     Data part of BAPI extension parameter
    2. Build a new implementationof BADI interface IF_EX_PRICAT_OUT_EXTIN  (PRICAT_IN_EXTIN definition name) using SE19
    3. Write the ABAP code for UPDATE_INBOUND_EXTENSIONIN method to manage your additional customer data:
    UPDATE_INBOUND_EXTENSION: This method enables the data from the
    ExtensionIn table parameter to be processed. This parameter may contain
    customer-specific data that is either to be integrated into standard
    tables in the price catalog, or stored in customer-defined tables.
    BAPI_Table_Extensions are used for this integration into the standard
    tables from the price catalog. These are enhancement concept objects for
    BAPIs. SAP delivers them with the key elements, and customers enhance
    them for their own fields in appends. The method receives the
    Table_Extensions using the interface and then it can fill them. Once the
    entries are returned after the method has been called, they are mixed
    with the standard tables. If a customer wishes to update
    customer-defined tables, a user-defined update module can be called in
    the method and it will update the customer-defined tables.
    When the method is called, the changing parameters are empty. They may
    be filled in the method. They are used to provide customer-defined
    fields in the standard tables. If entries are made in these structures
    and tables, the 'entries_made' parameter must be set to 'X' so that the
    entries are transferred from these structures and tables to the standard
    tables in the price catalog. These parameters are BAPI table extensions.
    These structures can be enhanced in the customer system with APPENDS.
    This enhancement is exactly the same as the enhancement for the standard
    tables involved. The customer-specific fields are transexported to the
    standard tables after the method has been called using a
    MOVE_CORRESPONDING. This involves the enhancement technology that
    supports BAPIs in the standard system.
    Reward points if useful.
    Roger

  • How to use Essbase @RETURN function to displayed messages in 11.1.2.1

    Hi,
    I found Business Rule support Essbase @RETURN function in Hyperion Planning 11.1.2.1 new feature.
    If I create a simple BR for planning app as below:
    "@RETURN("test return message" , WARNING);"
    The validation returns error and BR can not be deployed.
    Does any one how to use @RETURN function in BR?
    Thanks!

    Hi,
    From Essbase Technical Reference Guide: http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    Example+
    The following example stops the calculation and returns a custom warning message if maximum values specified in the IF statement are empty:+
    FIX("Actual")
    . "Profit"(
    IF( ("Marketing" < 0) OR ("Payroll" < 0) OR ("Misc" < 0) )
    @RETURN( @CONCATENATE(
    @CONCATENATE("The violation of data integrity : Market [", @NAME(@CURRMBR("Market"))),
    "] has a negative expenses. Calculations are interrupted")
    , WARNING);
    ELSE
    "Profit" = ("Margin" - "Total Expenses")*0.9;
    ENDIF
    ENDFIX
    Cheers,
    Alp

  • How to use oracle TRIM functionality in XML messages

    When i am selecting data from XML message as per below query, it is returing values correctly.
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS><EMPID>2482</EMPID><NAME>SMITH</NAME><SALARY>4854</SALARY><LOC>CHENNAI</LOC></DETAILS>'),'/DETAILS'))) x;
    But when i am selecting data by using below query some additional spaces also coming with column values
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS>
                   <EMPID>
                             2482
                             </EMPID>
                             <NAME>
                             SMITH
                             </NAME>
                             <SALARY>
                             4854
                             </SALARY>
                             <LOC>
                             CHENNAI
                             </LOC>
                             </DETAILS>'),'/DETAILS'))) x;
    Please suggest how to remove additional spaces by using second query.
    Thanks
    Vikrant Jain.

    It appears that the ability to use XPath functions in the PATH expression doesn't work prior to 11g :
    Connecté à :
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var xmldoc varchar2(4000)
    SQL> begin :xmldoc := '<DETAILS>
      2  <EMPID>
      3  2482
      4  </EMPID>
      5  <NAME>
      6  SMITH
      7  </NAME>
      8  <SALARY>
      9  4854
    10  </SALARY>
    11  <LOC>
    12  CHENNAI
    13  </LOC>
    14  </DETAILS>';
    15  end;
    16  /
    Procédure PL/SQL terminée avec succès.
    SQL> SELECT emp_id, emp_name, emp_sal
      2    FROM XMLTable('/DETAILS'
      3                  PASSING XMLTYPE(:xmldoc)
      4                  COLUMNS
      5                  emp_id     NUMBER        PATH 'normalize-space(EMPID)',
      6                  emp_name   VARCHAR2(20)  PATH 'NAME',
      7                  emp_sal    VARCHAR2(20)  PATH 'SALARY');
    SELECT emp_id, emp_name, emp_sal
    ERREUR à la ligne 1 :
    ORA-31011: Echec d'analyse XML
    ORA-19202: Une erreur s'est produite lors du traitement la fonction XML (
    LPX-00601: Invalid token in: '/*/normalize-space(EMPID)')Using it in XQuery will work though :
    SQL> SELECT *
      2  FROM XMLTable(
      3   'for $i in /DETAILS
      4    return element r
      5    {
      6     for $j in $i/*
      7     return element {local-name($j)} {normalize-space($j)}
      8    }'
      9   PASSING XMLTYPE(:xmldoc)
    10   COLUMNS
    11     emp_id     NUMBER        PATH 'EMPID',
    12     emp_name   VARCHAR2(20)  PATH 'NAME',
    13     emp_sal    NUMBER        PATH 'SALARY'
    14  );
        EMP_ID EMP_NAME                EMP_SAL
          2482 SMITH                      4854

  • How to use single key to color a message in Mail.app?

    I would like to be able to color code a message's line in the main message summary window by pressing only a single key. In thunderbird, this is accomplished by pressing 1 to 5, each corresponding to a different color.
    Mail.app allows coloring a message, to my knowledge, only by bringing up colors chooser and then selecting a color (by default in a inprecise color wheel).
    How do a make "hot keys" for specific colors?
    thanks

    To answer my own question: Leopard and Mail.app don't suport this directly.
    What works is using Fastscripts Lite to bind application-specific hot keys to some simple applescripts.
    Here is one such script, modeled on an Apple sample script:
    using terms from application "Mail"
    tell application "Mail"
    set selectedMessages to selection
    set selectionCount to (count of selectedMessages)
    repeat with messageNumber from 1 to selectionCount
    set theMessage to item messageNumber of selectedMessages
    set background color of theMessage to green
    end repeat
    end tell
    end using terms from

  • How to use BAM to start an XI message with multiple occorrences

    Hi:
    I am trying to use BAM to send some data to XI. It is working fine when I have a message that has only header information. I am able to do the binding and the message is being sent properly.
    The problem is when I have a XI message with multiple occurrences. This message creates a complex proxy structure like the sample bellow:
    -ZTSTPROXY (Header)
        -Header_Field1
        -Header_Field2
        -Occurrences (Items)
         -Item_Field1
         -Item_Field2
    It is possible to pass data the he Header fields separately on BAM, but I have no access to the line fields on BAM binding screen (it shows me only the name “Occurrence” but no field).
    So, I assumed that I have to pass the whole structure, not the fields separately. Then I tried to create a method on my Business Object that will return the same structure as my proxy, but this field cannot be used on BOR. I am receiving the message OL403 (Data Type cannot be used for methods).
    Ok, I would not give up. I tried to use an Abap Class instead of a Business Object. By using the class I can define an attribute with the same data type generated by the proxy and it is possible to do the bind on BAM (directly to the “output” field, not to the specific fields on the structure).
    But, when I raised the event, the message created on XI is empty. Only part of the tags were there and no field values.
    Debugging on the event, I found that the problem is when it is trying to assign the container element on the method EVAL_ABAP_ASSIGN_CODE on the class CL_SWF_EXP_EXPRESSION. The program is raising the exception CX_SWF_EXP_DYN_ASSGIN_FAILED. Probably because the proxy structure is not allowed on the container.
    Has anybody tried to pass a multi-line element to an XI message through BAM? How can this be done (if possible)?
    Best Regards,
    Flavio.

    Hi,
    why don't you use an internal list for your question if you are from Oracle? JDeveloper 11 and OC4J11 related questions for the public technology preview have their own forum:
    JDeveloper and OC4J 11g Technology Preview
    My suggestion is to get in contact with the BAM group internally to ask for documents.
    Frank

  • How to get number or size of selected messages

    Hey all
    Does anyone know how to get the number or the total size of a selected set of messages in Mail/10.8? I'm in the process of copying mail to an IMAP folder and want to get a general idea of how much stuff I'm sending before I do it.
    Thanks!
    Matt

    Thanks Leroy. That's what I was afraid of. It shows the size/quantity in IMAP folders, but not local folders. I would love a "status bar" as in the Finder, where it tells me how many messages I have selected ... one for the feedback form, I think.
    best
    Matt

  • How to use peeklock/delete pattern to handle messages in event hub?

    Hi,
    I have a consumer group with multiple consumers. If one consumer failed to process the message (by some internal reasons. not poison), I want it just leave that message and let other consumers have chance to process it again. previous I use service bus queue/topic,
    the peeklock/delete pattern with the dead-letter queue can easily achieve this. Now by some reason I switch event hub,
    Is there still some way to achieve this? what is the recommended way to handle this in event hub?
    thanks!
    Robin

    There's no lock and delete concept in EventHubs. Please think EH as a stream of events where you can rewind back in time and start reading from wherever you want. For example as in your case if one of the clients fail to process an event any other client
    can start reading from that position where first client failed. Let me know if you have additional questions.
    I suggest you to read about EventProcessorHosts for EventHubs. This is probably what you're looking for.
    http://azure.microsoft.com/en-us/documentation/articles/service-bus-event-hubs-csharp-ephcs-getstarted/

  • How to use session object in jsp

    hi all
    marry christmas
    can anyone plz tell me how to use session obect in jsp
    rachna
    Message was edited by:
    rachna_arora82

    hi rachna,
    JSP has a default(implicit) session object...... use the getSession(true) method on the session object and then going u can either get or set attributes depending on the requirement
    That was in general and now with the issue u have got..... what u can do is that the u can create session for every user who logs in and when he/she tries to login again then u can probably check for the existing session object in the JSP and perform the logic as required..... any clarifications plzzzzzzz let me know
    Thanks n Regards
    Naveen M
    Message was edited by:
    Novice_inJAVA
    Message was edited by:
    Novice_inJAVA

  • Any guides on how to use UIScrollView?

    Hi,
    having difficulty implementing UIScrollView.
    I have UIViewController which has UIView on it. I have changed UIView class inside IB to UIScrollView, but have no idea how to make it to scroll vertically?
    At the moment its static and doesn't scroll at all.
    On my UIScrollView I have label, image and textview and text view length is unknown as it is loaded from database.
    What I want to achieve is that if textview doesn't fit on current view I want to be able scroll up and down. Do I need to have another UIView inside UIScrollView and place all my components on UIView instead of UIScrollView? Do I need to resize UIScrollView myself to be big enough for my components to fit?
    Any help is really appreciated.

    Don't know about tutorials for smart mailboxes, but I would suggest playing around with them as they are fairly self explanatory, as in you can filter either messages or to dos according to the rules you can see and choose. You can also create a smart folder that will filter messages from other smart folders, and so on and so forth.
    If you mean inbox, sent... for "standard" mailbox, you are correct. You cannot add a "sub mailbox" to these, you can only add a "sub mailbox" - mailbox within a mailbox - to a mailbox you create on your mac or if you have an IMAP account, under that IMAP mailbox/folder structure.
    As for best practice, again it will be up to you depending on how you use Mail and what type of messages you get, how many you get, and what you want to achieve. Some users filter their incoming mail to smart mailboxes directly and view in smart mailboxes, others create rules to move their email or set up automatic actions - see mail>preferences>rules to create rules - and view the mailboxes the incoming mail was moved to others just work straight from their inbox and drag and drop manually, and nothing stops you from using a combination of the above depending on the type of emails you receive and what you want to do with them.
    hope this helps

  • Count the number of segments used in payload.

    Hi experts,
    We have a received payload like :
    Seg1 - header
    seg2 - item
    seg2 - item
    seg2 - item
    seg3 - footer
    In the seg3 footer filed1 should have the value of number of segments used in payload,
    for example in above payload the value of field1 should be 5.
    How we can count these segments and place the value in field1 of seg3, in our receiver payload ?
    Please help.
    Regards,
    Study SAP

    Hi,
    if you want you could try this xslt mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:template match="/">
        <xsl:apply-templates/>
      </xsl:template>
      <xsl:template match="seg3">
        <xsl:copy>
          <xsl:element name="field1">
            <xsl:value-of select="count(//seg2)"/>
          </xsl:element>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    I have try with this similar xml as source:
    <?xml version="1.0" encoding="UTF-8"?>
    <segments>
      <seg1>header</seg1>
      <seg2>item1</seg2>
      <seg2>item2</seg2>
      <seg2>item3</seg2>
      <seg3>footer</seg3>
    </segments>
    And the result was:
    <?xml version="1.0" encoding="UTF-8"?>
    <segments>
      <seg1>header</seg1>
      <seg2>item1</seg2>
      <seg2>item2</seg2>
      <seg2>item3</seg2>
      <seg3>
        <field1>3</field1>
      </seg3>
    </segments>
    Maybe it could be useful for you.
    Regards,
    Emiliano

  • In this report i have marked one line..if this width 30,i need to multiply by a number 0.3 and if the width =30,it multiplies by 0.37...how to use this logic here..??? anyone can help??

    In this report i have marked one line..if this width < 30,i need to multiply by a number 0.3 and if the width >=30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',
    T3.ItemName as 'FG Item Name',
    T2.PlannedQty as 'FG Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    0 as 'FG Pending Qty',
    0 as 'FG Receipt Qty',
    '' as 'Issue Item Code',
    '' as 'Issue Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    0 as 'Issue Item - Return Quantity',
    '' as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2
    UNION ALL
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',
    T3.ItemName as 'Item Name',
    T2.PlannedQty as 'Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',
    (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry 
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription    order by T2.DocNum desc

    Hi,
    Try this:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',T3.ItemName as 'FG Item Name',T2.PlannedQty as 'FG Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) <30 then ((T2.U_OD-T2.U_ID)/2) *0.3 end, 0 as 'FG Pending Qty',0 as 'FG Receipt Qty','' as 'Issue Item Code','' as 'Issue Item Name',Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',0 as 'Issue Item - Return Quantity','' as 'Return Doc No',SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntryINNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCodeLEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntryWHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2UNION ALL SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',T3.ItemName as 'Item Name',T2.PlannedQty as 'Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) >=30 then ((T2.U_OD-T2.U_ID)/2) *0.37 end, (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry
    where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,
    T2.PlannedQty,T2.U_OD,
    T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription  
    order by T2.DocNum desc
    Thanks & Regards,
    Nagarajan

  • I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be

    I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be recovered under these circumstances?

    If you never bought the product then you cannot get the serial number.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten.

    I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten. I need to download the product and I can't figure out where to begin.

    Ask someone at your school... Do you have a Cloud redemption code, or a CS6 serial number?
    If Cloud, Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html and
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    If CS6, download at Other downloads and enter your serial number when prompted
    Again... your 1st resource is your school

Maybe you are looking for