Professional Documents
Culture Documents
TheABAP
1
More NextBlog
CreateBlog SignIn
Total Pageviews
StumbleUpon
60820
Followers
Followers(20)
Step 1 : Log on SAP and go to SE38 transaction, provide name starting with Z or Y (Here
ZRUNTIME_LABEL_CHANGE ). and click on create button (F5) .
Follow
Step 2 : Provide Title with suitable description, Type as Module Pool , Status as Test Program and save it as
local ( Enter + F7 )
Blog Archive
2013 (1)
June (1)
Changing label of
push button
dynamically in
mod...
2012 (9)
About Me
Step 3 : Click on Display Object List push button (Ctrl + Shift + F5)
KARTHICK R
View my complete profile
http://theabap.blogspot.sg/
1/5
10/4/2016
TheABAP
Step 8 : Double click on screen number 9000 on right side, do uncomment code below PAI and double
Click on the module name to create it.
http://theabap.blogspot.sg/
2/5
10/4/2016
TheABAP
Step 9 : Copy the below code and paste it between module and endmodule.
DATAtext(30)value''.
DATA:repidTYPEsyrepid.
DATA:f1TYPETABLEOFtrmsgWITHHEADERLINE.
DATA:dynp_headerTYPEd020s,
tdynp_fieldsTYPETABLEOFd021s,
tdynp_logicTYPETABLEOFd022s,
tdynp_matchcTYPETABLEOFd023s,
dynp_fieldsTYPEd021s,
dynp_logicTYPEd022s,
dynp_matchcTYPEd023s.
DATA:BEGINOFdynproname,
progLIKEd020sprog,
dnumLIKEd020sdnum,
ENDOFdynproname.
CASEsyucomm.
WHEN'BUTTON'.
repid=syrepid.
CLEAR:dynp_header,dynp_fields,dynp_logic,dynp_matchc.
REFRESH:tdynp_fields,tdynp_logic,tdynp_matchc.
dynpronameprog=repid.
dynpronamednum='9000'.
IMPORTDYNPROdynp_headertdynp_fields
tdynp_logictdynp_matchcIDdynproname.
LOOPATtdynp_fieldsINTOdynp_fields
WHEREfnam='BUTTON'.
dynp_fieldsstxt=text.
dynp_fieldsleng=20.
MODIFYtdynp_fieldsFROMdynp_fields.
ENDLOOP.
EXPORTDYNPROdynp_headertdynp_fields
tdynp_logictdynp_matchcIDdynproname.
GENERATEDYNPROdynp_headertdynp_fields
tdynp_logictdynp_matchcIDdynpronameMESSAGEf1LINEf1WORDf1.
ENDCASE.
http://theabap.blogspot.sg/
3/5
10/4/2016
TheABAP
where the variable text stores the label for the push button.
Step 10 : Right click on program name and click create>transaction
Step 12 : Enter your program name as Program and 9000 as screen number. Make sure you have selected all check
boxes under GUI support. Save it
Step 13 : Double click on program name on right side, do right click and select Activate (Ctrl+F3) to activate the
whole program. Now Execute it.
OUTPUT :
http://theabap.blogspot.sg/
4/5
10/4/2016
TheABAP
Enter any text in input field and press the push button nearby
0 comments
Home
Older Posts
Follow by Email
Emailaddress...
Submit
http://theabap.blogspot.sg/
5/5