Application Development 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: 

abap help

Former Member
0 Kudos
83

hello, i have a question about an issue. i have 2 tables....vbrp and mkpf. i need to take delivery number(VBELN) from vbrp which is defined as CHAR 10 and put it in XBLNR of mkpf which is defined as CHAR 16 but when i write a user exit it says "FOR ALL ENTRIES IN" statement both fields must be of same type and same length. i need to make both fields alike. can someone help? i am pretty new in abap.thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos
50

Hi,

Please declare the field xblnr in your internal table with the type Char and length 10.

Hope this resolve your issue.

Thanks,

Sudheer

3 REPLIES 3

krishnendu_laha
Active Contributor
0 Kudos
50

Hello,

you have to make a new internal table with one field type makpf-xblnr.

after fetching data from vbrp table....move one by one all entries from vbrp internal table to new internal table...

now in the FOR ALL ENTRIES...use the new internal table

it will solve your problem...

Thanks

K.

Former Member
0 Kudos
50

Moderator message - This is the ABAP forum. Just about every question here is asking for "ABAP help". So in the future, please use a more descriptive title.

Rob

Former Member
0 Kudos
51

Hi,

Please declare the field xblnr in your internal table with the type Char and length 10.

Hope this resolve your issue.

Thanks,

Sudheer