Application Development 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: 

regarding inserting fields in screen ..

Former Member
0 Kudos

Hi,

I am trying to create a screen using SE51 and would like to have two I/O fields with similar properties of a database table field. I would like to have two such fields designated as low and high ...

for e.g. BKPF-BURKS-LOW and BKPF-BURKS-HIGH so that user can enter the lower and higher value range..

I inserted BKPF-BURKS from dictionary/program fields option in the screen painter. Then I renamed it to BKPF-BURKS-LOW. Now I am not able to insert again the same field from the same table as it is disabled !!

How can I achieve this ?? Do I have any copy screen element option anywhere ??

Hope I am clear !!

And to add let me know if I am write that I can get the data entered by the user in these fields, in my ABAP program by referring to the fields directly as BKPF-BURKS-LOW ???

its basically a dialog module program that i am creating..

thanks

Ana

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Ok, if you only have one screen, there is no reason why you can't do this as a report program, and use a selection screen. If you still want to use a module pool program, then create one field, lets say BKPF-BUKRS and make it like dictionary, and activate. Now go back to that field and uncheck the dictionary flag and rename it as s_bukrs-low. Now copy s_bukrs-low to another field and name it as s_bukrs-high. You can copy them by right clicking and choosing copy and paste.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi Rad sha,

You can declare 2 fileds in report program(one as low other as high) and use them in screen.

Dont forget to activate your report program before going to screen.

Thanks,

Sanjeev

0 Kudos

thanks...Can i do database update in my report program ??

isn't that just for reporting the data to user ??

can i call some predefined functions which store the data in tables ??

0 Kudos

You can do anything you want in a report program. there is no limitation. Just because it is of type REPORT, doesn't mean that you can't update a database, there are a lot of standard SAP Report programs that update the database.

Do you want to update a "Z" table? Its as easy as <a href="http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb3969358411d1829f0000e829fbfe/frameset.htm">this</a>.

Please make sure to award points for helpful answers. THanks.

Regards,

Rich Heilman