cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Document using RFC

Former Member
0 Kudos

i am using AutoCAD VBA to intergrate with SAP using RFC

i am able to logon to SAP system

using RFC connection

i am also able to run RFC defined in SAP system using AutoCAD VBA codes

The Problem is

when using "RFC_CREATE_DOCUMENT_MASTER"

I am not able to export "Document_Data"

since Document_data is defined as structure

VBA do not support structure data type

How to export structure data type using VBA

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I never used RFC_CREATE_DOCUMENT_MASTER, but it should be the same as in BAPI CreateFromData2

Set oDocumentData = oBAPICtrl.DimAs (oDocument, "CreateFromData2", "DocumentData")

oDocumentData.value("DOCUMENTNUMBER") = dok_no

oDocumentData.value("DOCUMENTTYPE") = dok_typ

oDocumentData.value("DOCUMENTPART") = dok_td

oDocumentData.value("DOCUMENTVERSION") = dok_ver

..........

Regards Iring

Answers (0)