Skip to Content

Extra space is inserted in custom field in the table using BAPI_PR_CREATE.

Hi Experts,

I need to update the custom fields in PR screen using BAPI.

After updating there is extra space in front of the data of each field in eban table

ls_ext_in-valuepart1 = ls_m_value+0(67).

ls_ext_in-structure = 'BAPI_TE_MEREQITEM'.

ls_ext_in-valuepart2 =  ls_m_value+67(240).

Kindly anyone advise how to avoid this space in front of the custom field.

Thanks & Regards,


pic.png (2.9 kB)
pic.png (2.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 26, 2015 at 08:40 AM

    Good day Anu,

    Looks like your position is not properly defined on ls_ext_in-valuepart2+67(240)

    I believe it should have bee defined like this ls_ext_in-valuepart2+0(64).

    Start from position 0 put 67 characters.

    The one you defined read start from position 67 put 240 characters.

    hope it helps.


    Tumelo Modise

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2015 at 08:21 AM

    I suppose ls_m_value is of TYPE BAPI_TE_MEREQITEM and ls_ext_in of TYPE BAPIPAREX, so try some :

    ls_ext_in-structure = 'BAPI_TE_MEREQITEM'.



        im_value              = ls_m_value


        ex_container          = ls_ext_in+30.

    Question: why do you split at position 67, when VALUEPARTn fields length is 240, in pre-unicode old versions you could split by block of 240.



    Add comment
    10|10000 characters needed characters exceeded