‎2009 Oct 23 8:50 AM
Hi,
I am trying to execute the Standard Program RSEINB00.
The input parameters for this program are
1. File path along with name
2. Port.
File path I am giving the application server directory along with the filename.
For port. i have created a port in WE21.
For both outbound parametes I selected the Physical directory and gave directory name and file name in both tabs and saved the port definition.
Now I am passing the port to the RSEINB00 program.
it is giving an error File cannot be opened.
Can any one help me on this. Can someone guide me how to use RSEINB00 to read file from application server.
thanks
‎2009 Oct 23 8:58 AM
Hi,
2 possibilities for the error:
1. The file is not present at the path you specified.
2. You do not have permissions to read the file.
Find out the exact error by putting a break point at the subroutine file_check_and_open in include LEDINF01.
Also, try to run the program in background and with a user who has enough permissions on the app server. example Job user etc.
Br,
Advait
‎2009 Oct 23 10:09 AM
Hi Advait,
I checked the file and gave the exact locaiton of the file.
I even tried to upload a file with my user id and gave the same file path.
So for the first possibility of error can be ignored as I have the permission and access to the app server.
Now I am trying to debug the perform for file open and will come back to you with the exact error message.
Kindly guide me.
Thanks
‎2009 Oct 23 11:41 AM
Hi,
I debug the program a found the error as E0 372 ( Which says the first reccord in the file is not an IDOC contorl Record).
So I asked my functional Consultant to give us a sample file.
I also made some changes in the port definition.
The checked the UNICODE format check box
I also gave REPCHAR as #.
Kindly guide me if I am goingm in wrong direction
Thanks
‎2009 Oct 23 12:08 PM
Hi,
I think,you missed out some steps while creating Port.so please follow the below steps to resolve the issue.
we21->click on your port number->outbound file tab->function module: EDI_PATH_CREATE_MESTYP_DOCNUM.
outbound file: give file name .txt.
and give the physical directory : /usr/sap/.......................................txt and save.
and click on 'ACESS TEST' button and check any error is coming.
go to outbound trigger tab-> give RFC destination name which we have created under a port in SM59.
and one more important thing is check your unicode status is active or not.
.Please get back me .if any issues.
Kiran J
‎2009 Oct 23 1:34 PM
Hi Kiran,
Your reply is very useful to me.
I will let you know my requirement.
I am using RSEINB00 to trigger Inbound IDocs.
I am passing the file placed in application server to this program.
In we21 for port definition I am passing the Same values for both inbound tab and outbound tab.
The parameters which i am passing are Physical Directory checked and Directory name along with outbound file name.
the same for Inbound Tab also.
Now i will give the FM name which you gave . this I should give in both tabs ( Inbound and Outbound).
Please advice me.
Thanks & Regards
‎2009 Oct 26 9:12 AM
hi
give it for both and click on 'ACCESS TEST' on each tab.check any error comes.
save and activate.
kiran
‎2009 Oct 26 9:28 AM