Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Script Output Issue

Former Member
0 Likes
427

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

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
393

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.

Read only

Former Member
0 Likes
393

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
393

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