2009 Jun 01 12:01 PM
Hello,
I am having a requirment where-in I wanted to attach some files to the standard PS transaction. Any idea how this can be achieved. I know we can attach files to the accounting documents.
can we persists such objects into SAP transparent table? the another alternative to this may be to store a hyperlink (these documents are at the HTTP location) but can we open the hyperlink from any of the text field of sap?
thanks in advance.
regards
rajeev
2009 Jun 01 12:08 PM
Do some search at SDN on [GOS|https://www.sdn.sap.com/irj/scn/advancedsearch?query=gos&cat=sdn_all] (General Object Services)
A good start would be [How to Attach Documents to Any Custom Program Using Generic Object Services|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]
Regards,
Raymond
Hello,
I am having a requirment where-in I wanted to attach some files to the standard PS transaction. Any idea how this can be achieved. I know we can attach files to the accounting documents.
can we persists such objects into SAP transparent table? the another alternative to this may be to store a hyperlink (these documents are at the HTTP location) but can we open the hyperlink from any of the text field of sap?
thanks in advance.
regards
rajeev
2009 Jun 01 12:05 PM
Hi,
You can use the following Function Module to attach the hyperlink.
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0002 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
data: l_fieldname type scrfname.
MODULE USER_COMMAND_0002 INPUT.
CASE SY-UCOMM.
WHEN 'PICK'.
get cursor field l_fieldname.
if l_fieldname eq 'T1'.
call function 'CALL_BROWSER'
exporting url = 'http://www.yahoo.com/'
exceptions others = 1.
Endif.
ENDCASE.
ENDMODULE. " USER_COMMAND_0002 INPUT
*&---------------------------------------------------------------------*
*& Module STATUS_0002 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
DATA: T1(50) TYPE C.
MODULE STATUS_0002 OUTPUT.
SET PF-STATUS 'MAIN'.
* SET TITLEBAR 'xxx'.
T1 = 'Yahoo Homepage'. u201CT1 is name of I/O box
ENDMODULE. " STATUS_0002 OUTPUTRegards,
Nikhil.
2009 Jun 01 12:08 PM
Do some search at SDN on [GOS|https://www.sdn.sap.com/irj/scn/advancedsearch?query=gos&cat=sdn_all] (General Object Services)
A good start would be [How to Attach Documents to Any Custom Program Using Generic Object Services|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]
Regards,
Raymond
2009 Jun 01 3:34 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |