on 02-21-2013 11:56 AM
Hi guys,
I am in using the BAPI BAPI_DOCUMENT_CREATE2 for Data Migration.
Consider 2 Systems Source - S Target - T and Document Number D1
Now the Problem.
Suppose i am creating Document D1 on my system and checking it in it stores the orignal path as my system path for the file. This does not matter if i am opening the document from anyother system. But when i am using the CREATE FUNCTION MODULE it does not consider it to be checed in and it checks the DOCFILE variable of table T_DOCUMENTFILES and picks the file from there.
The error message i am getting is unable to check in FIle "\\................................"" this is the same value stored in t_documentfiles-DOCFILE
This is not what i want.
My purpose is to pick any document number and migrate its attached files picking the path from the Storage Category.
Any help would be grateful
Thanks and Regards.
Devrath Sampat
Hi Devrath,
regarding your description I don't think that the BAPI will be the best solution. I think that it would be even better to use the IDOC functionality and transfer document info records by using DOCMAS IDOCs from transaction BDA5.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Devrath,
regarding BDA5 I can tell you that you have to enter the document data and of course the logical system value. Because this is important for sending the documents to the right target system.
The logical system values could be customizing in transaction WE20 and this partner profiles are the basis for a correct ALE transfer.
I hope that this information could be useful for you.
Best regards,
Christoph
Hi Devrath,
You can try FM BAPI_DOCUMENT_CREATE.
Let me know if it works.
Best Regards,
Simran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simran and Christoph,
BAPI_DOCUMENT_CREATE2 Does not work in this case becuase i am using it for Data Migration and it somehow does not consider the path of the SAP Storage system but instead the File path of the checked in persons system.
Ill check BDA5 in more detail.
i have found a way which is more time consuming but works and it is standard SAP.
Thanks.
Devrath
Hi Devrath,
This looks to be useful for you in migration.
Regards,
Deepak Kori
hhey hie ,,,,
Do you know how to use the Function Module
'SDOK_PHIO_LOAD_CONTENT'
using the PHOID i get the file in an internal table but i am not aware of how to use it to add that orignal file to another Document Number.
CVAPI_DOC_CHECKIN is used where we have to attach the internal table but it is not working properly.
Any help would be great,
Thanks in advance..
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.