cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP API

Former Member
0 Kudos

Hi All,

I am using ABAP API to connect to the standard Material repository. But while giving a language

<b>lr_api->mo_accessor->connect( ls_language ).</b>

it is giving a dump. I think some proble with French language.

But I am passing English as language.

Please help....

Regards,

Nikhil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi !

What languages have you set in the Console?

If you set ENGLISH[US] you should write the following code:

ls_language-language = 'eng'.
ls_language-country = 'US'.
ls_language-region = 'USA'.

If you have the French language, you should inquire how to represent the French language internally. You can put a breakpoint in the method CONNECT of the interface IF_MDM_CONNECTOR and see the values of the table "lt_regdef"

*  Put the breakpoint in this method (Line 125)
    CALL METHOD mo_meta_client->getrepositoryregions
      EXPORTING
        reptag         = <rep_tag>-reptag
      IMPORTING
        regionsdefined = lt_regdef
        rc             = lv_rc.

For example, we set our language to Spanish[ES] and the values that we are setting in order to connect are:

ls_language-language = 'spa'.
ls_language-country = 'ES'.
ls_language-region = '__A'.

I hope it helps,

Greetings,

Mariano.-

Please reward helpful answers

Answers (0)