I have a requirement to capture Weighbridge data into SAP .I was not provided any further info on this by client .
My question here is ..
How to get weighbridge data into system .
How can we read the data into SAP.
Any one worked on Weighbridge integration please let me know how you deal this scenario .
Vamsee Krishna P
Peter Jonker replied
I had this scenario before, but we used SAP PI. In PI the file was translated to a custom Idoc (with just the minimum amount of necessary fields) and then uploaded in SAP through a custom function module to handle the custom IDoc. By using an IDoc you can always reprocess when an error occurred and you can monitor it.
In that way we could have PI poll on the directory with a predefined interval.
If you are not using PI ( or another middleware tool) then I think you need to schedule a job in which a custom program reads the directory where the files will be placed. Then process the file(s) and subsequently delete (or even better archive) the files when they have been succesfully processed.
To read all files in a directory you can use Function Module RZL_READ_DIR_LOCAL
Then loop around the filenames returned by this function module and use open dataset to read them into internal tables for further processing.
One limitation with this function module is that the filenames can be maximum 32 characters long. So now I am looking more into this the Function Module SUBST_GET_FILE_LIST would be a better choice to read the directory. This function module can return filenames of a maximum lenght of 75 characters.
( while fm EPS_GET_DIRECTORY_LISTING, another function module to read files in a given directory can return filenames with max length of 40 characters).