We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] ALV grid

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from kwizeraa on Feb 22 at 1:19 PM
Remove if r_container is initial and replace with if r_alv is initial.

The check is done to ensure no grid exists before creating the container
object. You have it the other way round.

Let me know results when you test.

Best regards,
Adrian

---------------Original Message---------------
From: prakash
Sent: Wednesday, February 22, 2017 1:00 PM
Subject: ALV grid

How should improve my alv program, I have the following problem:
New columns appear each time the screen is opened.
thank you for your reply

MODULE MY_AREA OUTPUT.
if r_container is initial.
create object r_container
exporting
container_name = 'MY_AREA'.
create object r_alv
EXPORTING
i_parent = r_container.



CALL METHOD R_ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER =
* I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME ='SBOOK'
* IS_VARIANT =
* I_SAVE = 'U'
I_DEFAULT = 'X'
* IS_LAYOUT =
IS_PRINT = my_print
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO =
* IR_SALV_ADAPTER =
CHANGING
IT_OUTTAB = it_book
IT_FIELDCATALOG = it_fcat
* IT_SORT =
* IT_FILTER =
* EXCEPTIONS
* INVALID_PARAMETER_COMBINATION = 1
* PROGRAM_ERROR = 2
* TOO_MANY_LINES = 3
* others = 4
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

CALL METHOD R_ALV->REFRESH_TABLE_DISPLAY
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
* EXCEPTIONS
* FINISHED = 1
* others = 2
.
IF SY-SUBRC <> 0.

ENDIF.

ENDMODULE.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
© 2017 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
kwizeraa  

Programmer/Developer - Software
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language