Passing PERNR to HR program

Hello,
HAve a requirement in which i will need to  pass pernr from a normal program to an HR program, I am using a submit program for the same, how do i default the selection screen of my HR program with the pernr number i pass from my normal program ?

sorry just landed up with the solution, thanks

Similar Messages

  • Pass pernr from employee search iView to abap webDynpro in Related Activity

    Hi All,
    I have seen many threads explaining how to pass pernr from employee search iView to custom ABAP webDynpro application in the "Employee profile" page. Also seen sap note 1112733.
    I am trying to launch custom ABAP webDynpro application from "Related Activities" view found in the employee information page in MSS.  I want to pass pernr selected from Employee Search iView to the ABAP webDynpro application in "Related Activities" view.
    In the ABAP webDynpro application, I am listening to the portal event (as per note 1112733) but the ABAP webDynpro can not catch the event.
    Anyone has passed pernr from employee search iView to the ABAP webDynpro application launched from "related activities" view?
    Regards
    Ashutosh

    Hi Ashutosh,
    can you tell me exactly what you did? I have the same issue.
    Thanks,
    Joeri

  • Pass pernr to WebDynro

    Hi Experts,
    I have a requirement in which I need to pass PERNR from MSS team viewer to my Z WDA application.
    I have tried the steps mentioned in the followin thread, but I am not able to get the value of PERNR to my Z application.
    Pass pernr to WebDynro
    Please help me with the requirement.
    Regards,
    Pranay

    Hi,
    as the note stated.
    inside your z wd application subscribe to the portalevent  like this
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
    DATA lo_api_controller  type ref to if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
    lo_api_component = wd_this->wd_get_api( ).
    lo_portal_manager = lo_api_component->get_portal_manager( ).
    lo_portal_manager->subscribe_event(
        portal_event_namespace = 'urn:com.sap.mss.employeesearch'
        portal_event_name      = 'selection_changed'
        view                   = lo_api_controller
        action                 = 'mss_emp_selected'
    mss_emp_selected is a action , should be defined in the View.
    Edit the ONACTIONESS_EMP_SELECTED method and insert the following 3 parameters as optional  importing parameters.
    PORTAL_EVENT_NAME     
    PORTAL_EVENT_NAMESPACE
    PORTAL_EVENT_PARAMETER
    The portal_event_parameter string contains the following information
    Plan variant (2 characters)
    Object type: (2 characters)
    Start date of the object: (8 characters in the format yyyyMMdd)
    End date of the object: (8 characters in the format yyyyMMdd)
    Object ID: (remainder of the parameter string)
    Example value would be "01P 200706012007123108154711".
    Split the string accordingly and get the employee ID 08154711, use it for your employee data retrieval.

  • Issue in passing inputs to concurrent program

    Hi all,
    I am using ECEPOO(out:purchase order ) to extract approved PO data.The concurrent program asks for output file path as one of its inputs.
    When I pass the file path to it ,the concurrent program fails saying *'INVALID_DIRECTORY_PATH'*.
    I dont know what is the right file path format to be passed.I need to know what is the format for the file path.
    Help me with your suggestions and example formats.
    Thanks n regards,
    Goutham R

    you can find the path by looking for any previous concurrent program which ran successfully.
    one way of doing that is from the Submit Request window , set the days to 500 say and serach for all request with same request name.
    Now select any of the request whhich has completed successfuly and from details get the parameter passed to that query.
    Other way is
    select fcpt.concurrent_program_id conc_prog_id
    from apps.fnd_concurrent_programs_tl fcpt
    where user_concurrent_program_name = <Conc prog Name>;
    Now from above query use the concurrent_program_id in below query :
    select fcr.*
    from apps.fnd_common_requests fcr
    where fcr.concurren_program_id = conc_prog_id

  • A Java application how to pass Microsoft OEM Ready program?

    Hello,
    I have a Java application that needs to pass OEM Ready program, but it fails on AppVerifier item. The error messages are:
    "Freeing memory block inside current thread's stack address range."
    "First chance access violation for current stack trace."
    These errors are occurred by JVM. Anybody understands a Java application how to pass AppVerifier? Thanks in
    advance.
    p.s. The Java application is only a simple "Hello World" program.
    p.s. I also test many popular Java applications (such as JBuilder/NetBeans), they
    also cannot pass AppVerifier.
    p.s. The OEM Ready Program web site: http://msdn.microsoft.com/en-us/windowsvista/cc315067.aspx

    One small update. These errors are reported by AppVerifier tool. But the origin of the errors seems to be coming from JNI Calls. Basically AppVerifier is a runtime verification tool and helps in monitoring an application's interaction with OS, the registry, the file system,heap, handles, locks, and more and reports the errors found.
    And when I check my application ( which interacts with few .jar files using JNI calls ) with AppVerifier, it is reporting the errors, upon debugging I found the source of the errors to be the JNI calls. Any idea about the reasons and fix for these errors.
    I thank you in advance.

  • How to pass variables to a program called from long text of an error msg ?

    Hi,
    The aim is the following: in the long text of an error message, there should be a link; this link must call a program or a transaction and pass to this program or transaction the four variables of the error message. Is it possible to insert such a link with parameters in the long text of the error message ? If yes, what is the syntax for this ?
    (I searched in the forum and found the way to insert a link to a transaction, but I found nothing about parameters).

    Thank you for the answer.
    Unfortunately, this solution is not applicable in my case. I'm using the application log and the scenario is the following:
    - the user displays the application log in transaction SLG1
    - he sees a lot of error and succes messages
    - by dubble-clicking on these messages, he displays the long text of the messages
    - I want a link in these long texts to a transaction using the variables of the messages. I tried inserting a link to a transaction, and the transaction is well called, but with a breakpoint I checked variables SY-MSGV1 to MSGV4 and they are empty.

  • I need to pass PERNR to Feature GBPGL (PE03)

    Hi,
    We are using feature GBPGL and as part of decision tree we need the PERNR value.
    PERNR is not one of the fields in PME02 which is used by the feature GBPGL. I have therefore appended structure PME02 with the PERNR field and have added this successfully to the decision tree i.e:
    000010                                  D     ABKRS
    000020     10           D     PERNR
    000030     10 00440070                 &GBPGL=01.06.2009,
    000040     10 ********                 &GBPGL=01.05.2009,
    When it hits pernr 440070 it should return date 01.06.2009, however although the ABKRS field is filled, the PERNR field has no value. Thus, when the feature is run for pernr 440070 it goes to line 40 (above) and returns a date of 01.05.2009.
    The data is correct in that I have an absence for the period in which I am running the payroll calculation.
    I need to know how to pass the value in PERNR to my feature?

    GBPGL uses PME02 and that structure don't have perner field,
    I have couple of questions,
    How did you appended structure PME02 ? did you make any changes in the standard?
    When you already have ABKRS what is the need of perner there?
    Best Regards,
    JR

  • Execute and pass parameter to external program

    hi all,
    i need to wrap a program using java.
    i would like to write a java program able to ask for user input as soon as wrapped command ask for.
    from the user point of view the behaviour should be the same.
    example
    program to be wrapped: mycommand.exe
    mycommand synopsis
    mycommand file1: mycommand ask for a string and writing it in file file1
    i would like to execute mycommand file1
    in a java program getting the orginal behaviour.
    so...
    String command = "mycommand file1";
    Process process = Runtime.getRuntime().exec(command);
    // from now on somebody can help me?
    thank you
    Luca

    lrasco wrote:
    i would like to write a brute force password cracker (for my own use, i forgot a password).
    rar ask user for password, if ok exit 0 otherwise exit 1 (i suppose).
    my program execute rar, which sholud ask for password, pass a password, check for exit code, then exit or continue.That tells us what you're trying to accomplish, not what problems you're having.
    For the record, I'm extremely skeptical of your claim that this is for the legitimate use of recovering your own password. The proper approach would be to contact the admin to reset it.
    Of course, trying to brute force crack a password by executing an interactive program like this will be extremely slow anyway. Assume a 6 letter password over the 62-character space of uppercase, lowercase, and digits. There are 62^6 = 56,800,235,584 possible passwords. On average, you'll have to search through half of them, which is 28,400,117,792. If you can do 100 / sec., then that will take 28400117792 / 100 / (60 x 60 x 24 x 365) = 9 years.
    EDIT: Stupid math operator markup.
    Edited by: jverd on Jan 13, 2010 11:20 AM
    EDIT: fixed math error
    Edited by: jverd on Jan 13, 2010 11:21 AM

  • Pass internal table from program to another program

    hi,
    how do i pass an internal table from program to another program, then read it.
    tnx,
    laure

    Export the selected rows to the next program
    EXPORT final TO MEMORY ID 'ABC'.
    CALL TRANSACTION 'XXX'.
    XXX is the tcode for the other program where u want to import the values.
    In the second program
    INITIALIZATION.
    IMPORT the internal table from the first program
    IMPORT final FROM MEMORY ID 'ABC'.
    Dont refesh the internal table final.

  • How toStore the Date Variable and pass it when the program runs next time??

    HI All,
    My JDBC program basically needs two command line args. Rabge_Start_Dt and Range_End_Dt. for ex:
    2001-05-31 and 2001-06-01 . And my porgram should run every day. Next day the date range will be 2001-06-01 to some date. It means I have to store some how the range_end_dt and pass it as range_start_dt when my program runs the next day.
    Problem:
    How can I store the Data variable and pass it as an argument to my porgram when It runs next time. Every time my pogram runs It should pick the range start_dt (==range_end_dt of the previuos run) and end_dt I have to go and query some other data base and pass that value to it.
    Thanks in advance!!!!

    save the value in a file, then read it back in each day. Similar to when a process needs a PID.
    -blhqctz

  • How to pass text from print program to SAPSCRIPT

    Hi Friends ,
    I need to print this 4 line text on the invoice form between the INFO window and MAIN window . I created a new window in the form and included the text . using include command . The requirement is that if a certain condition is met in the print program then only this 4 line text should be printed on the form .
    Any suggestions .
    Thank you ,
    Hari

    Hi Naren ,
    Just to verify .
    I need to define something like this below in the print program ?
    data : v_flag type c .
    If customer = 'R' .
      v_flag = 'X'.
    PERFORM WRITE_FORM.
    endif.
    In the SAPFORM I defined a new var window "ADD_TEXT"
    IF v_flag = 'X'.
    INCLUDE Z_TEXT OBJECT TEXT ID ST LANGUAGE ES  PARAGRAPH EE
    ENDIF.
    Please let me know if it is correct and also about the write_form . What paramenters do i pass in the write_form ????
    Thanks for your help .
    Hari

  • Passing values to include program

    HI,
    Need help on following.
    in my program A :
    DATA: BEGIN OF it_qlqua OCCURS 0.
            INCLUDE STRUCTURE lqua.
    DATA:   altbatch TYPE ausp-atwrt,
            v_verme TYPE kwmeng.
    DATA: END OF it_qlqua.
    INCLUDE zprogramB.
    perform check_lqua tables it_lqua.
    Program B:
    DATA: BEGIN OF it_qlqua OCCURS 0.
            INCLUDE STRUCTURE lqua.
    DATA:   altbatch TYPE ausp-atwrt,
            v_verme TYPE kwmeng.
    DATA: END OF it_qlqua.
    DATA: v_skzua1 TYPE lagp_skzua,
          v_skzue1 TYPE lagp_skzue,
          v_skzsa1 TYPE lagp_skzsa,
          v_skzse1 TYPE lagp_skzse,
          v_skzsi1 TYPE lagp_skzsi,
          v_lvorm1 type mch1-lvorm,
          v_zustd1 type mch1-zustd,
          v1_skzue1 TYPE lein_skzue,
          v_zskzua1 TYPE lein_skzua,
          v_spgru1 TYPE lvs_spgru,
          v_statu1 type lein-statu.
    FORM zcheck_lqua tables p_it_lqua structure IT_QLQUA.
    ENDFORM.
    Error I get :
    when trying activate :
    statement is not accessible !!
    May i know what have i done wrong?
    What is the correct way to pass internal table to a include file?
    Thanks

    Hi,
    I have made it into simple test but it still fail ?
    report ztest_hl7.
    include zallocation_check2.
    DATA: num  TYPE i VALUE 5,
          fac  TYPE i VALUE 0.
    PERFORM fact USING num CHANGING fac.
    WRITE: / 'Factorial of', num, 'is', fac.
    *&  Include           ZALLOCATION_CHECK2
    FORM fact
           USING f_num TYPE i
           CHANGING f_fact    TYPE i.
      f_fact = 1.
      WHILE f_num GE 1.
        f_fact = f_fact * f_num.
        f_num = f_num - 1.
      ENDWHILE.
    ENDFORM.
    error : statement is not accessible - refer to row perform fact ...

  • Passing container vlaues using program

    hi all,
    i am triggering workflow using events. in the program i am using the following code as
    DATA : V_OBJKEY LIKE SWEINSTCOU-OBJKEY,
    T_CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE,
    wa_cont like line of t_container,
    V_ID TYPE SWELOG-RECID,
    I0008 TYPE P0008,
    IT_0008 TYPE TABLE OF ZPA0008,
    WA_0008 LIKE LINE OF IT_0008,
    WA_PA0008 TYPE PA0008.
    wa_cont-element = 'EMPNAME'.
    wa_cont-type = 'PERSNO'.
    wa_cont-ELEMLENGTH = '8'.
    wa_cont-value = '12345'.
    append wa_cont to t_container.
    CALL FUNCTION 'SWW_WI_CREATE_VIA_EVENT'
    EXPORTING
    EVENT = 'CHANGED'
    RECTYPE = 'WS90000014'
    OBJTYPE = 'BASICPAY'
    OBJKEY = V_OBJKEY
    IMPORTING
    REC_ID = V_ID
    TABLES
    EVENT_CONTAINER = T_CONTAINER
    EXCEPTIONS
    READ_FAILED = 1
    CREATE_FAILED = 2
    OTHERS = 3.
    here i am able to trigger the work flow but not able to pass the container values to the workflow.
    kindly help me.
    thanks,
    sirisha

    Hi
    INCLUDE <CNTN01>.    " <----- Include this
    DATA : V_OBJKEY LIKE SWEINSTCOU-OBJKEY,
    T_CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE,
    wa_cont like line of t_container,
    V_ID TYPE SWELOG-RECID,
    I0008 TYPE P0008,
    IT_0008 TYPE TABLE OF ZPA0008,
    WA_0008 LIKE LINE OF IT_0008,
    WA_PA0008 TYPE PA0008.
    SWC_CREATE_CONTAINER  t_container  " <---- Include this statement.
    SWC_SET_ELEMENT t_container 'EMPNAME' '12345'.
    wa_cont-element = 'EMPNAME'.  " <-- Replace the below 4 lines of code with the above line
    wa_cont-type = 'PERSNO'.
    wa_cont-ELEMLENGTH = '8'.
    wa_cont-value = '12345'.
    append wa_cont to t_container.
    CALL FUNCTION 'SWW_WI_CREATE_VIA_EVENT'  " <----- Repalce this with SWE_EVENT_CREATE
    EXPORTING
    EVENT = 'CHANGED'
    RECTYPE = 'WS90000014'
    OBJTYPE = 'BASICPAY'
    OBJKEY = V_OBJKEY
    IMPORTING
    REC_ID = V_ID
    TABLES
    EVENT_CONTAINER = T_CONTAINER
    EXCEPTIONS
    READ_FAILED = 1
    CREATE_FAILED = 2
    OTHERS = 3.
      COMMIT WORK  <---- INclude this statement too after callin SWE_EVENT_CONTAINER
    But make sure that you already have the container element EMPNAME in the workflow container before raising the event..
    Edited by: Pavan Bhamidipati on Aug 30, 2010 3:51 PM

  • PASS DATA FROM ABAP PROGRAM TO WORKFLOW CONTAINER

    Hello Everybody,
    I am a workflow beginner and I want to pass a data from my ABAP code to a workflow container. This workflow container is used in the Send Mail step.
    The ABAP  Program is:
    REPORT  zdb_work_flow.
    tables : vbak.
    DATA : k TYPE sweinstcou-objkey,
                e TYPE swetypecou-event.
    DATA : st TYPE swcont,
                itab TYPE STANDARD TABLE OF swcont.
    PARAMETERS : vbeln TYPE vbak-vbeln.
    start-of-selection.
      st-element = 'VBELN'.   "This is my WORKFLOW CONTAINER
      st-tab_index = 1.
      st-elemlength = 10.
      st-type = 'C'.
      st-value = vbeln.
      append st to itab.
      k = vbeln.
      e = 'TRIGGER'               "This is an event in my BUS OBJ ZDB_WFLOW
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                               = 'ZDB_WFLOW'   "My BUS OBJ
          objkey                                 = k
          event                                  = e    "Event TRIGGER in ZDB_WFLOW
        tables
          event_container               = itab
        exceptions
          objtype_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.         .
      COMMIT WORK.
    Now I have created a workflow in SWDD as ZDB_WF_SW.
    In this WF I have created a container as VBELN.
    In the SEND MAIL I have given a header as "Worflow Triggered for &VBELN&"
    PROBLEM.
    The Workflow is getting triggered. I am also getting a mail "Workflow Triggered for" in my mailbox but the &VBELN& is missing from the header.
    I have set the IMPORT EXPORT flag of the WF CONTAINER "VBELN"
    Please Help.
    Edited by: Deepankar.B on Feb 22, 2011 4:08 PM
    Edited by: Deepankar.B on Feb 22, 2011 4:10 PM

    You wouldn't use a SMA as an assistance class - but refer to one within it.
    I would use Shared Memory Area classes - but I'd also build a SMA that could talk across multiple application servers.
    Thomas Jung proposed this in a forum reply some time ago.
    It shouldn't be too difficult to use RFC's to access the content of SMA's in multiple app servers - ensuring synchronisation across multi app servers. I've not yet had the need, so haven't attempted.
    The long polling in 7.02 apparently uses this approach, so in a 7.02 system there may even be standard components/ SMAs that you could use.
    I do not think global areas in FM's are available across sessions - I don't think you could use that as a data transport.

  • Passing data from abap-program to mssql database table thro native sql

    Hi,
    To pass the data from abap-program to mssql server,i have created database connection through dbco t.code.
    now i am trying to get connection thro native sql but am not able to get it .Am working in ECC 5.0.
    Could anyone help me on this.Did i miss anything?
    i have tried Native-sql like this.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Thanks in advance.

    Hi,
    Trying to do the same here, only using Oracle DB.
    DATA:     dbc TYPE DBCON_NAME VALUE 'BI'
    TRY.
      EXEC SQL.
        CONNECT TO :dbc
      ENDEXEC.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_sy_native_sql_error.
      ENDIF.
    CATCH cx_sy_native_sql_error INTO oref_native_sql_error.
      sql_emsg = oref_native_sql_error->get_text( ).
      MESSAGE sql_emsg TYPE 'I'.
    ENDTRY.
    I keep getting the message 'Native SQL exception has occured' (because of the RAISE statement, I wonder how we can get a meaningfull error description).
    Of course this can be a result of a number of network issues, so I'm trying to resolve this together with my BC admin.
    I suggest the same to you..
    In the meantime, if anyone can help out, it will be appreciated.
    Regards,
    SD

Maybe you are looking for

  • No ATV purchased movies show up in Itunes

    I have a new ATV 3G.  Everything in itunes shows up great on the ATV, but I purchasedd 2 movies on the ATV, and they do NOT show up in itunes, and my ATV doesn't show as a device??  Why can I see Itunes in ATV, and not the reverse?

  • Backups Not Cataloged

    None of the NDMP backups I'm establishing are being cataloged.  The backup transcripts all have this line: Warning: this backup will not be cataloged; one or more history files are missing! No file information is available for restoration.  Any ideas

  • Attach file in a instance in bpm 11g

    I have a problem... I want to attach file in example process very easy. in the first activity attach the file and the second activity click in button and show the attachement file... any idea to do that in bpm 11g..??

  • Computer at work, wont recognize Iphone.

    Hello, I have 1.9Ghz Power PC G5 at work with the latest Itunes and all available updates as of 9/16/09. (OS = 10.4.11). My iphone 3gs works fine otherwise but when I try to plug it in via USB/Synch cable at work, the computer just doesn't recognize.

  • Canon G1X RAW won't open in PSCS5

    Even though Camera Raw plug-in lists G1X RAW as supported, PSCS5 will not open the RAW  .cr2 files. Camera Raw plugin version 6.6.0.261 Likewise, Adobe DNG Converter says it will, but will not. Likewise Lightroom 3. I have seen mention of a beta 6.7