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

Handling Extension Structure using BAPI in Unicode environment

Former Member
0 Likes
1,611

Hi,

I am using the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS to create Outbound Delivery.

We have a nested include structure in LIPS which has mixed field type.

Since BAPIPAREX is used to pass the value for Extension fileds, I have problem with the Unicode environment. Packed fields are filled with '#''s, Can someone who come cross similar issue could help me please.

5 REPLIES 5
Read only

anup_deshmukh4
Active Contributor
0 Likes
1,158

Hello Can you plz elaborate what axillary structures u are using to populate you custom fileld using extension in...?

Read only

0 Likes
1,158

In BAPI the structure I want to populate : EXTENSION_IN

The custom append structure is in: LIPS

Append structure name: OILLIPS

(Below are Some fields in structure)

.INCLUDE OID_EX 0

OID_EXTBOL OID_EXTBOL CHAR 16

OID_MISCDL OID_MISCDL CHAR 16

.APPEND YOID_EX 0

YYARC YYVARC CHAR 21

YYLRN YYVLRN CHAR 22

YYEPC YYVEPC CHAR 4

YY_NOMNR OIJ_NOMNR CHAR 20

YY_NOMTYP OIJ_NOMTYP CHAR 4

YY_PASSTHROUGH YYMPASSTHROUGH CHAR 1

YY_PARCEL YYMPARCEL NUMC 3

YY_TRD_PARCEL YYMTRD_PARCEL NUMC 3

YY_LD_LOCID YYMLD_LOCID CHAR 10

YY_DC_LOCID YYMDC_LOCID CHAR 10

YY_NOM_TSYST OIJ_TSYST CHAR 10

YY_NOM_CREYEAR YYMCREYEAR NUMC 4

YY_NOM_CYCLE OIJ_CYCLE CHAR 10

.INCLUDE OIC_PIPE 0

I tried using field-symbols and casting and also CALL METHOD cl_abap_container_utilities=>fill_container_c. Both are giving only hexadecimal values and then when tired to assign this hexadecimals values to character field i am getting "#"'s.

This morning, when I tired by defining a structure with field correspond to this append structure as character field with length corresponding to each field and then assign individual field one by one it takes the value. There should be an efficient way of handling this scenario.

Read only

Former Member
0 Likes
1,158

I had a similar issue a few days ago with the extensionin structure, my field was filled with the symbols "<<< my value >>>" , i mean, between the "<<< >>>" symbols,

and i found the solution in a conversion routine for the data type, so, check if the field you want to fill have any converison routine,

hope it helps

(sorry about my english)

Read only

0 Likes
1,158

not solved

Read only

0 Likes
1,158

I solved the issue by creating dynamic structure using cl_abap_structdescr and assigned value using field-symbols.