Application Development 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: 

set pf-status

Former Member
0 Kudos

hai abap gurus ,

iam useing set pf status to get secondary list for which i was select check box in basic list , i got the secondary list but i want to refresh the list when i use other check box in basic list to get other values ,

help me how i can refresh my secondary list data.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Upender,

Before populating the data to internal table of secondary list, use REFRESH ITAB2 statement.

Reward if it helps,

Satish

2 REPLIES 2

Former Member
0 Kudos

Hi Upender,

Before populating the data to internal table of secondary list, use REFRESH ITAB2 statement.

Reward if it helps,

Satish

0 Kudos

hai satish ,

i used refresh but its not working ,

i write code like this ....

SET PF-STATUS '100_S'.

AT USER-COMMAND.

IF SY-LSIND LT 2.

CASE SY-UCOMM.

WHEN 'CANCEL'.

LEAVE TO SCREEN 0.

WHEN 'CLICK'.

*select ebeln lifnr from ekko into table itab1.

DESCRIBE TABLE ITAB LINES W_LINES.

CLEAR ITAB1.

DO W_LINES TIMES.

READ LINE W_RECORD : FIELD VALUE ITAB-CHECK INTO CHK,

FIELD VALUE ITAB-EBELN INTO ITAB1-EBELN,

FIELD VALUE ITAB-LIFNR INTO ITAB1-LIFNR.

IF SY-SUBRC NE 0.

EXIT.

ENDIF.

IF CHK EQ 'X'.

APPEND ITAB1.

refresh itab1.

ENDIF.

ADD 1 TO W_RECORD.

ENDDO.

LOOP AT ITAB1.

AT FIRST.

WRITE:/ 'EBELN' , 15

'LIFNR'.

ULINE.

SKIP.

ENDAT.

ok thanks.