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

Automatic Application No' in custom screen

Former Member
0 Likes
965

Hi All

I have developed a custom screen, where user enters data into it.

As soon as screen displays, autogenerated 'Application No" should display in a I/O box.

After entering required fields, ,he clicks "SAVE" Button. Now at this stage, all fields should become DISPLAY mode.

How to tackle this scenario in ABAP code perspective...??

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
933

hi,

1) create with trx SNRO - number range object for your appl.-no.

2) increase (get) a number with fm number_get_next

A.

Hi All

I have developed a custom screen, where user enters data into it.

As soon as screen displays, autogenerated 'Application No" should display in a I/O box.

After entering required fields, ,he clicks "SAVE" Button. Now at this stage, all fields should become DISPLAY mode.

How to tackle this scenario in ABAP code perspective...??

5 REPLIES 5
Read only

Former Member
0 Likes
933

Hi,

In the PBO of the screen get the MAX value of the Application NO from table where it's stored and pass the value to the screen field.

Group the screen fields you want in the display mode to a screen group say GRP1

While clicking the SAVE button loop at the screen

if the screen group1 = GRP1 then make the screen-input = 0. and modify the screen.

With Regards,

T.Jeyagopi.

Read only

0 Likes
933

i have been successfull in making screen elements into DIPLAY mode.

Now can anyone eloberate how to generate Application No in detail...??

Read only

0 Likes
933

Hi,

Consider u have a table(zappl)in which ur application no(appl_no)is stored. now use this code.

Data v_appl_no like zappl-appl_no.

module scrn_<scrnno>_output.

select max(appl_no) from zappl into v_appl_no.

zappl-appl_no = v_appl_no.

endmodule.

write the select in ur PBO.pass the variable to the ur screen field will hold ur appl no.

with Regards,

T.Jeyagopi

Read only

andreas_mann3
Active Contributor
0 Likes
934

hi,

1) create with trx SNRO - number range object for your appl.-no.

2) increase (get) a number with fm number_get_next

A.

Read only

0 Likes
933

Andreas Mann and Friends,

Can anyone explain me in little detailed steps to get autogenerated Application No on my custom screen..??