Jason Patte
7th February 2006, 22:09
Report "Print Order Documents". We share a server with another location that needs to print reports in lang 4 (french), standard is english.

How do you program the script to print the report in language 4. The BaaN companies are different companies.

I not a BaaN "programmer" so be nice....:D

mr_suleyman
8th February 2006, 08:42
If you don't know programming , you can add 4 different reports to your program. When They run session they will see 4 choices (FR / ENG / ... )
To add report to your session, go main session and then add your reports to session's report part. That's All.

Good Luck !

csecgn
8th February 2006, 09:59
The language depends from the user. Normaly you only have to copy the report to language 4 and compile it. If the user has also language 4, baan should take the french report automaticaly.

hth

Regards
csecgn

en@frrom
8th February 2006, 13:50
Hi! Like csecgn (what a name...) says, the system language - i.e. user's language - is used as default, so if indeed the user is working in language 4, then all you need to do, is stand on the report, and via 'specific' select 'copy to other language'. Don't forget to compile (Ctrl+F9 or 'Specific' -> compile)

If system language <> 4 and the only thing that determines the required language is the business partner's language, then it is very easy to program this. All you need to do is select the BP's language, and open the report in that specific language

Jason Patte
8th February 2006, 16:24
I get it/got it, thanks all!

Jason Patte
8th February 2006, 17:28
Well I thought I had it but the issue is the users language must be english (all menus and reports must be in english). However the only one report needs to be in lang 4 (SFC Order). The employees on the factory floor can't can't english but all the office staff can.

Make sense?

en@frrom
8th February 2006, 17:33
Do you own the source? What report is it exactly about? Standard Baan?

NvpBaaN
8th February 2006, 18:29
There are two approaches - temporarily change the user's language (which is not preferred) or create a new user with language as 4, only for SFC work.
If both these are not possible, then you have to do it programmatically. In this approach, it depends on the command used to call the report. Check the command (could be rprt_send or brp.ready or print.report or spool.report) - check the help of the command used. You will find a parameter for langauage. Here, you can set the language as 4 if company number is the France company number...
Hope this helps...if not, tell the report command...

Regards.

beginer
9th February 2006, 08:30
For A New-Programmer to BaaN I would suggest the following approach :-

Copy the existing Report to a new Report No. in the same group.
Link it to the Current Session.
So, automatically a Selection window will pop-up at Runtime ( To select One of them)

If I am not wrong...the data will surely be in English....but the labels will be in the Language u want....for the understanding of person at Shop Floor.

So edit the new report & only change the labels to required language.
I mean create labels in BaaN - English Language but actually in French alphabets....( I think I have confused u more )

:)

en@frrom
9th February 2006, 09:59
Beginner, this is exactly what suleyman also suggested. Of course this is an option, and is easy, but not so neat. This means that all users that use this session, will always have one moe step (=click) in their procedure; something users love moaning about...

I personally find, that - IF Jason has access to the source - this should be done programmatically; this is very easy, not complicated at all. Jason, if you send me the complete program script, I will apply the necessary changes for you, with pleasure. Even if you don't own sources, you could do this still using AFS. A bit more work, but also no problem at all. Let us know Jason what you opt for...

Good luck!
En

Jason Patte
9th February 2006, 17:17
For A New-Programmer to BaaN I would suggest the following approach :-

Copy the existing Report to a new Report No. in the same group.
Link it to the Current Session.
So, automatically a Selection window will pop-up at Runtime ( To select One of them)

If I am not wrong...the data will surely be in English....but the labels will be in the Language u want....for the understanding of person at Shop Floor.

So edit the new report & only change the labels to required language.
I mean create labels in BaaN - English Language but actually in French alphabets....( I think I have confused u more )

:)

I too thought this would be the easiest choice. Copy the current report and add the new report to the report selection when running session "print order documents". Then the user can select either the english report or the "english" report with french label translations. I tried it but when I changed the labels on the new report it also changed the labels to french in the english report in other BaaN companies (which is bad).

Script modification to print the new french report when printed from the new company would be best, I think.

I apprectiate all the suggestions and will continue to ask for help and let you all know how this newbie makes out... :)

timb25
24th May 2006, 20:34
en@frrom.... you mentioned "Even if you don't own sources, you could do this still using AFS."

I'm running into the same issue here where the menus have to be in english, but some of the reports must report in Polish. These reports are standard (without source) but exist in english and polish language. Our goal is to avoid setting the language to Polish for the Polish users. But these specific internal reports must be printed in Polish.

How would you go about using the AFS to do this? I've done a few AFS sessions in the past so I have an idea of the functionality. The way I'm figuring is I would have to create an AFS session for each session that I want to be able to print in Polish? Is that correct?

Thanks,
-Tim

deepaksachdeva
7th February 2007, 11:15
Hi ,

I have few standard report like Print delivery bill , print packing slips which are present in differnt languages, and in user setting the base language is eng, and in few customer the defined language is FRE and GER,
how can i print the report in customer language,

Pls Help

Deepak
Hi! Like csecgn (what a name...) says, the system language - i.e. user's language - is used as default, so if indeed the user is working in language 4, then all you need to do, is stand on the report, and via 'specific' select 'copy to other language'. Don't forget to compile (Ctrl+F9 or 'Specific' -> compile)

If system language <> 4 and the only thing that determines the required language is the business partner's language, then it is very easy to program this. All you need to do is select the BP's language, and open the report in that specific language

en@frrom
12th February 2007, 17:28
Do you have access to the program scripts? If yes, please post the script here, and we'll send you the code to apply.

Regards,
Eli Nager