Skip to Content
author's profile photo Former Member
Former Member

wrong calculation of dynamic field length

In standard program when table name BSIK and field BELNR are passed then through field symbol the BELNR field length is given as 1 but in table its 10.Similarly when table MSEG and field MBLNR is passed then in same way the MBLNR field lenth is given as 10 .Can you please help me to clear my confusion on this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 21, 2015 at 11:28 AM

    Hi,

    could you please clarify your issue.


    Normally all works fine with BSIK-BELNR:

    REPORT ztest_bsik.

    TABLES: bsik.

    CONSTANTS: xv_test TYPE belnr_d VALUE '1234567890'.

    FIELD-SYMBOLS: <field1> TYPE ANY.

    FIELD-SYMBOLS: <field2> TYPE c.

    START-OF-SELECTION.

    ASSIGN bsik-belnr TO <field1>.

    <field1> = xv_test.

    WRITE: /1 <field1>.

    ASSIGN COMPONENT 'BELNR' OF STRUCTURE bsik TO <field2>.

    <field2> = xv_test.

    WRITE: /1 <field2>.

    If the above code works on your system, please clarify, what kind of assign doesn't work.

    Regards,

    Klaus

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.