Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create BOR object using Function Module or other things

collinjona
Explorer
0 Likes
1,490

Hi All,

I would like to know if it's possible to create a BOR object by using a function module or any other tool ?

To be more specific does any BAPI or FM for SWO1 ?

For example I want to create a BOR object from an XML file or JSON file

Can we do that ?

1 ACCEPTED SOLUTION
Read only

pokrakam
Active Contributor
0 Likes
1,170

OK I had a quick look if there's something we can derive from CTS, but no joy. The transport consists of a regular PROG and an generic SOBJ entry. SOBJ is just a bunch of table entries describing the BOR object.

So if you have the time you could try to decode the SWOT* table entries for a given object to see how they work. Then just create the program and corresponding table entries for your custom object.

Alternatively have a look at FM SWO_OBJTYPE_INSERT. It only seems to create the basic header, so have a look at the rest of the FMs in the function group and the rest of the package. It's somewhere to start.

Good luck.

3 REPLIES 3
Read only

pokrakam
Active Contributor
0 Likes
1,170

Yes of course it's possible, the transport system does it. But ... why?

BOR is kind of ancient, there are hardly any reasons to still develop BOR objects. So going to the effort ofcreating a BOR object programatically sounds a bit unusual.

Read only

collinjona
Explorer
0 Likes
1,170

Hi Mike,

Yes I know but it's just to know and for a personnal project 😉 I don't know if I will to do it but I have to try.

If you have some more input on that I take it 🙂

Read only

pokrakam
Active Contributor
0 Likes
1,171

OK I had a quick look if there's something we can derive from CTS, but no joy. The transport consists of a regular PROG and an generic SOBJ entry. SOBJ is just a bunch of table entries describing the BOR object.

So if you have the time you could try to decode the SWOT* table entries for a given object to see how they work. Then just create the program and corresponding table entries for your custom object.

Alternatively have a look at FM SWO_OBJTYPE_INSERT. It only seems to create the basic header, so have a look at the rest of the FMs in the function group and the rest of the package. It's somewhere to start.

Good luck.