Application Development and Automation 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: 
Read only

Problem with Querying..

Former Member
0 Likes
531

I Used FModule.. "IHCLSD_PROCESS_SEARCH"

CALL FUNCTION 'IHCLSD_PROCESS_SEARCH'

EXPORTING

I_KLART = '002'

I_CLASS = 'DT'

  • I_LANGUAGE = SY-LANGU

  • I_KEY_DATE = SY-DATUM

  • CHANGING

CT_OBJECTS = CT_OBJECTS

EXCEPTIONS

NO_OBJECTS_FOUND = 1

INCONSISTENT_PARAMETERS = 2

NO_AUTHORITY_CLASSTYPE = 3

CT_OBJECTS Contains all the List of Equipment for the class "DT".

Now I want to Query From the List of Equipments which is executed after that FM for the Weight= xyz from those list of equipment.

Its Table is EQUI and Fiels is BRGEW.

Can Any one will write the Query So, that I can Execute Immediately.

Its Very Urgent..

Points will be awarded.

Regards,

Jayasimha

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
482

just loop at ct objects.

select single brgew into (equi-brgew) where equi_number = ' ( eqno) '.

and brgew = 'xyz'.

if sy-subrc = 0.

then it matches u r criteria.

move it to another itab.

then u will get the list wheich satisfies ur condition.

reward if useful

Read only

0 Likes
482

Hi Mohammed ,

I need to find Eq No for those eq.no which as weight xy.

Loop at CT_objects cannot be put. Because it is a changing type and it is not a table kind of this.

Can u write the logic and send me if possible.\

Regards,

jayasimha

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
482

whether this functional module is inside a loop?

If so.

you just write the code below the FM.

declare a internal table with 2 fields.

data:begin of itab occurs 2000,

eeqno type itob-eqno,

end of itab.

select single brgew into (equi-brgew) where equi_number = CT_OBJECTS

and brgew = 'xyz'.

if sy-subrc = 0.

move CT_OBJECTS to itab-eqno.

append itab.

clear equi.

endif.

Read only

0 Likes
482

CT_OBJECT is an changing table.

In that table a field called objects which stores the equipment value.