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

Function module or BAPI to update URL in delivery document

Former Member
0 Likes
1,483

I am looking for a FM or a BAPI to enter an URL into a delivery document (in background).

For now I have found something, but I am not sure if this is the correct one.

BDS_BUSINESSDOCUMENT_CRE_O_URL

Problem is how to populate the input values.

CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL'

EXPORTING

  • LOGICAL_SYSTEM =

CLASSNAME = 'LIKP'

CLASSTYPE = 'OB'

  • CLIENT = SY-MANDT

OBJECT_KEY = '0080000017'

URL = lv_url

  • BINARY_FLAG = 'X'

MIMETYPE = 'TEXT/PLAIN'

  • IMPORTING

  • DOC_ID =

  • DOC_VER_NO =

  • DOC_VAR_ID =

TABLES

PROPERTIES = it_BAPIPROPER

  • EXCEPTIONS

  • NOTHING_FOUND = 1

  • PARAMETER_ERROR = 2

  • NOT_ALLOWED = 3

  • ERROR_KPRO = 4

  • INTERNAL_ERROR = 5

  • NOT_AUTHORIZED = 6

  • ERROR_DP = 7

  • OTHERS = 8

And are the CLASS and CLASSNAME the correct ones to update the delivery document?

I tried to execute the program and I get MESSAGE_TYPE_X / FUNCTION AC_SYSTEM_FLUSH /

WHEN 2.

  • method_call_error

MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.

Alternatively if someone knows a better or the correct one to update the URL by an other FM or BAPI, that would be appreciated.

Thanks!

Edited by: Kasper on Jun 21, 2011 11:22 AM

1 REPLY 1
Read only

Former Member
0 Likes
731

I stopped to get the BAPI to work for adding URL's. Finally it did work to add an attachment of file type EDI. After entering url (with http://) it downloads the html code from the selected site. Could not find to add only an URL.

Found the solution in below blog for your reference. I was able to make the URL part to work.

/people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii