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

Problem copying CO27

Former Member
0 Likes
771

Dear Experts,

I'm trying to copy CO27 (program: PPIOM000) and modify the program.

After copying, the screen in my copied program have only screen 804, instead of screen 804, 1000 & 1100 in the standard program.

I tried to run the copied program, but it give me exception "OBJECT_NOT_CREATED" raised.

I then tried to copy manually screen 1000 & 1100 from standard program to my copied program, but it gives me error as well.

What has gone wrong. Pls advise.

My requirement is to add in additional 3 columns of data in the report. Or is there any exits/alternative that I can use instead of copying the standard program?

Edited by: Jeff Khoo on Dec 28, 2010 7:58 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Hi Jeff,

I am not aware of the exits in CO27 suitable for your requirement but if you are not able to see 1000 & 1100 screen in

your z program then kindly check the below things.

1000 & 1100 are the selection screens of this program and not the screen created in screen painter.You can check the screen type in the attribute column of the screen.

Selection in this program is coming via INCLUDE IOCTOP06 which is called in INCLUDE ppiomtopin the standard program.

So Copy ppiomtop into Zppiomtop and use it in your Z program ZPPIOM000 and activate it you will see 1000 & 1100 screen in your Z program.

And if you want to add the additional selection option then copy INCLUDE IOCTOP06 to Z & add your own selection criteria and handle it the program.

Regards,

Pawan

4 REPLIES 4
Read only

Former Member
0 Likes
680

Hi Jeff,

I am not aware of the exits in CO27 suitable for your requirement but if you are not able to see 1000 & 1100 screen in

your z program then kindly check the below things.

1000 & 1100 are the selection screens of this program and not the screen created in screen painter.You can check the screen type in the attribute column of the screen.

Selection in this program is coming via INCLUDE IOCTOP06 which is called in INCLUDE ppiomtopin the standard program.

So Copy ppiomtop into Zppiomtop and use it in your Z program ZPPIOM000 and activate it you will see 1000 & 1100 screen in your Z program.

And if you want to add the additional selection option then copy INCLUDE IOCTOP06 to Z & add your own selection criteria and handle it the program.

Regards,

Pawan

Read only

0 Likes
679

Thanks for your info Pawan.

But if I have copied the standard program with all the screens and includes, isn't PPIOMTOP will be copied as well?

If my assumption is correct, then the program can now run.

But after I insert the data and want to execute, it give me "OBJECT_NOT_CREATED" exception, which is not happening in the standard program.

Do you sure what's the problem?

Read only

0 Likes
679

Hi Jeff,

If you have successfully copied the program of CO27 into Z program and after verifying it with standard program for all the inlcludes & screen you can check for the constant declaration in the standard program.

There are some constant declared with value as CO27 so you can try changing it with the Z code you have assigned to the program & then execute it and check the results again.

Rgards,

Pawan

Read only

0 Likes
679

Thanks Pawan,

I have manage to get the copied program working as the standard program should be.

But it seems that the program is very complex and as you stated there are no BAPIs or Exits available to this CO27, do you have any idea where can I add in additional 3 fields in the report?

AFKO-PLNBEZ, AFKO-GAMNG, MARA-BISMT