Application Development 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: 

bapi_te_mara unicode conversion problem

Former Member
0 Kudos

Hi,

i am getting an unicode conversion error .I found a oss note but couldnt apply to my source code.[OSS note 509898|https://service.sap.com/sap/support/notes/509898]

in bapi_te_mara i have netpr value which domain is curr(Problem occurs from here).

What is the souliton for conversion curr?

My code is;

DATA:   gs_bapi_te_mara  TYPE bapi_te_mara,
               gs_bapi_te_marax TYPE bapi_te_marax,
               gs_headdata      TYPE bapimathead,
               gt_extension     TYPE TABLE OF bapiparex WITH HEADER LINE,
               gt_extensionx    TYPE TABLE OF bapiparexx WITH HEADER LINE,
               gt_return        TYPE TABLE OF bapi_matreturn2 WITH HEADER LINE.
      

              gs_bapi_te_mara-material =  material.
              gs_bapi_te_mara-zznetpr =  zznetpr.
              gt_extension-structure   = 'BAPI_TE_MARA'.
              gt_extension-valuepart1  = gs_bapi_te_mara. "prroblem here!
              APPEND gt_extension.

            gs_bapi_te_marax-material =  lt_price-matnr.
            gs_bapi_te_marax-zznetpr  = 'X'.
            gt_extensionx-structure   = 'BAPI_TE_MARAX'.
            gt_extensionx-valuepart1  = gs_bapi_te_marax.
            APPEND gt_extensionx.

            CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
              EXPORTING
                headdata       = gs_headdata
              TABLES
                returnmessages = gt_return
                extensionin    = gt_extension[]
                extensioninx   = gt_extensionx[].

thanks in advance.

1 REPLY 1

former_member195402
Active Contributor
0 Kudos

Hi,

if I know right, only character field types are supported in unicode for EXTENSIONIN, e.g. types CHAR, NUMC, DATS.

All other field types may cause unicode conversion errors.

Regards,

Klaus