Skip to Content
0
Former Member
Jun 21, 2011 at 08:36 AM

Function module or BAPI to update URL in delivery document

679 Views

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