Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding an "Insert Transaction" in table using Dynpros

Former Member
0 Likes
862

Hello,

I have been instructed to add an insert transaction which fulfills these 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.

I know this is a newbie question but I need to know how to navigate around SAP to even have access to manipulate the required content.

Even a link to somewhere explaining how to do this would be great, but I'm quite stuck.

Thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
807

Hi Laura,

Can you please let me know that whether you wants to create customized screen or you want to do this in standard transaction.

Thanks,

Sachin

Hello,

I have been instructed to add an insert transaction which fulfills these 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.

I know this is a newbie question but I need to know how to navigate around SAP to even have access to manipulate the required content.

Even a link to somewhere explaining how to do this would be great, but I'm quite stuck.

Thank you

4 REPLIES 4
Read only

Former Member
0 Likes
807

This is the last part I'm not getting- but the above question is more important:

Create an UPDATE transaction that fulfills the following requirements:

You can use 1 or two screens to do this depending on how you implement the transaction. I suggest two screens. On the first, allow the user to select an employee record based on the employee id. When the user selects the employee by id, display the corresponding fields for update.

  • The user should be able to enter values for each field in the table.
  • 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 to select a record (for the first screen), and update the record (for the second screen). I strongly encourage you to use the 2-screen approach. It will be easier. The user should select a record based on the employee id number.
  • 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.
Read only

0 Likes
807

Hi Laura..

You have to understand screen programming basics for this..If you have some idea of this you can do below steps.

1) Create screen 9000..(  NExt screen 9001 )

   create screen element as emp_id..

  In the PAI event of this , get details of employee from the database table to be updated like structure P0001  for ex..

2 ) Create screen 9001 ..

   Create screen elements with database structure p0001 ....

  the data populated in p0001 in screen 9000 will be automatically available for edit on this screen.

  user can change this data here..

   Create button 'Update' or Save'  on this screen..

  In the PAI of this screen..

  on user-command/ ok_code 'UPDATE' Or 'MODIFY' , update databse table with command UPDATE.

Thanks,

Chirdip

Read only

Former Member
0 Likes
808

Hi Laura,

Can you please let me know that whether you wants to create customized screen or you want to do this in standard transaction.

Thanks,

Sachin

Read only

0 Likes
807

Hello Sachin,

I was hoping to do it as a customized screen- but since time is running short; would a standard be quicker to implement?

Cheers,

Laura