Assign defaulit values while using PNP

Hi Everybody,
I am using Logical Database PNP for the one of my implementation. i have to develop a new report using PNP logical database. Now I have to assign default values for Employee status and Employee Group. while executing the report, in the selection screen default values must be "3" and '1" . How to assign them.
Thank and regards,
giri.

Initialization.
  pnpstat2-sign = 'I'.
  pnpstat2-option ='EQ'.
  pnpstat2-low = '3'.
  APPEND pnpstat2.
  CLEAR pnpstat2.

Similar Messages

  • How to get default values while using the transaction "BP"

    Hi Group,
    I have a query on how to get default values while using the transaction <b>BP</b>?
    The thing is:
    when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
    how can I achieve this?
    So please kindly let me know the procedure to achieve this.
    Thanks & Regards,
    Vishnu.

    Hi,
    The events of BDT can be used to default some fields on creating a partner.
    For this create a function module for ISDAT. attach that event in BUS7.
    In the ISDAT funtion modulethe following code should be used.
    For example to set the nationality:
    I_BUSDEFAULT-NATIO = 'DE.
    CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
    EXPORTING
    i_busdefault = I_BUSDEFAULT
    Regards, Smita.

  • How to get locked records of a pernr while using PNP LDB

    is there any way to retrieve locked records of a pernr
    while using PNP LDB??currently the get pernr event is unable to load locked records of a pernr.

    Hi,
    PL use this piece of code in your Program..
    INITIALIZATION.
    PNP-SW-IGNORELOCKEDRECORDS = 'N'.
    Regards,
    Suresh Datti

  • No Filtering  while using PNP DB

    HI all,
    I am using PNP DB to get the HR data...
    I m giving the data range in the std selection screen ...
    but it is not filtering the data on the basis of data range....
    it is giving all the data which are present in the DB...
    plz help me in trobleshooting the problemm....
    thnx
    Rohit

    >
    Rohit Kumar wrote:
    > Thnx for replying SK....
    > my code is like this...
    >
    > INFOTYPES: 0000, "Action
    >            0001,
    >            0002, "Personal Data
    >            0006, "Address
    >            0008,
    >            1001,
    >            0105, "Communication
    >            0041. "Date Specification
    > *           9000.
    > *----
    > * TABLES
    > *----
    > TABLES: "pernr,                            "Standard Selections for HR Master Dat
    >         t510,
    >         pa0000,
    >         hrp1001.
    >
    > TYPE-POOLS: slis.
    > -
    > -
    > ..........
    >
    > START-OF-SELECTION .
    > *Fetch Data from LDAP / Active Directory Server for reconcilation
    >   PERFORM get_ldap_data.
    >
    > *Get SAP HR data
    >   rp_set_data_interval 'P0002' PN-BEGDA PN-endda.
    >   rp-set-name-format.
    >
    > GET pernr.
    >   PERFORM get_sap_data.
    >
    > rp_provide_from_last p0002 space PN-BEGDA pn-endda.
    >   IF PNP-SW-FOUND  = 1.
    > * get last name
    >     MOVE p0002-nachn TO g_nachn.
    > *get first name
    >     MOVE p0002-vorna TO g_vorna.
    >   endif.
    >
    > ....do  the selection screen makes any differance....
    >
    > i m using std one.....
    >
    > plz suggest...
    >
    >
    > and amit Gupta ---i am passing the values as shown above....as it is...
    >
    > Edited by: Rohit Kumar on Sep 17, 2008 6:26 PM
    Hi Rohit
      The code is working fine for me, could you please post the values of pn-begda and pn-endda and the data(key fields) returned by LDB into the internal table P0002 and let us know as why you think LDB is not restricting the data. Here is the code that i've tested
    REPORT zytest.
    INFOTYPES: 0000, " Actions
    0001,            " Org Assignment
    0002,            " Personal Data
    0006,            " Address
    0008,            " Basic Pay
    1001,            " Relationships
    0070,            " Court orders
    0105,            " Communication
    0041.            " Date Specification
    *9000.
    *TABLES
    TABLES: pernr, "Standard Selections for HR Master Dat
    t510,
    pa0000,
    hrp1001.
    TYPE-POOLS: slis.
    START-OF-SELECTION .
    *Fetch Data from LDAP / Active Directory Server for reconcilation
    *PERFORM get_ldap_data.
    *Get SAP HR data
      rp_set_data_interval 'P0002' pn-begda pn-endda.
      rp-set-name-format.
    GET pernr.
    *PERFORM get_sap_data.
      rp_provide_from_last p0002 space pn-begda pn-endda.
      IF pnp-sw-found = 1.
    *get last name
    *MOVE p0002-nachn TO g_nachn.
    **get first name
    *MOVE p0002-vorna TO g_vorna.
      ENDIF.REPORT zytest.
    INFOTYPES: 0000, " Actions
    0001,            " Org Assignment
    0002,            " Personal Data
    0006,            " Address
    0008,            " Basic Pay
    1001,            " Relationships
    0070,            " Court orders
    0105,            " Communication
    0041.            " Date Specification
    *9000.
    *TABLES
    TABLES: pernr, "Standard Selections for HR Master Dat
    t510,
    pa0000,
    hrp1001.
    TYPE-POOLS: slis.
    START-OF-SELECTION .
    *Fetch Data from LDAP / Active Directory Server for reconcilation
    *PERFORM get_ldap_data.
    *Get SAP HR data
      rp_set_data_interval 'P0002' pn-begda pn-endda.
      rp-set-name-format.
    GET pernr.
    *PERFORM get_sap_data.
      rp_provide_from_last p0002 space pn-begda pn-endda.
      IF pnp-sw-found = 1.
    *get last name
    *MOVE p0002-nachn TO g_nachn.
    **get first name
    *MOVE p0002-vorna TO g_vorna.
      ENDIF.

  • Missing Parameter Values while using Change SubReport links

    Hi,
    I am using Change SubReport Links to pass data from Main Report to the SubReport. The report works fine at design time when I preview it, but at runtime I get "Missing Parameter Values" error.
    As I have used Chanage SubReport Links do I still need to pass the parameter to the SubReport from the code.
    cr.Export gives this error.
    Below is the code
    ExportOptions crExportOptions;
            DiskFileDestinationOptions crDiskFileDestinationOptions;
            string Fname = string.Empty;
            string strReportName = string.Empty;
            ReportDocument cr = new ReportDocument();
            string strReportPath = Request.PhysicalApplicationPath.ToString() + @"Members\Reports\UnPaidReceipt.rpt";
            if (!System.IO.File.Exists(strReportPath))
                throw (new Exception("Unable to locate report file:\n" + strReportPath));
            cr.Load(strReportPath);
            MtollBLL Unpaid = new MtollBLL();
            cr.SetDataSource(Unpaid.GetUnpaidPayments().DefaultView.Table);
            // Set the Crytal Report Viewer control's source to the report document.
            CrystalReportViewer1.ReportSource = cr;
            MtollBLL Violation= new MtollBLL();
            cr.Subreports[0].SetDataSource(Violation.GetReportViolation().DefaultView.Table);
            // cr.PrintToPrinter(1, False, 0, 0)
            Response.Write( cr.Subreports[0].DataDefinition.ParameterFields.Count);
            Fname = Request.PhysicalApplicationPath.ToString() + Session.SessionID.ToString() + ".pdf";
            crDiskFileDestinationOptions = new DiskFileDestinationOptions();
            crDiskFileDestinationOptions.DiskFileName = Fname;
            crExportOptions = cr.ExportOptions;
            crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
            crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
            crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
            cr.VerifyDatabase();
            cr.Subreports[0].VerifyDatabase();
            cr.Export();//' The following code writes the pdf file to the Clientu2019s browser
    Please Advise.

    Please post your SDK development questions to the Developers forum

  • Selection screen while using PNP

    Dear Freinds,
                    I have one question relating to logical database PNP. If i use the logical databasePNP we willget the default screen with fields PERNR,EmploymentStatus,CompanyCode , Payroll area etc. But i can see that for the above feilds i will
    not get the range but i will geting the parameters.
    Could any body let me know how i can make on the selection
    screeen for the pernr, company code etc select-options so that the user can enter the pernr , company code range on the selection screen.
    regards
    syamala

    Hi syamala,
    from release 4.5 on the decision was not to have LOW and HIGH fields on the standard screen but only the LOW.
    But by simply clicking on the white arrow behind you should be able to enter ranges.
    If something is entered the system shows a green arrow.
    Regards,
    Michael

  • Delete currency values while using cells

    Hello experts, we are having trouble with Currency Key (0CURRENCY) values. On a certain query, we are using cells (we have one structure in rows and another one in columns). For all key figures in which Currency Key is used, the value of the currency in question appears on every cell. We need to eliminate this value, if possible show the value alongside the key figure (if the key figure is in columns, the value would be shown at the top).
    I know that one solution is to use NODIM function over the key figure, and I also know that changing scaling factor can show both the selected factor as well as the currency alonside the key figures. However, both solutions are feasible when not working with cells. The main problem we have is that this query has around 400 cell values (due to this, the query runs much more slowly than other queries, even in the Query Designer), so changing everything (every single cell) to the formula that uses NODIM will take too long. And for some reason, changing the scaling factor over the key figure is not working. I also tried changing the scaling factor over the non-key figure structure, but it did not work. Finally, I tried selecting all values of the individual cells and changing the scaling factor, but it did not work either.
    Is there an easier way, or should we create the key figure with the NODIM function and have all cells use it?

    In the end we decided to do it manually, although it took a very long time to finish.

  • Color subtotal value while using class "cl_gui_alv_tree"

    Dear All,
    Can we color subtotal value?? I am using class "cl_gui_alv_tree" to creare alv tree.  if yes please let me know how.
    Regards.
    Gyanendra

    Hi gop4sap11 ,
    Autometically subtotal is coming  coloured that is fine,but my requirment is like,,,  
    can i manually coloured subtotal value of any particular node of any column based on some condition??
    for ex: node name  : -
    af
    coloumn name : ---abc    bcd
    60       70
    can i colore 60 or 70 in red colore?
    subtotal is calculating using standard method
    call method tree1->update_calculations.  of class "cl_gui_alv_tree"
    after that , i tried to use following method
    LOOP AT lt_node_temp INTO ls_node_temp.
                      CALL METHOD TREE1->GET_OUTTAB_LINE
                           EXPORTING
                             I_NODE_KEY     = ls_node_temp-lv_p_node_key
                           IMPORTING
                             E_OUTTAB_LINE  = lv_E_OUTTAB_LINE
                             E_NODE_TEXT    = LV_E_NODE_TEXT
                             ET_ITEM_LAYOUT = LV_ET_ITEM_LAYOUT
                             ES_NODE_LAYOUT = LV_ES_NODE_LAYOUT
                           EXCEPTIONS
                             NODE_NOT_FOUND = 1
                             OTHERS         = 2
                         IF SY-SUBRC <> 0.
                         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                         ENDIF.
                         CALL METHOD TREE1->CHANGE_NODE
                           EXPORTING
                             I_NODE_KEY     = ls_node_temp-lv_p_node_key
                             I_OUTTAB_LINE  = lv_E_OUTTAB_LINE
                             IS_NODE_LAYOUT = LV_ES_NODE_TEMP_LAYOUT
                             IT_ITEM_LAYOUT = LV_ET_ITEM_TEMP_LAYOUT
                             I_NODE_TEXT    = LV_E_NODE_TEXT
                            I_U_NODE_TEXT  =
                           EXCEPTIONS
                             NODE_NOT_FOUND = 1
                             OTHERS         = 2
                         IF SY-SUBRC <> 0.
                         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                         ENDIF.
    ENDLOOP.
    this method must be called to send the data to the frontend
      call method tree1->frontend_update.

  • Capturing Excise values while using BAPI_GOODSMVT_CREATE

    Hi,
        I am able to successfully create the GR using BAPI_GOODSMVT_CREATE taking PO as the reference but unable to capture the excise values.
       I am trying to use BAPI_EXCINV_CREATE_FROMDATA to capture excise values but without success.
      I have already checked the forum but have not found any suitable answer.
      pls guide me through this....
    murali.c
    Edited by: murali ch on Nov 25, 2009 4:24 AM

    Hi Murali,
    Could you Let me know how you sort out this issue. I am facing a similar problem.
    I created the Goods movement for MIGO with 101 and I am trying to post excise details with the bapi
    BAPI_EXCINV_CREATE_FROMDATA,
    The Return messsage are zero but its actually not posting to excise tables.
    Regards
    Aromal R

  • Getting incorrect values while using getLineMetrics()

    following e.g. finding x position of word "Adobe flex".
    if container of TextArea is not scaled then its giving
    correct value
    but after doing zoomin/zoomout its giving incorrect value
    Plz help me to figure out this.
    Thanks
    Kaushal
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    private function onClick():void{
    cnvs.scaleX = cnvs.scaleY = 1;
    cnvs.validateNow();
    var obj:TextLineMetrics = ta.getLineMetrics(0);
    lbl.text = "X: " + String(obj.x);
    private function onZoom(val:Number):void{
    cnvs.scaleX = cnvs.scaleY += (0.25 * val);
    ]]>
    </mx:Script>
    <mx:Button x="75" y="285" label="Find X"
    click="onClick()"/>
    <mx:Canvas x="75" y="10" width="382" height="201"
    id="cnvs">
    <mx:TextArea x="4" y="46" color="#000000" id="ta"
    borderStyle="none" textDecoration="underline" text="adobe
    flex"
    fontSize="28" width="361" height="54" textAlign="center"/>
    </mx:Canvas>
    <mx:Button x="75" y="219" label="-"
    click="onZoom(-1)"/>
    <mx:Button x="123" y="219" label="+"
    click="onZoom(1)"/>
    <mx:Label x="159" y="287" text="" fontSize="13"
    fontWeight="bold"
    id="lbl"/>
    </mx:Application>

    Yes number of pages are correct even though the values are different
    If I drilldown these reports for week 04.2008 – 09.2008 by Sales office only – and add the totals in Excel to double check then they are more or less the same.  Then I drilldown by Sales Office, ASM, Week & Sub Trade Channel.  Then export this into excel and add the totals to double check but then I get totally different amounts as to what they are supposed to be.
    Please waiting for help
    Thanks
    S
    Edited by: Shiva on Mar 6, 2008 12:52 PM

  • Assigning of values to the charecteristics while doing GR

    Dear Gurus
    I have created a charecteristic and assigned it to a class of classtype 23 (batch class).I assigned this class to a material.Now while doing GR of this material through TCODE MB1C and movement type 561 the system is giving the automatic batch number.But it is not giving any options for assigning  the values for the charecteristic that I have kept in the class.How to assign the value while doing GR ?.I am able to assign the value by going to TCODE MSC2N.
    Regards
    Sandip Sarkar

    Hi Sandip,
    One option will be mark all those characteristics as Entry Required in T.code CT04.
    So that you will get a warning msg. during GR if value is not maintain.
    Msg. No is LB045 and msg is,
    The characteristic values for the batch are incomplete.
    If required you can convert that warning msg to Error also.
    You can do it by using T.code OCHS.
    But keep notice that you have to go that Classification tab manually - there is no other option in
    Regards,
    Dhaval

  • PL/SQL Function call error while reading or assigning returned value

    Hi,
    I am getting the following error while tryih to read the value of the PL/SQL Function. I am calling a function in one of my PL/SQL Packages passing mutliple IN parametes and the function returns some value back. Now on BPEL side when I try to read the return value I am getting an error:
    *<summary>*
    empty variable/expression result.
    xpath variable/expression expression "/ns3:OutputParameters/ns3:TEST_FUNCTION" is empty at line 124, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:OutputParameters/ns3:TEST_FUNCTION" is not empty.
    *</summary>*
    Even though in the console when I check the Invoke Output Parameter it does shows me a valid value being retuned by a Function but when I am trying to Assgn this value to some variable using Assign Activity I get the above error.
    Even though all goes fine but looks like I am not able to read or assign the value returned from the Function.
    So just wondering if this even works as to me I have a very simple example and that seems not to work. Function is called successfully and is returning the value as I can see it in the BPEL console but when tryin to read or assign that value to some other variable I get the above error.
    Any ideas?
    Thanks

    This issue has come up a lot. The problem is with a mismatch between the version of JDeveloper and SOA. You'll encounter namespace issues if you use 10.1.3.1 in combination with 10.1.3.3 (or 10.1.3.4). You MUST synchronize both JDev and SOA to 10.1.3.3 or 10.1.3.4 (mixing 10.1.3.3 and 10.1.3.4 is OK). We changed when going to 10.1.3.3 by adding elementFormDefault="qualified" to the generated XSD. We used the default "unqualified" in 10.1.3.1. So you'll encounter namespace issues unless you're using 10.1.3.3 or higher JDev AND SOA. The fact that I see &lt;*db:*...&gt; tells me that you're using 10.1.3.1 JDeveloper. The correct solution is to upgrade your components.

  • Runtime error ASSIGN_TYPE_ILLEGAL_CAST while using ASSIGN key word

    Hi All,
    I'm getting a runtime error ASSIGN_TYPE_ILLEGAL_CAST while using ASSIGN keyword in the below statement,
    ASSIGN L_XVALUE(L_LENGTH) TO <TEXTLINE> TYPE 'C'. "see 581444
    Here L_XVALUE is of type X with value 'ENVIRONMENTALLY HAZARDOUS SUBSTANCE, LIQUID, N.O.S' , L_LENGTH is of type I with value 51 and <TEXTLINE> is of type C wih one character length .
    Should I have to declare <TEXTLINE> as same as that of L_XVALUE ( type X ).
    Thanks in Advance,
    Sabu.

    Decalre <TEXTLINE> as type any.

  • How MSS Report passes values to R/3 report using PNP logical db

    Heloo Gurus,
    I am having some trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
    I tested in debugging but selection screen parameter PNPORGEH contains nothing.
    Many Thanks in advance for the help.

    Anyone ?
    plz update.

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

Maybe you are looking for