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

error in report

Former Member
0 Likes
616

hi experts,

plz solve my problem, i mention below my coding...

SELECT PSPID POST1 FROM

PROJ INTO TABLE

IT_PROJ WHERE

PSPID = P_PSPID.

SELECT PSPHI POSID OBJNR '' here only i am getting error.

FROM PRPS INTO TABLE

IT_PRPS WHERE PSPHI = P_PSPID.

SELECT PS_PSP_PNR NETWR WAERK

FROM VBAP INTO TABLE IT_VBAP

FOR ALL ENTRIES IN IT_PRPS

WHERE PS_PSP_PNR = IT_PRPS-POSID.

SELECT OBJNR VORGA WTP00 VERSN

FROM RPSCO INTO TABLE

IT_RPSCO FOR ALL ENTRIES IN

IT_PRPS WHERE OBJNR = IT_PRPS-OBJNR AND

VERSN = '0' AND VORGA = 'KSTP'.

this is my coding..

while excute time i am getting run time error in second select query(it_prps )

regards

guna

5 REPLIES 5
Read only

Former Member
0 Likes
581

Hi!

Try out this way:

SELECT PSPHI POSID OBJNR '' here only i am getting error.

FROM PRPS INTO CORRESPONDING FIELDS OF TABLE "match by name, not by structure

IT_PRPS WHERE PSPHI = P_PSPID.

Regards

Tamá

Read only

Former Member
0 Likes
581

Hi,

How can you match PSPHI with P_PSPID in your 2nd Select?

Please correct your where clause in the 2nd select.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
581

Please let me know the declaration of internal table IT_PROJ , IT_PRPS . also the type of P_PSPID.

Regards,

Nikhil

Read only

Former Member
0 Likes
581

Hi,

Seems to be a data type mismatch problem.

What is the data type of P_PSPID ? As per the first select query, you would have defined P_PSPID as CHAR(24).

In Second Query you are comparing the value of P_PSPID with PRPS-PSPHI which is having data type NUMC(8).

Regards

Vinod

Read only

0 Likes
581

P_PSPID is a PARAMETER? or a SELECT-OPTION?

Check that the data element of both fields be the same..