SRM Catalog Download

Hi all
I need to download the full SRM Catalog structure together with all details from SRM to logcal XML file.
I've checked all around here on SDN but have not comed up with a clear solution...
One of these were : http://forums.sdn.sap.com/thread.jspa?threadID=1217084
My concern is more or less UNICODE..
So far I have tested this
- I have a deep structure with all the data about the Catalog structure <t_dyntable>
- then I try to convert this contents into UTF-8. By doing this I will get some of the special characters to show up as they should ( it think one of those were .amp that were successfully translated to &)
- Then CALL TRANSFORMATION were done to get the XML-file
Below you can see some different way's I have tried... Trying to use XSTRING.... and download via type BIN for GUI_DOWNLOAD. My starting point was with UTF-16, but with that I could not read the XML file at all - With UTF-8 I can read it but still as soon as some kind of special sign shows up the XML-editor complains about - Not allowed letter. Please help
Best regards
Henrik
data: g_ixml type ref to if_ixml,
        g_stream_factory type ref to if_ixml_stream_factory,
        g_encoding type ref to if_ixml_encoding,
        ostream type ref to if_ixml_ostream.
data: v_encoding TYPE abap_encoding.
DATA xml_xstring TYPE xstring.
constants: encoding type string value 'utf-8'.
v_encoding = encoding.
g_ixml = cl_ixml=>create( ).
g_stream_factory = g_ixml->create_stream_factory( ).
g_encoding = g_ixml->create_encoding( character_set = encoding
                                                           byte_order = 0 ).
ostream = g_stream_factory->create_ostream_xstring( string = xml_xstring ).
ostream->set_encoding( encoding = g_encoding ).
          CALL TRANSFORMATION Z_TRNS_CCM_TO_MDM_TRY
          SOURCE ITEMS = <t_dyntable>
          OPTIONS xml_header = 'FULL' 
          RESULT XML ostream. 
*   Convert XString to String
    data: loc_conv type ref to CL_ABAP_CONV_IN_CE,
            loc_xstring type xstring,
            loc_string type string.
    CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE
      EXPORTING
        INPUT       = xml_xstring
        ENCODING    = 'UTF-8'
        REPLACEMENT = '?'
        IGNORE_CERR = ABAP_TRUE
      RECEIVING
        CONV        = loc_CONV.
    TRY.
        CALL METHOD loc_CONV->READ
          IMPORTING
            DATA = xml_string.
      CATCH CX_SY_CONVERSION_CODEPAGE.
*-- Should ignore errors in code conversions
      CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
*-- Should ignore errors in code conversions
      CATCH CX_PARAMETER_INVALID_TYPE.
      CATCH CX_PARAMETER_INVALID_RANGE.
    ENDTRY.
data xstring type xstring.
types: BEGIN OF ldata,
f(5000) type x, "(2556) type x,
END OF ldata.
data table type table of ldata.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = xml_xstring
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
tables
binary_tab = table
*          CALL TRANSFORMATION Z_TRNS_CCM_TO_MDM_TRY
*          SOURCE ITEMS = <t_dyntable>
**          OPTIONS xml_header = 'NO'   
*          OPTIONS xml_header = 'FULL'   "
*          RESULT XML xml_string.
REFRESH GT_ITAB.
CLEAR <t_dyntable>.
REFRESH <t_dyntable>.
          APPEND xml_string TO gt_itab.
          IF FILE_LO IS INITIAL.
            FILE_LO = 'C:\TEMP'.
          ENDIF.
          concatenate FILE_LO '\item_list_' lv_pack_count_string '.xml' into gs_file.
          CALL METHOD cl_gui_frontend_services=>gui_download
            EXPORTING
              filename                = gs_file
*            FILETYPE                  = 'BIN'
            CHANGING
              data_tab                = gt_itab
            EXCEPTIONS
              file_write_error        = 1
              no_batch                = 2
              gui_refuse_filetransfer = 3
              invalid_type            = 4
              no_authority            = 5
              unknown_error           = 6
              header_not_allowed      = 7
              separator_not_allowed   = 8
              filesize_not_allowed    = 9
              header_too_long         = 10
              dp_error_create         = 11
              dp_error_send           = 12
              dp_error_write          = 13
              unknown_dp_error        = 14
              access_denied           = 15
              dp_out_of_memory        = 16
              disk_full               = 17
              dp_timeout              = 18
              file_not_found          = 19
              dataprovider_exception  = 20
              control_flush_error     = 21
              not_supported_by_gui    = 22
              error_no_gui            = 23
              OTHERS                  = 24.

Hi again
With coding above the download xml-file will contain
&amp :  is interpreted as & in the xml-editor = OK
BUT the file contains other special signs that do not work:
± :  is not interpreted ok. XML-editor will stop analyzing the file = NOT OK
Do you know if I could use another way of codepage or something to also handle these special signs.
Best reg
Henrik

Similar Messages

  • Srm-catalog portal content

    hi!
    does anybody know what is the special content that SRMMDMCAT01_0.sca have?  
    different iViews?
    if i'm implementing srm-portal-mdm-r3   it's necessary?
    because i'm not using all the srm catalog, and only installed the mdm portal content, i'll have some problems?
    thanx

    The purpose of SRM-MDM is to use MDM as the catalog.  You would store the data in MDM and SRM will then reference MDM ad-hoc.  As part of the implementation, SAP delivers a webdynpro application which is deployed on a Netweaver Java stack, and that's what the user uses to search the catalog.  The two applications (iViews) are called SearchUI and AdminUI.  If you aren't going to use these, how are you planning on searching the catalog from SRM?

  • SRM - Catalog Content Management

    Hi SRM Masters
    Can any one could send me the config documentaion for SRM Catalog Content Management document and functionality(other than SRM260 and SRM270 both I have).
    and also SUS config documents and functionality.
    Regards
    Rajesh

    Hi,
    Check these links....
    http://www.sap.com/usa/solutions/businesssuite/srm/pdf/BWP_SID_Catalog_Content_Mgmt.pdf
    http://www.jhu.edu/hopkinsone/documents/SRMCatalogandContentManager_000.pdf
    Reward points if useful....
    Regards
    AK

  • SRM catalog setting to make items level field vissible.

    Hi
    I am dealing with SRM catalog activitities . I want to know the setting by which we make the field visible on portal at item level.
    rgds
    amarendra

    Hello amarendra,
    which field are you talking about ?
    The one to access to catalog?
    If yes, you have to maintain Web Service value for CAT attribute.
    Regards.
    Laurent.

  • SRM Catalog and PM BOM integration

    Hello Experts,
    We have a scenario where client wants to use SRM catalog items (no material master) into the ECC PM BOM as a component.
    Catalog items are already integrated with work order processing. 
    Is this advisable to do? What is required to do this?
    Thanks,
    Sagar

    Hi Sagar,
    I believe this is better asked in the ERP Forums, please raise your query there, from the perspective of SRM and Catalog, as long as the calling application supports Open catalog interface call/return, you can use catalogs in it. I uess also helpful for BOM setup would be the SRM-MDM Hierarchy structure
    Regards,
    Jason

  • I intended to download one album to a DVD+R. Nearly the whole catalog downloaded. Can I put back?

    I  intended to download one album to a DVD+R. Practically the whole catalog downloaded. ie.  When I go to edit an image in organizer, I am prompted that I have to re-insert the DVD+R to work on it. ( We are talking 3000+images)
    How can i re upload ot whatever those images, so i do not have to inset the DVD+R to work on the image in my Elements?
    Thank you for any help (if possible.)

    I had not released that copy/ move could be either.  So that is what I did,
    by error, I moved them to the disk.  I must have also done something else
    veryweird to make a multitude of photos move rather than the fw i
    intendeded,  However, I have now used I think the term is "Restore" catalog
    and they are in the program.  If I want to print them or edit, them I have
    to reconnect them but it seems relatively easy and i have recovered most
    everying.
    AS another Adobe adviser on the Forum said, you have to read the material!
    So I have resolved to stick with Elements a bit longer and work harder!
    Thanks for your help.  Problem solved!

  • Images stop appearing in SRM Catalog

    Hi,
    We have a problem thet images in the SRM Catalog stop showing.
    The images are loaded in to the MDM Repository, (no hyperlinks)
    The end users can see some of the pictures but some are just blank (no red cross even)
    We are now using SAP MDM 7.1 SP09 and SRM 7.0 EHP2
    Do you have any ideas how this problem can be solved?
    Many thanks in advance!
    Best regards,
    Kim

    Hi Sudha.
    PDF's are supported by SRM-MDM Catalog as a hyperlinks.
    Try attaching the PDF as a hyperlink for a record.
    - Select a record-> Naviagate to Hyperlink Qualified Lookup->Add a new entry ->Select type as Link->Provide the PDF URL and other details->Save the record.
    you can also do a mass upload of the PDF to a repository.
    Now configure the hyperlink column to the UI and launch the catalog and check, you will find the link of the PDF where you can
    open it by clicking the hyperlink. Let me know if you face any issues.
    Regards
    Bala

  • To use SRM Catalog from ECC

    Hi All,
    there is a way to use the SRM catalog from ECC system?
    Can I buy items from ECC system selecting them from SRM catalog?
    Thanks in advance.
    Antonio.

    Hi Antonio,
    If I have understood your question correctly - you are looking out to buy products within ECC system using SRM system
    If this is the case, you can do 2 things-
    1. You can replicate all ECC products to SRM and buy them from standard SRM shopping cart functionality; wherein a search functionality would be avaialable to find out a perticular replicated backend product. Regarding maintenance of prices for these products- you can use 'interlinkages' withing SRM. You can maintain separate price of different vendors for a same product using interlinkages.
    2. I am not sure about CCM but if SAP MDM is in your scope along with SRM, then you can replicate all ECC products as standard catalogs items to MDM from ECC. This would require XI as a middileware. Once replicated you can use these catalogs from buying purpose withing SRM
    Hope this helps you.
    Best Regards,
    Amit

  • Sizing SRM Catalog management

    Hi Folks,
    Could you please let me know how to size the catalog management (CCM2.0) for SRM 5.0. I have checked the quick sizer and there is no questionnaire to find the details. Could some one help me find out the detials.
    regards
    Unni

    Dear Unni,
    Sizing for the SRM catalog, if it is based on SAP MDM could be found here:
    http://service.sap.com/~sapidb/011000358700001921872008E
    Best Regards,
    Sylvia

  • Hp catalog download failed

    hi folks
    after our house being burgled we have bought another touchpad
    we restored the info from her webos account
    on the new touchpad the hp apps catalog download is failed
    any ideas please
    Post relates to: HP TouchPad (WiFi)

    thats it working
    found the solution on this thread
    http://forums.hpwebos.com/t5/HP-TouchPad-Software-Hardware/HP-App-Store-link-is-incorrect/m-p/364646...
    thanks folks

  • SRM Catalog

    Hi experts,
    I want to create a catalog in SRM without using mdm. I am new user and I have not able to find out how can i create a catalog.
    Please can you guide me which t-code i have to use or where it is placed in IMG?
    Best Regards

    Please refer the Catalog Content Management link in the SRM wiki
    https://wiki.sdn.sap.com/wiki/display/SRM/Business+Scenarios
    In addition you can download the config guides in the below link:
    https://wiki.sdn.sap.com/wiki/display/SRM/Configuration+Guides
    Note: You will require valid SMP login.
    Regards
    Kathirvel

  • SRM Catalog Transfer Error

    We have just finished installing SRM 7.0 ABAP (AIX/Oracle/NW 7.0 EhP 1) on one server, SRM 7.0 Java (same config) and SRM-MDM (3.0) on another server.
    The servers talk fine. We're using ABAP for UME, we've done all of the configuration in the SRM-MDM catalog config guide and the SRM config guide.
    We have a test user, set up to be able to see the catalog and shop. When logged in as this test user, we go to Employee Self-Service, Shop and click on a catalog to search. The catalog items are displayed on the screen.
    When we try to transfer items to the shopping cart, we receive an error:
    "Unit not transferred and cannot be determined
    Incomplete items in catalog. Only complete items were transferred."
    There is nothing in the J2EE logs, or MDM logs. No short dumps, nothing in the System log on the ABAP side.
    Can anyone think of any place else to look?

    Log into your MDM_SRM_UI_App, check your OCI setting and find out which field in MDM is mapped to you order unit. And check MDM catalog manager to find out whether or not you are sending this value.
    If this check is fine, check the uom has a correct ISO code in SRM and the primary iso code check box is checked. I am sure the first check should solve your problem
    Thanks
    Padhi

  • Defaut lead time in SRM Catalog

    Hi,
    I would like to know as to what are the options for making the lead time parameter ( from Catalog) set to a default value so that the delivery date ( required on date ) in SRM can be set to the current date + default value.
    For eg: if the lead time in the catalog parameter can be set to 1 then the required on date in the shopping cart should be current date + 1.
    I think this is possible through the BADI BBP_CATALOG_TRANSFER .  Also, it is possible to set the lead time so that the system calculates the next working day. Like if a shopping cart is created on friday the delivery date should be Monday.
    Does anyone have the implementation code for realizing this scenario.
    Awaiting your replies !
    Regards,
    Rajesh Rajendran

    Hi Jason,
    Thanks for the reply. I know that the lead time determines the delivery date of the product procured from SRM. However, my question was more technical. In terms of adding a default lead time for all the products which are obtained from the catalog.
    We can use the BADI BBP_CATALOG_TRANSFER to change or add to the data that the catalog returns to SAP Enterprise Buyer via the catalog interface. I just wanted to get a sample code of how to code the BADI for setting the lead time parameter for all the line items from catalog to say fixed value 2.
    This is in cases where the lead time parameter is sent blank from the vendor.
    Regards,
    Rajesh
    Edited by: Rajesh Rajendran on Mar 25, 2009 8:38 PM

  • TREX-In SRM Catalog

    Dear experts,
    Can any one explain me what exactly the role of TREX in catalog management.
    I never worked on SRM open catalog, now in our client we need to setup a catalog.  Cany any one pleae share their knowledge in this area.
    Regards,
    Krish

    TREX is a search engine to search the catalogs and contracts.
    Is TREX required for CCM 2.0 search?
    question on RFC's between XI and TREX for CCM 2.0 distributed scenario
    regards
    Muthu

  • HP app catalog download problem

    I have been trying to re-download Advanced Browser for my new 32gig Touchpad (upgrade from a 16gig). All of the other programs from the HP app store downloaded fine. I keep receiving a download error and a box asking if I want to try again. Trying again makes no difference, it still doesn't work. I have tried to contact the developer and have not received any response. I am hopping it is a problem on HP's end and an be fixed.

    mckelveyw wrote:
    If no one can help me here, where/whom should I contact. I tried contacting the developer directly several times and received no response. How do I get someone  from HP to look into this?
    We are mostly Volunteers on this Forum.   I don't believe there is any official support for webOS or the App Catalog anymore, but you can certainly try the main "Contact Us" links:
    To contact HP directly, click this link: http://www8.hp.com/us/en/contact-hp/contact.html
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • 30" Apple Monitor as HD TV/DVD Source as Well?

    Hi everyone! I am considering buying a 30" Apple monitor with my PowerMac and am considering the following: Ditching my old TV and having just the computer and 30" in my bedroom. I want to use the 30" monitor for both my PowerMac and for watching DVD

  • How can I include documents in already existed one?

    Hi all, I do not mean etc. <include file="" .. Let's say you have a file called index.html. In this file you have a form with two fields cusName and custID. After I submit this page I need to have a page with the name of the ealier one which was. It

  • How do I specify handleTransactionsManuallyForSybaseJConnect with 1003DP2?

    Hi, In the new 1003DP2 APi getLogin has been deprecated. Up until now I have used it to set the Sybase flag so that transactions would actually get committed: dbLogin = sssn.getLogin(); // XXX FIX for "SET CHAINED..." exception // Sybase JConnect5.5

  • Bootable backup and time machine/capsule

    Is it possible to create a bootable backup using time capsule?

  • Keyboard highlight on macbook pro

    What can I do to disable keyboard highlight while using winXP on MBP? I can adjust it with f6 and f5 but I can't turn it off. Does anybody know something about it?