I am unable to use services for objects while creating a PO
Hi All,
I am unable to use services for objects while creating a PO ie in me21n / Me22n .
Our client wants to attach some doucument along with the PO, we want to use services for object for this. I use this services for objects in admin level , but unable to use this at user level.
System gives the following message
No service available
Message no. SGOS_MSG002
Regards
Gsg
Hi,
Refer the following OSS notes 552127, 598073
For getting Object for services icon in ME21N and ME51N refer OSS note 913251
Similar Messages
-
Mass upload Create External doc URLs using Services for object-Inspmethod
Hi All,
Services for object is not active during SHDB recording or ECATT recording in order to mass update Create External doc URLs using Services for object.
Any body know how to Upload this for any master data 9Insp plan/Material master etc..)Developing the program
-
Mass upload Create External doc URLs using Services for object-Materialmast
Hi All,
Services for object is not active during SHDB recording or ECATT recording in order to mass update Create External doc URLs using Services for object.
Any body know how to Upload this for any master data ex.Material master.ok
-
Attachments to Notifications - using "Services for Object"
Hi All,
I have sucessfully created a VC application (7.0 sp13) to create a General Notification in R/3
using the BAPI - IQS4_CREATE_NOTIFICATION
Our users in R/3 4.7 use the button in the Top Left Hand corner of the Screen "Services for Object"
to attach MS Word documents to Notifcations. Using the Create Attachment option from the Services for Object toolbar that pops up when the button is clicked.
Has anyone else tried this or have any advice on how this can be done in VC - if you can recommend a BAPI that I can try or will this be a custom ABAP BAPI.
Thanks in advance for any advice you can offer.
- RobertFUNCTION z_pm_attachment_and_url.
*"*"Interface local:
*" IMPORTING
*" VALUE(I_QMNUM) TYPE QMNUM OPTIONAL
*" VALUE(I_AUFNR) TYPE AUFNR OPTIONAL
*" VALUE(I_URL) TYPE SO_URL OPTIONAL
*" VALUE(I_FILE) TYPE ZPMCT002 OPTIONAL
*" VALUE(I_FILENAME) TYPE STRING OPTIONAL
*" TABLES
*" T_RETURN STRUCTURE BAPIRET2
* Objetos locais
DATA:
vl_url TYPE so_url,
vl_path TYPE string, "#EC NEEDED
vl_loopc TYPE sy-loopc,
vl_lines TYPE sy-loopc,
vl_filename TYPE string,
vl_filelength TYPE i,
it_url TYPE STANDARD TABLE OF sood-objdes,
it_obj_cont TYPE STANDARD TABLE OF solix,
wa_obj TYPE borident,
wa_obj_cont TYPE soli,
wa_obj_data TYPE sood1,
wa_folder_id TYPE soodk,
wa_document_id TYPE sofmk.
DEFINE valida_retorno.
loop at t_return into t_return.
if t_return-type eq zgtpm_e.
exit.
endif.
endloop.
if t_return-type eq zgtpm_e.
exit.
endif.
END-OF-DEFINITION.
* === Valida parâmetros de entrada
IF i_qmnum IS INITIAL AND i_aufnr IS INITIAL.
* Nenhum objeto informado: Informe Nota ou Ordem de Manutenção
PERFORM mensagem_retorno_tab
USING
'ZPM_PORTAL' zgtpm_e '055' '' '' '' ''
CHANGING
t_return[].
EXIT.
ELSEIF NOT i_qmnum IS INITIAL AND NOT i_aufnr IS INITIAL.
* Informe apenas um objeto: Nota ou Ordem de Manutenção
PERFORM mensagem_retorno_tab
USING
'ZPM_PORTAL' zgtpm_e '054' '' '' '' ''
CHANGING
t_return[].
EXIT.
ENDIF.
IF i_url IS INITIAL
AND i_filename IS INITIAL.
* Informe Anexo e/ou URL
PERFORM mensagem_retorno_tab
USING
'ZPM_PORTAL' zgtpm_e '060' '' '' '' ''
CHANGING
t_return[].
EXIT.
ENDIF.
* === Define Categoria de objeto
IF NOT i_qmnum IS INITIAL.
wa_obj-objkey = i_qmnum.
wa_obj-objtype = 'BUS2038'. " Nota PM
ENDIF.
IF NOT i_aufnr IS INITIAL.
wa_obj-objkey = i_aufnr.
wa_obj-objtype = 'BUS2007'. " Ordem de manutenção
ENDIF.
* === Anexo
IF NOT i_filename IS INITIAL.
* Conteúdo do arquivo
IF NOT i_file[] IS INITIAL.
it_obj_cont[] = i_file[].
DESCRIBE TABLE it_obj_cont LINES vl_lines.
READ TABLE it_obj_cont INTO wa_obj_cont INDEX vl_lines.
vl_filelength =
( 255 * ( vl_lines - 1 ) ) + STRLEN( wa_obj_cont ).
ELSE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = i_filename
filetype = 'BIN'
IMPORTING
filelength = vl_filelength
TABLES
data_tab = it_obj_cont
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
PERFORM mensagem_retorno_tab
USING
sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
CHANGING
t_return[].
EXIT.
ENDIF.
ENDIF.
* Pasta de Destino
PERFORM get_folder CHANGING wa_folder_id t_return[].
valida_retorno.
* SAPoffice: definição do objeto, modificar atributos
wa_obj_data-objla = sy-langu. " Idioma
wa_obj_data-objsns = 'O'. " Objeto confidencial
wa_obj_data-objlen = vl_filelength. " Tamanho conteúdo documento
wa_obj_data-ownnam = sy-uname. " Nome proprietário
CALL METHOD cl_report_viewer=>split_path_filename
EXPORTING
i_filename = i_filename
IMPORTING
e_path = vl_path
e_filename = vl_filename.
SPLIT vl_filename AT '.' INTO
wa_obj_data-objdes " Descrição breve do conteúdo
wa_obj_data-file_ext. " Extensão de file de uma aplicação PC
CONDENSE wa_obj_data-file_ext NO-GAPS.
* Insere Objeto (Anexo)
PERFORM object_insert
USING
'EXT' " Anexo
wa_obj_data
wa_folder_id
it_obj_cont
CHANGING
wa_document_id
t_return[].
valida_retorno.
* Relacionamento Objeto PM x Anexo
PERFORM relation_create
USING
'ATTA'
wa_obj
wa_document_id
CHANGING
t_return[].
valida_retorno.
ENDIF.
* === URL
IF NOT i_url IS INITIAL.
* Inicializa estruturas comuns a Anexo e URL
CLEAR:
it_obj_cont,
wa_obj_cont,
wa_obj_data,
wa_folder_id,
wa_document_id.
* Conteúdo da URL
MOVE i_url TO vl_url.
WHILE NOT vl_url IS INITIAL.
CONCATENATE '&KEY&' vl_url(250) INTO wa_obj_cont.
APPEND wa_obj_cont TO it_obj_cont.
SHIFT vl_url LEFT BY 250 PLACES.
ENDWHILE.
* Pasta de Destino
PERFORM get_folder CHANGING wa_folder_id t_return[].
valida_retorno.
* SAPoffice: definição do objeto, modificar atributos
wa_obj_data-objla = sy-langu. " Idioma
wa_obj_data-objsns = 'O'. " Objeto confidencial
wa_obj_data-ownnam = sy-uname. " Nome proprietário
SPLIT i_url AT '/' INTO TABLE it_url.
DESCRIBE TABLE it_url LINES vl_loopc.
READ TABLE it_url INDEX vl_loopc
INTO wa_obj_data-objdes. " Descrição breve do conteúdo
* Insere Objeto (URL)
PERFORM object_insert
USING
'URL' " Link Inter/Intranet
wa_obj_data
wa_folder_id
it_obj_cont
CHANGING
wa_document_id
t_return[].
valida_retorno.
* Relacionamento Objeto PM x URL
PERFORM relation_create
USING
'URL'
wa_obj
wa_document_id
CHANGING
t_return[].
valida_retorno.
ENDIF.
* === Libera objetos locais
FREE:
vl_url,
vl_path,
vl_loopc,
vl_lines,
vl_filename,
vl_filelength,
it_url,
it_obj_cont,
wa_obj,
wa_obj_cont,
wa_obj_data,
wa_folder_id,
wa_document_id.
ENDFUNCTION.
***INCLUDE LZGPM0010F01 .
*& Form mensagem_retorno_tab
FORM mensagem_retorno_tab
USING
p_msgid TYPE symsgid
p_msgty TYPE symsgty
p_msgno TYPE symsgno
p_msgv1 TYPE any
p_msgv2 TYPE any
p_msgv3 TYPE any
p_msgv4 TYPE any
CHANGING
t_return TYPE ty_return.
DATA:
vl_msgty TYPE symsgty,
wa_return LIKE LINE OF t_return.
IF p_msgty IS INITIAL.
MOVE zgtpm_e TO vl_msgty.
ELSE.
MOVE p_msgty TO vl_msgty.
ENDIF.
IF p_msgno IS INITIAL.
EXIT.
ENDIF.
MOVE p_msgid TO wa_return-id.
MOVE vl_msgty TO wa_return-type.
MOVE p_msgno TO wa_return-number.
MOVE p_msgv1 TO wa_return-message_v1.
MOVE p_msgv2 TO wa_return-message_v2.
MOVE p_msgv3 TO wa_return-message_v3.
MOVE p_msgv4 TO wa_return-message_v4.
MESSAGE ID p_msgid TYPE vl_msgty NUMBER p_msgno
WITH p_msgv1 p_msgv2 p_msgv3 p_msgv4
INTO wa_return-message.
APPEND wa_return TO t_return.
FREE: vl_msgty, wa_return.
ENDFORM. " mensagem_retorno_tab
*& Form get_folder
FORM get_folder
CHANGING
w_folder_id TYPE soodk
t_return TYPE ty_return.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B' " ?
IMPORTING
folder_id = w_folder_id
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
PERFORM mensagem_retorno_tab
USING
sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
CHANGING
t_return[].
ENDIF.
ENDFORM. " get_folder
*& Form object_insert
FORM object_insert USING
p_objtp TYPE so_obj_tp
w_obj_data TYPE sood1
w_folder_id TYPE soodk
t_obj_cont TYPE zpmct002
CHANGING
w_document_id TYPE sofmk
t_return TYPE ty_return.
* Objetos locais
DATA:
it_objcont TYPE STANDARD TABLE OF soli,
it_obj_head TYPE STANDARD TABLE OF soli,
wa_obj_id TYPE soodk,
wa_obj_cont LIKE LINE OF t_obj_cont.
* RAW to CHAR
LOOP AT t_obj_cont INTO wa_obj_cont.
APPEND wa_obj_cont TO it_objcont.
CLEAR wa_obj_cont.
ENDLOOP.
* Insere objeto
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = w_folder_id
object_type = p_objtp
object_hd_change = w_obj_data
owner = sy-uname
IMPORTING
object_id = wa_obj_id
TABLES
objhead = it_obj_head
objcont = it_objcont
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
dl_name_exist = 4
folder_not_exist = 5
folder_no_authorization = 6
object_type_not_exist = 7
operation_no_authorization = 8
owner_not_exist = 9
parameter_error = 10
substitute_not_active = 11
substitute_not_defined = 12
system_failure = 13
x_error = 14
OTHERS = 15.
IF sy-subrc = 0.
w_document_id-foltp = w_folder_id-objtp.
w_document_id-folyr = w_folder_id-objyr.
w_document_id-folno = w_folder_id-objno.
w_document_id-doctp = wa_obj_id-objtp.
w_document_id-docyr = wa_obj_id-objyr.
w_document_id-docno = wa_obj_id-objno.
ELSE.
PERFORM mensagem_retorno_tab
USING
sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
CHANGING
t_return[].
ENDIF.
* Libera objetos locais
FREE:it_objcont, it_obj_head, wa_obj_id, wa_obj_cont.
ENDFORM. " object_insert
*& Form relation_create
FORM relation_create
USING
p_relationtype TYPE binreltyp
w_obj TYPE borident
w_document_id TYPE sofmk
CHANGING
t_return TYPE ty_return.
DATA wa_doc TYPE borident.
wa_doc-objtype = 'MESSAGE'.
CASE p_relationtype.
WHEN 'ATTA'.
wa_doc-objkey = w_document_id(34).
WHEN 'URL'.
wa_doc-objkey = w_document_id.
WHEN OTHERS.
ENDCASE.
CALL FUNCTION 'BINARY_RELATION_CREATE'
EXPORTING
obj_rolea = w_obj
obj_roleb = wa_doc
relationtype = p_relationtype
EXCEPTIONS
no_model = 1
internal_error = 2
unknown = 3
OTHERS = 4.
IF sy-subrc = 0.
COMMIT WORK AND WAIT.
CASE p_relationtype.
WHEN 'ATTA'.
* O anexo foi criado com êxito
PERFORM mensagem_retorno_tab
USING
'SGOS_MSG' zgtpm_s '043' '' '' '' ''
CHANGING
t_return[].
WHEN 'URL'.
* A URL foi criada com êxito
PERFORM mensagem_retorno_tab
USING
'ZPM_PORTAL' zgtpm_s '059' '' '' '' ''
CHANGING
t_return[].
WHEN OTHERS.
ENDCASE.
ELSE.
PERFORM mensagem_retorno_tab
USING
sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
CHANGING
t_return[].
ENDIF.
FREE wa_doc.
ENDFORM. " relation_create
Edited by: Fabrício Alves Vieira on Apr 8, 2008 3:08 PM -
Attaching a document to notification using service for object
hellow members,
i look for a table to let me know if a document
is attached to specific object (in my case it"s
a notification).
best regards,
avi
Edited by: avi koren on Jul 16, 2008 9:40 AMHellow Johannes,
thank you for your repling.
i don"t think that this is the direction.
In lots of objects in the SAP like a notification or a material,a button call "service for object" is available provide
some functions like
document attaching.
How i can see this attachments?
I think that the answer should be close to the table SOOD.
regards,
avi -
Use the authorization object while creating RFC
Hi All,
I'm able to create a RFC, can login from one sap system to another sap system and use the following FM. Here my concern is how to make the RFC more secure, i mean any user can access the target system with my login. Meanwhile came across a authorization object text box in the LOGON and SECURE tab while creating RFC.
so please put on light on how to authenticate the specific user to logon using the RFC.
Thanks in Advance.
Regards
Lalitkumar.Hi Lalit,
Usually for RFC connection will be done with the, user type system user type (means,they should not be able to login to system thru GUI)
2. Even if the user know the login id / password, he should have auth to create RFC like (SM59 and related auth objects)
and even for remote connection also we have different auth to restrict
3. These type of authorization will be given to basis guys only.
4. Logon/Security
Lang-En
Client-` client no
user- user
Password - bw password.
Here you will be specfying the user id ( system type) / password for connecting from one system to another.
and in next tab you can do Test connection.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a08fbe33-0501-0010-2d9c-fb37e9795fd9
Thanks,
Sri -
Unable to find the ODS object while creating Multiprovider, Help
Hello Experts,
Iam facing problems while creating the MULTIPROVIDER.
I am unable to find the ODS in the list during initial selection of creation of Multiprovider. There are some ODS's which appear, while others don't.
Is there any selection on ODS that is preventing it from appearing in the list of ODS's.
Please help....Very UrgentIn ODS-change screen tick checkbox for 'BEx reporting' that appears under 'settings'.
then save and activate ODS..
after this the ODS will appear in the list while creating multiprovider.
cheers,
Vishvesh
Message was edited by: Vishvesh -
Using "Services for Object" to attach local files to SAP objects (POs)
As I understand creating an Attachment to a PO for example from local drive - is a standard SAP functionality that does not require configuration, but ... in our Development, Quality and Production systems any document type can be attached, but not in Training. In Training system only .txt documents can be attached and for others it give the error message "Database error with <INSERT INTO KPRO>, error message number SO 013".
1) Does it mean that there is a config for it so certain document types can only be attached? and where can I find it?
2) Is there a way to limit the size of documents that can be attached? since somebody can "accidentally" attach 2 Gig file ...
Thanks,
Paul.Hi Pavel,
Yes for Standard SAP functionality that does not require configuration, but for coustomized Transaction if you want to attach any doc or txt file doc then you need to change some code. if iam worng plz correct me.
in you querry just check with the your basis person some times they may give restrictions or authorizations check.
this may be helpful to you. -
Services for object linked note to DMS DIR
dear sir,
we have created DIRs(cvo1n) and attached notes using Services For Object. The notes is visible in attachement list.Now we want to generate a report in which these notes should be available against respective DIRs.
we created a query using SQVI, linking tables DRAW,DRAT,TDWST,TSOTT and SOOD.
But this will show all the notes available in that language ( no link with DIRs)
we want to have the Notes which are attached to respective DIRs in report.
it may be possible if we link the table contains DIR and SOOD link table,which we don't know
can you suggest some method to get the details of Notes available in Services For Objects?
thanking you
srinivas paii am closing this thread
-
Hi All
I wanted to make a mail attachment in MIGO using services for object. Which is the structure and filed for MIGO, that indicates that there is a mail attachment. Also I which is the table and field where this mail attachment is stored.
Thank youAnil,
Couldn't you add the web address as the attachment?
Regards
Narasimhan -
File attachment problem in Services for object XK03
In XK03 when i try to create a attachment using Services for object icon it is giving an error message in SAP ECC 6.0 after selecting the file from the folder.
"Error occurred during import"
Error occurred during import
Message no. SO424
Diagnosis
An error occured during the import of a file.
System Response
The import was not carried out.
Procedure
If the document is still open in the application, you need to close it before you carry out a new import.
This error message may indicate a SAP-GUI problem. The cause could be an error during data conversion, for example. Report the error to your system administrator.
Does anybody knows about this...
thanks,
fractalHello Fractel,
Are you get rid of this issue?
We have just implemented some of SAP packs/patches and few users face this issue.
When I tried the same, I did not face this issue.
Please suggest.
Regards,
JPS -
Services for Object - Create external document (url) 132 characters limit
Hello,
I have this requirement:
Maintenance people would like to relate a document on our portal on a work order to be able to print it with the work order.
My suggestion was to use Services for Object in the Order -> Create external document (url).
But the adress field cannot contain more than 132 characters.
I have URL longer than 132 chars:
eg: http://server.domain:port/irj/go/km/docs/documents/AAI/Gestion%20documentaire/Public/Entretien/Instructions%20de%20travail/EU-IT-01-02.pdf
What do you suggest me?
Thanks,
FrançoisThank you Pete but we are release 700 and this note applies to release 620 and older. I will try to find another note or another way.
In the meantime we use the short-ID of SAP Portal Documents which are long to retrieve but always under 132 char.
François -
Hi all,
While creating FB01, I create a Note using Services for Object tool box.
Now my requirement is I want to find out the note Title.
Is there any Function Module to find that note title?
Regards
Ganesh ReddyAnil,
Couldn't you add the web address as the attachment?
Regards
Narasimhan -
Difference in storage method for DMS and Services for Object
Hi-
Our R/3 version is: 4.7 Enterprise.
In most (if not all) of the transactions users execute, there is a feature where they can attach a file using "Services for Object" from their PC to the associated record (i.e. material master, purchase orders, service notifications, etc.)
What I would like to know is where the document is stored. From what I found on help.sap.com it says that it is a link from the user's PC. But I would guess it is storing a copy of the file as a blob on the R/3 server somewhere. Is this true? Or is there a risk if the user's harddrive dies, that the file is no longer available for viewing?
I am trying to determine the difference between using the Services for Object feature vs. DMS and setting up an object link for the specific object type (i.e. material).
Thanks!
-JennI found the following about Services for Objects:
Business Workplace
The documents that were appended to an object using Create attachment and Create note are stored in the Business Workplace. There, for example, you can make settings for where the documents should be stored (R/3 System or Web Server) and which document classes may be loaded in the SAP System (for example DOC, but not EXE).
Sending is also carried out internally using the Business Workplace. Messages are created that contain a link to the object as an attachment. By double-clicking on the attachment, the users can call the default method of the object. This is normally the display method. -
Advantage of DMS over "Services for object" functionality
Hi Experts,
I have got very basic doubt about advantages of DMS Over existing standard functionality of SAP.
We can attach documents or files to SAP Objects using "services for object" push button ( Next to title bar).
So please answer for my below queries
1. What is the disadvantage of using Services for Object??
2. If I use services for object, then file is stored in SAP Data base or in my local drive??
Thanks and Regards,
Kiran THello ,
DMS Vs GOS
DMS- Document Management System
The Document Management System (DMS) in SAP R/3 offers the following distinct advantages over the current procedures and systems.
u2022 It avoids data redundancy, maintains consistency of data and minimizes the workload involved in entering and updating data.
u2022 In order to use large databases to the full, it is required to exchange data quickly and securely. Data can be accessed directly using electronic search tools, or find documents using known parameters.
u2022 Document distribution functionality (SAP-Workflow functionality is required)
The SAP R/3 Document Management System meets all these demanding requirements. In addition to managing documents, it also coordinates document processing. It is possible to automate the entire life cycle of a document: from document creation to document storage, its access and its update. Each document can be accessed immediately from any computer on the netwerk.
GOS-
All these DMS advantages are not available with GOS.
The Detailed PPT of comparison is sent to your id.
Regards
fapreeth
Maybe you are looking for
-
In the past I had no problems with iTunes, but over the past year or so I'm feeling there is a problem now. When I download upgrade software for my devices I feel Apple or other is removing an important file to do with my movie purchases, people s
-
A question about objects and queries
I just started using COM objects in ColdFusion. I am mostly using CreateObject, but occasionaly use <CFOBJECT> My question is; Do I have to destroy these object variables when I am done? I know in a lot of other languages I work in, you have to "clea
-
Is my Mac Book Pro Mountain Lion Compatible, Is my Mac book Pro Mountain Lion Compatible
I have just found out, that my iMac is not compatible. I am very annoyed at this latest developmnet, and I am seriously considering moving back to Pc's. In the meantime I would at elast like to find out if my Mac Book Pro is. the details are: MacBook
-
Payment Advise error while uploading Lock box
Hi, i am getting the below error in FBL1 transaction code. I am able to upload the lock box in FBL2 transaction with Appllied status. After that when i execute FBL1 transaction i am getting the below error related to Payment Advise. Kindly help me to
-
I am unable to start adobe reader XI which i installed today. It just tries to open and then closes.