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

Issue with RAW data format while processing in loop

Former Member
0 Likes
603

Dear All,

I am creating one report in which I wrote following code....

SELECT * FROM vicncn INTO TABLE ist_vicncn

              FOR ALL ENTRIES IN ist_vibdroocc

              WHERE recnnr = LV_recnnr ."---Get contract

IF sy-subrc = 0 .

SELECT * FROM virainv INTO TABLE ist_virainv

              FOR ALL ENTRIES IN ist_vicncn

              WHERE objnr = ist_vicncn-objnr .

IF SY-SUBRC = 0.

     SELECT * FROM virainvitem INTO TABLE ist_virainvitem

             FOR ALL ENTRIES IN ist_virainv

             WHERE   invguid = ist_virainv-invguid

              AND condtype IN r_condition . " Consumption

  ENDIF .

ENDIF.

       READ TABLE ist_vicncn INTO wa_vicncn WITH KEY recnnr = wa_vibdroocc-occrecnnr .

       IF sy-subrc = 0 .

         READ TABLE ist_virainv INTO wa_virainv WITH KEY objnr = wa_vicncn-objnr .

         IF sy-subrc = 0 .

           LOOP AT ist_virainvitem INTO wa_virainvitem WHERE invguid = wa_virainv-invguid .

           ENDLOOP.

        ENDIF.

    ENDIF.

  • At line number 13 - I am fetching data into table IST_VIRAINVITEM.
  • At line number 27 - For the same  loop IST_VIRAINVITEM  ; not running when I am passing INVGUID from IST_VIRAINV.
  • Problem is with RAW data format(As INVGUID is field is RAW data format).

Please help.......

2 REPLIES 2
Read only

Former Member
0 Likes
550

Hi,

How have you declared your tables IST_VIRAINV & IST_VIRAINVITEM ? There should not be any issue with the raw data... What problem are you facing exactly?

Kr,

Manu.

Read only

former_member282968
Contributor
0 Likes
550

Hi Ashish,

For me its working just fine.I dont think the issue is related with RAW data format.

Just check in the debugg mode and cross check the type of data declared .

with regards,