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] REUSE_ALV_GRID_DISPLAY Giving Error

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

Reply from desperado20032003 on May 15 at 2:31 AM
Terry,
The one thing that I can't understand is that why the report runs in all the other systems apart from mine. Maybe some settings are messed up in my SAP software.
So I presume you are telling me to do the following:
DATA: A1 TYPE SY-REPID.
MOVE SY-REPID TO A1.
After I call the REUSE_ALV_GRID_DISPLAY function, I use this-
I_CALLBACK_PROGRAM? = A1.
But the rest of the the functions also show the same problem. What do I do about those? :-(

---------------Original Message---------------
From: Terry Barker
Sent: Monday, May 14, 2012 12:55 PM
Subject: REUSE_ALV_GRID_DISPLAY Giving Error

Matt,
Passing SY-REPID for the CALLBACK_PROGRAM is a classic no-no. I don't know if that is your "presenting problem," but I do know that you should NEVER do that, because SY-REPID changes to the main program of the called function as soon as the function is called. Instead, declare a variable of type SY-REPID, move SY-REPID to the variable, and pass the variable as your CALLBACK_PROGRAM.
Cheers,
TerryB

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
desperado20032003  
Fresher
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

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