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

Query

Former Member
0 Likes
339

hi friends,

1. Select all records from table CDHDR where

AND OBJECTCLAS in S_OBJCLS

AND UDATE = P_DATE

AND CHANGE_IND in S_CHGIND

retrieve only the fields required

upto above i written a select statement

the below thing i didnt under stood

i have little bit confusion Could plese help me below one how to do

IF no record is found

THEN

Create a trailer record with zero count

WRITE the validation report showing only the null trailer details

EXIT the program

ENDIF

Thanks And Regards

Srilavi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
310

Hi Srivali..

I didn't understand either when you say

"Create a trailer record with zero count

WRITE the validation report showing only the null trailer details".

but as far as i understood,

do this after select stmt...

data: lin type i.

describe table itab lines lin. "where itab is filled up from cdhdr table

if lin eq 0.

count = count + 1.

write: / count.

exit.

endif.

Regards,

Vivek

2 REPLIES 2
Read only

Former Member
0 Likes
311

Hi Srivali..

I didn't understand either when you say

"Create a trailer record with zero count

WRITE the validation report showing only the null trailer details".

but as far as i understood,

do this after select stmt...

data: lin type i.

describe table itab lines lin. "where itab is filled up from cdhdr table

if lin eq 0.

count = count + 1.

write: / count.

exit.

endif.

Regards,

Vivek

Read only

0 Likes
310

hi vivek,

Thanks

Regards

Srilavi