Skip to Content
0
Former Member
Oct 03, 2012 at 09:22 AM

CL_BDS_DOCUMENT=>CREATE_WITH_TABLE help

71 Views

Hi Experts

I am trying to upload and attach a document to a MM Purchase Requisition.

I have used the FileUpload UI to grab a document from my desktop and this works without problem.

However when I call the method below I am unsure what values to use for i_classname, i_classtype and i_objkey.

Please could someone with MM.PUR.REQ knowledge help me with how to determine these values?

CALL METHOD CL_BDS_DOCUMENT_SET=>create_with_table

EXPORTING

classname = i_classname

classtype = i_classtype

content = lt_data

components = i_components

CHANGING

object_key = i_objkey

signature = i_signature

EXCEPTIONS

nothing_found = 1

parameter_error = 2

not_allowed = 3

error_kpro = 4

internal_error = 5

not_authorized = 6

OTHERS = 7.

Thanks in advance

Anton Kruse