Very important and urgent - i need info regarding a function module

hi all,
can any one suggest me a function module which calculate the
difference in two dates and give answer in days.
some one suggest me the following function m odule
  CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
       EXPORTING
            beg_da     = wpv_dati
            end_da     = wpv_datf
       IMPORTING
            no_cal_day = wpv_days
Please suggest any other function module.
or i can use this Function module only

Hi,
  U can use the following function  module.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
  EXPORTING
    I_DATUM_BIS                   = date1
    I_DATUM_VON                 = date2
  I_KZ_EXCL_VON              = '0'
  I_KZ_INCL_BIS                 = '0'
  I_KZ_ULT_BIS                  = ' '
  I_KZ_ULT_VON                = ' '
  I_STGMETH                     = '0'
  I_SZBMETH                     = '1'
IMPORTING
    E_TAGE                        = days
EXCEPTIONS
  DAYS_METHOD_NOT_DEFINED       = 1
  OTHERS                        = 2
Reward if useful.
Regards,
Rajesh Akarte

Similar Messages

  • Very urgent help needed in activating a function module

    Hello experts.
    I had a standard report and i copied into an z report. i need to change some field output , and that field is there in a standard function module.so i copied that fun module  into z fun module and stored in a new fun group. Now it is showing the error in the z fun module. include in the fun module is giving the error stating that it is not existing. please help me in coping the standard fun module correctly . please its very urgent.

    Hi,
    You should not copy a Function module alone, as it will have some dependant INLCUDES and global data in TOP include of the function group.
    SO if you want the function module copy the entire Function Group into Z function group.
    Regards,
    Sesh

  • I saved my file as a regular Indesign file, and when I went to open it on a different computer it had a lock on it and will not let me open it. Can someone please explain why this is happening and how to unlock it? It's for a very important and urgent pro

    Please help if you can!

    Assuming the file is stored on a network server, and the "other computer" is on that network as well; with InDesign not running on either, navigate to the folder where the InDesign file is stored and find the lock file (it will have the extension .idlk). Delete it.

  • I'm very new tp SAP ABAP, how to create a function module..V.URGENT

    hi folks,
    I'm very new to sap abap.
    I want to create a function module.
    the following is my requirement.
    by passing(eporting parameters to funtion module from pgm point of view) a field, i want to get(importing parameters from the funtion module, from pgm point of view) some 7 fields(of various tables).
    please also tell me how can code an inner join for tables 5 tables(a,b,c,d,e). i'm joining a on b, b on c, c on d,the problem here is that i can not join d on e as there are no common fields in d and e.
    can i join e and c or b, there are no common fields even in a and e.
    please tell me the solution as soon as possible, this very important and urgent deliverable.
    thanks in advance

    Here is link for creating function modules
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm">Creating Function Modules</a>
    Regds
    Manohar

  • I deleted my note by accident i do have notes on icloud. so i had half the note saved but the other half was very important and hard to right. i restored my ipod on i cloud back up but it still doesnt show i put so much time in that anyway to get it back?

    i deleted my note by accident i do have notes on icloud. so i had half the note saved but the other half was very important and hard to right. i restored my ipod on i cloud back up but it still doesnt show i put so much time in that anyway to get it back?

    How did you delete the Note? If you did a "select all" and "cut", open the Note and shake your iPhone to undo the cut action.

  • I have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    i have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    Try this ..
    On your Mac open System Preferences > iCloud
    Deselect the box next to:  Notes
    Then reselect it.
    Give iCloud a few minutes to re sync the data.
    Other than that, try Time Machine >  http://pondini.org/TM/15m.html

  • Urgent: Problems in Generic Extraction by Function Module

    Hi BW Gurus,
    I am new to SDN and also new to generic extraction using function module. My requirement is to extract long text(142 char) from CRM to BW as the text is not stored in database table I used function module read_text with in another ZXXX function module copy of (RSAX_BIW_GET_DATA_SIMPLE). In my extract structure I used GUID(char,32), Langu, long text(142 char) and 2 placeholders. Text can be extracted by passing STXH table fields(Tdname, Tdid, Tdobject, Tdspars) to read_text as parameters and i also need to use CRMD_ORDERADM_H field GUID(32 char) to compare 1st 32 chars of tdname(70 char) with Guid to select Guids and loop thru this Guids and for each Guid i need to append lines of text to e_t_data but as i donot know ABAP i unable to write the code for this. Through my friends help i wrote code when i check in RSA3 it is displaying the text but when i replicate into BW and load into data target in monitor the status is red with records initially but afterwards it will be red status again with 0 from 0 records for initial load again.when i check on job logs the errors i have are:
    The background job has created a job log file of 2Gb size and it is currently on a infinite loop writing entries into the SAP System Log that it cannot write to the Job log file due to “Error 22 for write/read access to a file” this is because of the datasource i have created. Please find my Function module and if anyone would please correct FM and send me that will be really great.I appreciate it in advance.
    MY Function Module is:
    FUNCTION Z_CRMORDERH_STR_TXT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  YCRM_TEXT_STR OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    ***"  EXCEPTIONS     NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
      Tables: CRMD_ORDERADM_H, STXH.
    Auxiliary Selection criteria structure
    data: l_s_select type srsc_s_select.
    Maximum number of lines for DB table
      Statics: s_s_if type srsc_s_if_simple,
    counter
             s_counter_datapakid like sy-tabix,
    Cursor
             s_cursor type cursor.
    data: i_crmtext type standard table of TLINE .
      types: begin of xsreph ,
              GUID type CRMD_ORDERADM_H-guid,
            end of xsreph.
       data: i_guid type standard table of xsreph.
      data: I_TEXT type STXH-TDNAME.
      data: xempl like  YCRM_TEXT_STR occurs 0 with header line.
      data: t_tab like dd03l-tabname.
    Select ranges
      ranges: l_r_guid for CRMD_ORDERADM_H-guid.
             l_r_connid  for sflight-connid.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      if i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        case i_dsource.
          when 'yCRM_TEXT'.  " for S_SREPH1
          when others.
            if 1 = 2. message e009(r3). endif.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                    i_dsource   "message variable 1
                      ' '.                 "message variable 2
            raise error_passed_to_mess_handler.
        endcase.
       append lines of i_t_select to s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
       append lines of i_t_fields to s_s_if-t_fields.
    we will do our selection based on what is in the p table for the
    infoobject
      else.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        if s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
        LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GUID'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_GUID.
            APPEND L_R_GUID.
          ENDLOOP.
          case i_dsource.
            when 'YCRM_TEXT'.  " for S_SREPH1
              t_tab = 'CRMD_ORDERADM_H'.
          endcase.
          select GUID
          from (t_tab)
          into table i_guid where   PROCESS_TYPE = 'ZACI'  and ( OBJECT_ID < '0000000042').
         select tdname from stxh into i_text where tdobject = 'TEXT'.
         if sy-subrc ne 0.
           message e009(r3).
    this is a typical log call. Please write every error message like this
           log_write 'E'                  "message type
                     'R3'                 "message class
                     '009'                "message number
                     i_dsource   "message variable 1
                     'No master data found'.           "message variable 2
           raise error_passed_to_mess_handler.
         endif.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
         open cursor with hold s_cursor for
         select (s_s_if-t_fields) from CRMD_ORDERADM_H
                                  where GUID in L_R_GUID .
                                   ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
       fetch next cursor s_cursor
                  appending corresponding fields
                  of table e_t_data
                  package size s_s_if-maxsize.
        IF SY-SUBRC <> 0.
         CLOSE CURSOR S_CURSOR.
         RAISE NO_MORE_DATA.
       ENDIF.
    as we are doing this only once can use the select statement.
    ***data: crmtext like tline occurs 0 with header line.
    **data: i_crmtext type standard table of TLINE.
    **data: i_guid type standard table of xsreph.
    data: l_guid type THEAD-TDNAME.
    data: st_guid type xsreph.
    data: st_crmtext type TLINE.
    data: lan type THEAD-TDSPRAS.
    lan = 'E'.
    loop at i_guid into st_guid.
    l_guid = st_guid-guid.
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
       CLIENT                        = SY-MANDT
         ID                            = 'A002'
         LANGUAGE                      = lan
         NAME                          = l_guid
         OBJECT                        = 'CRM_ORDERH'
       ARCHIVE_HANDLE                = 0
       LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        =
       TABLES
         LINES                         = i_crmtext.
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    e_t_data-guid = l_guid.
    loop at i_crmtext into st_crmtext.
    move lan to e_t_data-langu.
    move st_crmtext-tdline to e_t_data-description.
    append e_t_data.
    endif.
    endloop.
    clear: st_guid,l_guid.
    refresh: i_crmtext.
    endloop.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    endif.
    ENDFUNCTION.
    please Gurus as I donot know ABAP i appreciate if anyone would write a FM based on requirement and send me that will be really great this is my request. I gurantee of award points for good answers.
    Regards
    Kishore

    Hi,
    The statement <b>RAISE NO_MORE_DATA</b> should be active (uncommented) in your code. Otherwise, the infinte loop occurs.
    See also, the Siggi's blog:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    BTW, was it your thread here:
    Re: Urgent: problems in extracting Long Text
    Best regards,
    Eugene

  • NEED INFORMATION ABOUT "MAX_TEST" FUNCTION MODULE

    HI ABAPERS,
                      I need information about "MAX_TEST" function module . this function module is used in 4.6 version , now system have been shifted to 6.0.....here in 6.0 version this function module is not prasent.can any one tell me which new function module we can use in place of this function module, without changing the functionality........
             Thanks in advance
    regards,
    SUNIL

    The module is not very sophisticated. Profficiency in Java or ABAP will be a great bonus here. There are plenty of good materials regarding XI on SDN. I suggest to start with step-by-step guides and master all basic integration scenarios
    http://wiki.sdn.sap.com/wiki/display/XI/Step-by-Step+Guides
    Opportunities in industry are not bad also, cause PI is rather popular among customers. The best thing is that it fits any type of customer's business. Integration is demanded almost everywhere.

  • Info Related to function module-RSSEM_CONSOLIDATION_INFOPROV3

    Hi All,
    My Client is experiencing performance issues on our BCS reports. We are using a virtual cube with function module RSSEM_CONSOLIDATION_INFOPROV. they would like to use function module RSSEM_CONSOLIDATION_INFOPROV3 instead, the performance on BCS reports should be enhanced.
    In The help file I have read the following things regarding the function module
    RSSEM_CONSOLIDATION_INFOPROV3   
    I request anybody to pls clear me on this as it is very urgent.
    1. Performance improvement --> there's no need to process the selection conditions anymore
    <b>what does it mean no need to process the selections conditions anymore?</b>
    2. Unused table should be cleared.
    <b>how we maintain  this?</b>
    3. Some data returned from use a hash table instead to avoid this
    Is the function module part of the next support pack upgrade if not what we do to upgrade?
    Pls help me.Very Urgent.
    Thanks in Advance
    S VR

    Hii
    any update plsss
    S VR

  • Need a BAPI or function module to do FMZ1 transaction for funds commitment.

    Hi,
        I need a BAPI or function module to do FMZ1 transaction, please advise.
    Regards
    Fellow ABAPer.

    I think I found it.
    If anyone is searching for it too, we will use these one:
    CO_ZA_AVAIL_CHK_ORDER_MULTI

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • HT1766 Is there anyway I can recover iMessages that we accidentally deleted. Very important and I need them

    It's very important I get them back. I've googled and found "softwares" but I don't know if they really work.

    Unless those messages were part of your last backup, then they are most likely gone and unrecoverable.

  • Need info regarding Oracle UCM Accounts and Security Groups behaviour

    Need information regarding Oracle UCM Accounts and Security Groups behaviour.
    Oracle UCM version: 11.1.1.5.0
    Steps:
    1. Log in with "weblogic" user and created a content with id "content1"
    2. Applied "@acc1(R)" and "TestGroup1" to the cotent created in step 1
    3. Log out
    4. Log in as "acc1user1", the user is not able to see the "content1"
    5. Log out
    6. Log in as "role1user1", the user is not able to see the "content1"
    Account and Group information:
    1. User "acc1user1" is part of "@acc1(R)"
    2. User "role1user1" is part of "role1(R)" and is mapped to "TestGroup1" in UCM
    Expected:
    Both "acc1user1" and "role1user1" should be able to see "content1" as they have at least Read permission.
    Please help me understand why the users are not able to see the content.

    ACLs, like Accounts, are optional security setting which may add on some extra functionality to mandatory security groups. Likewise, the resulting permission is taken as an intersection of SG and ACLs.
    But in the second part the number of set of users is huge (approx say 600)I don't get this completely. Does this mean that those "sets of users" (users who see the same data) are distinct and that there is 600 of such groups?
    If you read thoroughly the manual I sent earlier, there is a recommendation that there should be maximum 50 security groups, and you should use accounts, should this number be exceeded. This means you could have all the documents in one security group (and have one common role with Read permission), but combine it with accounts. ACLs are not a good choice here - their performance and manageability is much worse than of accounts. ACLs are primarily used if you expect security settings to change during the lifetime (e.g. a project manager adds temporarily rights to access an item to another user, and revokes it when the user finishes his or her work).
    Note that accounts as well as permissions of users within accounts can also be mapped externally (from LDAP/AD) and it usually follows some kind of org chart.
    I'd feel more comfortable not to speak about users, security groups, roles, etc., but about some real-life objects and scenarios.

  • Need info regarding infotype 0017.

    Dear Experts,
    I am new to Travel Management.
    In infotype 0017, I need information regarding RGrp M/A Statutory, RGrp M/A Enterprise,EE Grp Expense Type and EE Group Travel Mgt fields.
    I verified few config documents of Travel Management but could not understood the applicability of the above fields. Please help me in this regard.
    Points could be awarded accordingly.
    Regards,
    Dolly

    Hi,
    RGrp M/A Statutory->  Identifies a reimbursement group for meals/accommodations for which the same statutory or pay scale trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Trip costs levels A, B, C according to German Travel Expense Statutes
    Grouping of employees according to pay scale groups
    RGrp M/A Enterprise-> Identifies a reimbursement group for meals/accommodations for which the same enterprise-specific trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Members of the Executive Board
    Managers
    Salaried employees
    Industrial workers
    EE Grp Expense Type -> An employee grouping for trip expense type is a classification of employees for whom these trip expense types are permissible.
    Example
    - Executive Board
    - executive employee
    EE Group Travel Mgt fields-> An employee grouping for Business Trip Management is a classification of employees designed to fulfill the purposes of Business Trip Management.
    Example
    - employee
    - mailman
    - other
    Regards,
    Pramitha.

  • Need info regarding DeliveryRequest class.

    Hi,
    In my program I have used DeliveryManager and DeliveryRequest class to upload a file in server by SFTP.
    My query is , will file get append to the server or it will replace the file in server.
    see below for my code.
    //create DeliveryManager instance for FTP
    DeliveryManager dm = new DeliveryManager();
    log.writeln("create delivery manager instance",1);
    DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_SFTP);
    log.writeln("create request",1);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_AUTH_TYPE,
    DeliveryPropertyDefinitions.SFTP_AUTH_TYPE_PASSWORD);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_HOST,HostName);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_USERNAME,UserName);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_PASSWORD,Password);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_REMOTE_DIRECTORY,OutputDirectory);
    req.addProperty(DeliveryPropertyDefinitions.SFTP_REMOTE_FILENAME,FileName);
    req.setDocument(InputDirectory+FileName);
    log.writeln("Submited The FTP request For FileName:"+FileName+" HostName:"+HostName+" ........",1);
    DeliveryResponse dr=req.submit(); //File transfer FTP request
    req.close();
    log.writeln("Successfully FTPed..",1);

    Why not simply try it out (with a test.txt file, not something important) and be 100% sure? Whatever anyone here tells you can be a brutal lie so you need to check for yourself what is said anyway.

Maybe you are looking for

  • How many devices can icloud support?

    Is there a limit to how many iPads i can synch with iCloud? I want to synch 5 iPads (1's & 2's) with the same info, apps and documents from 1 iMac. Can i 'secure' the iCloud transfers? Thanks in advance! kind regards.

  • How to substitute a month abbreviation for the posting period in a query

    Hi, I have a query that lists the Posting Period (0FISCPER3) characteristic in the rows and key figures across the columns.  Is there a way to display the Posting Period as a month abbreviation instead of a number?  So for example, instead of display

  • Removing a quote sign from data transfer

    Is it possible to remove specific characters while transferring data from the PSA table to subsequent data targets? Maybe there a BW formula that enables this to happen? In my case, we have created a generic extractor to load statistical data from a

  • In IPCC express,last 4 month report i;m not getting in historical report. in report it shows blank.

    Hi all, we are using IPCC express 5.0 with high availability and call manager 6.0. Now i;m facing an issue in historical reports.i'm not getting last 4 month reportin the historical report and the report is blank. when i troubleshooted, i checked for

  • Airport Extreme streaming iTunes without Internet

    Hello.  I no longer have Internet access in my home. I do still have a MacBook Pro streaming 2TB of iTunes media through an AirPort Extreme to two AppleTV's, and 5 iPhones. Music, movies, and TV shows are slow to load since the loss of the introwebs.