on 02-23-2012 7:23 AM
Hi Experts
I have made a Z copy of the standard PO smartform BBP_PO and it is working perfectly in English language.
Now I have to print the smartform in German based on the supplier language.
How can I do this?
Can I use a BAdI?
Points will be rewarded.
Thanks
Ankit Pradhan
Hi Surendra
Thanks for your reply.
I debugged and found out that when we click on print preview, the language of the smartform is changed from vendor language to system log on language. Which in my case is English and I wanted a German PO.
So when the PO is sent to supplier, proper language will be applied by the system itself.
I just had to maintain the translation in SE63.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you select "Into All Languages" or "Into Selected Languages" in the General attributes Tab of the Smart form so that your form language is converted into the required languages.
In the Print Preview of the PO the langauge of the PO FORM will be the Log On language of the user.
In Mail output the PO FORM Langauge should be determined automatically, pls. check this FM BBP_OUTPUT_PO_GETDETAIL_SMART which determines the vendor Langauge, check perform- GET_VENDOR.
If you want to customize it then do the below.
In case of sending PO to vendor. You can change the language in the processing class method of the PO form set up.
In SPRO define action for document output for the action profile BBP_PD_PO and action definition- select the SMART FORMS MAIL, click on set processing button you can see the processing class and method. you can create a new class and method by copying it .
In the method. you can control parameter language to vendor's langauge call the form function
ls_control_param-langu = lv_vendors_langu.
CALL FUNCTION lv_function
EXPORTING
archive_index_tab = ct_archive_index_tab
archive_parameters = is_archive_parameters
control_parameters = ls_control_param
mail_appl_obj = is_mail_appl_obj_s
mail_recipient = is_mail_recipient
mail_sender = is_mail_sender
output_options = ls_output_options
user_settings = ip_user_settings
sf_po = ls_sf_po
iv_sender = ls_sender_email
IMPORTING
document_output_info = es_document_output_info
job_output_info = e_job_output_info
job_output_options = e_job_output_options
ev_sender = ls_sender_email
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
This will change the forms langauge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.