‎2010 Aug 24 4:17 AM
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.
‎2010 Aug 24 4:40 AM
Hello Can you plz elaborate what axillary structures u are using to populate you custom fileld using extension in...?
‎2010 Aug 24 3:24 PM
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.
‎2010 Aug 24 3:56 PM
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)
‎2010 Aug 25 2:57 PM
‎2010 Aug 27 8:56 PM
I solved the issue by creating dynamic structure using cl_abap_structdescr and assigned value using field-symbols.