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

Similar Messages

  • 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 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.

  • 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

  • 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

  • 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!

  • 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

  • Function Module For Item Level Details of a Sales Order

    Hi Guys,
    I have to get the item level details for a particular sales document no ..I want to know if there is any function module existing for the same.
    Also I need any function module for getting the contact information such as contact form (KNVK-ANRED),contact name(KNVK-NAM1),contact name(KNVK-NAMEV),Contact number (KNVK-TELF1).
    Please let me know if anyone is aware of it.
    Thanks in Advance,
    Mayank

    <b>SD_SALES_DOCUMENT_READ</b> Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties)
    <b>SD_SALES_DOCUMENT_READ_POS</b> Reads sales document header and item material: tables VBAK, VBAP-MATNR
    <b>SD_DOCUMENT_PARTNER_READ</b> partner information including address. Calls SD_PARTNER_READ
    <b>SD_PARTNER_READ</b> all the partners information and addresses
    <b>SD_DETERMINE_CONTRACT_TYPE</b>
    In: at least VBAK-VBELN
    Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT
    <b>SD_SALES_DOCUMENT_COPY</b>
    <b>RV_ORDER_FLOW_INFORMATION</b> Reads sales document flow of sales document after delivery and billing
    SD_SALES_DOCUMENT_SAVE create Sales Doc from the copied document
    SD_SALES_DOCUMENT_ENQUEUE to dequeue use DEQUEUE_EVVBAKE
    RV_DELIVERY_PRINT_VIEW Data provision for delivery note printing
    SD_PACKING_PRINT_VIEW
    SD_DELIVERY_VIEW Data collection for printing
    called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW
    RV_BILLING_PRINT_VIEW Data Provision for Billing Document Print
    regards
    vinod

  • Function Modules for Data and Time

    Hi all,
              I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
    Thanks in advance

    Hi Ranjith,
    i think this will b usefull for you..
    SAP Bar Chart Function Modules and what they are used for
    Function module
    Used for
    BARC_GRAPHIC_PBO
    Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
    BARC_GRAPHIC_PAI
    Analyzing data returned by the graphic
    BARC_SET_TIME_AXIS
    Setting start and end of time axis
    BARC_SET_OPTIONS
    Setting options
    BARC_ADD_CHART
    Creating a chart
    BARC_SET_CHART_ATTRIB
    Setting chart attributes
    BARC_ADD_SECTION
    Creating a section on the time axis
    BARC_SET_SECTION_ATTRIB
    Setting section attributes
    BARC_ADD_RIBBON
    Adding a ribbon to the time axis
    BARC_SET_RIBBON_ATTRIB
    Setting attributes for ribbons in the chart
    BARC_ADD_GRID
    Adding a time grid
    BARC_SET_GRID_ATTRIB
    Setting grid attributes
    BARC_ADD_LAYER
    Adding a layer (graphic elements)
    BARC_SET_LAYER_ATTRIB
    Setting layer attributes
    BARC_ADD_LINE
    Adding a line
    BARC_ADD_CALENDAR
    Creating a calendar
    BARC_SET_CALENDAR_ATTRIB
    Setting attributes for a calendar
    BARC_ADD_TIME_PROFILE
    Creating time profiles
    BARC_SET_TIME_PROFILE_ATTRIB
    Setting attributes for time profile
    BARC_ADD_INTERVAL
    Adding a time interval
    BARC_SET_INTERVAL_ATTRIB
    Setting time interval attributes
    BARC_ADD_TIME_OBJECT
    Creating a time object
    BARC_CONVERT_DATE
    Creating a date string in bar chart format
    BARC_REVERT_DATE
    Converting a date string in bar chart format to date and time
    BARC_ADD_DATELINE
    Creating a date line
    BARC_SET_DATELINE_ATTRIB
    Setting dateline attributes
    BARC_GET_PROFILE_CONTENTS
    Obtaining profile contents for customizing a chart
    BARC_GET_COLUMN_WIDTH
    Selecting new column width
    BARC_SET_COLUMN_WIDTH
    Setting the column width
    BARC_GET_TEXTINDEX
    Obtaining the text index of a field
    BARC_SET_LABELS
    Positioning the chart display
    BARC_SET_COLUMN_ATTRIB
    Setting column attributes
    BARC_SET_ROW_ATTRIB
    Setting row attributes
    BARC_SET_ROW_HEIGHT
    Setting the line height
    BARC_SET_MAXCHARTS
    Setting the maximum number of charts sent
    <b>If its usefull reward points
    </b>

  • Problem with Time stamp function module for converting US to Japan

    Hi All,
    I need standard function module for converting US Timestamp to Japan, Can any one let me know is there any standard function modules.
    thanks in advance!
    Regards,
    Kalidas.T
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:29 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM

    Try this way:
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    <tst> is of type P(8) or P(11) with 7 decimal places
    <tz> of type C(6)
    Refer to help.sap.com for more details.

  • Function Module for Start time and End time

    Hi Experts,
    I need a function module for getting particular Work schedule rule start time and endtime and further details by passing personnel number and day.
    Thanks in advance.
    Sunil

    FYI - https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5338428
    Thanks,
    SK

  • 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 module for reading payroll results

    HI,
    I need a function module for reading payroll results RT table.
    Import parameters are personal number, payroll area, and payroll period.
    Export should be RT table.
    Regards,
    Wasim Ahmed

    Hai Wasim
    Check the following Code
    data: payroll_cluster like t500l-relid.
        call function 'PYXX_READ_PAYROLL_RESULT'
             exporting
                  clusterid                    = payroll_cluster
                  employeenumber               = pernr-pernr
                  sequencenumber               = payroll-evp-seqnr
                READ_ONLY_BUFFER             = ' '
                READ_ONLY_INTERNATIONAL      = ' '
                CHECK_READ_AUTHORITY         = 'X'
           IMPORTING
                VERSION_NUMBER_PAYVN         =
                VERSION_NUMBER_PCL2          =
             changing
                  payroll_result               = payroll_us
            exceptions
                 illegal_isocode_or_clusterid = 1
                 error_generating_import      = 2
                 import_mismatch_error        = 3
                 subpool_dir_full             = 4
                 no_read_authority            = 5
                 no_record_found              = 6
                 versions_do_not_match        = 7
                 others                       = 8
        if sy-subrc <> 0.
          if sy-subrc <> 0.
            write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
            write: /'zu Personalnummer'(008), pernr-pernr,
                    'bei Sequence-Number'(012),
                     payroll-evp-seqnr.
            write: /  'Fehlercode ='(004), sy-subrc.
          endif.
        endif.
    Thanks & regards
    Sreenivasulu P

  • Function Modules for Order Settlement

    Hi,
    I need simulate the transaction KO88 for Order Settlement with a function module but without batch input. Please, somebody can tell me which function module I can use and give me a example?
    Also, I need another function module for order release...
    Thanks in advance,
    Regards,
    Irina

    Here`s the way to find out how its using ...
    GO to TR.SE93-> give "KO88" 0>  click display
    Double click program name and find "call fucntion" when list come up "serach "Settlement" . You`ll get idea.
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

Maybe you are looking for