Changing selection version for a Query in PNP LDB

Hello Folks,
I have defined a selection screen version as 000(Selection screen on infotypes) in a Infoset but
for some queries for same infoset i want to change the selection screen version to 900(Selection screen on payroll results) how can this be achieved.
Regards,
Nishanth Kumar.

Data : l_begin_date TYPE d,
l_end_date TYPE d,
l_duration TYPE i,
wa_range TYPE rrs0_s_var_range.
Case i_vnam.
when 'Variable'.
IF I_STEP = 3 .
Read table I_T_VAR_RANGE INTO wa_range with key VNAM = 'variable'.
If sy-subrc = 0.
l_begin_date = wa_range-low.
l_end_date = wa_range-high.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_bis = l_end_date
i_datum_von = l_begin_date
IMPORTING
e_tage = l_duration.
If l_duration GE 7.
L_MSGV1='User has to select only period for 7 days '.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = ' L_MSGV1'
EXCEPTIONS
DUMMY = 0
OTHERS = 0.
RAISE NO_PROCESSING.
SY-SUBRC = 4.
endif.
endif.
endif.
endcase.
When user enters more than 7 days, a pop up comes telling him not to enter more than 7 days.
Please note i didn't test the code, check code for any syntax error.
Hope this helps..
/Pradeep

Similar Messages

  • How to avoid default selection screen in HR interfaces(using pnp ldbs)

    How to avoid default selection screen in HR interfaces(using pnp ldbs)

    Dear Rakesh,
    The report category is used to change the selection screen of programs that use the 'PNP' logical database.
    See links bellow:
    http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
    Report categories for selection screen in HR programming
    Also visit the following blog:
    /people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
    Regards,
    Naveen.

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

  • Selection Screen for BW Query

    Hi,
    We have a requirement where, in the Selection Screen of the Query we have to show a Table, the data will be fetch from a Info Object. There will be a last column for taking data from the User.
    Once the selection screen is filled and executed Report will be outputed.
    This can be achieved in R/3 ABAP by using Table Control on the screen.
    but have no idea how this can be achieved in BW.
    Can anyone help me out ?

    Hi Muthu,
    Thanks for replying. Let me explain the scenario little more in detail.
    We have a selection screen which will have some slection fields and a table like structure for displaying some values by default. When the execute button is pressed the final report is generated.
    There is no link between table structure and the final report except one of the coulmn field is used to derive a flag value in the final report.
    The problem we are facing is how the Selection fields and table structure be displayed when the Report transaction is called.
    Pankaj

  • How to change firmware version for N73

    Hi
    I wanted to force an upgrade for my firmware.
    Can u let me know how to do it?
    it says " No software updates available for your phone
    n73 Rm132 4.0728.3.1.1 .How can i change this version to lower one so that it updates?

    hi
    me also having a problem with my mobile firmware version, i have a latest version V 4.0812.4.0.1. when ever i try to install a software to my mobile the EXPIRED CERTIFICATE error is shown. i change my mobile date to back years but the problem remains.
    i want to go back version, is it possible otherwise what to do, Plz let me know.
    Thanks

  • Changing Flash Versions for export

    Can I change the version of Flash that InDesign CS6 exports to? i.e. can I export to Flash player version 9?

    Not if you are exporting .swf, the minimum player version has to be 10.0.2. Player 9 will throw an error on the preload.

  • Changing selection sequence for logical database

    Hi,
    One of my current report is using logical database PNP. The users are satisfy with the standard selection screen. However they would like me to change the sequence of the selection field. Example, current sequence is Personnel number, company code, employee subarea. They would like it be Personnel number, employee subarea, company code.
    Is there any way I can change the sequence of the selection screen? I tried using report catagory but it don't allow me to change the sequence. Please advise.
    Regards,
    Lanwu

    Rich is correct.. but there is a workaround..
    Use the Report Category that suppresses all the selection fields.. I the program deifne your selection screen with the fields in your own order preference. In the STARt-OF-SELECTION event.. pass the values entered to the PNP fileds.. ie suppoes you have declared S_PERNR ( for Pers No), then use PNPPERNR[] = s_pernr[]. This way you will not have to change the LDB program..
    ~Suresh

  • Can I change sql statement for some query runtime?

    Hi All!
    The problem that I have to implement report with query like this: select * from a where b in (?,?,?). The number of parameters depends on user choice. On the client side it will be a list of check boxes. Is there any way to implement such report? I can see just one way so far - to modify sql statement runtime.
    Thanks!

    hello,
    create a user-parameter myListe or myWhere (wee examples below) and change your query to
    select ... from ... where b in (&<myList>)
    or even better
    select ... from ... &<myWhere>
    now you can pass in the constructed list or where clause. you can also construct the values in the afterParameterform-Trigger
    regards,
    philipp

  • Selection screen for SAP Query: OR between options

    Hi,
    I have a SAP Query and I need a variant where either of two  fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants.
    Thanks

    In abap you can do it, but not sure how you do it in query.
    if s_matnr[] is initial or s_werks[] is initial.
    Do something
    endif.

  • How to change Selection Criteria for a Business Content Data Source

    Hi Experts
    I am extracting data using 0CO_OM_CCA_9 Datasource. I would like to be able to select a range of Company Code (BUKRS) to pull in, but I cannot find a way to make certain fields available as selection criteria. When I go into "Change DataSource", I can unselect fields, and even select certain fields, but the option for most is grayed out.
    How can I make this field available as selection criteria in Infopackage?
    Thanks for the help.

    Its not that simple to enable a new selection for a Business Content Datasource, if its not already provided by SAP. Enabling new fields for selection should be accompanied by corresponding extractor code changes to process those field selections and use those selections throughout the extraction process.
    Solution for your problem would be create a custom extractor with all the logic of standard extractor (function module BWOMD_GET_CTRCSTA1 for 0CO_OM_CCA_9) and extra logic to process the new fields for selection.
    Hope it helps!

  • Tag Selection Mask for Tag Query Details not working

    Has anyone else run into this problem?  I didn't see anything logged here. 
    We cannot get this functionality to work.  Tried with and without quotes, single or double, using * or % and on workstations running 1.4.2_14 and 1.6 for the JRE.  Our workaround of manually entering each tag is pretty tedious in development.  Once in production, we will dynamically be mapping the tags, so this is not a long term problem for us, but it makes data checking a pain since we are dealing with between 400 and 500 new tags all carefully named to make the mask selection easy.
    We are looking for confirmation that it is a common problem.  And if so, we will enter a ticket. 
    We are on 12.0.2 (Build 88) and our data historian is IP21.  We do have UDS Admin 4.0 installed (latest version available). 
    Please chime in.
    Thanks,
    Mike

    I figured out how to make this work.  And it seems rather bizarre.
    Type in your Mask like so:
    XMII_GD%
    Then hit the Clear selection button at the top of the screen.  Presto, the list of tags appears filtered by your criteria.  Maybe the developer linked the wrong buttons under the covers.
    I wonder what the apply button is actually doing? 
    I will leave this question open for a while in case any others run into this problem.  A ticket will be opened eventually.

  • Selection Parameters for SAP Query

    I have difficulty in displaying the SAP Query selection parameter in my result screen.
    Even the ALV Selection option at the Print dialog is not working in this SAP Query (working for ABAP developed ALV report).
    Any help will be much appreciated.

    > Yes SAP Query.
    > The printing is printing out the SAP Query result, even mentioned in my 1st statement.
    > Is my language that bad or you have difficult understanding English?
    I have no difficulty in understanding English but in understanding your problem. If someone says only "it's not working" I must ask, what "it" is.
    Is your problem the fact, that the selection criteria is not printed if you use ALV but printed if you use an ABAP list? Or is printing not working alltogether?
    Markus

  • Short Dump While selecting Variant for ABAP query

    Hi,
    ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
    I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
    I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
    Thanks in Advance.
    Nirmala K

    Hi nirmala,
    chk the links:
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
    regards,
    keerthi.

  • Change Selection criteria for existing report in Report painter

    Hi Experts,
    We are on 4.7, using report painter for getting reports for Cost center & Profit Center. For one of the report we have selection criteria as Cost center and cost center group, but now user want us to add new selection field as Cost element and cost element Group to same report. We have tried all the options from GR32 ->Edit-> General Selection, but we don't find cost element in Key figure listed there.
    Please let us know how can we add the new field to selection criteria. We also would like to know is this is possible with existing report  to add new fields or not? Is that we need to create new report for this?
    Thanks in advance..
    Shilpa

    Shilpa-
    In my opinion the best way to troubleshoot issues like this is to go to SAP delivered standard reports and see how they are setup. For example, in your case you want to add cost element and cost element group to your report. There is one standard report from SAP - Transaction :S_ALR_87013611 which has both cost center, cost center group and cost element, cost element group in the selection criteria. You can look how this report is set up, and maintain your report in a similar fashion. Atleast this way, it will give you an idea.
    Go to transaction code GRR3 and under library look for report "1SIP-001". By double clicking on the row, you will see how it is maintained.
    Hope this helps.
    Shail

  • Multiple Queries in Workbook - Refresh Screen Shows Up for Every Query

    We have multiple queries in a workbook.  All of these queries have the exact same selections for the variable selection screen.  When all the queries are refreshed once, the selection screen used to show up once and all the queries are refreshed with the same selections.  
    We were on BI 7.0 and SP10.  We recently moved to SP12.  Since the SP12 installation, the multiple query refresh pops-up the selection screen for every query.  It is nothing like "multiple query refresh" at once since the user has to click "execute" button for every single query.  It is interesting to note that the selection screen only contains hierarchy variables and hierarchy node variables.  The other variables of selection screen do not show up.  I couldn't find any OSS note on this topic.  Please let me know if anyone has any comments on this issue.  I will assign points to useful posts.

    hi Sameer,
    try to update front end patch to latest version ?
    Using the BI 7.x Add-On for SAP GUI 7.10 - Requirements
    hope this helps.

Maybe you are looking for

  • Issue in Split invoicing

    Hi, I have an issue in split invoicing. Here is the scenario: If we have indicated purchase condition for split invoicing (for example excise tax) we dont want to post them to inventory , i want to configure an offset condition .In the system i confi

  • Color change of a field  in ALV Grid Control

    Hi, One small help needed.... My req is explained below: I have 3 fields empno, ename and deptno. and the records of these fields would be displayed in ALV grid control. When I hover the mouse on ename field, the color of the complete field should ch

  • Best option connecting to VGA ?

    My wife's MBP has USB 2, Firewire 800, and Thunderbolt connectors. Need to connect to a meeting room's Projector with vga cable. Best way to do that? Thanks!

  • Iphoto events no longer appear when syncing iphone

    This morning when I went to sync my iphone and Ipad, Iphoto events no longer appear when I sync-only albums.  Any feedback?  Cbbeards

  • Word keeps crashing on my Macbook

    Word keeps crashing and when reopens it opens many documents. When I go to close a document it crashes... Help