Initial values of dates on Infotype 41 screen

Hi,
I am running same action (Rehire) in two different systems (quality and development )  - but the initial values of the dates that appear on the infotype 41 screen are different.
can someone suggest me the reason behind it ?
From where are the initial dates fetched on IT0041 screen when running the action . Why are the different ?
Thanks,
Nitu Kumari.

Hi,
For that, please draft a dynamic action code as shown below:
IType FC No S Variable Function Part
0000 06 10 P PSPAR-TCLAS=u2019Au2019
0000 06 12 P T001-MOLGA=u2019XXu2019 (XX u2013 country grouping like 10 for US)
0000 06 14 P PSPAR-MASSN=u2019YYu2019 (YY u2013 rehire action code)
0000 06 16 I COP,0041,,,
0000 06 18 W P0041-DAR01='A2'
0000 06 20 W P0041-DAT01=P0000-BEGDA
The table is T588Z. Let us know if you need further assistance.
Donnie

Similar Messages

  • Default value for date

    Hi experts,
    I want to set default value for dates..
    My screen has : date_from & date_to.
    date_to : will be current date(today's date) if Eg: 27.08.2007 (here i used NOW())
    then date_from must be 01.06.2007 (3 months logic)
    similarly : if date_to is 01.01.2007
    then date_from must be 01.11.2006
    kindly help...
    Thanks a lot!!!
    Regards,
    Bijal

    Hi Bijal
    (DGET(NOW(),'D'))-1) returns number which is 0 incase of 01.08.2007, so DADD(NOW(),-0,'D') is again ideally same day 01.08.2007 .
    So, DADD(DADD(NOW(),-0,'D'),-2,'M') should give you 01.06.2007.
    <b> IT WORKS!!! -
    I have tested it now.</b>
    Please check and revert.
    The IF formula which sent actually returns String, so use DVAL(IF(DGET(NOW(),'D')!=1,DADD(DADD(NOW(),-((DGET(NOW(),'D'))-1),'D'),-2,'M'),DADD(NOW(),-2,'M')))
    Message was edited by:
            Navneet Giria

  • Form text item initial value not taking effect

    Hello,
    Sorry for the simple question, but I'm at a loss.
    I'm trying to present a system date on my form using $$DATE$$ as the initial value of a text item. The form will not display it. Am I running up against a bug, or is there a block setting that might be getting in the way? Possibly an OAS issue? The item is in a control block, and the form is insanely simple. It makes use of menu as well.
    Any help is appreciated,
    Jim

    I tried setting the initial value to $$DATE$$ in a control block item in Forms 10g (9.0.4), and it worked fine. I think the online help is referring to creating a record in a block (not the database), which happens in a control block as well as a base table block.
    Not sure what version of Forms you are using, but in the unlikely chance that you're still on 6.0, there are some bugs (1046279, 2970983) filed on 6.0 about the initial value not displaying when the text item is subclassed from an object library. If that's what you're experiencing, you should be able to fix it by upgrading to 6i.

  • Write Initial values to infotypes

    Hi Experts,
    below is the coding i am developing.....
    what I would like to do is: if cell and fax1 are blank/initial values, I would like to send the blank or initial value to the infotypes. this is not happening through my code. when a record already exists in cell or fax1, it is not getting blanked out. How to send initial values to Infotype records?
           wa_0006_new-num02 = cell.
                wa_0006_new-com02 = 'cell'.
                wa_0006_new-num03 = fax1.
                wa_0006_new-com03 = 'fax1'.
    ENDIF.
    *********Insert Records Into Communication Email
                wa_0105_new-usrty = '0010'.
                wa_0105_new-usrid_long = home_email.
            CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
              EXPORTING
                number = w_pernr.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0006'
        NUMBER                 = w_pernr
        SUBTYPE                = '1'
        VALIDITYEND            = wa_0006-endda
        VALIDITYBEGIN          = wa_0006-begda
        RECORD                 = wa_0006_new
        OPERATION              = mode
        DIALOG_MODE            = '0'
      IMPORTING
        RETURN                 = it_bapi_ret.

    hi here you need to give the usrid from the pa0105 i think.
    wa_0105_new-usrid = pa0105-usrid.
    regards,
    venkat.

  • How to populate the dropdown key values as shown in the below screen shot

    Hi
    i am trying to populate the drop down by key value for trader , for Trader we  have few values i need to populate the Those values in values columns . as shown in the below screen shot .

    Hi,
    Follow below steps
    Step 1 - Create basic wdp table
    Step 2 - Create context to store dropdown values Within your web dynpro application table
    Now you need to create a context node to store the dropdown values, but this needs to be within the context node of your table.
    For this example I will use fields CARRID and CARRNAME from structure SCARR to create the dropdown list within the table context.
    Choose the attributes to represent the id and the text values
    The finished context should now look like this
    Step 3 - Update context mapping within VIEW
    Within the Context tab of your view update the context node you have just modified (CARRIERS) right click and select 'Update Mapping'. Alternatively if this is a new context drag it from the right hand window and drop it onto the context node in the left window,
    Step 4 - Update table field
    Within the layout tab of the view, field the table field you want to replace with with a dropdown and remove the UI element associated with it
    Now insert new dropdownbyindex UI cell element
    Step 5 - Assign Dropdown Ui element to Context
    Click on your UI element within the Layout tab, you will now see all the properties for this element which can be changed. You now need to assign the field within the context which you want to be displayed in the drop down i.e. it will be the CARRNAME field within context element DROPDOWN_CARR. To do this simply click on the button at the end of the 'texts' property (the one with a yellow square and circle on it) and select the correct context field.
    Step 6 - ABAP code to populate dropdown list and set correct initial value
    Insert the following ABAP code into the appropriate place. For this example it will go within the WDDOMODIFYVIEW method of the view.
      Data: it_scarr type standard table of scarr, wa_scarr like line of it_scarr, context_node type ref to if_wd_context_node.  Data: it_ddcarr type STANDARD TABLE OF if_main=>element_DROPDOWN_CARR, wa_ddcarr like line of it_ddcarr, lr_element TYPE REF TO if_wd_context_element, ld_tabix type sy-tabix, ld_index type sy-index, it_carriers type STANDARD TABLE OF if_main=>element_CARRIERS, wa_carriers like line of it_ddcarr.  select * from scarr into table it_scarr. sort it_scarr by carrid.  * select * from scarr into table it_scarr. context_node = wd_context->get_child_node( name = 'CARRIERS' ).  * Get all rows of table and values stored in each cell currently displayed to user context_node->get_static_attributes_table( importing table = it_carriers ).  if sy-subrc eq 0. loop at it_carriers into wa_carriers. free lr_element. ld_tabix = ld_tabix + 1.  *     assign context_node to table context context_node = wd_context->get_child_node( name = 'CARRIERS').  *     assign lr_element to row of table lr_element = context_node->get_element( ld_tabix ).  *     assign data to dropdown of the row  context_node = lr_element->get_child_node( name = 'DROPDOWN_CARR'). context_node->BIND_TABLE( it_scarr ).  *     Set correct initial value read table it_scarr into wa_scarr with key carrid = wa_carriers-carrid. ld_index = sy-tabix. context_node->set_lead_selection_index( index = ld_index ).  endloop. endif.
    Step 6 - Save, Activate and Run
    Save and activate your abap web dynpro, now when you execute it you should see a drop down object similar to the following:

  • Query to set initial values

    Hi all,
    Is it possible to use queries to set initial values or change existing values?  For example, we are adding in a new sales employee that will be our sales rep for customers in a certain area.  Would it be possible to run a query that would set the Sales Employee field in the BP Master Data as this new sales rep if the customer is in that area?  If yes, what is the general process for using queries to set values in this manner (we have other things we would like to use this for as well, if its possible)?
    Thanks for the help

    Hi Todd,
    The best way to tackle this is probably to use a query to extract the business partners you wish to update and then use the Data Transfer Workbench to update the Business Partners in question.
    You could also add a Formatted Search to the Business Partner screen so all new Business Partners default to the correct Sales Person based upon territory/address or whatever criteria you like.
    Cheers,
    Sean

  • Display/Process Initial values

    Hi,
    I have the following delemma: with data binding, BSP input fields that are blank on the screen will ultimately be assigned internally ABAP initial values. For instance, take fields of type time. The conversion from internal format to string gives 00:00:00 for initial values. BUT, 00:00:00 means also midnight. And in the same way, a blank value in a time field is interpreted as initial (00:00:00). So, if an application is trying to retrieve some objects and is indifferent to the time, it will not be possible to know whether the user didn't enter anything or whether he enterred midnight.
    The same problem exists for some other data types...
    Any idea how to solve this?
    Cheers,
    Armand

    Hi,
    Thank you very much for your quick answer. However, my problem resides in the fact that I am developing a framework and I ultimately have to pass to the applications that use this framework a structure, over which I have no control. The interface parameters of method QUERY are like this:
    IV_SCREEN_STRUCTURE_NAME Importing Type CRMT_BSP_SCRSTRUCNAME
    <b>IS_SCREEN_STRUCTURE</b> Importing Type ANY
    As you can see, my framework doesn't have control over the type/content of parameter <i>IS_SCREEN_STRUCTURE</i>. And the application that implement this method cannot know if a time component inside this parameter has been assigned a value (midnight) or if that value is an initial value resulting from the fact that the framework used the technique you suggested to avoid assigning any value (!?!?:-)...
    Cheers,
    Armand

  • Picking up data from infotype 0025

    hi all,
    I want to read some data from infotype in my abap program. In infotype 0025, in the tab 'Appraisals where Appraisee' ,  when I click on the first link, say 'Supervisor appraisal', I get a screen where there is a table . I want to select the value of 'HAP_S_DYNP_3100_TB-COL_01_VALUE_TXT', but HAP_S_DYNP_3100_TB is a structure and COL_01_VALUE_TXT' is a field of a table control, so how to pick up this kind of data in my program???? Please suggest some sample code for that.
    Thanks
    Ribhu

    hi all,
    I want to read some data from infotype in my abap program. In infotype 0025, in the tab 'Appraisals where Appraisee' ,  when I click on the first link, say 'Supervisor appraisal', I get a screen where there is a table . I want to select the value of 'HAP_S_DYNP_3100_TB-COL_01_VALUE_TXT', but HAP_S_DYNP_3100_TB is a structure and COL_01_VALUE_TXT' is a field of a table control, so how to pick up this kind of data in my program???? Please suggest some sample code for that.
    Thanks
    Ribhu

  • Modifying the HR Infotype 25 Screen

    There are 6 fields on the infotype 25 screen we are using for this one client, P0025-PKT01 to P0025-PKT06, that use the data element BUPKT, which in turn is of the domain DEC3 - it is of type P, but it is essentially a whole number up to the hundreds.  Our client requested that these fields be able to accept numbers with 3 decimal places.  So my plan of action was to modify BUPKT to be of domain DEC3_3 (since doing that has no effect on other processes anyway), and then modify the screen fields to accommodate the change.
    This is where I got lost.  I only managed to manually extend the length of the fields, and my gut feeling says that I'm missing something.  Sure enough, I tried to create a record in said infotype, and the process still treats the contents of the fields as whole numbers.  For example:
    KRT01 = 0.70
    PKT01 = 2.95
    PROD1 = KRT01 * PKT01
    PROD1 = 0.70 * 2.95
    PROD1 should be 2.065, but the total says 2, 065!  It interpreted 2.95 as 2, 950 (it's correct in having a length of 6, but it has no decimal point).
    Does the answer to this problem lie in the screen modification, or will this require enhancements?  Or can I just regenerate the entire screen?  Please help me.

    normally the dynpro inherits field attributes from DDIC, so if you changed the data domain it should be OK
    now if you have a problem with values, the easiest way will be to divide them by 1000 each time you handle a calculation on those values...

  • Initial value and value in the database

    Hello world ,
    i want to add initial value with value in the database depend on the date
    for example i have initial value for 30/09/2009
    i and to all it with value in the database in 31/12/2009
    take a look what i did
    PROCEDURE pkd_prem IS
    cursor gr_pkd_prem is select
    SUM(DECODE(mark,'01',FM_mark,TM_mark) A,
    SUM(DECODE(FMS,'01',LS,NS) b
    from fr_treaty_profile ftp, fr_monthly_summary
    where
    (ftp.tpr_cgp_id = fr_monthly_summary.fms_cgp_id )
    AND (ftp.tpr_cmp_id = fr_monthly_summary.fms_cmp_id )
    AND (ftp.tpr_treaty_origin = fr_monthly_summary.fms_treaty_origin )
    AND (ftp.tpr_uw_year = fr_monthly_summary.fms_uw_year )
    AND (ftp.tpr_class = fr_monthly_summary.fms_class )
    AND (ftp.tpr_type = fr_monthly_summary.fms_type )
    AND (ftp.tpr_serial = fr_monthly_summary.fms_serial )
    AND
    (fr_monthly_summary.fms_treaty_origin=:BLK1.EO_ORIGIN) AND
    (fr_monthly_summary.fms_uw_year=:BLK1.EO_UW_YEAR) AND
    (fr_monthly_summary.fms_class=:BLK1.EO_CLASS) AND
    (fr_monthly_summary.fms_treaty_type=:BLK1.EO_TYPE) AND
    ( fr_monthly_summary.fms_treaty_serial=:BLK1.EO_SERIAL)
    AND (FMS_TYPE ='P')
    AND FMS_SERIAL = '01'
    AND (FMS_OFC_ID !='X')
    and (FMS_YEAR =substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),7,4))
    and (FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)) ;
    ---Initial value
    cursor base is select EO_GR_BKD_PREM from FR_EN
    where
    EO_TREATY_ORIGIN=:BLK1.EO_ORIGIN AND
    EO_UW_YEAR=:BLK1.EO_UW_YEAR AND
    EO_CLASS=:BLK1.EO_CLASS AND
    EO_TREATY_TYPE=:BLK1.EO_TYPE AND
    EO_TREATY_SERIAL=:BLK1.EO_SERIAL AND
    EO_YEAR=:BLK1.EO_YEAR;
    A number(18,3);
    B number(18,3);
    v_base number(18,3);
    BEGIN
    open base;
    open gr_pkd_prem;
    fetch gr_pkd_prem into a,b;
    fetch base into v_base;
    :BLK1.EO_GR_BKD_PREM :=nvl(a,0)+ nvl(b,0)+ nvl(v_base,0);
    close gr_pkd_prem;
    close base;
    END;
    the proceudre is correct and the values come as i want
    but here
    FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2))
    suppose i will add from 6 to 9
    the value will come down to add with base value
    but next time i want from 10 to 12
    it will add value 10 to 12 with the base for just period 10 to 12
    i want to keep adding
    if i start from 6 to 9
    then shoud be
    add the value of 6 to 9 to 10 to 12
    but

    look ..
    i created a form and let's say there is one field called Base ..
    and i inert value on that field and saved .
    then
    i created cursor to fetch value from another table
    that value which i fetched from another table must add to past value
    take this scenario
    i started with value 6
    then i fetch by cursor value from 1/1/2010 to 31/3/2010 and that value = 33
    first action
    6+33
    then
    i fecth by using cursor from 1/6/2010 to 30/9/2010 and that value = 2
    the result of first action must add with the last value which is 2
    (6+33) from first action plus(+) 2 and display the result on the secreen

  • What is reason for cl_fpm_factory= get_instance( ) return initial value?

    In DEV system, this piece of code is working fine. However when it moves to Testing system it dump due to cl_fpm_factory=>get_instance( ) return initial value. What could be the reason for this? Thanks!
      data lo_fpm  type ref to if_fpm.
      lo_fpm = cl_fpm_factory=>get_instance( ).
      wd_this->go_message_manager = lo_fpm->mo_message_manager.

    Hi Anthony,
    how sure are you that the DEV and Test system running the same Netweaver SP versions ?.  My doubt is that the test system is not NW7.01 (Ehp-1) . Or some thigs are not enabled in the configuration.
    Regards
    Senthi

  • Incorrect initial value for char 0FISCYEAR in i_t_range in DTP filter prog

    Gurus
    I need your help , I have searched all the threads but could not find anything which can help me resolve this issue.
    I have a filter in DTP as a routine to get the year from system date.
    The program is correct for syntex but when I trigger the DTP I am getting the following message , not sure what needs to be added to my programe.
    Incorrect initial value for characteristic 0FISCYEAR in i_t_range
    Message no. DBMAN889
    appreciate any help I can get to reoslve this ASAP.
    Thanks in advance

    Hi
    Pleae check if you have initialised with a NULL value . "blank/null" is indeed not a valid characteristic value for fiscal period. Fisc.per is of type NUMC which means all characters have to be numerical. The initial value should be "0000000" .
    Thanks,
    Rajesh.
    Please provide points to answers if you find them helpful

  • Incorrect initial value for characteristic 0fiscyear in i_t_range

    Hi,
    While extracting the data from the source DSO to Target I got an error message like '' Incorrect initial value for characteristic 0fiscyear in i_t_range".
    what is the step should i take to resolve this?
    Thanks in Advance.

    Gurus
    I have the same problem with my ABAP code written in DTP filter.
    Can anyone please help what needs to be done , I am getting this error when I try to load the data to cube.

  • What is the purpose of the Initial Value checkbox in SE11?

    Hi,
    When we create database tables using SE11, there is a Initial Value checkbox for the fields that we create. How do we make use of this checkbox?
    For example, after checking the Initial Value checkbox, how do I go about entering the intial value? There isn't a input field for me to do it. Thanks.

    "Initial values" Flag  ---> Indicator that NOT NULL is forced for this field
    Select the flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.
    Please note that fields in the database for which the this flag is not set can also be filled with initial values.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.
    Restrictions and notes:
    The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.
    If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.
    If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well.
    Hope this helps.
    Thanks,
    Balaji

  • Initial value for a dropdown box

    Hello all,
    I have created a web template in the WAD (BI 70) with a dropdown box on a characteristic. A chart is displayed based on the query result. My query is built on an infoset.
    My problem is to populate the filter with an initial value and still let users change the characteristic value in the dropdown (all values for the characteristic is not acceptable in the context) . Also, I don't want the variable screen to show up.
    What is the best approach to achieve this?
    Thanks,
    JL

    In Query Designer you put in your default value in the area to the right in the first pane..
    If you put it on the left hand side, the filter will not be changeable.
    Hope this helps.
    Can give more presise answer if you need it.

Maybe you are looking for