‎2005 Dec 06 4:07 AM
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
‎2005 Dec 06 7:01 AM
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.
‎2005 Dec 06 4:16 AM
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.
‎2005 Dec 06 4:24 AM
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
‎2005 Dec 06 4:33 AM
Have you activated the screen from the Screen Painter?
Rob
‎2005 Dec 06 4:44 AM
‎2005 Dec 06 5:34 AM
‎2005 Dec 06 5:44 AM
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
‎2005 Dec 06 5:41 AM
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.
‎2005 Dec 06 5:53 AM
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
‎2005 Dec 06 5:56 AM
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
‎2005 Dec 06 5:57 AM
Sorry Try to Handle the Print Preview not Issue Output.
Check for menu exit. and handle it in that..
vijay
‎2005 Dec 06 5:59 AM
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
‎2005 Dec 06 6:21 AM
Hi Vijay,
Is there a way I could get a dialog without using Screen? This was I could remain with my program.
Thanks,
Kishan
‎2005 Dec 06 6:23 AM
hi Kishan,
Are you doing it for VF03 or for some other program..
regards
vijay
‎2005 Dec 06 6:32 AM
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
‎2005 Dec 06 6:33 AM
Hi It is simple if it is Custom report/trxn .
if it is Std then you need look for menu exit .
regards
vijay
‎2005 Dec 06 6:38 AM
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
‎2005 Dec 06 6:49 AM
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
‎2005 Dec 06 6:53 AM
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
‎2005 Dec 06 7:02 AM
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
‎2005 Dec 06 7:04 AM
as he said try to use that popup.
if screen fails, and handle the popup fm.
regards
vijay
‎2005 Dec 06 7:15 AM
if you got any solution please let us know..
please close this thread if got the solution..
regards
vijay
‎2005 Dec 06 5:47 AM
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
‎2005 Dec 06 5:58 AM
Hi Kanthimathi,
Sorry All I changed the screen number to 9100. Still its the same problem.
Thanks,
Kishan
‎2005 Dec 06 6:31 AM
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
‎2005 Dec 06 6:46 AM
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.
‎2005 Dec 06 7:01 AM
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.
‎2005 Dec 06 7:51 AM
Thanks All!!!
Haa the POPUP_TO_GET_ONE_VALUE worked. I have awarded the points accordingly.
Once again U all are Great!!!
Bye
Kishan
‎2005 Dec 06 7:53 AM