This is ABAP Beginner GUID with all Code and in detailsFull description
ABAP AccentureDescrição completa
Full description
Full description
Full description
10/4/2016
The ABAP 1
More
Next Blog»
Create Blog
Sign In
Total Pageview Pageview s
60820 Changing label of push button dynamically in module pool programming
Followers
Followers (20)
Step 1 : Log on SAP and go to SE38 trans action, provide name starting wi starting with th ‘Z’ ‘Z’ or ‘Y’ (Here ‘ZRUNTIME_LABEL_CHANGE’ ). and click on 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
Step 4 : Right Cl ick on program name and select Create‐>Screen
http://theabap.blogspot.sg/
1/5
10/4/2016
The ABAP
Step 5 : Provide screen number. Here 9000
Step 6 : Enter description and save it
Step 7 : Design screen as below
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
The ABAP
Step 9 : Copy the below code and paste it between module and endmodule.
DATA text(30) value ''. DATA : repid TYPE sy‐repid. DATA : f1 TYPE TABLE OF trmsg WITH HEADER LINE. DATA : dynp_header TYPE d020s, tdynp_fiel ds TYPE TABLE OF d021s, tdynp_logic TYPE TABLE OF d022s, tdynp_matchc TYPE TABLE OF d023s, dynp_fields TYPE d021s, dynp_logic TYPE d022s, dynp_matchc TYPE d023s. DATA: BEGIN OF dynproname, prog LIKE d020s‐prog, dnum LIK E d020s‐dnum, END OF dynproname.
CASE sy‐ucomm. WHEN 'BUTTON'. repid = sy‐repid. CLEAR: dynp_header, dynp_fields, dynp_logic, dynp_matchc. REFRESH: tdynp_fields, tdynp_logic, tdynp_matchc. dynproname‐pro g = repid. dynproname‐dnum = '9000'. IMPORT DYNPRO dynp_header tdynp_fields tdynp_logic tdynp_matchc ID dynproname.
LOOP AT tdynp_fiel ds INTO dynp_fiel ds WHERE fnam = 'BUTTON'. dynp_fields‐stxt = text. dynp_fields‐leng = 20. MODIFY tdynp_fields FROM dynp_fields. ENDLOOP. EXPORT DYNPRO dynp_header tdynp_fiel ds tdynp_logic tdynp_matchc ID dynproname.
GENERATE DYNPRO dynp_header tdynp_fiel ds tdynp_logic tdynp_matchc ID dynproname MESSAGE f1 LINE f1 WORD f1 . ENDCASE.
http://theabap.blogspot.sg/
3/5
10/4/2016
The ABAP
where the variable text stores the label for the push button. Step 10 : Right clic k on program name and click create‐>transaction
Step 11 : Give description and Click OK.
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
The ABAP
Enter any text in input field and press the push button nearby