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

question on interactive report

Former Member
0 Likes
314

hello sir in interactive report in output we click on customer feild it open a secandary list. it display a data.if customer is not having any order,then it show some message. tell me how i wil do it

2 REPLIES 2
Read only

Former Member
0 Likes
284

How do you want the Message...on the list or as a information message to popup instead of the Secondray List ?

Ketan

Read only

Former Member
0 Likes
284

Hi,

Try this..

DATA: BEGIN OF ITAB1 OCCURS 0,

KUNNR TYPE KUNNR,

END OF ITAB1.

DATA: BEGIN OF ITAB_DETAIL OCCURS 0,

KUNNR TYPE KUNNR,

VKORG TYPE VKORG,

END OF ITAB_DETAIL.

ITAB1-KUNNR = '123'.

APPEND ITAB1.

ITAB1-KUNNR = '1234'.

APPEND ITAB1.

ITAB_DETAIL-KUNNR = '123'.

ITAB_DETAIL-VKORG = '1000'.

APPEND ITAB_DETAIL.

LOOP AT ITAB1.

WRITE: / ITAB1-KUNNR.

HIDE ITAB1-KUNNR.

ENDLOOP.

AT LINE-SELECTION.

LOOP AT ITAB_DETAIL WHERE KUNNR = ITAB1-KUNNR.

WRITE: / ITAB_DETAIL-VKORG.

ENDLOOP.

IF SY-SUBRC <> 0.

MESSAGE S208(00) WITH 'NO RECORD FOUND'.

ENDIF.

CLEAR: ITAB1-KUNNR.

Thanks,

Naren