‎2009 Apr 02 2:39 PM
Hi Experts,
I have one query in sap script. I have one std. script. I copied it in two languages EN & DE.
Now the requirement is the based on vendor language I wanted to print the script i.e. If I login in EN language but my vendor langu is DE then I will get the output in DE langu.
The script should not consider the logon language whereas it should consider only the vendor language & display the output accordingly.
We have standard print program. We just copied the standard form & make it as Z-Form.
Can anybody will suggest me how I can achieve that requirement?
Thanks,
Neha
‎2009 Apr 02 2:49 PM
try to maintain a Ztable which hold the form name the layout to call and the language... based on your values pass the values and get the appropriate layout and call that.
‎2009 Apr 02 2:52 PM
Hi,
For this you have to create standard text independently with EN and DE lang.
Based on Customer Lang (Check if cust-lang = EN else for DE )you have to pass text. This is for Output texts and Heading texts.
The line items will be displayed as usaual. Other thas this issuse let us know.
Regards,
Sunil
‎2009 Apr 02 2:52 PM
While calling the OPEN_FORM function module pass the vendor langue to input LANGUAGE
function open_form.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(APPLICATION) LIKE TTXOB-TDAPPL DEFAULT 'TX'
*" VALUE(ARCHIVE_INDEX) LIKE TOA_DARA STRUCTURE TOA_DARA OPTIONAL
*" VALUE(ARCHIVE_PARAMS) LIKE ARC_PARAMS STRUCTURE ARC_PARAMS
*" OPTIONAL
*" VALUE(DEVICE) TYPE C DEFAULT 'PRINTER'
*" VALUE(DIALOG) TYPE C DEFAULT 'X'
*" VALUE(FORM) TYPE C DEFAULT SPACE
**" *VALUE(LANGUAGE) LIKE THEAD-TDSPRAS DEFAULT SY-L*ANGU**
"VALUE(OPTIONS) LIKE ITCPO STRUCTURE ITCPO OPTIONAL
*" VALUE(MAIL_SENDER) LIKE SWOTOBJID STRUCTURE SWOTOBJID OPTIONAL
*" VALUE(MAIL_RECIPIENT) LIKE SWOTOBJID STRUCTURE SWOTOBJID
*" OPTIONAL
*" VALUE(MAIL_APPL_OBJECT) LIKE SWOTOBJID STRUCTURE SWOTOBJID
*" OPTIONAL
*" VALUE(RAW_DATA_INTERFACE) TYPE C DEFAULT '*'
*" VALUE(SPONUMIV) TYPE NRIV-NRRANGENR OPTIONAL
*" EXPORTING
*" VALUE(LANGUAGE) LIKE THEAD-TDSPRAS
*" VALUE(NEW_ARCHIVE_PARAMS) LIKE ARC_PARAMS STRUCTURE ARC_PARAMS
*" VALUE(RESULT) LIKE ITCPP STRUCTURE ITCPP
*" EXCEPTIONS
Edited by: Pawan Kesari on Apr 2, 2009 7:22 PM