Exporting parameter "name" of the FUNCTION 'SDIXML_DATA_TO_DOM'?

We've got one question for the Exporting parameter "name" of the FUNCTION 'SDIXML_DATA_TO_DOM' show below:
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
    EXPORTING
      name         = 'anything?'
      dataobject   = it_tab[]
    IMPORTING
      data_as_dom  = l_dom
    CHANGING
      document     = m_document
    EXCEPTIONS
      illegal_name = 1
      OTHERS       = 2.
We've got two questions about this function:
1. What is this function for?  Just convert a SAP internal table to a document content?
2. What would be the value for the Exporting parameter "name"?  We can give it any string value? or it just has to be the internal table name?
Thanks and we will give you reward points!

hi check this..
parameters: file type rlgrap-filename.
types: begin of t_itab,
         vbeln type vbap-vbeln,
         posnr type vbap-posnr,
         matnr type vbap-matnr,
         matwa type vbap-matwa,
       end of t_itab.
data: itab type standard table of t_itab with header line.
start-of-selection.
  itab-vbeln = '0123456'.
  itab-posnr = '00010'.
  itab-matnr = 'Sreekanth'.
  itab-matwa = 'Gollamudi'.
  append itab.
  clear  itab.
  itab-vbeln = '067890'.
  itab-posnr = '00020'.
  itab-matnr = 'Sachin'.
  itab-matwa = 'Tendulkar'.
  append itab.
  clear  itab.
  itab-vbeln = '834580'.
  itab-posnr = '00010'.
  itab-matnr = 'Saurav'.
  itab-matwa = 'Ganguly'.
  append itab.
  clear  itab.
  perform output_xml.
*&      Form  OUTPUT_XML
      Out put XML
form output_xml .
  data: l_dom      type ref to if_ixml_element,
        m_document type ref to if_ixml_document,
        g_ixml     type ref to if_ixml,
        w_string   type xstring,
        w_size     type i,
        w_result   type i,
        w_line     type string,
        it_xml     type dcxmllines,
        s_xml      like line of it_xml,
        w_rc       like sy-subrc.
  data: xml type dcxmllines.
  data: rc type sy-subrc.
  data: begin of xml_tab occurs 0,
          d like line of xml,
        end of xml_tab.
  class cl_ixml definition load.
  g_ixml = cl_ixml=>create( ).
  check not g_ixml is initial.
  m_document = g_ixml->create_document( ).
  check not m_document is initial.
  write: / 'Converting DATA TO DOM 1:'.
*-- Here we will transfer the actual internal table to XML document
  call function 'SDIXML_DATA_TO_DOM'
    exporting
      name         = 'SALES ORDER'
      dataobject   = itab[]
    importing
      data_as_dom  = l_dom
    changing
      document     = m_document
    exceptions
      illegal_name = 1
      others       = 2.
  if sy-subrc = 0.
    write 'Ok'.
  else.
    write: 'Err =',
    sy-subrc.
  endif.
  check not l_dom is initial.
  w_rc = m_document->append_child( new_child = l_dom ).
  if w_rc is initial.
    write 'Ok'.
  else.
    write: 'Err =',
    w_rc.
  endif.
  call function 'SDIXML_DOM_TO_XML'
    exporting
      document      = m_document
    importing
      xml_as_string = w_string
      size          = w_size
    tables
      xml_as_table  = it_xml
    exceptions
      no_document   = 1
      others        = 2.
  if sy-subrc = 0.
    write 'Ok'.
  else.
    write: 'Err =',
    sy-subrc.
  endif.
  loop at it_xml into xml_tab-d.
    append xml_tab.
  endloop.
  call function 'WS_DOWNLOAD'
    exporting
      bin_filesize = w_size
      filename     = file
      filetype     = 'BIN'
    tables
      data_tab     = xml_tab
    exceptions
      others       = 10.
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
endform.                    " OUTPUT_XML
regards,
venkat.

Similar Messages

  • Find Triggered report name in the function module.

    Hi All,
    A function module is being called by many Reports say (100). Now the question is, I need to find out the Triggered report name in the function module where I can do required logic change based on the report. I cannot include an import parameter in the function module to capture the Report name, for this solution I need to change 100 reports. Is there any better way to find the Triggered report name in the Function Module?
    thanks in advance.
    ravi

    Try system parameter SY-CPROG.

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Grapher... name of the function on the graph ?

    Hello,
    Could you tell me if it's possible to put the name of the function (with mathematical symboles) directly on the graph ? If yes, how do you do ?
    Thank you

    Hi, Greeeg.
    I've not found a way to do this despite many experiments. It does not appear to be designed that way.
    You can add text and other annotations to a 2D graph by selecting the desired Object > Insert choice, but you can't place the equations within the space in which the graph is displayed. With 3D graphs, you cannot annotate the graph itself or place the equation(s) within the space occupied by the graph.
    To combine the equation(s) and graph in the way you want, you will need to combine them within another document or image-editing application, such as Photoshop.
    To use the graphs and equations you've created in Grapher within other documents, such as scientific report or an image-editing application, see the topic "Creating images of graphs and equations" in Grapher Help. In Grapher, select Help > Grapher Help. In the Help Viewer window displaying Grapher Help, click "See all Topics", then select that topic from the list.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Name of the function module to logon to other server

    Dear All
                        i would like to know the name of the functional module through which user can logon to other server ex: from DEV to PRD for debug the programs . i tried through st03N i am able to get only used tcode but not functional module from which they are logon to prd server
    is there any way to get logs for particular user to get log for last 10 days used tcodes all my traces are not active and audit also not active..
    Regards

    Dear
    I need the name of the FM through which we can log on to any other server
    there is S_RFC authorization object now i disabled that but i need the name so i can manually restrict the FM 
    Regards

  • Mode -export command: name of the portal schema

    hi all.
    im using portal 10g , i've exported a Page through OEM, downloaded curresponding script, run the script and faced to its first part:
    Enter the name of the portal schema (Default=PORTAL30):
    Enter the password for the portal schema (Default=PORTAL30):
    i donnot know what are the defaults for these two. (portal/portal or portal/portal_schema or .... ????)
    can any one help
    (i should add that im using portal10g on a SuSE 8 enterprise)
    thanks
    farbod

    James, to output page 1 of a document, you can use the index of a page of a document.
    You need not to use its name property and a string value for this.
    myPageToExport = app.documents[0].pages[0];
    will do the job.
    But how do you know where an alternate layout is starting and ending?
    You could check the Section collection of a document and look for the value of alternateLayoutLength.
    The name of an alternate layout is the value of the property alternateLayout of a specific Section…
    Here a code snippet, that could do the job for the index of every starting page of an alternate layout:
    var myDoc = app.documents[0];
    var mySections = myDoc.sections.everyItem().getElements();
    var myStartsOfAlternateLayouts = [];
    for(var n=0;n<mySections.length;n++){
        //It seems, that sometimes a new section could force the value of alternateLayout of a Section to an empty string
        //Could be a bug in CS6.
        //So we will ignore empty strings:
        if(mySections[n].alternateLayout !== ""){
            myStartsOfAlternateLayouts[mySections[n].alternateLayout] = mySections[n].pageStart.documentOffset;
    for(x in myStartsOfAlternateLayouts){
        //Results will show the names of the different alternate layouts:
        $.writeln(x);
        //Results will show the index numbers of the pages where the alternate layouts start:
        $.writeln(myStartsOfAlternateLayouts[x]);
    Note: Read the comments in the code.
    I found, that sometimes alternateLayout could yield an empty string.
    Could be a bug in CS6 where I tested this code.
    Uwe

  • Where I Find the names of the functions modules?

    Hi,
    Someone help me? I need to know what table has the information about the functions modules,  functions group,description, etc.
    Thanks for your help.
    Maria C

    hi
    chk the table tadir.
    and check OBJECT = func ( function modules)
                                    fugt ( fn grp text)
                                    fugr  ( fun gr)
    table TFDIR for FMs.
    regards,
    madhu

  • Name of the function module-where used

    I want to know the name of function module which gives the where used list for that perticular table. like I want a where used list abt table spfli so which function module gives this information.*where used list for tables

    Hi Abhijeet,
                      Use FM <b>BRF_WHERE_USED</b>
                                  <b>RKD_WHERE_USED_TABLE_IS_BUILD</b>
    There is another way without FM.go tpo se11.enter the table name.click on WHERE-USED_LIST button on application tool bar.
    Reward points if helpful.
    Regards,
    Hemant

  • ADS MA : the XML exported file (export to log file) doesn't export Distinguished Name in the attribute member for a group

    Hello,
    I am facing a weird issue during the export of a group to a log file (xml).
    I have configured my ADLDS management agent such as the export run profile exports data into a XML Ffile:
    Everything is fine in the XML, I see my new accounts, the attributes updated for accounts but for an unknown reason the group which should contains accounts does
    not contain the DN values.
    It contains the tags <dn-value> and <dn> but <dn> is empty
    e.g:
    <delta operation="update" dn="CN=GroupX,OU=Users,DC=ZZZZ">
     <anchor encoding="base64">XDSQDQDQ</anchor>
     <dn-attr name="member" operation="add" multivalued="true">
      <dn-value>
       <dn/>
      </dn-value>
      <dn-value>
       <dn/>
      </dn-value>
     </dn-attr>
    During the export, FIM updates the attribute "member" of the group:
    Member attribute seems to be caught by FIM during synchro profile and export profil bt not translates correctly in the final xml file.
    Any ideas?
    Thanks for your reply.

    Thinking the same thing as David - sounds like a bug - but that's curious because I've never had a problem with the AD MA doing exactly the same thing, albeit with FIM R1 most recently.  What version of FIM are you using, and have you checked the
    release notes of any subsequent versions to see if any such issue is mentioned?
    Bob Bradley (FIMBob @
    TheFIMTeam.com) ... now using FIM Event Broker for just-in-time delivery of FIM 2010 policy via the sync engine, and continuous compliance for FIM

  • Use of exporting parameter VIA_T777D in function module RH_READ_INFTY

    Hi,
    Can any one explain me the use of exporting parameter VIA_T777D in the function module RH_READ_INFTY.
    Regards,
    Aravind

    Closing.

  • How to use the  function ' CRM_INTLAY_ANALYZE_DATA '?

    Hi Experts,
    I am working in a scenario where I need to get the GUID of a complaint transaction even before the complaint transaction is saved.I can get that using the function 'CRM_INTLAY_GET_HEADER_GUID' .I also want to get the codegroup and the code associated with the complaint .For that I want to use the function 'CRM_INTLAY_ANALYZE_DATA'. This function has got an import parameter 'IT_ITF_CHANGED_FIELD' which is of type tabletype 'CRMT_ITF_CHANGEDFIELD_TAB' . the line type of this table type is 'CRMT_ITF_CHANGEDFIELD' .In it there is a field called 'REF_GUID' .I populate only this field using the guid returned from 'CRM_INTLAY_GET_HEADER_GUID' .
    But no values are coming in the export parameter 'ET_SUBJECT' of the function.
    I think I am missing something.
    Please give some solution as it is very urgent.
    Thanks,
    Samrat Dutta

    Hi Experts,
    I am working in a scenario where I need to get the GUID of a complaint transaction even before the complaint transaction is saved.I can get that using the function 'CRM_INTLAY_GET_HEADER_GUID' .I also want to get the codegroup and the code associated with the complaint .For that I want to use the function 'CRM_INTLAY_ANALYZE_DATA'. This function has got an import parameter 'IT_ITF_CHANGED_FIELD' which is of type tabletype 'CRMT_ITF_CHANGEDFIELD_TAB' . the line type of this table type is 'CRMT_ITF_CHANGEDFIELD' .In it there is a field called 'REF_GUID' .I populate only this field using the guid returned from 'CRM_INTLAY_GET_HEADER_GUID' .
    But no values are coming in the export parameter 'ET_SUBJECT' of the function.
    I think I am missing something.
    Please give some solution as it is very urgent.
    Thanks,
    Samrat Dutta

  • Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL

    Hi all,
    I have to send the same message to five different mail ID's using the Function module MESSAGE_SEND_AS_MAIL
    How to pass this five mail ID's in the Parameter Reciever of the Function module
    Regards
    Ajay

    see if this helps
    REPORT  Z_MESSAGE.
    data receiv type standard table of SOMLRECI1 initial size 0.
    data wa type SOMLRECI1.
    wa-receiver = 'email address in caps'.
    wa-REC_TYPE = 'U'.
    append wa to receiv.
    wa-receiver = 'email address in caps'.
    wa-REC_TYPE = 'U'.
    append wa to receiv.
    do so more more three
    CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
      EXPORTING
        msgid           = 'Z_ZZZ_CA_MESSAGES'
        msgno           = '000'
       MSGV1           = 'material'
       MSGV2           = 'MAT'
       MSGV3           = 'MM'
       MSGV4           = 'MMM'
      tables
        receivers       = receiv[]
              COMMIT WORK AND WAIT.
    then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.
    Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM
    Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM

  • Procedure or function expects parameter name which was not supplied

    SQL 2008R2 - BIDS
    I added an additional parameter to my SSRS Report.  I set it up identical to a couple other parameters already in the report.  I added the parameter to the dataset.  I added the parameter to the stored procedure and verified that it functions
    correctly in SSMS.
    When I Preview the report I get the Procedure expects parameter error even though the parameter is in the parameter list with a value (0) assigned.
    How can I make this work???

    Hi John,
    The most likely is the parameter name on the dataset , doesnt match the parameter you created ,the best was is to delete the parameters related to the dataset   and apply the stored procedure again  to a dataset it willl create the parameters  automatically,i
     have replicated the logic  below is  an example
    Create Procedure testp
    @Country Varchar(max),
    @Year Int
    as
    SELECT     DimSalesTerritory.SalesTerritoryCountry, DimDate.CalendarYear, FactInternetSales.SalesAmount
    FROM         FactInternetSales INNER JOIN
                          DimDate ON FactInternetSales.OrderDateKey = DimDate.DateKey INNER JOIN
                          DimSalesTerritory ON FactInternetSales.SalesTerritoryKey = DimSalesTerritory.SalesTerritoryKey
    where SalesTerritoryCountry =@Country
    And DimDate.CalendarYear=@Year
    I have just renamed one of the parameter  for year to YYear and it throws an error similar to yours 
    Many Thanks
    Chandra
    Please mark as answered If this helps to solve your issue.

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • Again, ask the question of export parameter.

    Again, ask the question of export parameter.
    I wrote a java version transformation and it worked good with export parameter.
    However I can not work it out in graphical message mapping. I refered http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm.
    In PI7.1, I add an export parameter "EXPORT_PARA" in the "Signature" tab. Are there any special step to assign this parameter to an UDF? I did not find a way to do it.
    And then I define an UDF,
    public String SetExportPara(String sss, Container container) throws StreamTransformationException{
    String str = "GOOD";
    GlobalContainer gc = container.getGlobalContainer();
    OutputParameters paras= gc.getOutputParameters();
    if(paras.exists("EXPORT_PARA ") == true) {
    paras.setString("EXPORT_PARA ", str);
    }else {
    str = "NOT FOUND EXPORT_PARA";
    return str;
    And I assign this UDF to one element of my output XML, I tried to run it in IE, it always output "NOT FOUND EXPORT_PARA.
    why?????
    I know there is a blog : https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8654. [original link is broken] [original link is broken] [original link is broken]
    But it did not talk how to set export parameters.

    close this

Maybe you are looking for