Skip to Content
avatar image
Former Member

How to use API- CL_SMUDE_API in 7.2 for transaction upload

Hello!

We have managed to use this API in order to add additional nodes to the Business process structure including Scenario, Process & process step. Now we want to add and assign transaction and program executables. We cannot find the appropriate part in the API that enables this and also we do not understand the underlying data structures (where have F1 + F4 gone?.....) We would appreciate some help or advice and direction or example on how to do this.

Anyone? SAP? Andreas?

Thanks and Best Regards,

Oded Dagan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

10 Answers

  • Feb 03, 2017 at 03:50 PM

    Hi Oded,

    I guess you used IF_SMUDE_NODE_WRITE~CREATE_CHILD_NODE_BULK. This can also be used for transaction and program executable references, but you will have very a hard time to add elements in the library since this is very complex. We recommend to use our 3rd Party API in general. CL_SMUDE_API focuses on the integration of solution manager applications with solution documentation.

    Kind Regards
    Andreas

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 05, 2017 at 12:58 PM

    Hi Andreas.

    Which 3rd Party API you recommend to use?

    What is the name of class ? Maybe there are appropriate examples?

    Thanks in advance.

    Faina Fridman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 06, 2017 at 07:10 AM

    Hello Andreas!

    We are using the 3 rd party API CL_SMUDE_API as you recommended .

    In the list of available methods we have found NEW_NODE_LIB that we thought can be used to create a new original process step.

    But this method requires a site ID and a role ID. We don't use sites and don't know what a role ID is.

    So we have used the method NEW_NODE_WRITE and succeeded to create scenarios and process nodes.

    We have a problem that when we try to create a new original process step - only the Ref process step is created without the original process step.

    When we tried to create an original process step we received a Dump.

    We also have a problem in creating executables. Which method of the class CL_SMUDE_API should we use for this?

    We would appreciate seeing examples of these.

    Best Regards,

    Oded Dagan & Faina Friedman

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06, 2017 at 12:32 PM

    Hi Dagan,

    CL_SMUDE_API is not the appropriate API for what you want to do. NEW_NODE_LIB doesn't do what you expect. I learned recently that customers and partners should use our so called 3'rd party API for this purpose. I didn't know this when I answerd your original post. The

    3'rd party API is a gateway service API. It has been build to download and upload content. The documentation will be released maybe next week in a official Wiki. Please be patient. The API can be found in package AI_SMUD_INTERFACE_GW.

    Kind Regards

    Andreas

    Add comment
    10|10000 characters needed characters exceeded

    • upload-ltk.txtThank you very very much!! It works now!!!

      Here is my test method and I hope it will help others.

      # in SOLADM

      1. Create new branch

      2. Import branch content from .txt file (modify then use attached file)

      # using 3rd party REST API (you can test with transaction /IWFND/GW_CLIENT)

      3. read API guide : https://wiki.scn.sap.com/wiki/display/SM/Process+Management+API

      4. get branch id with URI /sap/opu/odata/sap/ProcessManagement/BrancheSet?$format=json

      -> mine is 'ikW0plM}7kY1oWlnfFnMn0'

      5. get all content of branch with URI /sap/opu/odata/sap/ProcessManagement/BranchContentSet(BranchId='ikW0plM}7kY1oWlnfFnMn0',ScopeId='',SiteId='',SystemRole='')/$value

      6. the you will get JSON payload as result.

      7. modify or add node to JSON file as you wish. It is very difficult to understand the structure so it is up to you

      (exchage format guide: https://wiki.scn.sap.com/wiki/display/SSMS/Exchange+format )

      8. copy edited JSON payload to HTTP request section, then PUT (not GET) with URI /sap/opu/odata/sap/ProcessManagement/BranchContentImporterSet(BranchId='ikW0plM}7kY1oWlnfFnMn0',ChangeDocumentId='')/$value

      # in SOLADM

      9. display branch contents list and see the results.

      upload-ltk.txt (712 B)
  • avatar image
    Former Member
    Apr 03, 2017 at 11:58 AM

    Hi Dagan,
    could you share an example how to use CL_SMUDE_API for managing Business process structure?

    I trying to create mass upload from excel.

    Thank you in advance!

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 04, 2017 at 01:59 PM

    Hi Evgenia,

    we at SAP are currently working on such an upload report. We are also evaluating a downport per note. It will translate an tab-separated-value file you can export from Excel into a JSON file that you can import into a solution.

    Regards
    Andreas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member
      Hi Andreas,
      thank you for response!

      Could you say when this report will be available?
      Is there any api description for CL_SMUDE_API to create some workaround before report will be ready?

      Regards.

  • Apr 10, 2017 at 08:33 AM

    Hi Evgenia,

    it is already developed. Let me just test the report. If it works fine we will sone publish it via a note. I will also update this thread with the note number. I can't give you a date for the release, but I expect it will be available sooner as you will be finished with your workaround. Btw. CL_SMUDE_API returns several classes. The interfaces these classes are implementing are welle documented with ABAP doc comments. Just open any interface in eclipse or with SE24 source code based view.

    Kind Regards
    Andreas

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 29, 2017 at 07:01 AM

    No, I am talking about SAP standard report RSMUD_TSV for the initial upload of data into a solution. It is not possible to do updates with this report, but to fill initial content into a solution, including documents.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 28, 2017 at 02:42 PM

    Hi everybody,

    the import functionality is ready! Implement notes 2511308 and 2509832 to get this functionality.

    Kind Regards
    Andreas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2017 at 03:18 PM

    Dear Andreas

    Thank you for this, looks very interesting, maybe a similar question as Alexandre, is it possible to use this to upload documents into an existing structure ? (and how would you identify which structure element ? maybe with the element GUID)

    I did though see this comment in the template file "Only a one time import is supported, no updates of existing elements or documents."

    Kind Regards

    Jeppe

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Jeppe,
      this is not possible with this solution. The comment is correct. We only provide a one-time upload of elements and documents.

      With SP06 we will also support dragndrop for documents in the standard solution manager, a functionality that was only available in the pay solution focus build so far. This is the best way to add documents to existing structure elements.

      Kind Regards

      Andreas