This website is not affiliated with, sponsored by, or approved by SAP AG.

Strugling with SELECT

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Gothmog
Posts: 1946
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Strugling with SELECT

Post by Gothmog » Fri Jan 20, 2017 9:35 am

For the last HU being ****, move this :

Code: Select all

<l_field> = RP_HU.
before this

Code: Select all

  AT LAST.
    EXIT.
  ENDAT.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

rpinxt
Posts: 146
Joined: Mon Jul 23, 2012 8:02 am

Re: Strugling with SELECT

Post by rpinxt » Mon Jan 23, 2017 5:09 am

Thanks for this!

Now made it like you said :

Code: Select all

LOOP AT it_hus INTO RP_HU.
  <l_field> = RP_HU.
  AT LAST.
  EXIT.
   ENDAT.
  APPEND <ls_data> TO <lt_data>.
ENDLOOP.
However de **** still remain.

Did I do it still wrong?

sapyard
Posts: 3
Joined: Sun Jul 02, 2017 9:44 am
Location: Texas, USA
Contact:

Re: Strugling with SELECT

Post by sapyard » Mon Jul 03, 2017 1:28 pm

Since it is already 6 months, I hope you have already found the resolution.

Just for others benefit, can you please write the solution?

The asterisk comes if we write any anything in the below control.
AT NEW, FIRST, LAST etc
ENDAT.

Gothmog, has rightly suggested to assign the field value before AT - ENDAT.
Thanking you.

With Regards,
Raju.
--------------------------------
Raju Shrestha
http://www.sapyard.com/
--------------------------------

Post Reply