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

Update SRGBTBREL table

Former Member
0 Likes
6,063

Is there any standard class of function to update SRGBTBREL table in ECC 6.0 system?

Is there any standard class of function to update SRGBTBREL table in ECC 6.0 system?

8 REPLIES 8
Read only

ramakrishnappa
Active Contributor
0 Likes
3,521

Hi,

You can check function module with name SO_* in function group SOB2.

viz, SO_ATTACHMENT_READ, SO_ATTACHMENT_INSERT

Hope this helps you.

Regards,

Rama

Read only

Former Member
0 Likes
3,521

Upon executing the function module  SO_ATTACHMENT_INSERT i was not able to create an entry in the table.

Below were the parameters  passed:

OBJECT_ID =  EXT39000000000006

ATTACH_TYPE = TXT

OBJCONT = 'test'

Read only

0 Likes
3,521

Hi,

It actually stores records in table SOOD.

We have a class CL_GOS_API in NW 731 but I dont know exactly about ECC 6.0.

Could you search for *GOS* in SE24 / SE37.

Regards,

Rama

Read only

0 Likes
3,521

Hi Barkha

You can also use CL_BINARY_RELATION->Create method. BTW what are you trying to achieve?

Nabheet

Read only

0 Likes
3,521


I am trying to attach documents to a material ( Service for object)  through a program

Read only

0 Likes
3,521

Barkha please have a look at method CREATE_ATTACHMENT of class CL_GOS_DOCUMENT_SERVICE for the same. Search it you will find many references

Read only

erik_mertens3
Explorer
0 Likes
3,521

Hi,

In the past i wrote a program to attach a pdf file to a service notification (qmel table). To actually attach the pdf string (converted from binary file to xstring with the fm SCMS_BINARY_TO_XSTRING) i used the method save of the cl_fitv_gos class. The class will add the record to the SRGBTBREL table.

In you're case you must figure out what the value of instid en typeid must be (in my case us_qmnum and BUS2080)

Read only

Former Member
0 Likes
3,521

I have been able to attach a file to the material by first calling SCMS_BINARY_TO_XSTRING and then calling BINARY_RELATION_CREATE to create the relation for SRGBTBREL table.

Thanks!!