09-17-2008 10:36 AM
I am new to ABAP and I am slowly trying to work my way through the jungle of error messages I receive.
I have created a popup program:
REPORT ZTEST.
PARAMETERS:
zuser like sy-uname,
zmessage like SM04DIC-POPUPMSG.
CALL FUNCTION 'TH_POPUP'
EXPORTING
client = sy-mandt
user = zuser
message = zmessage
MESSAGE_LEN = 30
CUT_BLANKS = ' '
EXCEPTIONS
USER_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
MESSAGE i000(zsofie).
WHEN 2.
MESSAGE i001(zsofie).
ENDCASE.
ENDIF.
I'd like to add a transaction code to this program but I receive an error message, no matter what I do. What kind of start object should I pick? And what else am I missing?
Regards,
Sofie
09-17-2008 12:18 PM
Sorry, but it does not help. Even if I check them all I get the same message and can not save the created transaction.
Do I need to create some kind of screen or GUI status? What start object should I pick?
Program and screen
Program and selection screen
Method of class
Transaction with variant
Transaction with parameters
Thanks
09-17-2008 10:48 AM
Hi ,
while creating SE93 --->Give Tcode --->change --->after giving all value at the bottom of that screen u will get options of
SAPGUI for HTML
SAPGUI For JAVA
SAPGUI for WINDOWS.
u have to tick , then u wont get any msgs.
regards
Prabhu
09-17-2008 10:53 AM
when you are creating the tcode in SE93, you can see the Check boxes for GUI capability, check all of them and try.
09-17-2008 12:18 PM
Sorry, but it does not help. Even if I check them all I get the same message and can not save the created transaction.
Do I need to create some kind of screen or GUI status? What start object should I pick?
Program and screen
Program and selection screen
Method of class
Transaction with variant
Transaction with parameters
Thanks
09-17-2008 12:28 PM
09-17-2008 12:37 PM
I still get the same error message when checking, but it is possible to save it and run the transaction. Very disturbing...
I am satisfied since the transaction is working, but I am still a bit curious regarding the error message.
09-17-2008 2:21 PM
Hi,
As per my knowledge, the cause of your problem is due to the missing of Screen Number.
Since you have used a Report program(Executable program) you don't require a transaction code for execution.
If at all, you want to give a tcode for ur program, create a dummy selection screen and assign the screen number 1000 to ur tcode creation and try.
Thanks
Sumi
09-17-2008 2:54 PM
Ok,
when I was at the SAP BC400 training they said that you could always use the "default -pre-defined" screen named 1000 for selection screens. Iguess that is not the case...
Thank you for all you help!
Regards,
Sofie
09-17-2008 12:31 PM
Hi,
If that is your source code, you have an error. The line "IF sy-subrc 0." should be "IF sy-subrc <> 0."
Guy.
EDIT: It seems that < and > are not displayed. Never mind.
Edited by: Guy F. on Sep 17, 2008 1:31 PM