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 in copying standard program

Former Member
0 Likes
2,753

Hi,

I copied one standard program to custom program.

When I execute custom program using custom tcode i am not getting executable button on tool bar.

COuld any one help me on this?

25 REPLIES 25
Read only

Former Member
0 Likes
2,580

Hi,

You also need to copy the program's menu status. Transaction SE41.

Regards,

Nick

Read only

SujeetMishra
Active Contributor
0 Likes
2,580

Hello Praveen,

Better you copy from Tcode SE80.

how did u copy??

Regards,

Sujeet

Read only

0 Likes
2,580

Nick, pf-status is copied. Still it is not working.

I copied using SE38. Could tell me how can i copy from SE80.

Read only

0 Likes
2,580

Hello,

Goto SE80->

step1 . select program type and put your program name

step2 press enter

step3. In below screen right click on Object name and click copy.

step4. Create your Z program

step5. click copy.

it will ask you to copy all segments which are used in this program including your menu screen also. and create all in z and activate and execute your program.

Regards,

Sujeet

Read only

Former Member
0 Likes
2,580

when you copy from se38 you have to tick on all the includes and other stuff. if you did so it should work

btw what is the program you copied.

Read only

Former Member
0 Likes
2,580

it is only because of pf-status

check the pf - status name whee you set pf-status

if its ok than try to create new pf-status

Read only

0 Likes
2,580

Hi,

Tried with creating new pf-status still i am not getting.

I am trying to copy KSB1 tcode.

Could you please help me

Read only

ThomasZloch
Active Contributor
0 Likes
2,580

My recommendation is: don't copy complex SAP standard transactions at all.

Thomas

Read only

0 Likes
2,580

But the requirement is that, we need to write the output generated from KSB1 to UNIX file.

Hence, no other option copy and do some chages for above requirement.

Read only

0 Likes
2,580

Hi,

You could use the SUBMIT statement on the standard program of the transaction KSB1and get the output data in a internal table which could be written in the application server

Vikranth

Read only

0 Likes
2,580

Hi,

I tried to create new PF-status with 100,

Given icons with executable button, variant button and another dummy button. But still i am not getting the executable button.

Read only

0 Likes
2,580

The transaction KSB1 use the standard CO line report FM K_LINE_ITEMS_SELECT_AND_LIST.

There is a FM K_LINE_ITEM_ACT_DATA_GET that call this FM with parameter i_no_display on, so the displayed table is exported to memory of the FG and then back to caller.

Try to use this FM with a caller report with dispaly same selection-screen than KSB1, the map the selection parameter of the FM and then download the internal table to your unix file.

Regards,

Raymond

Read only

0 Likes
2,580

Hi Raymond,

I have noticed these FM's before, but requirment :- they want clone of KSB1 itself. exactly as KSB1.

I copied programs and function modules to custom one.

When i execute custom program i am not getting the executable button to execute the program on selection screen tool bar.

Read only

0 Likes
2,580

Back to my first answer, did you change the constant self in the report ?

Regards,

Raymond

Read only

0 Likes
2,580

Yes, i changed the constant self t0 my zRA...

Read only

0 Likes
2,580

Reverted back to Constant RAK....

Still i am not getting executable button.

Read only

0 Likes
2,580

Hi Praveen,

do not create a new PF-Status. Go to the original program, preferably SE80, if you don't want use SE38 and click the object tree button on top. Then you have a split window as in SE80 with your program on the right side and the object tree on the left side. Expand it if nessecary and in the pf-status section, right-click on every PF-Status, select copy and give your z-program as target..

After having copied, use Environment - inactive objects and activate all the pf-keys or other things.

Start to get used to SE80, avoid SE38 because you can use SE890 as your central working platform for everything. Never need to go to another transaction and still maintain a stack of all objects you work with.

SE38 is completely obsolete.

Regards,

Clemens

Read only

Former Member
0 Likes
2,580

Double click on ur pf-status then save and activate.

It will solve ur problem.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,580

Did you copy each and every includes, renaming those, also check for constants with the program name in it (eg RKAEPTOP contain a constant self with value 'RKAEP000'.)

Regards,

Raymond

Read only

Former Member
0 Likes
2,580

Hi,

In your Z program search the pf-status,just double click it and activate.

Regards,

Supriya

Edited by: Supriya Bhatnagar on Oct 9, 2009 2:12 PM

Read only

0 Likes
2,580

Hello Supriya.

Do you think that you are providing meaningful information??

I can not image your solution. please see once again the requirement.

and explain me too..

Regards,

Sujeet

Read only

0 Likes
2,580

Hi Mr. Sujeet,

What I understood is the problem not copying the standard program but after copying he is not able to see the execute button.

I was not the only person who thought this could be solution.

I know you are providing very meaningful information by telling how to copy the program

Regards,

Supriya

Edited by: Supriya Bhatnagar on Oct 9, 2009 2:47 PM

Read only

0 Likes
2,580

Hi Supriya,

Below are your answer :

I was not the only person who thought this could be solution.

Instead copying othrs view Please give your own logic.:-):-), same thought should not be pasted, its against Forum Rules.

please refer :[ Forum Rules|;

I know you are providing very meaningful information by telling how to copy the program

My Answer was requested by Mr. Praveen kumar, see above thread.

Sujeet

Read only

0 Likes
2,580

Hello ,

Sujeet wrote:

Below are your answer :

I was not the only person who thought this could be solution.


Instead copying othrs view Please give your own logic.:-):-), same thought should not be pasted, its against Forum Rules.
please refer : Forum Rules

Please dont explain me about forum rules I have very much knowledge of SDN forums.

It was just that both the answers came at same time. which usually happens in SDN.

I think you need to read the forum since you are violating SDN forum rules instead of answering the thread.

Supriya

Read only

Former Member
0 Likes
2,580

When coping the TCode KSB1 to ZKSB1. Select as executable program ( transaction via selection screen and not as dialog transaction). Hence solved the problem.