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 PF status

Former Member
0 Likes
3,685

Hi experts,

I face a problem, I created a z program copied from a z program developed by someone else. The program is using GUI status running perfectly and in the PAI event there is no code to handle the function codes comes from the menu. But if I create a z program and create a PF status for the program. The program does not take same behavior.

What I need to create a z program calling PF status and behave as standard menus and PF status without handle the function codes in the PAI event by ok_code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,645

Did anyone try to upload the two programs and give us a useful idea?

Hi experts,

I face a problem, I created a z program copied from a z program developed by someone else. The program is using GUI status running perfectly and in the PAI event there is no code to handle the function codes comes from the menu. But if I create a z program and create a PF status for the program. The program does not take same behavior.

What I need to create a z program calling PF status and behave as standard menus and PF status without handle the function codes in the PAI event by ok_code.

23 REPLIES 23
Read only

Former Member
0 Likes
3,645

hii abdul

go to se41 and activate the status it might be inactive for your programe

Regards

Gaurav

Read only

0 Likes
3,645

No it is already active.

Read only

Former Member
0 Likes
3,645

Can you elaborate further about your requirement?

Read only

0 Likes
3,645

What I need is to create a z program with screen then in the PAI event I don't need to handle the function code comes out from the menu's buttons. by using ok_code like the code below:

case ok_code.

     when 'BACK'.

       leave screen.

     when 'PRINT'.

       PERFORM CALL_ADOBEFORM.

     when 'EXIT'.

       leave screen.

ENDCASE.

It is supposed the system gives you an option to use same functionality of standard menu when I omit the code written above.

Read only

0 Likes
3,645

Hi Abdul,

Your question is still not clear. You need to write code for navigation of screen after 'BACK'/'Cancel'/'Exit' ok_codes.

Read only

0 Likes
3,645

Hi,

In the first old program, check in debugging where controls goes after you press back button.


Read only

0 Likes
3,645

Dear Pawar

I don't need to write any thing in the PAI I just need to use same standard menu without write any code.

Read only

0 Likes
3,645

I go through debugger and it goes into the program SAPLS38E and I found in the PAI:

PROCESS AFTER INPUT.

   MODULE get_cursor.

   MODULE wb_manager.

   MODULE execute_editor_function.

   MODULE process_fcode_0400.

   MODULE new_screen.

Read only

0 Likes
3,645

HI,

Check whether this is include in Z program. Check for include statement.

Read only

0 Likes
3,645

No it is not in any include in side that program.

Read only

0 Likes
3,645

Hi Abdul,

Use SE41 to copy the pf-status STANDARD from program SAPLSALV (main program of SALV) to your program. And it will work with standard functionalities.

Read only

0 Likes
3,645

It has the same problem.

Read only

0 Likes
3,645

I am trying to upload the program and the screen but the file format is not allowed.

Read only

0 Likes
3,645

You said that you don't wish to write this code in 2nd zprogram

case ok_code.

     when 'BACK'.

       leave screen.

     when 'PRINT'.

       PERFORM CALL_ADOBEFORM.

     when 'EXIT'.

       leave screen.

ENDCASE.


isn't?


without writing this code it is not possible to handle.


When you copy pf_status only pf_status is copied but not the events(PAI).



Read only

0 Likes
3,645

No it can be work I will upload a sample program prove that. I already upload it to another system to test it and it is working fine without writing the code above.

Read only

0 Likes
3,645

Please download the file in the URL :

http://www.mediafire.com/download/6xm8jsd136ta1t2/gui_status.rar

it has a sample for the working program and the not working one. Just download the program and the screen for each one into the system then create GUI status with name " ZSCREENO01" as shown in the attached image file for each program. You will find what I am talking about.

it is simple program displaying sflight table.

Read only

0 Likes
3,645

can you explain further which is in working condition and not working in not working condition

Read only

0 Likes
3,645

Dear abdul

Try to open the zipped file you will find 5 files:

1- NOTWORKINGPROGRAM.

2- NOTWORKINGSCREEN.

3- WORKINGPROGRAM.

4- WORKINGSCREEN.

5- GUI STATUS image.

upload both first two files together in one program and create GUI status as shown in the image.

Then upload the second two files into a new program and create GUI status as shown in the same image:

1- NOTWORKINGPROGRAM  -- create any program and upload the file to it.

2- NOTWORKINGSCREEN  -- in the same program create screen 9000 then upload the file to it.

3- GUI STATUS image: create the status for the program.

4- WORKINGPROGRAM  -- create a new program and upload the file to it.

5- WORKINGSCREEN  -- in the same new program create a screen 9000 then upload the file to it.

6- GUI STATUS image: create the status for the program.

Read only

Former Member
0 Likes
3,645

Hi,


Copy any standard program name & GUI status from any standard screen SYSTEM->STATUS->Program(GUI) & GUI status,

And goto se41  create program with your PF-Status and copy the standard program & GUI status to your custom status.

Try this. I hope it is helpful.

Regards,

Karthik.

Read only

0 Likes
3,645

I already try it as Mr. Archana Pawar suggested but it does not work

Read only

Former Member
0 Likes
3,646

Did anyone try to upload the two programs and give us a useful idea?

Read only

0 Likes
3,645

Yes problem found out.

When you remove next screen value from  ZTEST_NOTWORKINGSCREEN (screen 9000) then it is working similar to the program ZTEST_WORKINGSCREEN

screen shot for your reference

do hope your doubt gets cleared.

Read only

0 Likes
3,645

Many thanks Mr. Abdulraheem.

Yes this is the problem and its solved now.