cancel
Showing results for 
Search instead for 
Did you mean: 

WEB DYNPRO EXAMPLE PROGRAM

Former Member
0 Kudos

HELLO.

I WAS CURIOUS IF THERE WAS A PROGRAM I COULD USE AS A REFERENCE WHILE CREATING AN "INSERT TRANSACTION" IN AN ABAP PROGRAM.

I AM TRYING TO CREATE A PROGRAM THAT ALLOWS THE USER TO CREATE NEW EMPLOYEES IN AN ALREADY EXISTINING INTERNAL TABLE.

HOPE TO HEAR BACK FROM YOU SOON.

LAURA

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Create an INSERT transaction that fulfills the following requirements:

  • The user should be able to enter values for each field in the table. You need not provide any additional validation code beyond what is done by the SAP GUI.
  • You should configure the menu bar so that it contains an Exit menu.
  • You should configure either the toolbar system toolbar or your form's toolbar so that it contains a button that will allow the user to INSERT a record.
  • Try to display the text "Insert Employee" in the title bar of the screen.
  • You need not worry about any exception handling.
  • Make sure to create a transaction code for the program.

This is what I need to do exactly with table ztry09v2.  It is a little vague but that is all I have.

Former Member
0 Kudos

Hi Laura,

This you can achieve using module pool.

  • Define table maintenance for the table and create parameter transaction in se93 for SM30(table name) so that using that tcode user can enter values in fields of table.
  • Configure menu bar in se41. Give function code in either menu bar or application toolbar for "EXIT" button. Then write code in your PAI for exit fuction code.
  • Configure toolbar by configuring menu bar for including "Insert" button
  • Use "SET TITLEBAR lv_title" for giving text in titlebar.

Hope this helps. Refer to these links for more information :

SlashSAP.com: Module pool Program example in SAP ABAP

SAP ABAP - A Brief Introduction to Reports and Module Pool Programming

Abap Tutorial: Module Pool Programming

Dialog Programs: Overview (SAP Library - ABAP Programming (BC-ABA))

Regards,

Sheetal.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Laura,

Yes we can write a program in Web dynpro or dynpro both. For WDP, Create a UI like..

On Adding Add a blank row in the internal table and on Saving save the data in DB.

former_member598305
Participant
0 Kudos

Hi,

Please give clear description about your problem

Former Member
0 Kudos

Hi Laura,

Your requirement can be fulfilled using Module pool report. The heading is misleading because its not understandable whether you want this requirement using webdynpro component or not. Also please post anything related to Webdynpro in the separate space provided by SCN. Link is http://scn.sap.com/community/web-dynpro-abap/content.

Also please give more details on your requirement.

Regards,

Sheetal.

Former Member
0 Kudos

Hi Laura,

I understood that you need a ABAP Program and you need to call a transaction from ABAP Program and you will enter employee details in the called transaction and that entered data should be saved in the internal table.

If this is the case ,

You need to develop a Module Pool Screen with the fields required as per the requirement. Then assign this to a TCODE and call this TCODE from the ABAP Program.

Thanks

Dinu