Function module to get holiday class from work schedule for current day

I need to determine what the public holiday class value is for the current day in a user exit.  Is there an SAP function module that can return me this data?  This would be the information that is displayed when pressing the work schedule button from infotype 0007

Function module HOLIDAY_CHECK_AND_GET_INFO is closer to what I need.  This function module returns an X if the day is a holiday.  I will create a Z program and instead of returning an X for a holiday I will return the THOL-KLASS (holiday class) value.

Similar Messages

  • Function module to get the dates from the year and the period

    Is there a function Module to get the dates from the year and the period

    Check with :
    To get last day of period use .
    LAST_DAY_IN_PERIOD_GET.
    To get last of month Use :
    RE_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    LAST_DAY_OF_MONTHS
    ISB_PREVIOUS_PERIOD_DATE_GET
    Thanks
    Seshu

  • ABAP - Function module to get the number of working days between 2 days

    Hi gentlemen,
    I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
    I didn't find anything...
    Has any of you already written a function module to get this ?
    A great thanks in advance.
    Jacques Lagrif

    Hi ,
    you can try this ,
    when you require the number of working days between D1 and D2
    Total No of Days will be
    D2 - D1
    No of holidays between D1 and D2 , use the FM HOLIDAY_GET
    Pass the From date , to date , and the factory calendar to get the of Holidays
    Total no of days - Number of Holidays will your Working days
    Regards,
    Sathya

  • Functional module to get the File from a given Directory

    Hi all,
    I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
    give me good sugestion
    regards
    paul

    Hi Paul,
    Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
    In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
    Check this code.
    REPORT ZSHAIL_SPLITFILE.
    data: it_tab type filetable with header line,
          gd_subrc type i.
    tables: rlgrap.
    data: path type string,
          file_name type string.
    parameters file_nam type rlgrap-filename .
    data: user_act type i.
    at selection-screen on value-request for file_nam.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        WINDOW_TITLE            = 'select a file'
       DEFAULT_EXTENSION       = '*.txt
        DEFAULT_FILENAME        = ''
        FILE_FILTER             = '*.txt'
        INITIAL_DIRECTORY       = ''
        MULTISELECTION          = abap_false
       WITH_ENCODING           =
      CHANGING
        file_table              = it_tab[]
        rc                      = gd_subrc
        USER_ACTION             = user_act
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if user_act = '0'.
    loop at it_tab.
    file_nam = it_tab-filename.
    endloop.
    endif.
    path = file_nam.
    CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
      EXPORTING
        full_name           = path
    IMPORTING
       STRIPPED_NAME       = file_name
      FILE_PATH           =
    EXCEPTIONS
      X_ERROR             = 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.
    at selection-screen.
    message i001(zmess) with file_name.
    Regards,
    SP.

  • Function module to get order data from delivery

    hi ,
    is there any function module to which i can pass the delivery number and get the order number (s) and other data .
    basically i want the order currency.
    pls help.
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 21, 2008 9:44 AM

    Hi Surendra,
    If your requirement is just to retreive the Order number for a given delivery then you can go with following:
    Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
    You can also do the same by using VBFA table.
    Also have a look to the following thread:
    Re: Getting sales order number against Delivery Number
    Hope this will help.
    Regards,
    Nitin.

  • Function Module to get planned Quantity from posting date

    hi,
    i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
    is there any function module which will fetch this data ...
    Edited by: sonal musale on Jun 23, 2008 3:53 PM

    Hi,
    I have also the same problem. Any solution you have for this one?
    Thanks,
    Raymond

  • Function module to get the details from table COEP

    hi all,
    I have to select the data from COEP table based on OBJNR.i don't have  any other key information.so i have to select the data based on OBJNR only.
    can any one please tell me is there any function to get the data from this table.
    Thanks.

    Hi
    Try the fun module
    K_CO_OBJECT_BALANCE_GET
    see the sample select statement for COEP
    clear cobrb_tab.
      refresh cobrb_tab.
      select objnr            " Object No
             rec_objnr1       " Ref Object No
             bureg            " Dostribution Rule
             lfdnr            " Sequence No
             perbz            " Settlement Rule
             konty            " Acct Assign Category
             bukrs            " Company Code
             kostl            " Cost Center
         into table cobrb_tab
         from cobrb
         where kostl in rn_kostl.
      sort cobrb_tab by objnr rec_objnr1.
      delete adjacent duplicates from cobrb_tab comparing objnr.
    Get the Settlement Costs from COEP Table
      clear it_set_tab.
      refresh it_set_tab.
      if not cobrb_tab[] is initial.
        select kokrs            " Controlling Area
               belnr            " Acc Document
               buzei            " Line Item
               perio            " Period Block
               wkgbtr           " Value in CO Curr
               lednr            " Ledger No
               objnr            " Object No
               gjahr            " Fiscal Year
               wrttp            " Actuals
               versn            " Version
               kstar            " Cost Element
               beknz            " Dr/Cr Indicator
               parob1           " Partner Object
           into table it_set_tab
           from coep
           for all entries in cobrb_tab
           where lednr = c_lednr  and
                 wrttp = c_wrttp2 and
                 versn = c_versn  and
                 gjahr = p_gjahr  and
                 objnr = cobrb_tab-objnr and
                 parob1 = cobrb_tab-rec_objnr1 and
                 beknz in (c_o, c_a).
      endif.
    Reward points for useful Answers
    Regards
    Anji

  • Is there any function module to get the data from st06?

    Hi,
    I'm new to this forum.
    I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
    I would like to call it from external program in order to view part of the data available in st06.
    Thanks,
    Erez Gordon.

    have a look at function group SMON.
    Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
    Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM

  • Function Module to get  hierarchy details from a customer account

    Hi Experts,
    There is certain hierarchy maintained among Business partners. We can see that in transaction BPH.
    Now What I require is a function module which takes BP number as input and gives output the
    BP number of child nodes of it . Is there a standard function module for it ?
    Please help me move ahead.
    Thanks in advance

    Hi ram.mahaseth ,
    There are several tables:
    BUT_HIER_NODE
    BUT_HIER_NODE_BP
    BUT_HIER_NODE_D
    BUT_HIER_STRUCT
    BUT_HIER_TREE_D
    BUT_HIER_TREE
    Hope this helps.
    Regards, Kostya Khveshchenik

  • Function module to get posting date from posting year and posting period

    Hi all,
    I need a function module which will return posting date when posting period and fiscal year is passed to it..
    Thanks and regards,
    Puja.

    Hi puja
    try this FM
    this will solve ur problem
    G_POSTING_DATE_OF_PERIOD_GET
    G_POSTING_DATE_OF_YEAR_GET
    FCJ_CHECK_POSTING_DATE
    Cheers
    Snehi Chouhan

  • Function module to get the details (WTGBTR) from table COEP

    Hi all,
    I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want  WTGBTR from COEP Table.
    Right now Iam using select query.But i want to use function module.
    Can any one please tell me is there any function module to get  WTGBTR from COEP table.
    Thanks.

    This'll work:
    SELECT objnr bukrs wtgbtr
      INTO CORRESPONDING FIELDS OF TABLE gt_coep
      FROM coep
      WHERE lednr = '00'                               "<========
        and kokrs = '1000'
        AND kstar IN ('0000810001' , '0000830001')
        AND objnr IN s_objnr
        AND bukrs IN s_bukrs.
    Rob

  • I need a Functional module to get the header material from the component .

    Dear Guru's
    Please help me .
    I need a name of the Functional module to get the header material from the component .
    As in if I put the Component in the Input I should get ALL the Main header materials using this Component.
    Regards,
    Roshan Lilaram Wadhwani.

    This was not answered

  • Function Module to get address from adrc table

    Hi,
    Is there any Function module which is retrieving data from ADRC table by passing address number.
    I tried in SDN and I got address_read but its obsolete.

    Hi,
    Please try this piece of code
    data: wa_addr1_sel like addr1_sel,
    wa_addr1_val like addr1_val.
    clear : wa_addr1_sel, wa_addr1_val.
    wa_addr1_sel-addrnumber = it_adrnr-adrnr.
    call function 'ADDR_GET'
    exporting
    address_selection = wa_addr1_sel
    importing
    address_value = wa_addr1_val
    exceptions
    parameter_error = 1
    address_not_exist = 2
    version_not_exist = 3
    internal_error = 4
    others = 5.
    if sy-subrc eq 0.
    it_addr-adrnr = wa_addr1_val-addrnumber.
    it_addr-name1 = wa_addr1_val-name1.
    it_addr-street = wa_addr1_val-street.
    it_addr-city = wa_addr1_val-city1.
    it_addr-region = wa_addr1_val-region.
    append it_addr.
    clear it_addr.
    endif.
    Regards
    Hiren k.Chitalia

  • Function module to get attribute and value from organisation model

    Hi
    I need a function module to get the attribute and its corresponding values set on the sales org stucture.The export parameter will be the Sales Org Id.
    Please reply ASAP.
    Edited by: prem kumar on Apr 16, 2009 9:37 AM

    Hi Prem,
    If it helps, we use FM RHGA_READ_ATTRIBUTES for that in version 4.
    Kind regards,
    Garcia

  • Function module to EXPORT/IMPORT to/from MEMORY?

    Hi Gurus,
    As EXPORT /IMPORTstatements come under obsolete statements.SO i am getting error in code when i compile using code inspector.
    PLease let me know if there is any function module that does the work of EXPORT and IMPORT.
    It woukl be kind if you explain how to put values in those function module to get desired output.
    Thanks

    Hi ,
      You can use these FM
    Export  to Memory
    C14Z_EXPORT_field_TO_MEMORY
    C14Z_EXPORT_TO_MEMORY
    Import From Memory
    C14Z_IMPORT_FIELD_FROM_MEMORY
    C14Z_IMPORT_FROM_MEMORY
    Regards,
       Seema

Maybe you are looking for

  • Is there a way to use the find/replace tool to select the actual step in the TestStand sequence instead of just listing matching values in the find window?

    The purpose of this is to be able to select many steps that are scattered throughout a sequence so I can change the step type one time.  I could do this now, but it would take me 30 minutes to click through the sequence and select all of the steps be

  • Hard disc does not exist? g series

    hi my notebook (hp pavilion g series 750g, 6 memory) has been rebooting its self then a black screen saying hard disc does not exist, then it won't let me on pc, any idea's please? This question was solved. View Solution.

  • V32 iOS 8 Error: The library can not be updated

    Hi, our customers have this error message after open an app v32: Knihovnu nelze aktualizovat Došlo k chybě in english: The library can not be updated An error has occurred This error is only when iPad is setup to czech language. When we setup to engl

  • HT1386 IOS7 & New Itunes

    Outlook does not have any duplicates in Contacts, Calendar, or Notes yet when synced to IPhone get duplicates in all three Reset Phone, delselected all three and resynced no help. Removed all three from Outlook and synced and all three were now empty

  • Can Developer 6.0 work with Oracle Personal

    I need to config Developer 6.0 on a single computer. So , I installed Oracle Personal 8.03 which works OK. But Developer's intaller refused to share Oracle Home directory prompting for a new one. I haven't found any hints in OP documentation at is it