Need a function module for fetching description of fields in a table

Hi experts,
I have a requirement where i need to fetch the descriptions of all the fields of a given database table.
I am looking for a function module that gives the descriptions of a field. Please suggest a way.
Points will be rewarded.
Thanks in advance.

Use FM DDIF_FIELDINFO_GET to get information about a field. Pass table name and Fieldname.
Use FM DDIF_FIELDLABEL_GET if you need only the field label.
Use FM DDIF_TABL_GET for getting information of all fields of a particular table.
Regards,
Lakshmi.
Edited by: Santhanalakshmi V on Jun 11, 2008 5:26 PM

Similar Messages

  • Need a Function Module for fetching the prior date-Urgent!!

    Hi All,
         I need a function module which will give the prior date with respect to the no: of days days that are entered as input.
    Can anyone please help me to fing one function module which acts as the above.
    Required very urgently!!!
    Thanks and Regards,
        Neethu

    Hi Neethu,
    Please run the report 'ZRECTIFY_FM_DOCUMENTS' in your system.
    Before running the report, create the following selection texts for the parameters/select-options as given below:
    P_BUKRS:  Company code
    S_GJAHR:  Fiscal year
    S_BELNR:  FI document no.
    P_TEST:   Test run
    For More information please refer <b>SAP Note: 309619</b>
    Best Regards,
    Johnny.

  • Function module for detailes description of Order and long text in task

    Hello gurus,
                       please help me with Function module for detaile description of Order and long text in task list(operation Tab)?
    regards,
    YK

    Hi, 
    You should be able to read the Order short text directly from table AUFK. The Order long text or task list long text can be read by using FM "Read_text". Use Goto> Header on every long text screen to identify the parameters that need to be passed hen using this FM.
    Regards
    Narasimhan

  • I need a function module for processing idoc

    i need a function module that can be used for processing of idocs. The name of the fm should be Z_AS4_IDOC_INPUT_SHPMNT you should create functiongroup ZAS4 as copy of group ZS40. The functionmodule should be build on the basis of Z_S_IDOC_INPUT_ZSDELV.
    Messagetype: ZASHPMNT
    Idoctype: SHPMNT05
    Partner: ASSIST
    The purpose is  to check the delivery number in Segment E1EDL20, to find the invoice in the documentflow and to select an message record of this invoice in tha table nast.
    plz help..
    <THREAD LOCKED. This is a forum for solving problems, not for getting other people to do your work. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting any further questions.>
    Edited by: Mike Pokraka on Oct 15, 2008 4:13 PM

    great work done in copy /paste all your functional requirement here.
    Now search and get a primer on ALE / IDOCs processing and start from there

  • Need SMD function module for business partner in SRM

    Hi Gurus,
    I am looking for standard Master Idoc create SMD function module for business partner in SRM.
    I need to send an Idoc from SRM to ECC based on change pointers i.e. whenever a business partner is changed in SRM. So there are standard function modules *smd* available for other data but i am not able to find any FM for busienss partner.
    Please suggest if anyone has came accross such scenario.
    Thanks,
    Ravindra

    Got it

  • Function module for  Fiscal period ( monat field name)

    Hi ,
    please suggest the function module for (monat) Fiscal period. our reqirement is default to previous accounting period from the current month.
    Thnks
    Srinivas

    Hi,
    Refer to the following code:
    DATA: LV_FISCAL_YEAR_VAR(2) TYPE C,
               LV_PERIOD LIKE T009B-POPER.
    CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
          EXPORTING
            COMPANY_CODE           = S_BUKRS-LOW
          IMPORTING
            FISCAL_YEAR_VARIANT    = LV_FISCAL_YEAR_VAR
          EXCEPTIONS
            COMPANY_CODE_NOT_FOUND = 1
            OTHERS                 = 2.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            I_DATE               = P_BUDAT
    *       I_MONMIT             = 00
            I_PERIV              = LV_FISCAL_YEAR_VAR
         IMPORTING
           E_BUPER              = LV_PERIOD
    *       E_GJAHR              =
         EXCEPTIONS
           INPUT_FALSE          = 1
           T009_NOTFOUND        = 2
           T009B_NOTFOUND       = 3
           OTHERS               = 4

  • Need a Function Module for Week Calculation

    Dear Experts,
      I want a function module which calculate the week number.
      Suppose for date 04.05.2010
      week is 19...........
       i want to fetch through function module.
    i have already tried function module like GET_WEEK_INFO_BASED_ON_DATE & DATE_GET_WEEK
      throgh both function module output is come out is 18.
      but i need 19.
      when i pass 02.01.2010
    then it giving 53 week of 2009.
    plz. help me as soon as possible.
    Thanks,

    Jan 2 2010 was indeed 53rd week of 2009, so SAP FMs are returning right value. I would strongly recommend to consult your functional consultant before assuming Jan1 2010 as week 1 of 2010.
    [quote from wikipedia|http://en.wikipedia.org/wiki/ISO_8601#Week_dates]
    'If 1 January is on a Monday, Tuesday, Wednesday or Thursday, it is in week 01. If 1 January is on a Friday, Saturday or Sunday, it is in week 52 or 53 of the previous year (there is no week 00). 28 December is always in the last week of its year.'
    Regards,
    Pawan.
    Edited by: Pawan Kesari on May 4, 2010 4:56 PM

  • Need standard Function Module for Get price from KONP

    Hi All,
    I need to code for the following logic
    1) Select access sequence code from T685 (field KOZGF)
    2) Using this code get an access sequence tables from table T682I(field KOTABNR). There is a number in this field which is a table name if to add letter 'A' before it. This table name is a table where you can find condition records. Every condition table has got field 'KNUMH' which is a reference to condition rate table.
    3) Select condition rate from table KONP (field KBETR)
    4) Select scale rates if you are using them from table KONM (field KBETR).
    Just want to ensure, if there is any standard FM which can help in above logic.I got a FM 'SD_COND_ACCESS'. But not sure, how it can help me?
    Thanks in advance.

    Thanks Anji for your quick reply.
    I do have Access Sequence with me, it is Z011. here i am writing more details, I do have material number.Here article means Materail number.
    o     Determine the merchandise category for the article in the list from MARA-MATKL
    o     Determine the department for the article from first 3 characters of MARA-PRDHA
    o     Determine the vendor for the article from EINA-LIFNR where EINA-MATNR = article in list and EINA-RELIF = ‘X’
    o     Now use the access sequence Z011 (table T682I) to determine the ‘A’ tables and sequence in which in these table must be read for determining the condition records.
    o     Use table T682Z to determine which fields must be used to read the ‘A’ tables above (in T682I).
    o     The ‘A’ tables must be read using condition types Z006 (margin) and Z007 (discount) where the Order Book effective date is between the valid-from and valid-to dates in the A- table, and in the sequence according to table T682I. When a condition record is found, the program must stop reading the subsequent tables, and determine the discount or margin from table KONP-KBETR, where KONP-KNUMH = A table-KNUMH.
    &#61607;     If the condition type is Z006, KONP-KBETR is positive. For condition type Z007, KONP-KBETR is negative.
    &#61607;     Divide KONP-KBETR by 10 to give KBETRX. Retain sign in KBETRX.
    &#61607;     Calculate the discounted / price with margin as follows:
    (1 + (KBETRX/100)) * wholesale price.
    Is it possible to get above logic by standard FM.
    Message was edited by:
            Vipin Nagpal

  • Need a function module to read some std. fields in service process in CIC

    Hi All,
        Process is -
    > user creating service process doc. in/from CIC (win client). SAP CRM 3.1 Version.
    Under service document's interaction record there are few fields (category, priority, reason, status, result). Using FM: crm_order_read, am able to read/find category, priority & status. But am not able to read/find reason & result. Can you please help me for this which function module i need to use. Or is there any other method is there to find out.
    Sunil

    Hi Sunil,
    You would find the reason data in ET_SERVICE_OS output parameter of CRM_ORDER_READ.
    Go to ET_SERVICE_OS ->OSSET ->SUBJECT-> CODEGRUPPE, CODE, KURZTEXT, CODETEXT.
    Hope this helps!
    Regards,
    Saumya

  • How can create a function module for currency and quantity fields

    hi,
    i want to create a function module with some fields.when i activated it give some errors for 
    netpr,menge,wemng  fields(currency, quantity fields).error is it asks for reference fields. 
    please send me solution for it.
    sreenu.

    Hi Sreenu,
    While creating CURRENCY/QUANTITY fields in the DataBase Table, you have to enter a REFERENCE TABLE and a REFERENCE FIELD to the field.
    For that, after entering the field name and the data type in the correcponding columns, you have to place the cursor on the data type of the required field and click the CURRENCY/QUANTITY FIELDS tab. You will find two columns called REFERENCE TABLE and a REFERENCE FIELD.
    you have to enter a reference table in which a currency/quantity field is used and a reference field which is a currency/quantity field in that table.
    For Example, below is the table details.
    FIELD DATATYPE LENGTH DEC.PLACES REF.TABLE REF.FIELD
    1.SNO     CHAR 5
    2.AMOUNT  CURR 10     2          T001      WAERS
    3.NOS     QUAN 5                 KNA1      /VSO/R_PAL_UL
    Here Field 2(AMOUNT) is a CURR field whose Ref. Table is T001 and Ref. Field is WAERS and Field 3(NOS) is a QUAN field whose Ref. Table is KNA1 and Ref. Field is /VSO/R_PAL_UL.
    Hope this will help you.
    Regards,
    Vaitheeswaran

  • To create bapi?(function module for bapi i.e. checks and update table)

    Hi all,
      I want to know how to create BAPI?. means in function module how i hv to put checks and how i will update database table.
    thanks and regards
    sg

    BAPI STEP BY STEP PROCEDURE: -
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    BAPI Programming guide: -
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    BAPI user guide: -
    http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
    Example:-
    http://www.erpgenie.com/abap/bapi/example.htm
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • I need a function module for covert TRIP START DATE to TRIP FISCAL YEAR

    Actually my req is
    TRIP START DATE (z object) is coming from TRIP MASTER DATA TABLE.
    based on TRIP START DATE I have to update the fields like
                       1.TRIP FISCAL YEAR,
                       2.TRIP CALENDER YEAR,
                       3.TRIP FISCAL YEAR PERIOD
                       4.CALENDER MONTH
    in the cube.
    my FISCAL YEAR START from JULY 1st to JUNE 30th.
    i need a code for update rules.
    please help me out. its very urgent.
    Thanks in Adv.

    Hi Satya,
       Check these FM.
    GM_GET_FISCAL_YEAR
    'FTI_FISCAL_YEAR_MONTH_GET'
    DATE_GET_WEEK
    MC_PERIO_CONVERT_TO_WEEK_MONTH
    UMC_FISCPER_TO_CALQUARTER
    GET_CURRENT_YEAR
    'GET_CURRENT_YEAR' or FM 'FTI_FISCAL_YEAR_MONTH_GET'
    You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.
    CALL FUNCTION 'GET_CURRENT_YEAR'
    EXPORTING
    BUKRS = '1000' " Company Code
    DATE = SY-DATUM " Date to find fiscal year for
    IMPORTING
    CURRM = w_currm " Current Fiscal Month
    CURRY = w_curry " Current Fiscal Year
    PREVM = w_prevm " Previous Fiscal Month
    PREVY = w_prevy. " Previous Fiscal Year
    Enter the date you need in the place of sy-datum.
    FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
    Kindly reward points by clicking the star on the left of reply,if it helps.
    Regards,
    Vijay.

  • Need a function module for commit

    Hi Experts,
    I have a requirement of displaying a PO report in alv and when the user clicks the po it showed navigate to ME23N to display the PO.
    Here the user can go in change mode to change some details in po, and when he returns back, the report should show the changes in the PO.
    I am able to update the report once the user return back to the report from ME23N.
    But only thing is there is a lag(5 Secs) of updating the database table when the user saves the PO.
    So we need to commit once the user return to the report and then fetch the data from database.
    I tried to use the " Commit work Statement" but it does't update as early.
    can some one please telll me some commit Fucntion module which can update the ME23N related tables qiuckly.?
    Regards,
    Venkatesh.

    >
    kartik tarla wrote:
    > since the same answer is already given above there's no need to post again.
    Especially when that answer is wrong...
    As we talk about a standard transaction here, the COMMIT is included in the standard transaction, so it does not make any sense to do it once more in an FM, or directly in the ABAP program (not mentioning that the LUW is closed already, so there is nothing to commit...)
    On the other hand, the replies with WAIT UP TO ... are very strange, because now the time is 5 seconds, but next time it could be 7 seconds, who knows... this is not a stabile solution.
    The only reply is worth considering is the one from Thomas!

  • Function module for sundays in a month

    hai all,
    i need a function module for calculating noof sundays in a month

    Hi Satya,
    Please check this code which is checked for syntax also. Just copy and paste the same in abap editor and check the output.
    Calculation of number of sundays ****
    DAta : month1(2) type c,
           week1 type i,
           date1 type sy-datum,
           val1 type sy-datum,
           day1 type SCAL-INDICATOR,
           no_sundays type i.
    week1 = 5.
    date1 = '20060502'.
    *- Function Module to fetch the Last day of the Month
    CALL FUNCTION 'LAST_DAY_OF_MONTHS'
    EXPORTING
    DAY_IN = date1
    IMPORTING
    LAST_DAY_OF_MONTH = VAL1.
    *- Function Module to get the day of the week
    CALL FUNCTION 'DATE_COMPUTE_DAY'
    EXPORTING
    DATE = VAL1
    IMPORTING
    DAY = DAY1.
    *- Calculation of number of sundays
    month1 = val1+6(2).
    write : / month1.
    if month1 = 31.
    if DAY1 <= 2 or DAY1 = 7.
    no_sundays = week1.
    else.
    no_sundays = week1 - 1.
    endif.
    elseif month1 = 30.
    if DAY1 = 1 or DAY1 = 7.
    no_sundays = week1.
    else.
    no_sundays = week1 - 1.
    endif.
    elseif month1 = 29.
    if DAY1 = 7.
    no_sundays = week1.
    else.
    no_sundays = week1 - 1.
    endif.
    elseif month1 = 28.
    no_sundays = 4.
    endif.
    write : / no_sundays.
    If found helpful, please do reward.

  • Function Modules for Actual, Plan, Budget Cost over internal orders

    Dear All,
    I need a function module for getting the Actual, Plan, Budget Costs for the internal orders assigned.
    I want to fetch the cost related to internal order which is assigned to project C projects in PLM.

    hai tehre are no such funcion moduels
    u have to select from bpge and bpja tables
    and sum up them
    afzal

Maybe you are looking for

  • Open Data Unit Question

    Has anyone been able to retrieve parent members when using the new user defined list functionality within the OpenDataUnit function? Set DataUnit=HS.OpenDataUnit(A{MyCashFlowList}.I#[ICP Top].C1#TOTC1.C2#[None].C3#[None].C4#[None]) The user defined l

  • Feature Request - My idea for a Today Screen...y​our thoughts??

    Submitted this to Palm as a feature request. Curious what others think about the idea. I know there are apps such as Active Home Screen (AHS) being tested and developed, but my approach would be contained within WebOS, thus not dependent upon running

  • My skypein number suddenly doesn't work!

    Dear Moderator (or whoever can help): I have been using the skype number +852 81926138 and it has been working just fine for a little more than 3 months. All in a sudden, I try calling myself using my landline and a long sounding (i.e. not working) t

  • Web Services do not work in NSW2004S ABAP Sneak Preview

    Guys, I can't connect to the XMLA service (even though it's active in SICF) in a NW2004S ABAP Sneak Preview. Can you confirm that web services are not available in the Preview?. Will they work if i apply a patch the the SNeak Preview? Please let me k

  • Listener configuration with service guard

    Hello We plan to work here with HP service guard on a cluster (oracle version 7.3 and hp UX 11). We want to distribute databases accross the nodes of the cluster and let them protected by service guard. Here's my main question. I have a cluster with