Application Development 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: 

FM to create external document(URL)

Former Member
0 Kudos

Hi All,

I need to create external document(URL) for equipment and functional location. Manually it is done by clicking a button (called Services for Object) which appears in the left upper corner (on the left side of the transaction heading) and then selecting option (Create External Document URL). Infact this button is availaible in many transactions.

I need FM/BAPI using which i can create external document(URL) to equipment and functional location programmaticaly.

Regards,

Vimal

1 ACCEPTED SOLUTION

viquar_iqbal
Active Contributor
0 Kudos

Hi

try this FM

/XFT/DIO_CMS_URL_CREATE

/XFT/DIO_DIC_URL_CREATE

BDS_BAPI

BDS_BUSINESSDOCUMENT_CREA_URL

BDS_BUSINESSDOCUMENT_CRE_O_URL

5 REPLIES 5

viquar_iqbal
Active Contributor
0 Kudos

Hi

try this FM

/XFT/DIO_CMS_URL_CREATE

/XFT/DIO_DIC_URL_CREATE

BDS_BAPI

BDS_BUSINESSDOCUMENT_CREA_URL

BDS_BUSINESSDOCUMENT_CRE_O_URL

0 Kudos

Hi Viquar Iqbal,

Thanks for ur help. It worked.

The working code (For others reference)

wa_BAPIPROPER-PROP_NAME = 'DESCRIPTION'.

wa_BAPIPROPER-PROP_VALUE = 'Test'.

APPEND wa_BAPIPROPER to it_BAPIPROPER.

CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL'

EXPORTING

classname = 'EQUI'

classtype = 'BO'

OBJECT_KEY ='000000000020000038'

url = 'http://sparsh/V1/'

mimetype = 'TEXT/PLAIN'

TABLES

PROPERTIES = it_BAPIPROPER

Regards,

Vimal

Edited by: Vimal kumar on Feb 18, 2009 2:59 PM

0 Kudos

Hi Viquar/Vimal,

We also have a similar requirement to copy an URL from a CSV file to the deliveries created (VL02n). We are also using the same FM

BDS_BUSINESSDOCUMENT_CRE_O_UR but getting a dump like below. I think the only change we have to do is classname = LIKP and object key should be the delivery number "0082659789"

May I know if anything else to be coded?

Short text of the error message:
Control Framework : Error processing control
Long text of the error message:
Diagnosis
An error occurred when the system tried to process the commands
from the Automation Queue on the presentation server.
There are several possible reasons for this:
- The installation of the SAP GUI on the presentation server is
faulty or obsolete.
- There is an error in the application program
- There is an error in the SAPGUI or an integrated control

jyothi_anagani
Active Contributor
0 Kudos

Hi,

See this FM

SGOS_URL_CREATE_DIALOG

Regards,

Jyothi.

Former Member
0 Kudos

Hi,

Please try using fm:CALL_BROWSER.

Regards,

Venkat.