Application Development 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: 

File Attached in VA01 where could be found to transfer to other SAP System

vikash_pathak
Participant
0 Kudos

Hi All,

Could some one confirm ? File Attached using VA01 where could be found ? i have to find this file and have to transfer it to other SAP System , what approach could be used to Transfer the file?

Thanks

6 REPLIES 6

Sandra_Rossi
Active Contributor

It's been asked lots of times in the forum, search the Web:

File Attached in VA01 site:sap.com

To transfer anything to another SAP system, you can use RFC, File System (FTP...), etc.

It's not clear if you want to create a program, or do it once for many files at a time.

Can you create programs in source and target systems? Do you have direct access to the Content Management Systems connected to the SAP systems?

vikash_pathak
Participant
0 Kudos

Hi sandra.rossi ,

Thanks for your response,

i donot have access of Source SAP System( ECC) , do you have any reference Code for it where i could transfer PDF or TIF file from Source SAP System to Target HANA System?

Sandra_Rossi
Active Contributor

It's not important what type of file it is, PDF, TIF or any other one.

You have code all over the place. Just search.

NB: please clarify your requirement if you want others to point you to code. You want two things:

  1. Read files attached to one sales order (VA01), via GOS
  2. Write file to HANA. Please clarify where in HANA you want to write. HANA is very big. By the way, is it HANA alone (the database system), or S/4HANA, or other...

To find the list of files attached, you use one of these objects. You can find some code in the Web:

  • Method CL_BINARY_RELATION=>READ_LINKS
  • Method CL_BINARY_RELATION=>READ_LINKS_OF_BINRELS
  • function module SREL_GET_NEXT_RELATIONS
  • function module BAPI_REL_GETRELATIONS

Probably in each code, you will also find the code to read each of the files, probably they use SO_DOCUMENT_READ_API1, SO_OBJECT_READ, SO_ATTACHMENT_READ_API1, SO_ATTACHMENT_READ, or whatever.

You can find the Business Object type of sales order by searching the Web too. At many places, I can see BUS2032.

vikash_pathak
Participant
0 Kudos

Hi sandra.rossi ,

I have to move files attched in SAP ECC system to S4 HANA System and i can write code only in S4 Hana System. not sure even have RFC access

Sandra_Rossi
Active Contributor
0 Kudos

If ECC has been migrated to S/4HANA, you should have all the attachments already. If you want to relocate the attachments to a new Content Management System, SAP provides a note and a program to relocate the documents.

vikash_pathak
Participant
0 Kudos

Hi sandra.rossi ,

we are migrating ECC to HANA , and i have to develop a program to relocate file from ECC to S4 HANA