Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8720

Extension structure BAPE_VBAP usage for valuepart2

$
0
0

Hello,

 

I have populated BAPI structure lw_bape_vbap and filling the container valuepart1 using below method.

 

    cl_abap_container_utilities=>fill_container_c(

                 EXPORTING  im_value               = lw_bape_vbap

                 IMPORTING  ex_container           = lw_item_ext_in-valuepart1

                 EXCEPTIONS illegal_parameter_type = 1

                   OTHERS                 = 2 ).


The length of all fields in lw_bape_vbap exceeds 240, so I need to fill remaining fields in container valuepart2.

I tried to fill the remaining like below, But I am getting Unicode error:


The offset declaration "240" exceeds the length of the character-type

start (=78) of the structure. This is not allowed in Unicode programs.


    cl_abap_container_utilities=>fill_container_c(

                 EXPORTING  im_value               = lw_bape_vbap+240

                 IMPORTING  ex_container           = lw_item_ext_in-valuepart2

                 EXCEPTIONS illegal_parameter_type = 1

                   OTHERS                 = 2 ).

 

Is there any other way to populate remaining fields in valuepart2.


Thanks,

Shreekant


Viewing all articles
Browse latest Browse all 8720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>