cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate language for customer masterdata

Former Member
0 Kudos

Hi @ all,

I need your support how to design a routine to duplicate the language key for customer master data in 2 languages 'DE' and 'EN' in the transformation.

I know that I've to loop over the resultpackage and duplicate the language key, bt how to realize this in ABAP?

Thanks in advance,

Clemens

Accepted Solutions (1)

Accepted Solutions (1)

m_verbaan2
Active Participant
0 Kudos

Hi Clemens,

You can achieve this e.g. by the loop you mention and for each record append a copy [but with changeg language] to a 2nd internal table. When done loop through the 2nd internal table and append the recs to the original one.

But...what's the point of doing this as you will not translate any texts?

Grtx

Marco

Former Member
0 Kudos

Hi,

my problem is how to realize this coding in an end routine? I don't have any language in customer masterdata in source system; I need the masterdata in BI in german and english.

First I have to loop over the RESULT_PACKAGE, but I get an errormessage, that the resultpackage is not known. I get the same message when I try it with SOURCE_FIELDS...

THX in advance,

Clemens

Former Member
0 Kudos

Dear SAP-Gurus,

I found a solution for my problem and solved it with an expert routine; you can see the coding below...

LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.

RESULT_FIELDS-/BIC/ZA_000020 = <SOURCE_FIELDS>-KUNDEKEY.

RESULT_FIELDS-LANGU = 'D'.

RESULT_FIELDS-TXTMD = <SOURCE_FIELDS>-KUNDE_TXT.

RESULT_FIELDS-TXTLG = <SOURCE_FIELDS>-KUNDE_TXT.

APPEND RESULT_FIELDS TO RESULT_PACKAGE.

RESULT_FIELDS-LANGU = 'E'.

APPEND RESULT_FIELDS TO RESULT_PACKAGE.

ENDLOOP.

Cheers, Clemens

Answers (0)