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

How do I create the APAB Program.

Former Member
0 Likes
1,328

Hi

I am trying to create program using /nse80 or /se38, something it should start like this.

PROGRAM demo_dynpro_input_output .

I am unable to do so, but I am end up creating

REPORT demo_dynpro_input_output .

Please help what is that I am doing wrong. ?

I want to create the program not the report ?

thanks

siva

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,100

Hi,

For user created program, the program name should start with 'Z'.

In SE38, give program name as follows 'zdemo_dynpro_input_output'

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
1,101

Hi,

For user created program, the program name should start with 'Z'.

In SE38, give program name as follows 'zdemo_dynpro_input_output'

Thanks.

Read only

0 Likes
1,100

Yes, I did. may be something I am doing it not correct.

Here is what I did.

1. In se38 enter the program name "zdemo_dynpro_input_output" and hit "create" button.

ABAP Program attribute screen pops-up.

2. I input he following filed

Title: demo_dynpro_input_output

TYpe: Executable Program

Status: Test Program

Applcation: Basis

and hit "tick" mark to save.

A pop-up opens.

3. Input package : $TMP and "local object" It generated the following output.

&----


*& Report ZDEMO_DYNPRO_INPUT_OUTPUT

*&

&----


*&

*&

&----


REPORT ZDEMO_DYNPRO_INPUT_OUTPUT.

4. I wan to create the program not the report.

Please advice ?

thanks

siva

Read only

0 Likes
1,100

U dis correct, now start ur coding after this statement

REPORT ZDEMO_DYNPRO_INPUT_OUTPUT.

REPORT is the first KEY statement of any Executable ABAP program.

Edited by: Bala Krishna on Aug 17, 2008 11:03 PM

Read only

0 Likes
1,100

Bala,

Hope, I did correct. Please note , my program should start with

"PROGRAM demo_dynpro_input_output ." instead of

"REPORT demo_dynpro_input_output ." As per the book example below.

How do I get this ?

Example"

=================

PROGRAM demo_dynpro_input_output .

DATA: input TYPE i,

output TYPE i,

radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,

box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.

CALL SCREEN 100.

MODULE init_screen_100 OUTPUT.

CLEAR input.

radio1 = 'X'.

CLEAR: radio2, radio3.

ENDMODULE.

MODULE user_command_0100 INPUT.

output = input.

box1 = radio1.

box2 = radio2.

box3 = radio3.

IF exit NE space.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

Edited by: Sivanantham kandan on Aug 17, 2008 8:11 PM

Read only

0 Likes
1,100

hiii

This is not an executable program of type 1.your example is of module pool program..so you need to create it by using SE38 or SE80.

go to SE38

Enter program name that starts with 'Z' or 'Y' because SAP will not allow you to create any program without Y or Z...

now for program type you need to select Module pool program from that drop down box.

now press enter so your program will be created.

regards

twinkal

Read only

matt
Active Contributor
0 Likes
1,100

>

> Hi

> I am trying to create program using /nse80 or /se38, something it should start like this.

> PROGRAM demo_dynpro_input_output .

>

> I am unable to do so, but I am end up creating

> REPORT demo_dynpro_input_output .

>

> Please help what is that I am doing wrong. ?

>

> I want to create the program not the report ?

>

>

> thanks

> siva

You are doing nothing wrong. It is the way SAP works. If you want PROGRAM rather than REPORT, change it in the editor. And while you're at it read the ABAP help for PROGRAM and REPORT

Oh - and to all intents and purposes, there's no difference between the two statements.

matt

Read only

Former Member
0 Likes
1,100

Thanks Solved.

How doI execute the module pool program When I try to execute it says, it is not a report program".

Here is the error message:

===================

ZDEMO_DYNPRO_INPUT_OUTPUT is not a report program (type 'M')

Message no. ED811

thanks

siva

Edited by: Sivanantham kandan on Aug 17, 2008 10:26 PM