Skip to Content
0

How to use API- CL_SMUDE_API in 7.2 for transaction upload

Feb 02, 2017 at 06:13 PM

821

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

10 Answers

Andreas Diebold
Feb 03, 2017 at 03:50 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Faina Fridman Feb 05, 2017 at 12:58 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 06, 2017 at 07:10 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Andreas Diebold
Feb 06, 2017 at 12:32 PM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi, Andreas

I'm using solman 7.2 SP6 and want to develop ABAP report for displaying process structure.

But I cannot find document about 3rd party API in solution manager wiki.

Could you show me that url?

And I found API guide below, but it seems to be REST API.

Is this the only way to use REST API in 7.2 for develop ?

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

0

Hi,

you found the right URL to the Process Management API. Yes, it is a REST API using gateway services. It is our official customer and partner API. If you prefer an ABAP API you can also use CL_SMUDE_API. We ship some basic Reports for displaying the process structure and their assignments. You can modify them easily by changing the object type filter. Building completely new custom reports is not supported so far.

Regards
Andreas

0

Thank you, Adnreas.

I tested 'BranchContentSet' to GET node datas and it works well.

But when execute PUT with 'BranchContentImporterSet' to update some attribute, it occured error 'Method 'BRANCHCONTENTIMP_UPDATE_ENTITY' not implemented in data provider class'

It is a standard class so I cannot redefine.

What is the problem? Is there a note to fix it?

0
Former Member

Hi Tae Kyung,
please refer to an example provided in the Process Management API guide and check the sysntax of your PUT request. I guess you forgot /$value at the end of it.

Regards,
Alexander

0

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)
0
avatar image
Former Member Apr 03, 2017 at 11:58 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Andreas Diebold
Apr 04, 2017 at 01:59 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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.

0
Andreas Diebold
Apr 10, 2017 at 08:33 AM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Andreas,
tnx a lot for info! Will wait update.

Regards.

0
Former Member

Hi Andreas,

I was wondering if there has been update on this?

Regards
Manpreet

0
It was not as easy as we thought so it took a bit longer. But now it is under test. When the first tests work out fine we will build a pilot note. Who is interested in piloting the development may leave his customer number here.
0

You are talking about the CoE ALM Tool, I assume?

0
Andreas Diebold
Jun 29, 2017 at 07:01 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Andreas Diebold
Jul 28, 2017 at 02:42 PM
0

Hi everybody,

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

Kind Regards
Andreas

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Thank you for letting us know! Do you think this is the best available SAP tool for mass uploading documents with a target status (ie. Validated or Released)?

0

It is best when you want to upload structures with documents from local PC files. 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.

0
Former Member

Hi Andreas,

Thank you for letting us know, we applied the notes you sent above and we did our tests successfully.

But we are having a problem with document loading.

If we upload for the same transaction code and different nodes, we get an error.

Can not we use the same transaction code 2 or more times?

Error excp. code : CX_SMUD_ASSERT_D

Error lines :

5 REF_PROCSTEP Desc1
6 REF_EXECTRANLOGCOMP Des1 TRANID QA32 SOLMAN_ABAP_72_1
5 REF_PROCSTEP Desc2
6 REF_EXECTRANLOGCOMP Des2 TRANID QA32 SOLMAN_ABAP_72_1

We would appreciate some help or advice how to do this ?

Regards .

0
Hi Nurullah,

it seems this is a bug on our side. I could recreate it. We will try to fix it with a new note version by next week.

Regards
Andreas

0
Former Member

Hi Andreas,
Thanks a lot for info! Will wait update.

Regards

Nurullah

0

Hi Nurullah,

just update note

2509832

in your system with the latest version 3. Do not unimplement the note or repeat any manual activities. Just implement latest version. This should fix the issue.

Kind Regards
Anreas

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

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

Show 1 Share
10 |10000 characters needed characters left 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

0