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 Screen

Former Member
0 Likes
2,503

Hi,

I am using the Main Program of the Sap Layout used to print the Invoice. This Programs Original Language is DE. The Program Type is Executable. I have created a Screen called 1000 and calling it in the following form.

FORM entry USING return_code us_screen.

CALL SCREEN 1000 STARTING AT 30 5 ENDING AT 61 7.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

The following error is through when go and preview the Layout.

Runtime Errors DYNPRO_NOT_FOUND

Screen does not exist

Thanks in Advance,

Kishan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,400

Hi again,

1. try this fm

POPUP_TO_GET_ONE_VALUE

2. it will allow user input of a field

where the length we can specify.

also the message we can specify.

3. no need to use screen .

regards,

amit m.

28 REPLIES 28
Read only

Former Member
0 Likes
2,400

Kishan,

To which program you associated the screen to. It should be to your main program.

Regards,

Ravi

Note : Please reward the posts that are helpful.

Read only

0 Likes
2,400

Hi Ravikumar,

To the main program. I created the screen when I was in the Main Program. It didnt allow me to specify the Program the Main Program was already there. Its really funny why this error comes up.

Thanks,

Kishan

Read only

Former Member
0 Likes
2,400

Have you activated the screen from the Screen Painter?

Rob

Read only

0 Likes
2,400

Hi Rob,

Yes it was activated.

Thanks,

Kishan

Read only

0 Likes
2,400

And still are you facing the same error.

Read only

0 Likes
2,400

Hi

Better Use SE80 ,specify your program name, if there is (inactive)Un activated components will be highlighted..

then you can try to activate. that will be more simple to find what is the problem...

regards

vijay

Read only

Former Member
0 Likes
2,400

Hi Kishan,

1. I am using the Main Program of the Sap Layout used to print the Invoice

Have u copied the original program

to Z/Y ?

Or are u trying to modify the original sap std. program?

Regards,

Amit M.

Read only

0 Likes
2,400

Hi Amit,

Yes my main program goes as ZRVADINNY01.

I went through the error dump just now and discovered the following line;

Error analysis

Program "SAPLVMSG" tried to use screen 1000.

The screen does not exist.

We cannot add a Screen to SAPLVMSG because its a SAP program and pointless coping it to "Z" program becuase it's being handled by the core SAP.

What I want to do in vf03 is when U click "Issue Output to" U get a dailog with a selection once you select and click Print Preview button MY DIALOG to appear and once I fill the required field the normal processing could take place. That's all what i need.

Could someone pls help me!!!

Thanks

Kishan

Read only

0 Likes
2,400

Then Create the Screen and call the screen when you press

the Button Issue Output to.

Get the SY-ucomm of that and in that sy-ucomm call this screen as dialog box.

regards

vijay

Read only

0 Likes
2,400

Sorry Try to Handle the Print Preview not Issue Output.

Check for menu exit. and handle it in that..

vijay

Read only

0 Likes
2,400

Hi I think YOu Might be having a Menu Exit for Vf03,

try to capture sy-ucomm of print preview button, and handle the sy-ucomm , when the user press that it should call the screen as dialog box

vijay

Read only

0 Likes
2,400

Hi Vijay,

Is there a way I could get a dialog without using Screen? This was I could remain with my program.

Thanks,

Kishan

Read only

0 Likes
2,400

hi Kishan,

Are you doing it for VF03 or for some other program..

regards

vijay

Read only

0 Likes
2,400

Hi Vijay,

It's for VF03, but do remember I have my "Z" program and what I want is a Dailog like popup window with a one editable field where I could enter something and then to take this value and go ahead with the rest of the processing.

Thanks,

Kishan

Read only

0 Likes
2,400

Hi It is simple if it is Custom report/trxn .

if it is Std then you need look for menu exit .

regards

vijay

Read only

0 Likes
2,400

Hi In VF03 where you are using that ZPROGRAM..

In what inlcude.are you able to trigger your ZPROGRAM After you press the button.

if that is the case then you can call the screen, but i have one doubt while creating the screen did you mentioned it as Dialog Screen or report screen. It should be dialog screen....

please let me know...

regards

vijay

Read only

0 Likes
2,400

Hi

I doubt you have given the screen as report screen, make it to dailog screen.. where exactly you are using the Zprogram ,please let me know...

regards

vijay

Read only

0 Likes
2,400

Hi All,

First of all thank U all. This thread has run for 2 pages. I want to end this now.

The conclusion is I cannot create a Z Program of the main program that is part of the vf01, vf02, vf03, because of this I cannot create a Screen for the SAP main program. I have a Z program but this was set in the SPRO settings. The Main Program that access the SPRO and call my Z program is the Main Program I am referring to. Shall we end the Main Program and Screens.

What I need is there a way I could have a dialog like window with a one editable field without using Screen. Give me a example if you could.

If U cannot I will close this thread and award poits accrodingly.

Thanks All,

Kishan

Read only

0 Likes
2,400

Hi Kishan,

If that Print preview in menu then you might have to check for menu exit, and then you need to call screen for that sy-ucomm.

vijay

Read only

0 Likes
2,400

as he said try to use that popup.

if screen fails, and handle the popup fm.

regards

vijay

Read only

0 Likes
2,400

if you got any solution please let us know..

please close this thread if got the solution..

regards

vijay

Read only

kanthimathikris
Advisor
Advisor
0 Likes
2,400

I could see that your screen number is 1000, which is the default number for a selection screen.

So try copying this screen to a new screen number, activate the screen.

Replace the screen number in your program and try again.

Regards,

Kanthimathi

Read only

0 Likes
2,400

Hi Kanthimathi,

Sorry All I changed the screen number to 9100. Still its the same problem.

Thanks,

Kishan

Read only

Former Member
0 Likes
2,400

Hi again,

1. DYNPRO_NOT_FOUND

Whenever this message comes

it is usually our problem.

2. The MAIN PROGRAM of your created screen,

is not correct.

3. What is ur main program.

Z**

or sap std program.

4. Goto SE80.

Type in the main program.

5. Does ur new screen (1000 or 9100 whatever)

appear in the screen folder list?

6. Is the screen activated ?

If not, please activate it.

7. How did u copy the standard program?

did u copy it thru SE80?

8. For tcode VF03

the main program is SAPMV60A.

and not SAPLVMSG.

I may be repeating the same questions(as asked by others)

but, im sure, it is our problem.

ie. assigning screen number to main program

and activating it.

Regards,

Amit M.

Message was edited by: Amit Mittal

Read only

Former Member
0 Likes
2,400

Hi again,

1. It seems that

U have created a new Z Progam

and a screen in it.

This Z Program is INDEPENDENT of SAPMV60A.

2. In SAPMV60A

u are INSERTING a PATCH

wherein u are calling ur Z Program and its screen 9010.

3. What is the link between SAPMV60A and ur Z Program ?

4. This new screen 9010

has to be created in SAPMV60A itself

and not outside it.

Moreover u must create it thru SE80 only

and not thru se38.

This is what i understood from ur reply.

regards,

amit m.

Read only

Former Member
0 Likes
2,401

Hi again,

1. try this fm

POPUP_TO_GET_ONE_VALUE

2. it will allow user input of a field

where the length we can specify.

also the message we can specify.

3. no need to use screen .

regards,

amit m.

Read only

0 Likes
2,400

Thanks All!!!

Haa the POPUP_TO_GET_ONE_VALUE worked. I have awarded the points accordingly.

Once again U all are Great!!!

Bye

Kishan

Read only

0 Likes
2,400

Thats fine.

Finally you got, Great..

vijay