How to get the segment  detials of IDoc message type.

Dear Friends,
I  want to write function module , which takes the IDOC  message type  as an input and returns all the segment fields in response.
Basically I want to get the XML schema of a IDOC message type and need to expose these details toa 3rd party application to use.
Dear experts ,Please do give me some ideas how to achieve this .
like tables from where i can get these details or u feel any other goos way of doing the same.
thx,
jeevan

Hello experts,
Please participate .........
To redefine my objective I will say:--
I am trying to do some thing very similar that is there in XI .
You might have seen the way IDOCs are shown while mapping an idoc structure.
Its like you select a message type and u get all the list of  Idoc Structure shown .
I am really relying on you people.
thx ,
jeevan

Similar Messages

  • How to get the value of String in integer type

    how to get the value of String in integer

    {color:#0000ff}http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
    http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#valueOf(java.lang.String){color}

  • How to get the Status of an Idoc of successfully received in remote system

    Hi,
    I have created a report which post an idoc from system1 to remote SAP system2.
    But i want to get the final staus of posted idoc in system1 that the idoc posted was reached successfully to SAP system2  with status 53 only.
    Actually i need to show the final staus of the posted idoc in system 1.
    Is there any kind of acknowlegement can be received for an idoc posted that idoc has been reached to reamote system(SAP system in my case) sucessfully?
    If yes then how we can do that.
    Kindly reply.

    HI,
    you need IDoc Type ALEAUD.
    1. BD64 and maintain ALEAUD Messagetype to your distribution model
    2. WE20 - assign ALEAUD messagetype to your partner profile (in sending and receiving system)
    3. call report RBDstate to send ALEAUD message IDoc.
    note: the receiving system from the source IDoc sends the ALEAUD to the sending system.
    Another way:
    BDM2 - you can see IDoc number and status from sending and receiving system
    Regards,
    Gordon
    Edited by: Gordon Breuer on Oct 8, 2008 2:35 PM

  • How to get the content of a SOAP Message !

    Hi,
    i have a SOAP message wich has inside some information in xml format; how can i get the xml from the message ?
    Cheers.
    Stefano

    use java.xml.soap.
    Then the following:
    SOAPPart sp = soapMessage.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody  sb = se.getBody();And voila, sb holds your XML document :)
    good luck!

  • How to get the Max value of elements of type datetime

    Hi All ,
    I wanted to get the latest timestamp value ( datatype as datetime) from node list. I have following xml. In this xml, i want to get the modifydate element which has latest timestamp through xquery/xpath, it should return me following result 2011-09-29T17:21:17+10:00
    <CustomerList>
    <CustomerDetails>
    <name> Test 1</name>
    <status>active</status>
    <modifyDate>2011-08-20T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    <CustomerDetails>
    <name> Test 2</name>
    <status>cancel</status>
    <modifyDate>2011-08-29T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    <CustomerDetails>
    <name> Test 3</name>
    <status>active</status>
    <modifyDate>2011-09-29T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    </CustomerList>
    i tried to use the
    //CustomerList/CustomerDetails/modifyDate[not(. <=../preceding-sibling::CustomerList/CustomerDetails/modifyDate) and not(. <=../following-sibling::CustomerList/CustomerDetails/modifyDate)]
    But it is not working on datetime datatype.
    Any help in this regard is much appreciated.
    Regards
    Edited by: user6736659 on Sep 5, 2011 6:15 AM

    Hi,
    The following XQuery should give you what you want :
    max(
    for $i in /CustomerList/CustomerDetails/modifyDate
    return xs:dateTime($i)
    )For instance, using Oracle SQL :
    SQL> var xmldoc varchar2(4000)
    SQL> begin
      2   :xmldoc := '<CustomerList>
      3  <CustomerDetails>
      4  <name> Test 1</name>
      5  <status>active</status>
      6  <modifyDate>2011-08-20T17:21:17+10:00</modifyDate>
      7  </CustomerDetails>
      8 
      9  <CustomerDetails>
    10  <name> Test 2</name>
    11  <status>cancel</status>
    12  <modifyDate>2011-08-29T17:21:17+10:00</modifyDate>
    13  </CustomerDetails>
    14 
    15  <CustomerDetails>
    16  <name> Test 3</name>
    17  <status>active</status>
    18  <modifyDate>2011-09-29T17:21:17+10:00</modifyDate>
    19  </CustomerDetails>
    20  </CustomerList>';
    21  end;
    22  /
    PL/SQL procedure successfully completed
    SQL> select xmlquery('max(
      2   for $i in /CustomerList/CustomerDetails/modifyDate
      3   return xs:dateTime($i)
      4  )'
      5  passing xmltype(:xmldoc)
      6  returning content
      7  )
      8  from dual
      9  ;
    XMLQUERY('MAX(FOR$IIN/CUSTOMER
    2011-09-29T17:21:17.000000+10:00

  • How to know the function module for a message type

    hi sd gurus,
    how can i know the function modules used ( based  on message type can i know it?) in inbound idoc processing.
    can anyone  let me know where can i find it out and the related transaction codes
    Thanks&Regards
    Srini

    You can find out the Functionmodule if you know the message type.
    Go to WE20, find the message type for hte relevant partner type by clicking the partner type and then clicking one partner int hat partner type.
    Now on the right hand side, you will get a screen. Based on whether it is your outbound IDOC or ibound, click the relevant parameters, select the message type and double click.
    In the new screen open the Message control tab and fidn out the process code of the IDOC.
    Now go to WE41 if ur IDOC is outbound or WE42 for inbound IDOC.
    Search for the process code which is assigned to the message type in WE20.
    Double click the process code, you will see the relevant function module in the 3rd field.
    Hope thsi helps you
    Pls reward if it helps.

  • How to get the Customer detials in Purchase order Ship To Address

    Hi Friends,
    While doing the back-to-back order, when raising the PO, I want populate the Customer Name, Contatct Person and Address in Ship To address box. Can anyone please suggest a good query which can do that. I looking to create a formatted search based pon that.
    Regards
    Shiva

    Shiva,
    You can start with this:
    SELECT T0.CardName, T1.Name, T0.Address2
    FROM ORDR T0 INNER JOIN OCPR T1 ON T0.CntctCode = T1.CntctCode
    WHERE T0.DocEntry = $[POR1.BaseEntry] AND T0.ObjType = $[POR1.BaseType]
    Please bear in mind, it is a FS based on the rows so will run only on row level.
    Regards,
    Nat

  • Regarding: How to Get the Tax Amount

    Hai Friends,
                            I have the Input of  Amount + Tax Group.
                           I  need the amount for every Tax from Tax group.
                           How to get the Tax amount for differnt tax type.
    Please help me.
    Regards,
    K Sakthivel

    Hai Sakthi,
    As you want the report for different tax types  you can differentiate different tax types by tax rate and tax code  you can  refer the below query and modify  according to your requirement and you can add as many tax codes/tax type based on your needs.
    BASED ON TAX CODE AND TAX RATE :
    SELECT distinct  M.DocNum AS 'AR Inv. #', M.DocDate as 'Date', M.CardName as 'Customer Name',M.NumAtCard as 'Bill No. & Dt.',M.DiscSum,M.RoundDif,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',M.VATSUM,
    t.statype,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1 and taxrate=5  AND TAXCODE='CHVAT5' ) as 'CHENNAI VAT5  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=1 and TaxRATe =5 and DocEntry=M.DocEntry  AND STCCODE='CHVAT5' ) as ' CHENNAI VAT5 COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1 and taxrate=0.00  AND TAXCODE='CHTAXEXE' ) as 'EXEMPTED  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=1 and TaxRATe =0.00 and DocEntry=M.DocEntry  AND STCCODE='CHTAXEXE' ) as 'EXEMPTED COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1 and taxrate=14.50  AND TAXCODE='CHVT14.5' ) as 'CHENNAI VAT14.5  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=1 and TaxRATe =14.50 and DocEntry=M.DocEntry  AND STCCODE='CHVT14.5' ) as ' CHENNAI VAT14.5 COLLECTED ',
    (Select Sum(LineTotal) FROM INV3 Q Where Q.DocEntry=M.DocEntry) as 'FREIGHT',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    INNER JOIN NNM1 T4 ON M.SERIES=T4.SERIES
    where (t4.series ='1' ) AND TARGETTYPE !='14'
    GROUP BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,M.Series,T4.SeriesName,M.RoundDif,M.VATSUM,T.STATYPE,T.TAXRATE,Q.LINETOTAL,t4.series,
    Regards,
    P.V

  • How to get the maximum bandwidth/MaxSpeed/Capacity of a Hyper-V virtual-switch?

    We are trying to monitor Hyper-V environment (Windows 2008 R2 and Windows 2012) using WMI, and have a very specific question Hyper-V virtual-switch.
    We have referred the below mentioned classes and their properties.
    1. Win32_NetworkAdapter (namespace:root\cimv2, property:Speed)
    2. Msvm_InternalEthernetPort (namespace:Root\virtualization\v2, property: Speed and Maxspeed)
    3. Msvm_EthernetSwitchBandwidthData (namespace:Root\virtualization\v2, property:Capacity and Reservation)
    All of the above classes and their properties returns 10000000000 (10 GBps) as MaxSpeed, which is NOT correct (as we know that our network connection is of 1 GBps)
    Here is our question: How to get the maximum bandwidth/MaxSpeed/Capacity of a Hyper-V virtual-switch?

    Until MSFT makes a change to increase the max speed of the virtual switch (and the resulting virtual ports) it will be 10 Gbps.
    It has been this way since the original introduction in 2008.
    What you are looking for is the most limiting segment in the path.  The virtual switch does not assume the properties of the most limiting segment.  Since the physical side could be a team, it could be a single NIC.
    Your management layer must interpret the most limiting segment.
    If you have not already been here:
    http://blogs.msdn.com/b/tvoellm/archive/2009/04/23/monitoring-hyper-v-performance.aspx  Then take a look.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • How to get the return message after running BD20 tranaction ?

    Hi Gurus,
    My requirement is to Post vendor invoice through ALE/IDOC ( Inbound IDOC ).
    - For that I had generated the IDOC using  Function module 'IDOC_INBOUND_WRITE_TO_DB '
    - Then I had processed that generated IDOC by calling the standard program rbdapp01(BD20-Tranaction ) using the below statment
    SUBMIT rbdapp01 WITH SELECTION-TABLE lt_seltab .
    Could any one suggest me how to get the report output of standard program (rbdapp01) to an internal table so that I dispaly as an seperated report like Posted Document number with messages or Error message
    Suggest me any Function module or any other standard program to process the IDOC so that I can fulfill my requirement.
    Regards
    Paul

    Use can read the IDOC status after processing...
    Eg.
      SELECT * FROM edidc INTO TABLE t_idoc_control_tmp
          FOR ALL ENTRIES IN t_update WHERE docnum = t_update-docnum.
    and then add your own logic IF SY_SUBRC EQ 0.
    I hope this will help you.
    Regards,
    Amey

  • How to get the list of top 10 tables grown last week or last few days

    Hi All,
    Please let me know, how to get the list of top 10 tables grown last week or last few days
    Thanks

    Please let me know, how to get the list of top 10 tables grown last week or last few days1.Oracle Version and OS info please ... ALWAYS
    2.Do you have licensing options (Tuning and/or Diagnostics Pack) ?
    3.Have you ran AWR/Statspack in last week or last few days
    1.Because Oracle do not store auto tack the history of tables growth. See below link where one user has showed the possible way of manual track of table(s) growth :
    Re: oracle tables growth
    2.MOS Note for How To Get Table Growth History Information? [ID 1395195.1]
    3.If you are in 10g than EM of 10g has something called Segmnet Statistics which can show you the growth of your table.
    4.Other clue :
    SQL> select * from table (dbms_space.object_growth_trend('SCOTT','EMP','TABLE'));
    TIMEPOINT                                                                   SPACE_USAGE SPACE_ALLOC QUALITY
    17-SEP-12 11.06.20.228000 AM                                                       1593       65536 GOOD5.A good script by Mice Ault for historical growth of segments within AWR:
    http://www.dba-oracle.com/t_table_growth_reports.htm
    Regards
    Girish Sharma

  • How to get the DFF Context Value in CO

    Dear All,
    i am working on extension on EitUpdateCO, the same page contains more than one EIT
    for Some EITs i have to populate calculated values into their segments .
    How to get the Context value of DFF .
    Please send me the code if u have .
    Thanks
    Raju

    Hi
    can i get the information type from ExtraInformationTypeVO,
    but the create ,update pages using different VOs
    Please tell me the solution.
    Thanks
    Raju

  • How to get the Ship-To text for an Order from R/3 to CRM?

    Hi experts,
    how to get the Ship-to-Party text for an Order from R/3 to CRM?
    Here I used a Function Module CRM_ORDER_READ and its working in the Development server.
    After when this passed to the Stage Server for the Order i am maintaining the same Ship-to-Party for the order in the Stage server and I am no getting the text for that{Text maintained for the Ship-to-Party in the stage server}.
    Thanks in advance.

    Hello Nilaksha.
    You can use the following query. Modify the segment to be queried if you wish.
    SELECT cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4 "Account",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id = <your set_of_books_id'
    AND cc.segment2 = 'your segment value'
    AND l.effective_date <= '30-nov-09'
    GROUP BY cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4
    Hope this helps.
    Octavio

  • How to get the records which has a specified x/y coordinates

    Hi,
    How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
    Thanks and Regards
    Aravindan

    Aravinda,
    If you want to find the line segments which intersect the given
    set of points, you can do that with SDO_RELATE.
    siva

  • How to write the logic for extending Idocs...

    Hi,
          Can anybody pls explain how to write the logic for extending IDOCs with an example...
          Good suggestions can be appreciated..
    Regards,
    Ram

    Hi Ram,
    Generally the IDoc user exit is called at the following places:
      1) When the control record is read.
      2) After each and every segment in the data record
      3) At the end of the data segment processing.
    The IDoc user exit interface generally imports IDOC_DATA (data record internal table) table. Now the data records in the internal table should appear in the same order as maintained while defining IDoc structure (WE30 transaction). For SAP standard segment SAP code will take care of this. For extended segment you will have to take care of this aspect by appending the Z-segment in the IDOC_DATA table.
    You can do this by:
             looping at IDOC_DATA table:
                 - Do a case-endcase fo IDOC_DATA-SEGNAM (This stores the segment 
                   structure as per the hierarchy).
                 - Within the case for "Z-segment" you can write the logic for appending
                   the Z-segment to IDOC_DATA-SDATA.
    Hope this gives some clue.
    Regards,
    Gajendra.

Maybe you are looking for

  • Since installing the latest update firefox stops responding and hangs during use.

    The only way I can get it to work is to shut it down and restart the application. I can open IE and access the sites which don't respond so it is definately a firefox problem. All firefox tabs stop responding including downloads. This is occurring ev

  • Z axis missing

    I am using Adobe CS6 Extended. When I click 3D, I can't move the object along the "Z" axis. When I move around I only have the X and Y axis. How do I get the Z axis back. It's driving me crazy! Thanks in advance.

  • 750GB Seagate External Drive - Disk Insertion error

    I have two 750 GB Seagate External hard drives, which are daisy chained to my PowerMac G5. I was transfering files between external hard drives, when all of a sudden the computer crashed. Once I restarted, the computer gave a disk insertion error: Di

  • Moving  and splitting photos - catalog questions

    Until recently, all my photos were On one disc with one Lightroom catalog. Now there are too many photos for a single disc, so I split them into two discs and created a new catalog to deal with the two different locations. Of course, I immediately lo

  • Accessing Calendar via UWC

    Dear All I just installed the JES2005/Q4 on single server and everything is almost fine exclude calendar via UWC, calendar express working without any problem and also I can login with calmaster user name, but when I login to UWC, I can't access the