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

Bapi with a language different from the logon language

Former Member
0 Likes
1,804

Hallo.

I need to do a BAPI ZTEST with a CALL TRANSACTION on IE01

The external user that uses the BAPI logon in EN (English)

But I need to execute the CAL Transcation in IE01 with Italian language.

How could I overwrite SY-LANGU ?

Thanks for your help.

Mario

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
1,138

The external user that uses the BAPI logon in EN (English)

What about changing it to Italian?

Hallo.

I need to do a BAPI ZTEST with a CALL TRANSACTION on IE01

The external user that uses the BAPI logon in EN (English)

But I need to execute the CAL Transcation in IE01 with Italian language.

How could I overwrite SY-LANGU ?

Thanks for your help.

Mario

5 REPLIES 5
Read only

Sm1tje
Active Contributor
0 Likes
1,139

The external user that uses the BAPI logon in EN (English)

What about changing it to Italian?

Read only

Former Member
0 Likes
1,138

No, the external application (TIBCO) can't change it to Italian, beacause the Tibco team said that there could be any problem about the date format.

Edited by: Ferruccio Galli on Jan 25, 2011 9:53 AM

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,138

Did you try a [SET LOCALE LANGUAGE lang...|http://help.sap.com/abapdocu_70/en/ABAPSET_LOCALE.htm]


save_langu = sy-langu.
SET LOCALE LANGUAGE 'IT'.
* (...)
SET LOCALE LANGUAGE save_langu.

Regards,

Raymond

Read only

0 Likes
1,138

Hallo.

Yes I tried.

This is the code:

.

.

----


FORM bdc_transaction USING tcode.

DATA xlangu TYPE sy-langu.

xlangu = sy-langu.

IF sy-langu NE 'I'.

SET LOCALE LANGUAGE 'I'.

ENDIF.

CALL TRANSACTION tcode USING bdcdata

  • MODE 'A' "CTUMODE "per visualizzare passi della registrazione

MODE 'N' "CTUMODE

UPDATE 'S'. "CUPDATE

  • MESSAGES INTO itab.

SET LOCALE LANGUAGE xlangu.

ENDFORM. "BDC_TRANSACTION

.

.

but it doesn't work.

It uses always the logon language (EN) instead of the italian.

Why this?

Thanks.

Mario

Edited by: Ferruccio Galli on Jan 25, 2011 11:06 AM

Edited by: Ferruccio Galli on Jan 25, 2011 2:27 PM

Read only

Former Member
0 Likes
1,138

Hi,

Set locale language will not work since your using BDC. Isn't there any way to transfer the language into your BDC data table?

Else you can only change the language by setting the sy-langu field to Italian (which was already suggested previously).

Best regards,

Guus