Skip to Content
0
Former Member
Jul 21, 2011 at 06:13 AM

bapi_te_mara unicode conversion problem

87 Views

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.