How to show message on selection screen status bar if alv is empty.
Hi,
Can anyone tell me how to show message on selection screen status bar when our final internal table or alv is empty .
i am getting message on alv status bar, where no data is in alv but i want to stop it to selection screen and show message there only.
Regards,
Ranu
Hi,
After populating the final internal table do this check,
if it_final [] is initial.
message 'No data available' TYPE 'S' DISPLAY LIKE 'E'.
exit.
endif.
This will be displayed in the selection screen itself
Regards,
Vikranth
Similar Messages
-
Error Message in selection screen Status bar is getting truncated
Hi Guys,
Error Message in selection screen Staus bar is getting truncated (full message is not getting displayed).... can anybody tell me how to reslove thisHi
Maimum we can give the error message length is 50 char. If you give more than that it will get truncated.
What you can do this split 50 and 50 like that you can give 200 chnars.
Data : Text1 type char50
Text2 type char50
If sy-surc ne 0.
Message Text1 Text2 TYPE "E'' or 'S'
endif. -
How to show a "Dummy" Selection Screen
Hi All,
I have written a Report that has no parameters. However, I still would like to show the Selection Screen so that the user can call the F1- Help for this Report.
If I do not declare any parameters, the report is executed immediately and no means are given to show the F1- Help.
Is there a way to show the Selection Screen without parameters?
I have tried to create a "Dummy" Parameter that is hidden but causes the Selection Screen being shown, but that does not seem to be possible.
Any hints for me on that one?
Thanks, JohannesHello Johannes,
Try this workaround to "trick" SAP into displaying the selection-screen:
PARAMETERS: p_dummy AS CHECKBOX MODIF ID m1. "Dummy Parameter
SELECTION-SCREEN COMMENT /1(50) gv_cmnt.
INITIALIZATION.
gv_cmnt = 'Read the Report documentation before executing it'(001).
AT SELECTION-SCREEN OUTPUT.
* Hide the "Dummy" field
LOOP AT SCREEN.
IF screen-group1 = 'M1'.
screen-output = '0'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Cheers,
Suhas -
Error message in Selection Screen
Hi
reference no (p_ref) is in my selection screen.
If this field contains special characters (\ / : * ? " |, ) system must prompt error message in selection screen. How to do this. Pls help me
Regards
Anbuafter input form the user
use if condtion
and validate the field and through message.........
Reward IF........
Regards
Anbu
Edited by: Anbu B on Jun 17, 2008 8:04 AM
Edited by: Anbu B on Jun 17, 2008 8:06 AM -
How do I add a selection screen parameter to get a application server file
Hi All..
Can you please suggest how can we add a selection screen parameter to get a application server file ?
Thanx in Advance...
Regards,
Deepak<b>Parameter def :</b>
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 02(30) text-005 FOR FIELD p_xlfil.
PARAMETERS: p_xlfil LIKE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN END OF LINE.
<b>Browse</b>
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xlfil.
PERFORM ws_get_filename USING p_xlfil.
FORM ws_get_filename USING p_xlfil.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = 'C:'
mask = ',Excel,*.xls,All,*.*.'(100)
mode = 'O'
title = 'Title'(101)
IMPORTING
filename = p_xlfil
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc NE 0.
CLEAR p_xlfil.
ENDIF.
ENDFORM. " WS_GET_FILENAME
Regards
<b>Oops i did not read "application server"</b>
Use FM F4_FILENAME_SERVER and not F4_FILENAME/WS_GET_FILENAME.
Message was edited by:
Raymond Giuseppi -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
How to create a variant selection screen
Hi experts,
Can you tell me " How to create a variant selection screen ".
Please it's urgent.........
Thanks
BasuHi ,
Goto your selection screen
Make entries in the fileds od the selection screen
press save button, it will ask you for the mane of the Variant
Give the name of the Variant and save it
Variant is now created for the selection screen.
Reward if useful.
Regards,
Shilpi -
How to create a new selection screen IN LOGICAL DATABASE PNPCE
how to create a new selection screen LDBS PNPCE
Hello Ankit,
Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
For later (which is more common), you can use HR Report Category.
Hope this helps.
Best Regards,
Biraju Rajyaguru -
How to show catalog items with Approval Status:Pending in a Content Search Webpart
How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.
I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
Paul.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times. -
How can i declare a selection screen in a DP program with transaction code.
hi friends,
How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..Search in SCN/Google for Module-pool programming basics.
-
How to can we do selection-screen modification for LDB?
Hi All,
I have custom field in my selection-screen of LDB PNP.
Can you people please let me know how can I put the selection-screen modificaiton For ex:
i have created
parameters a as checbox.
select-options: p_btrtl for p0001-btrtl no-intervals.
now If the check box is selected then p_btrtl we can enter values or esle If check box is not selected then p_btrtl will be grayed out, ( I.e. SCREEN-INPUT = 0)
This is simple from ABAP without LDB. But with LDB can we achieve?????????????
Satish
Edited by: Satish Vasireddy on Jun 23, 2010 4:05 PMyou can use the following logic for the additional selection validation. I have done by using PNP LDB. Ex : I have done for one of the field in IT0377.
SELECT-OPTIONS: s_bplan FOR p0377-bplan.
*& Form check_selection_0377
This subroutine is used to check the selection screen
FORM check_selection_0377.
LOOP AT p0377 WHERE pltyp IN s_bplan
AND levl1 IN s_lti
AND begda LE pn-endda
AND endda GE pn-begda.
CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
EXPORTING
tclas = 'A'
pernr = pernr-pernr
infty = p0377-infty
subty = p0377-subty
begda = pn-begda
endda = pn-endda
level = 'R'
EXCEPTIONS
no_authorization = 1
internal_error = 2
OTHERS = 3.
IF NOT sy-subrc IS INITIAL.
DELETE p0377.
ENDIF.
ENDLOOP.
selection not found and no value selected
IF sy-subrc NE 0.
READ TABLE s_bplan.
IF sy-subrc EQ 0.
REJECT.
ENDIF.
READ TABLE s_lti.
IF sy-subrc EQ 0.
REJECT.
ENDIF.
ENDIF.
ENDFORM. " check_selection_0377
Regards,
Preetham -
How to create a new selection screen LDBS PNPCE
how to create a new selection screen LDBS PNPCE
Hello Ankit,
Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
For later (which is more common), you can use HR Report Category.
Hope this helps.
Best Regards,
Biraju Rajyaguru -
How to make Label in selection screen?
Hi friends.. can anybody explain how to make labels in selection screens and how to split the selection screen vertically? plz.. Thanks in advance
Arun kumar,
Check this program. you can put labels like this.
REPORT ZVENKAT_TEST1.
SELECTION-SCREEN BEGIN OF BLOCK block.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text1.
SELECTION-SCREEN POSITION 17.
PARAMETERS :p_pernr type pa0001-pernr.
SELECTION-SCREEN POSITION 26.
SELECTION-SCREEN COMMENT 27(30) text2.
SELECTION-SCREEN end OF LINE.
SELECTION-SCREEN end OF BLOCK block .
at SELECTION-SCREEN OUTPUT.
text1 = 'Personal number'.
SELECT SINGLE ename FROM pa0001 INTO text2 WHERE pernr = p_pernr.
Regards,
Venkat.O -
How to restrict user at selection screen while executing in background mode
hi all,
how to restrict user at selection screen while executing in background mode
Regards
DeepakHi,
We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
Regards
Sudheer -
I cant open my iphone, its showing that ( iphone is dsabled, connect to itunes) when i connect to itunes its showing message on computer screen that ( itunes could not connect to the iphone, because it is loked with passcode. you must enter your passcode on your iphone to connect with itunes.
appreciatedPlace the iPod in recovery mode and then restore the iPod to factory defaults/new iPod. For recovery mode see:
iPhone and iPod touch: Unable to update or restore
Maybe you are looking for
-
How do I make attachments I receive in mail appear at the top of my messages? Sometimes they are imbedded all the way at the bottom of an on going discussion and I don't even realize that there is an attachment.
-
Seperate playlist/side playlist
Hello, I was just wondering if there is (or anyone knows of) something similiar to a playlist editor for winamp for itunes. Party shuffle works pretty well, but it misses a feature which I would really like to have. for instance: you find a cool song
-
Mac Mini have a 1680x1050 wake up problem?
I have a mac mini that when connected to a 22 inch monitor with resolution of 1680 X 1050, the mini will sometimes wake from sleep or a display turned off with a gray - blank - screen. It is random - I then have to hit the on button to bring the vide
-
V$BGPROCESS and V$SESSION
This is on 10g. V$BGPROCESS displays information about background processes V$SESSION has some rows representing background processes. What is the difference between two ? Am I correct in understanding that ; v$bgprocess contains total allocated proc
-
Change width of the addremovelist
hi, how could i change the width of the addremovelist (not the row option). currently the list i have is too long and i would like to make it shorter with a scroll bar. is it possible with the addremovelist? thanks, lee