Possible to modify Logical Database Selection Screen?
We have added a custom field to an HR database and need for it to appear in the selection screen for logical database PNP. The program DBPNPSEL is this selection screen -- has anyone modified this or is there a better way to get this result?
Hi,
Check this link.It contains code sample.
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9c2e35c111d1829f0000e829fbfe/content.htm
Regards,
J.Jayanthi
Similar Messages
-
How to modify Logical database Selection screen
I am using PNP logical database , it is giving one selection screen ,
after executioni can able to change the selection screen but i want to change default selection screen so that when i execute i want specific fields in selection.
How to modify it?Hi,
You need to use report category.In the attributes,click HR report category and select or create the selection screen you need.
Check this link.
http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
Kindly reward points by clicking the star on the left of reply,if it helps. -
Add new field infotype "z" in logical database selection screen pnp
Can add new field infotype "z" in logical database selection screen pnp
I could explain how to realize
ThanksIn case to somebody it interests to him: TO EXTEND SCREEN OF SELECTION WITH OPTIONAL DELIMITERS The case that can be given in a screen of selection of a logical data base it does not appear a certain field that we need in the filter, the steps that will be due to follow are the following:
u2022 To create a view of selection in agreement with the fields that we want to show To review the following Link http://help.sap.com/saphelp_46c/helpdata/es/6e/6ed638e70ef679e10000000a114084/content.htm u2022 To assign the view of selection to a class of report
u2022 In the code of report to create select option in the selection screen that allows to introduce imput to leak and after start-of-selection to put the following code,
"Allocation operative area to optional delimiter
IF NOT p_aroper IS INITIAL.
DATA: lt_texpr TYPE rsds_expr OCCURS 0 WITH HEADER LINE,
wa_texpr TYPE rsds_expr,
lt_rsds_expr_tab LIKE rsdsexpr OCCURS 10 WITH HEADER LINE,
wa_rsds_expr_tab LIKE rsdsexpr.
REFRESH lt_rsds_expr_tab.
wa_rsds_expr_tab-arity = '0'.
wa_rsds_expr_tab-fieldname = 'OBJID'.
wa_rsds_expr_tab-option = 'EQ'.
wa_rsds_expr_tab-low = p_aroper.
wa_rsds_expr_tab-high = '00000000'.
MOVE-CORRESPONDING wa_rsds_expr_tab TO lt_rsds_expr_tab.
APPEND lt_rsds_expr_tab.
REFRESH lt_texpr.
wa_texpr-tablename = 'PA9004'.
wa_texpr-expr_tab[] = lt_rsds_expr_tab[].
MOVE-CORRESPONDING wa_texpr TO lt_texpr.
APPEND lt_texpr.
pnpdynse[] = lt_texpr[].
ENDIF.
English is the forum language.
Edited by: Rob Burbank on May 18, 2011 11:41 AM -
Logical Database- Selection screen
Hi
I am using a logical database SDF . The logical DB has two blocks in selection screen. But I don't want to display these two blocks. I need only one . please suggest how would i do thatHello
You may want to look at fm SELECT_OPTIONS_RESTRICT.
This FM can be used to modify the selection screen of a LDB.
It is documented by SAP so check the documentation for an example.
Regards
Greg Kern
Edited by: Greg Kern on Oct 28, 2008 8:32 AM -
Logical Database selection screen pushbutton
Hello All,
I need to create a pushbutton on a selection screen of a logical database. Basically this pushbutton when clicked will either display or suppress some fields on the screen. I have tried to use the SSCRFIELDS option to create a pushbutton, however that never displays for me. Logical Database DDF has an example of a pushbutton that I am looking to create, however the functionality will be different. I am not sure what I am missing, can anyone help? Thanks.
JohnHello All,
Thanks for your replies. However, there is something that is causing these options not to work. For some reason when using SSCRFIELDS nothing displays. For the SELECTION-SCREEN PUSHBUTTON command, we see the push button however our code for some reason is not working. I have another developer working this with me and we are both stumped. We are mirroring that DDF Logical Database and are not having any luck so far. Does anyone have any further suggestions?
John -
Add fields to logical database selection screen
Hello,
Is it posible to add a field in the default selection screen of a logical database.?
I´m using ELM. In the default selection screen, only the lifnr and ekorg fields are shown. I want to show the matnr field, is it posible?
Thank you!Hello,
If you go to the attributes of report, where you are using Logical Database;
there is a button named 'Report Category', which controls the field on selection screen...
If you select that one you can choose report category and also can create your own category
Thanks -
LDB(Logical Database) selection screen
Dear Contributors,
I am hopefull for finding solution to my problem from one of you.
My requirement is i would like to pass all the elements of the selection screen of LDB to non-sap application so as they can replicate and show all those parameters there. Once those are filled from there then i need to take them and process the LDB.
My question is i dont know how to get the selection screen parameters. I tried using FM 'RPY_DYNPRO_READ' and passed progname and screen number in that. It gave back all the parameters but we cant co-relate which parameter is from which table (like we say MATNR like MARA-MATNR).
Without having Technical details of field, non-sap application could not able to process it or show the required F4 help etc
Anyone know about it, can guide me....
Regards
Munish Gargcall function 'LDB_CONVERT_LDBNAME_2_DBPROG'
exporting ldb_name = headsg-logdb "#EC DOM_EQUAL
flag_existence_check = space
importing db_name = logdbprog
exceptions others = 1.
if sy-subrc eq 0.
call function 'SELOPTS_AND_PARAMS'
exporting program = logdbprog
tables selpars = dbselpars
exceptions program_non_existent = 1
subroutine_pool = 2
load_problems = 3
others = 4.
endif. -
Default values in PNP Logical database selection screen
Hi All
I want to default the BEGDA and ENDDA values in the selection screen with Previous month start date and end date.
How can I do that.
AJHi there. In the report code, before your START-OF-SELECTION statement you could insert the following code:
AT-SELECTION-SCREEN OUTPUT.
Call function 'CCM_GO_BACK_MONTHS'
exporting
currdate = sy-datum
backmonths = '1'
importing
newdate = prev_mo_begda.
prev_mo_begda+4(4) = '0101'.
Call function 'SG_PS_GET_LAST_DAY_OF_MONTH'
exporting
day_in = prev_mo_begda
importing
last_day_of_month = prev_mo_endda.
pnpbegda = prev_mo_begda.
pnpendda = prev_mo_endda.
I hope this helps.
- April King -
Can we modify the pnp selection screen and get only month and year?
Dear Freinds,
I have requirement where i have to modify the PNP selection screen. So with the help of report category and coding in AT SELECTION-SCREEN OUTPUT , i have modified all the fields relating to dates . i.e i have removed all the radio buttons (i.e Today, Current month,current year etc) and finally
i have landed with only Period ( PNPBEGDA & PNPENDDA range) . But i dont want the PNPBEGDA & PNPENDDA range , but i want only is the month and year ( i.e just like the PNPPABRP & PNPPABRJ)
on my selection screen along with the pernr .
i have used the below code to close all the fields except pnpbegda and pnpendda.
AT Selection-Screen output.
loop at screen.
IF screen-group4 = '098' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '092' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '094' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '100' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '104' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
MODIFY SCREEN.
endloop.
i.e on my selection screen i want only month & year combination and pernr -
when iam using the logical database PNP . Could any one please let me know how can i get only mon & year only on my selection screen .
If it is possible please let me know .
Thanks & regards
divya.Hi ,
The requirement is that the user doesnt want to enter the date range i.e for ex: 01012008 to 31012008.
As per the requirement the user will enter only the month and year only . so i on the selection screen
i want only the month and year only . Is there any means i can modify the date period which is there by
default (PNPbegda and PNPendda) on PNP selection screen. Instead of we givign to the user the
PNPBEGDA and PNPPENDA i want is only month and year .
AS already the code has already been written and now they have asked that they want only the month and year on the selection screen.
Please suggest me in this regard.If iam hiding all the buttons relating the dates fields, and now if iam adding the parameters for the month and year it is coming below below the fields pernr , personnel ara and subara , company code , payroll area, employee group of the standard fields of PNP selection screen , there by any body could please suggest me how to change.
regards
divya. -
Is it possible to move the ldb selection screen?
Hi All,
I have a custom program which uses a logical db.
The selection screen from the LDb is displayed first and then my custom selection screen is displayed.
There is a requirement where the custom selection screen needs to displayed first - at top and then the selection screen from the LDB.
Is it possible to move down the selection screen from the LDB?
If so then please let me know how...Hi,
with LDB, you can just hide or display LDB selection screen elements,
but moving your custom selection screen above LDB selection screen is not possible, as upto my knowledge.
Thanks.
Raghav M. -
Logical Database Selection Text?
We have a report (run from the report tree) that above the selection-screen window a field with a range, SAUFNR is displayed. Someone tried to go into the Logical Database POH (SE36), selection texts were there was a '?' and changed it to 'Order Number' and were able to save it. However, SAUFNR still displays and not the text.
The main goal is to disply 'Order Number' for this field and not 'SAUFN'. It is an SAP prog with a name about a footbal field long. It executed 'Orders by finished Schedule date'.
Any suggestions?
Thank-you.Hi Tom,
Have you activated the selection text and also please check in translation part of the text elements .
Hope this may help you.
Regards,
Kiran I -
Logic for Selection screen output
Hi All,
I have 2 blocks on my selection screen
First block has 3 radio buttons(a, b,c) and second block has 5 check boxes. When i select radio button 'C' 2 checks boxes of 2nd block should be activated (enabled).if RB 'C' is not selected those 2 chck boxes should be in disabled position. an any one help me in this regard.(logic)
Thanks in advance
P.D .RaoPlease check the below code:
REPORT ypra_sample56.
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',
p_r2 RADIOBUTTON GROUP rg1,
p_r3 RADIOBUTTON GROUP rg1.
SELECTION-SCREEN END OF BLOCK a1.
SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.
PARAMETER: p_c1 TYPE c AS CHECKBOX,
p_c2 TYPE c AS CHECKBOX,
p_c3 TYPE c AS CHECKBOX,
p_c4 TYPE c AS CHECKBOX,
p_c5 TYPE c AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK a2.
INITIALIZATION
INITIALIZATION.
PERFORM enable_fields.
AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
PERFORM sel_screen_output.
*& Form sel_screen_output
Selection screen Output
FORM sel_screen_output.
IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
PERFORM enable_fields.
ENDIF.
IF p_r3 EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " sel_screen_output
*& Form enable_fields
enable fields in selection screen
FORM enable_fields .
IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " disable_fields
Use screen-input = '1' to enable and screen-input = '0' to disable the checkbox. And if u want to totally make that field disappear from screen use screen-active = '1' and '0'.
Regards,
Prakash.
Message was edited by: Prakash Ramu -
Problem with logic at-selection screen
Hi ,
I have this piece of code :
I have 3 radiobuttons and corresponding screens and fields like r_matnr s_charge etc on that screen .
default radio button is r_build .
a) If on this screen is user forgots to give value for s_matnr then error is given .
now if we click on r_conf the contents of display screen when r_buld was pressed should be gone ..
the r_matnr , r_werks etc . should be blank .
what i should do to implement it ? also validation of point a) should be performed for the current values of that screen .
plz help..
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: r_build RADIOBUTTON GROUP r1 USER-COMMAND act DEFAULT 'X'.
PARAMETERS: r_conf RADIOBUTTON GROUP r1.
SELECTION-SCREEN BEGIN OF LINE.
SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID c.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECT-OPTIONS : s_charg FOR mch1-charg MODIF ID c.
SELECTION-SCREEN END OF LINE.
LOOP AT SCREEN.
IF r_conf = 'X'.
IF screen-group1 = 'A'.
screen-active = 0.
ENDIF.
ELSE.
IF r_rel = 'X'.
IF screen-group1 = 'A' OR screen-group1 = 'B'
OR screen-group1 = 'C'.
screen-active = 0.
ENDIF.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN ON s_matnr.
IF s_matnr IS NOT INITIAL.
some select where = s_matnr .
MESSAGE e019(zesapp).
LEAVE TO SCREEN 0.
ENDIF.
plz help..
Regards .hi ujjwal,
can you please elaborate on "the values are getting blank just after entering it ."...
you mean material number gets blank after you enter the value?
also in the below code you are checking material number NOT INITIAL that means some value is entered and if it does not satisfy the SELECT condition then it will give error message and navigate u again to your initial screen...maybe this could be the reason for the blank values...
AT SELECTION-SCREEN ON s_matnr.
IF s_matnr IS NOT INITIAL.
some select where = s_matnr .
MESSAGE e019(zesapp).
LEAVE TO SCREEN 0.
ENDIF.
hope this is helpful. -
How to get modified values in selection screen
address data is filled in selection screen by default.
if we want to change the address on selection screen
and pass it to another variable .how to handle this please let me knowHi,
Change the value of address in the selection screen by delting the default value and replcaing it by new 1.
Then assigh this value of that variable to the new variable
new_variable = variable. -
Is it possible to have two at selection-screen events in a program
Hi all,
I have a selection screen wherein i am using i have 5 radiobuttons and 3 select-options and a parameter. I am trying to use two at selection-screen events
1) at selection-screen on radiobutton group rad1.
2) AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STATUS.
the second event is not getting triggered.
I have to get certain values for the parameter p_status based on the radiobutton selected from an internal table(the field doesn't belong to any dictionary table i am filling an itab with some values based on the radiobutton selected) pls help. its urgent.
Regards
TharanathHi
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_TAB = RETURN_TAB
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Use in this way it will defently triggers
<b>REward if usefull</b>
Maybe you are looking for
-
How to display a specific SAP logon screen per system?
Hello, I woud like to display a logon screen which contains system-specific information, e.g. for the QAS system it would be something like "This system was created by a system copy from PRD on MM/DD/YYYY"... I have gone through the SAP Note 205487 a
-
I want to download apps it tells me to review my account. when i do this it asks for my bank details i put them in and its telling me there wrong when its not.. how do i fix this?
-
Hi Microsoft Team, We need your urgent advice and that is also on priority: Issue Description: We need to migrate from WINDOW SERVER 2003 to WINDOW SERVER 2012 while the development activity will be carried under WINDOW SERVER 2008 as DEVELOPMENT BOX
-
User gets Active X Runtime error 429 while running 10.1.3.4.1 Build 130
Hello all, I have a user running BI Publisher Desktop 10.1.3.4.1 Build 130 as an addon in Word 2010. He has had multiple issues with this program in the past, one of which even forced us to reinstall his machine to resolve. He is on a clean build of
-
Access 2010 VBA - multiple overlayed graphics
I'd like to create a stacked bar chart from one table and then overlay two line charts from different tables over top of the bar -- essentially showing three variables in different ways. Is there a way to overlay graphic types in Access 2010? If no