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

How to compare 2 table values

Hi all,

i have one internal table contains all records created in SD. but i need only records created for J_3avasso..

so i am comparing the first internal table (it_cdtemp1) records with values in j_3avasso and moving to another internal table (it_cdtemp2)

Please find the code for below.

select vbeln posnr etenr into corresponding fields of table it_cdtemp2

from j_3avasso for all entries in it_cdtemp1

where belnr = it_cdtemp1-vbeln and posnr = it_cdtemp1-posnr and

etenr = it_cdtemp1-etenr.

i could see the final internal table (it_cdtemp2) contains only 0 records.

please suggest a solution for this

Regards

Bala

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2009 at 04:12 PM

    Hi Bala,

    Use CONVERSION_EXIT_ALPHA_INPUT FM for VBELN and convert all the entries of it_cdtemp1 with the leading zeros before the selection. Also make sure that there are entries in the table with the given selection criteria

    Regards,

    PSK

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2009 at 03:46 PM

    Looks fine for me. Did you check table j_3avasso directly in data browser (se16n) ? Maybe there are really no entries fullfillng this query.

    Regards

    Marcin

    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.