cancel
Showing results for 
Search instead for 
Did you mean: 

Create file from URL

Former Member
0 Kudos

Hi Experts,

I want to move the attached PO documents from SRM to ECC. SRM generates one URL for the documents. And using the template for extended classic scennario I want to use this URL for the BAPI call BAPI_DOCUMENT_CREATE2 (documentfiles-DOCPATH). But with this I cannot create one openable attachments. Could you please help me out with the requires steps to create attachments from SRM URL?

Many Thanks,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

This for example, at lt files u need to enter URL.

    • Check in original 1 simultaneously in the R/3 Database

REFRESH lt_files.

CLEAR lt_files.

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.

Note: I think u need to configure Data carrier in DMS. for URLS.

Benakaraja

??

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

Finally this issue has been solved via DC30 where I have set up the URL extension, assigned to the explorer.

Best Regards,

Peter

Former Member
0 Kudos

Hi Peter,

We are attempting to pass attachments using extended classic with the BAPI_DOCUMENT_CREATE2 in the ECS PO out badi. We have been unsuccessful so far. Could you please provide the solution that worked for you?

Regards,

-Paul

Former Member
0 Kudos

Hi Benakaraja,

Thanks for your answer, but the URL in SRM are in the following format;

http://erp/sap/ebp/docserver/TEST%25252Edoc?phioget&KpId=DE5F3714396552F1AF9E001E0B45B046&KpClass=BB...

And it is still not working in the way you proposed.

Best Regards,

Peter