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

BAPI_DOCUMENT_CREATE2

former_member193737
Participant
0 Likes
441

Hi friends

I am using 'BAPI_DOCUMENT_CREATE2' to create a document in CV01N and it is working fine and additional to it when my flat file consist of more than one files that need to be saved  under same document number how can I achieve it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
375

Hi Selva,

The parameter 'Documentfiles' is a internal table, so

lt_files-storagecategory = 'SAP-SYSTEM'.

lt_files-docfile      = 'c:\temp\drawing.txt'.

lt_wsapplication = 'TXT'.

APPEND lt_files.

lt_files-storagecategory = 'VAULT'.

lt_files-docfile      = 'c:\temp\drawing.dwg'.

lt_wsapplication = 'DWG'.

APPEND lt_files.

lt_files-storagecategory = 'SAP-SYSTEM'.

lt_files-docfile      = 'c:\temp\drawing.ppt'.

lt_wsapplication = 'PPT'.

APPEND lt_files.  

(Above code from function module ducumentation in SE37)

regards,

Archer

1 REPLY 1
Read only

Former Member
0 Likes
376

Hi Selva,

The parameter 'Documentfiles' is a internal table, so

lt_files-storagecategory = 'SAP-SYSTEM'.

lt_files-docfile      = 'c:\temp\drawing.txt'.

lt_wsapplication = 'TXT'.

APPEND lt_files.

lt_files-storagecategory = 'VAULT'.

lt_files-docfile      = 'c:\temp\drawing.dwg'.

lt_wsapplication = 'DWG'.

APPEND lt_files.

lt_files-storagecategory = 'SAP-SYSTEM'.

lt_files-docfile      = 'c:\temp\drawing.ppt'.

lt_wsapplication = 'PPT'.

APPEND lt_files.  

(Above code from function module ducumentation in SE37)

regards,

Archer