Data Upload into PD Module

Dear All,
Could anyone please let me know how to upload data into PD module.
I need to create Upload data for different KRA's.
Thanks & Regards,
Satya.

Hi,
I am handling PD as whole module in one of my project.
Can you please tell me what are the various templates for data uploading used in this PD module and for which processes?
Regards,
Milind

Similar Messages

  • Master data upload into SAP system

    Hello,
    I want to know if there is any standard method to upload material master, customer master, vendor master and finance master data into SAP system.
    I am not referring to LSMW's, BDC's and using BAPI's. I am aware of standard programs like RMDATIND for material master upload, RFBIDE00 for customer master upload and RFBIKR00 for vendor master upload. But these are using direct input method and SAP recommends this only for testing purpose. I am not sure if this could be really used in actual live scenarios.
    From some other posts in the forum, I came to know about some transactions like BDLR, SXDB and BMVO. Can some one tell me how to use these T.Codes?
    If some one has any detailed documentation on these T.codes or in general standard master data upload techniques please send it to [email protected]
    Thanks in advance,
    CMV

    Hi,
    Define the following attributes, using the F4 input help and F1 field help:
    Report
    Name of a registered program for this program type
    Variant
    You can only specify a variant with programs that are started directly.
    With direct input, data from the data transfer file undergoes the same checks as with the online transaction and is then transferred directly into the SAP System. The database is updated directly with the transferred data.
    For the documentation of other transactions please refer the correponding program documentation..which is more helpful,
    <b>Reward points if helpful,</b>
    Regards,
    jinesh

  • Xml data upload into tables using loader

    Hi,
    I have to load XML file data into multiple tables using sqlloader. i wrote a cotrol file to execute this ,but i was not able to load the data into multiple tables at the same time, first loading table in control file is able to load the data ,rest of the load is giving error,please refer the below control file and log. Help me with your great efforts.
    Have a great day!
    Control file:
    LOAD DATA
    TRUNCATE
    INTO TABLE Derivative_Security
    WHEN DERIVATIVESECURITYID != ' '
    FIELDS TERMINATED BY '</DerivativeSecurity>' optionally enclosed by '"'
    TRAILING NULLCOLS
    DUMMY1 filler char(50000) Terminated by '<DerivativeSecurity ',
    DUMMY2 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157Level="' and '"',
    DUMMY3 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157MVAdjustable="' and '"',
    DUMMY4 filler char(200) Terminated by WHITESPACE enclosed by 'OriginalMV="' and '"',
    DUMMY5 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157MVDelta="' and '"',
    DUMMY6 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157AdjustedMV="' and '"',
    DUMMY7 filler char(200) Terminated by WHITESPACE enclosed by 'PLCurrency="' and '"',
    DERIVATIVESECURITYID Terminated by WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
    METDERIVATIVEID Terminated by WHITESPACE enclosed by 'MetDerivativeID="' and '"',
    MUREXTRANSNUMBER Terminated by WHITESPACE enclosed by 'MurexTransactionNumber="' and '"',
    DUMMY8 filler char(200) Terminated by WHITESPACE enclosed by 'Trader="' and '"',
    DUMMY9 filler char(200) Terminated by WHITESPACE enclosed by 'BuySell="' and '"',
    DETAILTYPE Terminated by WHITESPACE enclosed by 'DetailType="' and '"',
    DERIVATIVETYPE Terminated by WHITESPACE enclosed by 'DerivativeType="' and '"',
    AL_MANAGEMENTSIDE Terminated by WHITESPACE enclosed by 'AL_ManagementSide="' and '"',
    COUNTERPARTYCODE Terminated by WHITESPACE enclosed by 'CounterpartyCode="' and '"',
    COUNTERPARTYNAME Terminated by WHITESPACE enclosed by 'CounterpartyName="' and '"',
    CURRENCYCODE Terminated by WHITESPACE enclosed by 'CurrencyCode="' and '"',
    DUMMY10 filler char(200) Terminated by WHITESPACE enclosed by 'Coupon="' and '"',
    DUMMY11 filler char(200) Terminated by WHITESPACE enclosed by 'FixedFloatingIndicator="' and '"',
    DUMMY12 filler char(200) Terminated by WHITESPACE enclosed by 'IndexMultiplier="' and '"',
    DUMMY13 filler char(200) Terminated by WHITESPACE enclosed by 'IndexName="' and '"',
    DUMMY42 filler char(200) Terminated by WHITESPACE enclosed by 'Margin="' and '"',
    DUMMY14 filler char(200) Terminated by WHITESPACE enclosed by 'Comment11="' and '"',
    DUMMY15 filler char(200) Terminated by WHITESPACE enclosed by 'Comment12="' and '"',
    DUMMY16 filler char(200) Terminated by WHITESPACE enclosed by 'Comment13="' and '"',
    DUMMY17 filler char(200) Terminated by WHITESPACE enclosed by 'Comment21="' and '"',
    DUMMY18 filler char(200) Terminated by WHITESPACE enclosed by 'Comment22="' and '"',
    DUMMY19 filler char(200) Terminated by WHITESPACE enclosed by 'Comment23="' and '"',
    DUMMY20 filler char(2000) Terminated by WHITESPACE enclosed by 'TradeComment="' and '"',
    DUMMY21 filler char(200) Terminated by WHITESPACE enclosed by 'OptionCallPut="' and '"',
    DUMMY22 filler char(200) Terminated by WHITESPACE enclosed by 'OptionType="' and '"',
    DUMMY23 filler char(200) Terminated by WHITESPACE enclosed by 'SettleType="' and '"',
    DUMMY24 filler char(200) Terminated by WHITESPACE enclosed by 'RefISIN="' and '"',
    DUMMY25 filler char(200) Terminated by WHITESPACE enclosed by 'RefObligation="' and '"',
    DUMMY26 filler char(200) Terminated by WHITESPACE enclosed by 'Sensitivity="' and '"',
    DUMMY27 filler char(200) Terminated by WHITESPACE enclosed by 'EffectiveConvexity="' and '"',
    DUMMY28 filler char(200) Terminated by WHITESPACE enclosed by 'Vega="' and '"',
    DUMMY29 filler char(200) Terminated by WHITESPACE enclosed by 'NextResetDate="' and '"',
    DUMMY30 filler char(200) Terminated by WHITESPACE enclosed by 'LastResetDate="' and '"',
    EFFECTIVEDURATION Terminated by WHITESPACE enclosed by 'EffectiveDuration="' and '"',
    DUMMY31 filler char(200) Terminated by WHITESPACE enclosed by 'Instrument="' and '"',
    DUMMY32 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerCode="' and '"',
    DUMMY33 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerName="' and '"',
    DUMMY34 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerREDCode="' and '"',
    DUMMY35 filler char(200) Terminated by WHITESPACE enclosed by 'Strategy="' and '"',
    DUMMY36 filler char(200) Terminated by WHITESPACE enclosed by 'StrikePrice="' and '"',
    MATURITYDATE Terminated by WHITESPACE enclosed by 'MaturityDate="' and '"',
    DUMMY37 filler char(200) Terminated by WHITESPACE enclosed by 'TickerSymbol="' and '"',
    DUMMY38 filler char(200) Terminated by WHITESPACE enclosed by 'MetPay="' and '"',
    DUMMY39 filler char(200) Terminated by WHITESPACE enclosed by 'MetRec="' and '"',
    DUMMY40 filler char(200) Terminated by WHITESPACE enclosed by 'Payrec="' and '"',
    DUMMY41 filler char(200) Terminated by WHITESPACE enclosed by 'RiskSection="' and '"',
    DUMMY54 filler char(200) Terminated by WHITESPACE enclosed by 'HedgedItem="' and '"',
    DUMMY43 filler char(200) Terminated by WHITESPACE enclosed by 'ResetFrequency="' and '"',
    DUMMY44 filler char(200) Terminated by WHITESPACE enclosed by 'ResetFrequencyNumber="' and '"',
    DUMMY45 filler char(200) Terminated by WHITESPACE enclosed by 'PaymentFrequency="' and '"',
    DUMMY46 filler char(200) Terminated by WHITESPACE enclosed by 'PaymentFrequencyNumber="' and '"',
    DUMMY47 filler char(200) Terminated by WHITESPACE enclosed by 'CapFloorCoupon="' and '"',
    DUMMY48 filler char(200) Terminated by WHITESPACE enclosed by 'RefIndexRate="' and '">',
    DUMMY50 filler char(1000) enclosed by "<Classification=" and "/>",
    DUMMY51 filler char(1000) enclosed by "<Classification=" and "/>",
    DUMMY52 filler char(1000) enclosed by "<Classification=" and "/>",
    DUMMY53 filler char(1000) enclosed by "<Classification=" and "/>"
    INTO TABLE DERIVATIVE_POSITION
    WHEN PORTFOLIOCODE != ' '
    FIELDS TERMINATED BY '</NewDataSet>' optionally enclosed by '"'
    TRAILING NULLCOLS
    DUMMY1 filler char(65000) terminated by '<DerivativePosition ',
    DERIVATIVESECURITYID TERMINATED BY WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
    PORTFOLIOCODE TERMINATED BY WHITESPACE enclosed by 'PortfolioCode="' and '"',
    LONGSHORTINDICATOR TERMINATED BY WHITESPACE ENCLOSED BY 'LongShortIndicator="' and '"',
    FAS157Level filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157Level="' and '"',
    FAS157MVAdjustable filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157MVAdjustable="' and '"',
    OriginalMV filler char(100)TERMINATED BY WHITESPACE enclosed by 'OriginalMV="' and '"',
    FAS157MVDelta filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157MVDelta="' and '"',
    FAS157AdjustedMV filler char(100)TERMINATED BY WHITESPACE enclosed by 'FAS157AdjustedMV="' and '"',
    CURRENTNOTIONALLOCAL TERMINATED BY WHITESPACE enclosed by 'CurrentNotionalLocal="' and '"',
    CURRENTNOTIONALUSD TERMINATED BY WHITESPACE enclosed by 'CurrentNotionalUSD="' and '"',
    OPENQUANTITY TERMINATED BY WHITESPACE enclosed by 'OpenQuantity="' and '"',
    ORIGINALNOTIONALLOCAL TERMINATED BY WHITESPACE enclosed by 'OriginalNotionalLocal="' and '"',
    ORIGINALNOTIONALUSD TERMINATED BY WHITESPACE enclosed by 'OriginalNotionalUSD="' and '"',
    ORIGINALQUANTITY TERMINATED BY WHITESPACE enclosed by 'OriginalQuantity="' and '"',
    ACCRUEDINTERESTLOCAL TERMINATED BY WHITESPACE enclosed by 'AccruedInterestLocal="' and '"',
    ACCRUEDINTERESTUSD TERMINATED BY WHITESPACE enclosed by 'AccruedInterestUSD="' and '"',
    ACCRUEDINTERESTBASE TERMINATED BY WHITESPACE enclosed by 'AccruedInterestBase="' and '"',
    CLEANMARKETVALUEENDOFDAYLOCAL TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayLocal="' and '"',
    CLEANMARKETVALUEENDOFDAYUSD TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayUSD="' and '"',
    CLEANMARKETVALUEENDOFDAYBASE TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayBase="' and '"',
    DIRTYMARKETVALUEENDOFDAYLOCAL TERMINATED BY WHITESPACE enclosed by 'DirtyMarketValueEndOfDayLocal="' and '"',
    DIRTYMARKETVALUEENDOFDAYUSD TERMINATED BY WHITESPACE enclosed by 'DirtyMarketValueEndOfDayUSD="' and '"',
    PREMIUMLOCAL TERMINATED BY WHITESPACE enclosed by 'PremiumLocal="' and '"',
    PREMIUMUSD TERMINATED BY WHITESPACE enclosed by 'PremiumUSD="' and '"',
    PREMIUMBASE TERMINATED BY WHITESPACE enclosed by 'PremiumBase="' and '"',
    BIDDIES TERMINATED BY WHITESPACE enclosed by 'Biddies="' and '"',
    ADDONEXPOSUREUSD TERMINATED BY WHITESPACE enclosed by 'AddOnExposureUSD="' and '"',
    RegulatoryExposureUSD filler char(100) TERMINATED BY WHITESPACE enclosed by 'RegulatoryExposureUSD="' and '"',
    PARCR01 filler char(100) TERMINATED BY WHITESPACE enclosed by 'PARCR01="' and '"',
    FAS133DESIGNATIONGAAP TERMINATED BY WHITESPACE enclosed by 'FAS133DesignationGAAP="' and '"',
    FAS133DESIGNATIONSTAT TERMINATED BY WHITESPACE enclosed by 'FAS133DesignationSTAT="' and '"',
    TRADEDATE TERMINATED BY WHITESPACE enclosed by 'TradeDate="' and '"',
    EffectiveDate filler char(100) TERMINATED BY WHITESPACE enclosed by 'EffectiveDate="' and '"',
    ALLOCATION TERMINATED BY WHITESPACE enclosed by 'Allocation="' and '"' "round(:ALLOCATION,4)",
    DUMMY36 filler char(100) enclosed by '/' and '>'
    Log:
    Table DERIVATIVE_SECURITY:
    4079 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    28074 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Table DERIVATIVE_POSITION:
    0 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    32153 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 248196 bytes(26 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 32153
    Total logical records rejected: 0
    Total logical records discarded: 28074

    When there are multiple tables in a control file, SQL Loader assumes the data for the first file in the second table immediately follows the last field in the first table. You probably want SQL Loader to start looking for the first column of the second table at the start of the second table. You can do this by using the POSITION clause
    DUMMY51 filler char(1000) enclosed by "<Classification=" and "/>",
    DUMMY52 filler char(1000) enclosed by "<Classification=" and "/>",
    DUMMY53 filler char(1000) enclosed by "<Classification=" and "/>"
    INTO TABLE DERIVATIVE_POSITION
    WHEN PORTFOLIOCODE != ' '
    FIELDS TERMINATED BY '</NewDataSet>' optionally enclosed by '"'
    TRAILING NULLCOLS
    DUMMY1 filler *position(1)* char(65000) terminated by '<DerivativePosition ',
    DERIVATIVESECURITYID TERMINATED BY WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
    PORTFOLIOCODE TERMINATED BY WHITESPACE enclosed by 'PortfolioCode="' and '"',
    .

  • Data upload into infotype 2003

    Hiii
       I have a customer requirement to upload flat file containing
    below fileds into IT2003
    PersNo,
    Begindate,
    Endate,
    Daily work schedule.
    currently they are using LSMW.
    Can i use Function Module  HR_INFOTYPE_OPERATION'
    to upload in to IT2003
    Regards,
    nazi

    Yes. for data which u have for Upload ,U can surely use the FM HR_INFOTYPE_OPERATION
    with Operation  options :
    COP     Copy
    DEL     Delete
    DIS     Display
    EDQ     Lock/unlock
    INS     Create
    LIS9     Delimit
    MOD     Change
    INSS     Create for Actions is not converted to Change
    Apart this u will be reqd to Use  BAPI_EMPLOYEE_ENQUEUE : so that the records stored for this
    person cannot be accessed.
    Once done with operation ,end it with BAPI_EMPLOYEE_DEQUEUE.
    Regds,
    AS

  • Data Upload into SAP from Microsoft Excel

    Hi Guys: I created a function module from a BDC program and made it RFC enabled. When I execute this in SAP, it works fine and creates a customer. But when I try to trigger it from Excel, it gives me the error “Object Variable or With Block Variable not set”.  Please HELP!...
    Here is my VB code
    Option Explicit
    ' Declaration for the necessary objects
    Dim objBAPICortrol, objConnection, objCreateCustomer, objAcctGr, objCoCode, objReturn As Object
    Dim objSalesOrg, objDistCh, objDiv, objName, objStreet, objPostalCode, objCity, objRegion, objCountry As Object
    Dim objCountycode, objCityCode, objReconAcnt, objPaymentHist, objCustPrPro, objCustStGrp, objIncoTerms, objSDPayTerms, objAcntAssGrp, objTaxClass As Object
    Dim vLastRow, vRows As Integer
    Private Sub CommandButton2_Click()
    ' Create an Email in Outlook
    Application.Dialogs(xlDialogSendMail).Show
    End Sub
    Private Sub CommandButton3_Click()
    ' Getting the last filled Row in Column A
    vLastRow = Cells(Rows.Count, "A").End(xlUp).Row
    ' Setting the necessary variables for R/3 connection
    Set objBAPICortrol = CreateObject("SAP.Functions")
    Set objConnection = objBAPICortrol.connection
    ' Establish a connection
    If objConnection.Logon(0, False) Then
        MsgBox "Connection Established"
    End If
    On Error Resume Next
    ' Assign the Parameters
    Set objCreateCustomer = objBAPICortrol.Add("Z_RFC_CUSTOMER_CREATE_XLS")
    Set objAcctGr = objCreateCustomer.Exports("KTOKD_005")
    Set objCoCode = objCreateCustomer.Exports("BUKRS_001")
    Set objSalesOrg = objCreateCustomer.Exports("VKORG_002")
    Set objDistCh = objCreateCustomer.Exports("VTWEG_003")
    Set objDiv = objCreateCustomer.Exports("SPART_004")
    Set objName = objCreateCustomer.Exports("NAME1_006")
    Set objStreet = objCreateCustomer.Exports("STRAS_007")
    'Set objHouseNumber = objCreateCustomer.Exports("House Number")
    Set objPostalCode = objCreateCustomer.Exports("PSTLZ_009")
    Set objCity = objCreateCustomer.Exports("ORT01_008")
    Set objRegion = objCreateCustomer.Exports("REGIO_011")
    Set objCountry = objCreateCustomer.Exports("LAND1_010")
    Set objCountycode = objCreateCustomer.Exports("COUNC_013")
    'Set objPhone = objCreateCustomer.Exports("Phone")
    'Set objContact = objCreateCustomer.Exports("Contact")
    'Set objFax = objCreateCustomer.Exports("Fax")
    'Set objEmail = objCreateCustomer.Exports("Email")
    'Set objDirections = objCreateCustomer.Exports("Directions")
    Set objCityCode = objCreateCustomer.Exports("CITYC_014")
    Set objReconAcnt = objCreateCustomer.Exports("AKONT_015")
    Set objPaymentHist = objCreateCustomer.Exports("XZVER_017")
    Set objCustPrPro = objCreateCustomer.Exports("KALKS_019")
    Set objCustStGrp = objCreateCustomer.Exports("VERSG_020")
    Set objIncoTerms = objCreateCustomer.Exports("INCO1_021")
    Set objSDPayTerms = objCreateCustomer.Exports("ZTERM_023")
    Set objAcntAssGrp = objCreateCustomer.Exports("KTGRD_024")
    Set objTaxClass = objCreateCustomer.Exports("TAXKD_01_025")
    ' Now looping through all values create customer
    ' The data begin row is set to 2
    For vRows = 2 To vLastRow
    ' Set the Parameter Values
    objAcctGr.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 1).Value
    objCoCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 2).Value
    objSalesOrg.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 3).Value
    objDistCh.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 4).Value
    objDiv.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 5).Value
    objName.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 6).Value
    objStreet.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 7).Value
    'objHouseNumber.value = ThisWorkbook.ActiveSheet.Cells(vRows, 8).Value
    objPostalCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 9).Value
    objCity.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 10).Value
    objRegion.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 11).Value
    objCountry.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 12).Value
    objCountycode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 13).Value
    'objPhone.value = ThisWorkbook.ActiveSheet.Cells(vRows, 14).Value
    'objContact.value = ThisWorkbook.ActiveSheet.Cells(vRows, 15).Value
    'objFax.value = ThisWorkbook.ActiveSheet.Cells(vRows, 16).Value
    'objEmail.value = ThisWorkbook.ActiveSheet.Cells(vRows, 17).Value
    'objDirections.value = ThisWorkbook.ActiveSheet.Cells(vRows, 18).Value
    objCityCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 19).Value
    objReconAcnt.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 20).Value
    objPaymentHist.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 21).Value
    objCustPrPro.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 22).Value
    objCustStGrp.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 23).Value
    objIncoTerms.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 24).Value
    objSDPayTerms.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 25).Value
    objAcntAssGrp.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 26).Value
    objTaxClass.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 27).Value
    ' Function call
    objCreateCustomer.call
    ' Get return parameters & display in excel
    Set objReturn = objCreateCustomer.Imports("RETURN")
    ActiveSheet.Cells((vLastRow + vRows), 1) = objReturn.Value("MESSAGE")
    ' Error handling
    If Err Then
        MsgBox Err.Description
    End If
    Next vRows
    End Sub

    Hello,
    Whatz impossible ??
    Yes you can export the data from excel to SAP using VBA, but you need to create fome RFC in SAP as well that will handle the data you will send.
    1. Create a RFC function in R/3 that will read a file from specific location and perform the respective transaction.
    2. Create your excel file with respective file format and call the RFC function in SAP passing the parameters as file name and other required details.
    3. SAP coding for RFC will be a single time activity and then onwads you can just create excel file for upload and use VBA code to initiate the RFC call.
    Hope this make some sence. Tell me if you have more queries.
    Regards,
    Vishal
    Reward points.. if helpful

  • DATA UPLOAD into 5 Different Internal Tables !!!

    Hi ABAPers,
    I have data in 5 different TABS of an Excel Sheet.
    I have to UPLOAD this data in these different TABS to 5 different Internal tables.
    Can any one give me a solution to this ???

    take data from all internal tabels into final internal table.....and proceed in below way......
    fill ur inetnal table and call call the below form DOWNLOAD_TO_EXCEL, This Form is displaying an internal table it_outtab
    Move data from it_outtab to it_excel
    it_excel will contain all the charecter fields
    DATA : BEGIN OF IT_EXCEL OCCURS 0,
    FLD1(32),
    FLD2(32),
    FLD3(32),
    FLD4(32),
    FLD5(32),
    FLD6(32),
    FLD7(32),
    FLD8(32),
    FLD9(32),
    FLD10(32),
    FLD11(32),
    FLD12(32),
    FLD13(32),
    FLD14(32),
    FLD15(32),
    FLD16(32),
    FLD17(32),
    FLD18(32),
    FLD19(32),
    FLD20(32),
    FLD21(32),
    END OF IT_EXCEL.
    FORM DOWNLOAD_TO_EXCEL.
    PERFORM GET_FILE_NAME .
    CLEAR IT_EXCEL.
    REFRESH IT_EXCEL.
    IF NOT FNAME IS INITIAL .
    PERFORM POPULATE_HEADER_DETAIL.
    LOOP AT IT_OUTTAB.
    IT_EXCEL-FLD1 = IT_OUTTAB-BANFN.
    IT_EXCEL-FLD2 = IT_OUTTAB-BNFPO.
    IT_EXCEL-FLD3 = IT_OUTTAB-EBELN.
    IT_EXCEL-FLD4 = IT_OUTTAB-EBELP.
    IT_EXCEL-FLD5 = IT_OUTTAB-STYLE.
    IT_EXCEL-FLD6 = IT_OUTTAB-SKU.
    IT_EXCEL-FLD7 = IT_OUTTAB-LP_COLOR.
    IT_EXCEL-FLD8 = IT_OUTTAB-MAKTX.
    IT_EXCEL-FLD9 = IT_OUTTAB-CURR_PRICE.
    IF NOT IT_OUTTAB-VALID_FROM IS INITIAL.
    CONCATENATE IT_OUTTAB-VALID_FROM+4(2) '/'
    IT_OUTTAB-VALID_FROM+6(2) '/'
    IT_OUTTAB-VALID_FROM(4) INTO IT_EXCEL-FLD10.
    ENDIF.
    IF NOT IT_OUTTAB-VALID_TO IS INITIAL.
    CONCATENATE IT_OUTTAB-VALID_TO+4(2) '/'
    IT_OUTTAB-VALID_TO+6(2) '/'
    IT_OUTTAB-VALID_TO(4) INTO IT_EXCEL-FLD11.
    ENDIF.
    IT_EXCEL-FLD12 = IT_OUTTAB-FUT_PRICE.
    IT_EXCEL-FLD13 = IT_OUTTAB-FAC_PRICE.
    IF NOT IT_OUTTAB-FAC_VALID_FROM IS INITIAL.
    CONCATENATE IT_OUTTAB-FAC_VALID_FROM+4(2) '/'
    IT_OUTTAB-FAC_VALID_FROM+6(2) '/'
    IT_OUTTAB-FAC_VALID_FROM(4) INTO IT_EXCEL-FLD14.
    ENDIF.
    IF NOT IT_OUTTAB-FAC_VALID_TO IS INITIAL.
    CONCATENATE IT_OUTTAB-FAC_VALID_TO+4(2) '/'
    IT_OUTTAB-FAC_VALID_TO+6(2) '/'
    IT_OUTTAB-FAC_VALID_TO(4) INTO IT_EXCEL-FLD15.
    ENDIF.
    IT_EXCEL-FLD16 = IT_OUTTAB-JPN_PRICE.
    IT_EXCEL-FLD17 = IT_OUTTAB-EAN11_1.
    IT_EXCEL-FLD18 = IT_OUTTAB-EAN11_2.
    IT_EXCEL-FLD19 = IT_OUTTAB-HANG_TAG_STAT.
    IT_EXCEL-FLD20 = IT_OUTTAB-LABEL_STAT.
    IT_EXCEL-FLD21 = IT_OUTTAB-CJI_STAT.
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    ENDLOOP.
    CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
    EXPORTING
    CHECK_VERSION = ' '
    DATA_NAME = FNAME
    DATA_PATH_FLAG = ''
    DATA_TYPE = 'DAT'
    DATA_BIN_FILE_SIZE =
    MACRO_NAME = ' '
    MACRO_PATH_FLAG = 'E'
    FORCE_START = ' '
    WAIT = ''
    IMPORTING
    WINID =
    TABLES
    DATA_TAB = IT_EXCEL
    EXCEPTIONS
    NO_BATCH = 1
    EXCEL_NOT_INSTALLED = 2
    WRONG_VERSION = 3
    INTERNAL_ERROR = 4
    INVALID_TYPE = 5
    CANCELLED = 6
    DOWNLOAD_ERROR = 7
    OTHERS = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF .
    ENDFORM. " DOWNLOAD_TO_EXCEL
    FORM GET_FILE_NAME.
    DATA: TMP_FILENAME LIKE RLGRAP-FILENAME,
    GLOBAL_FILEMASK_ALL(80),
    GLOBAL_FILEMASK_MASK(20), GLOBAL_FILEMASK_TEXT(20),
    GLOBAL_DOWNLOAD_PATH LIKE RLGRAP-FILENAME,
    DEF_PATH LIKE RLGRAP-FILENAME,
    FIELDLN TYPE I,
    MODE TYPE C,
    TMP_MASK LIKE GLOBAL_FILEMASK_ALL.
    FIELD-SYMBOLS: .
    IF GLOBAL_FILEMASK_MASK IS INITIAL.
    TMP_MASK = ',.,..'.
    ELSE.
    TMP_MASK = ','.
    WRITE GLOBAL_FILEMASK_TEXT TO TMP_MASK+1.
    WRITE ',' TO TMP_MASK+21.
    WRITE GLOBAL_FILEMASK_MASK TO TMP_MASK+22.
    WRITE '.' TO TMP_MASK+42.
    CONDENSE TMP_MASK NO-GAPS.
    ENDIF.
    IF NOT GLOBAL_FILEMASK_ALL IS INITIAL.
    TMP_MASK = GLOBAL_FILEMASK_ALL.
    ENDIF.
    FIELDLN = STRLEN( DEF_PATH ) - 1.
    ASSIGN DEF_PATH+FIELDLN(1) TO .
    ENDIF.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = FNAME "rlgrap-filename
    DEF_PATH = DEF_PATH
    MASK = TMP_MASK
    MODE = MODE
    TITLE = ' '
    IMPORTING
    FILENAME = FNAME
    RC =
    EXCEPTIONS
    INV_WINSYS = 01
    NO_BATCH = 02
    SELECTION_CANCEL = 03
    SELECTION_ERROR = 04.
    IF SY-SUBRC = 0.
    FNAME = TMP_FILENAME.
    ELSE.
    ENDIF.
    ENDFORM. " GET_FILE_NAME
    FORM POPULATE_HEADER_DETAIL.
    IT_EXCEL-FLD8 = 'S U D H E E R'.
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    IT_EXCEL-FLD1 = 'Price Validation Report'.
    IT_EXCEL-FLD14 = 'Page'.
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    IT_EXCEL-FLD1 = 'Vendor Number/Name'.
    IT_EXCEL-FLD3 = 'Plan Month'.
    IT_EXCEL-FLD4 = 'Effective In-store-Date'.
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    IT_EXCEL-FLD1 = VENDOR_NAME.
    IT_EXCEL-FLD3 = P_BEDNR.
    IT_EXCEL-FLD4 = P_EFF_DT.
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    sudheer start
    APPEND IT_EXCEL.
    IT_EXCEL-FLD1 = 'PR'.
    IT_EXCEL-FLD2 = 'Line'.
    IT_EXCEL-FLD3 = 'PO'.
    IT_EXCEL-FLD4 = 'PO Line'.
    IT_EXCEL-FLD5 = 'Style'.
    IT_EXCEL-FLD6 = 'SKU'.
    IT_EXCEL-FLD7 = 'Long Color'.
    IT_EXCEL-FLD8 = 'Material Description'.
    IT_EXCEL-FLD9 = 'Current Price'.
    IT_EXCEL-FLD10 = 'validity'.
    IT_EXCEL-FLD11 = 'Period'.
    IT_EXCEL-FLD12 = 'Future Price'.
    IT_EXCEL-FLD13 = 'Factory Price'.
    IT_EXCEL-FLD14 = 'Validity'.
    IT_EXCEL-FLD15 = 'Period'.
    IT_EXCEL-FLD16 = 'Japan Price'.
    IT_EXCEL-FLD17 = 'First UPC'.
    IT_EXCEL-FLD18 = 'Factory UPC'.
    IT_EXCEL-FLD19 = 'Hang Tag Status'.
    IT_EXCEL-FLD20 = 'Label Status'.
    IT_EXCEL-FLD21 = 'CJI Label Status'.
    *sudheer end
    APPEND IT_EXCEL.
    CLEAR IT_EXCEL.
    ENDFORM. " POPULATE_HEADER_DETAIL
    Check these links for sample code :
    http://www.sapdevelopment.co.uk/ms/ms_excel.htm
    please check this example:
    FORM download.
    DATA: lh_file1 TYPE rlgrap-filename,
    lh_file2 TYPE rlgrap-filename,
    lh_file3 TYPE rlgrap-filename,
    lh_datda(1).
    CLEAR: lh_file1, lh_file2, lh_file3.
    Download neue Daten
    CONCATENATE xh_pfad 'Datafile materialmaster new ' sy-datum(4)
    sy-datum4(2) sy-datum6(2) sy-uzeit '.xls' INTO lh_file1.
    working area
    DATA: index TYPE i,
    lh_col TYPE i.
    FIELD-SYMBOLS: .
    SORT xt_bmm00 BY matnr.
    SORT xt_bmmh1 BY matnr.
    SORT xt_bmmh4 BY matnr.
    SORT xt_bmmh7 BY matnr.
    IF NOT xt_bmm00[] IS INITIAL.
    MOVE 'X' TO lh_datda.
    DO 4 TIMES.
    CASE sy-index.
    WHEN 1.
    CREATE OBJECT lh_excel 'EXCEL.APPLICATION' .
    SET PROPERTY OF lh_excel 'Visible' = 1 .
    GET PROPERTY OF lh_excel 'Workbooks' = lh_workbooks .
    GET PROPERTY OF lh_workbooks 'Application' = lh_application .
    SET PROPERTY OF lh_application 'SheetsInNewWorkbook' = 1 .
    CALL METHOD OF lh_workbooks 'Add' = lh_workbook .
    CALL METHOD OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Item' = lh_sheet
    EXPORTING #1 = sy-index .
    SET PROPERTY OF lh_sheet 'NAME' = 'BMMH7'.
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S005'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_bmmh7.
    index = sy-tabix + 1.
    DO 4 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_bmmh7 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    WHEN 2.
    GET PROPERTY OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Add' = lh_newsheet .
    SET PROPERTY OF lh_newsheet 'Name' = 'BMMH4'.
    CALL METHOD OF lh_excel 'WorkSheets' = lh_activesheet
    EXPORTING #1 = 'BMMH4'.
    CALL METHOD OF lh_activesheet 'Activate' .
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S004'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_bmmh4.
    index = sy-tabix + 1.
    DO 4 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_bmmh4 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    WHEN 3.
    GET PROPERTY OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Add' = lh_newsheet .
    SET PROPERTY OF lh_newsheet 'Name' = 'BMMH1'.
    CALL METHOD OF lh_excel 'WorkSheets' = lh_activesheet
    EXPORTING #1 = 'BMMH1'.
    CALL METHOD OF lh_activesheet 'Activate' .
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S003'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    Die folgende Abfrage ist notwendig, weil der Namensraum ZZ...
    in der Struktur nicht erlaubt ist, aber im Excel-Sheet als
    Überschrift gebraucht wird.
    IF xt_ftab-fieldname = 'SPIRIDON'.
    MOVE 'ZZSSN' TO xt_ftab-fieldname.
    ENDIF.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_bmmh1.
    index = sy-tabix + 1.
    DO 72 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_bmmh1 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    WHEN 4.
    GET PROPERTY OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Add' = lh_newsheet .
    SET PROPERTY OF lh_newsheet 'Name' = 'BMM00'.
    CALL METHOD OF lh_excel 'WorkSheets' = lh_activesheet
    EXPORTING #1 = 'BMM00'.
    CALL METHOD OF lh_activesheet 'Activate' .
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S002'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_bmm00.
    index = sy-tabix + 1.
    DO 21 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_bmm00 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    ENDCASE.
    ENDDO.
    CALL METHOD OF lh_workbook 'SAVEAS'
    EXPORTING #1 = lh_file1.
    CALL METHOD OF lh_excel 'QUIT'.
    FREE OBJECT: lh_cells, lh_sheet, lh_sheets, lh_application,
    lh_workbook, lh_workbooks, lh_excel,
    lh_chart, lh_activesheet.
    ENDIF.
    Download geänderter Materialstammdaten
    CONCATENATE xh_pfad 'Datafile materialmaster change ' sy-datum(4)
    sy-datum4(2) sy-datum6(2) sy-uzeit '.xls' INTO lh_file2.
    IF NOT xt_emmh1[] IS INITIAL.
    MOVE 'X' TO lh_datda.
    DO 2 TIMES.
    CALL METHOD OF lh_sheets 'Item' = lh_sheet
    EXPORTING #1 = sy-index .
    CASE sy-index.
    WHEN 1.
    CREATE OBJECT lh_excel 'EXCEL.APPLICATION' .
    SET PROPERTY OF lh_excel 'Visible' = 1 .
    GET PROPERTY OF lh_excel 'Workbooks' = lh_workbooks .
    GET PROPERTY OF lh_workbooks 'Application' = lh_application .
    SET PROPERTY OF lh_application 'SheetsInNewWorkbook' = 1 .
    CALL METHOD OF lh_workbooks 'Add' = lh_workbook .
    CALL METHOD OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Item' = lh_sheet
    EXPORTING #1 = sy-index .
    SET PROPERTY OF lh_sheet 'NAME' = 'BMMH7'.
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S005'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_emmh7.
    index = sy-tabix + 1.
    DO 4 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_emmh7 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    WHEN 2.
    GET PROPERTY OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Add' = lh_newsheet .
    SET PROPERTY OF lh_newsheet 'Name' = 'BMMH1'.
    CALL METHOD OF lh_excel 'WorkSheets' = lh_activesheet
    EXPORTING #1 = 'BMMH1'.
    CALL METHOD OF lh_activesheet 'Activate' .
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S003'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    Die folgende Abfrage ist notwendig, weil der Namensraum ZZ...
    in der Struktur nicht erlaubt ist, aber im Excel-Sheet als
    Überschrift gebraucht wird.
    IF xt_ftab-fieldname = 'SPIRIDON'.
    MOVE 'ZZSSN' TO xt_ftab-fieldname.
    ENDIF.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_emmh1.
    index = sy-tabix + 1.
    DO 72 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_emmh1 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    ENDCASE.
    ENDDO.
    CALL METHOD OF lh_workbook 'SAVEAS'
    EXPORTING #1 = lh_file2.
    CALL METHOD OF lh_excel 'QUIT'.
    FREE OBJECT: lh_cells, lh_sheet, lh_sheets, lh_application,
    lh_workbook, lh_workbooks, lh_excel,
    lh_chart, lh_activesheet.
    ENDIF.
    Download geänderter Texte
    CONCATENATE xh_pfad 'Datafile materialmaster change PO ' sy-datum(4)
    sy-datum4(2) sy-datum6(2) sy-uzeit '.xls' INTO lh_file3.
    IF NOT xt_tmmh7[] IS INITIAL.
    CLEAR: lh_cells, lh_sheet, lh_sheets, lh_application,
    lh_workbook, lh_workbooks, lh_excel,
    lh_chart, lh_activesheet.
    MOVE 'X' TO lh_datda.
    CREATE OBJECT lh_excel 'EXCEL.APPLICATION' .
    SET PROPERTY OF lh_excel 'Visible' = 1 .
    GET PROPERTY OF lh_excel 'Workbooks' = lh_workbooks .
    GET PROPERTY OF lh_workbooks 'Application' = lh_application .
    SET PROPERTY OF lh_application 'SheetsInNewWorkbook' = 1 .
    CALL METHOD OF lh_workbooks 'Add' = lh_workbook .
    CALL METHOD OF lh_workbook 'Sheets' = lh_sheets .
    CALL METHOD OF lh_sheets 'Item' = lh_sheet
    EXPORTING #1 = 1 .
    SET PROPERTY OF lh_sheet 'NAME' = 'BMMH7'.
    Überschrift erstellen
    CLEAR xt_ftab.
    REFRESH xt_ftab.
    CALL FUNCTION 'GET_FIELDTAB'
    EXPORTING
    langu = sy-langu
    tabname = '/SIE/TS_MM01S005'
    withtext = ' '
    only = 'T'
    TABLES
    fieldtab = xt_ftab
    EXCEPTIONS
    OTHERS = 1.
    CLEAR lh_col.
    LOOP AT xt_ftab.
    ADD 1 TO lh_col.
    PERFORM fill_cell
    USING 1 lh_col xt_ftab-fieldname lh_excel lh_cells.
    ENDLOOP.
    LOOP AT xt_tmmh7.
    index = sy-tabix + 1.
    DO 4 TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE xt_tmmh7 TO  lh_excel lh_cells.
    ENDIF.
    ENDDO.
    ENDLOOP.
    CALL METHOD OF lh_workbook 'SAVEAS'
    EXPORTING #1 = lh_file3.
    CALL METHOD OF lh_excel 'QUIT'.
    FREE OBJECT: lh_cells, lh_sheet, lh_sheets, lh_application,
    lh_workbook, lh_workbooks, lh_excel,
    lh_chart, lh_activesheet.
    ENDIF.
    IF lh_datda NE 'X'.
    MESSAGE i016.
    ENDIF.
    ENDFORM. " download
    FORM fill_cell USING p_i
    value
    p_customer_cell1
    h_excel
    h_cells.
    CALL METHOD OF h_excel 'Cells' = h_cells EXPORTING #1 = p_i #2 = value.
    SET PROPERTY OF lh_cells 'Numberformat' = '@'.
    SET PROPERTY OF h_cells 'Value' = p_customer_cell1.
    ENDFORM. " fill_cell

  • SPP: Demand Data uploaded into cube but not visible in screen

    Hi,
    I am working on SCM 5.0 in a test environment.
    I had loaded the sample test data using csv file. The data is visibile in the both multiprovders.
    9ARAWMUL AND 9ADEMMUL( in txn rsa1)
    Also in the transaction : /sapapo/sppdmrd- i can see the raw data history
    But for the same selection paramter i cannot see any data in sapapo/sppdmdh- adjust demand history.
    Can somebody help?
    Regards,
    RM

    Hi Nithi,
    Did you checked in Listcube  if data is available for that plant.
    Also try running the querry in RSRT and check whether you are using any querry variable for it.
    Please check in querry designer if you have any exclude selection for the plant.
    Hope this Helps,
    Thanks,
    Amit Kr.

  • BOM Data upload

    Hi,
      We plan to create new fields in the BOM header through INCLUDE structure CI_STKO and do a data upload into these fields through LSMW. However, the issue is that CI_STKO structure is not included in the BI structure BICSK used in LSMW, hence the fields added to the BOM header through CI_STKO cannot be loaded through LSMW.
    This works fine at the item level - since CI_STPO is included in BICSP.
    Can anyone let me know if they have faced similar problem and are aware of a solution.
    Thanks,
    Vikas

    Hi,
    Insted of LSMW goo for BDC.. if not goo for BAPI.. you have an enhancemnet concept by using this concept you can enhance the standard BAPI.. and you can process for upload ...
    BAPI_MATERIAL_BOM_GROUP_CREATE

  • FUNCTION MODULE TO CONVERT DATE / TIME INTO WORDS.

    HI EXPERTS,
         FUNCTION MODULE TO CONVERT DATE / TIME INTO WORDS.
    PLS DO HELP.....

    Hiii gita
    we have another FM SPELL_AMOUNT
    regards
    Jaipal

  • Function module Vs BDC for master data upload

    Hi ,
    Please advice we should use the following function modules for master data upload or we should go for BDC.
    MP_RFC_SINGLE_CREATE
    MP_RFC_INACT_CHANGE
    MPLAN_CREATE
    MPLAN_CHANGE
    MPLAN_SET_DELETION_INDICATOR
    ASSET_MASTERRECORD_MAINTENANCE
    MPLAN_ITEM_CREATE
    MPLAN_ITEM_CHANGE
    GL_ACCT_MASTER_SAVE
    GL_ACCT_MASTER_SAVE
    GL_ACCT_MASTER_SAVE
    Actually, we have already used these function modules in our upload program, but we are not sure if these function modules will create any data inconsistency.
    Please let me know, if we should continue using the FMs, or there is any risk using the FMs and we should replace them by BDC.
    Thanks in advance.

    HI Vikram,
    Better to serch for the BAPI for uploading the master data.Becuase we have problems with BDC and FM's.
    If you use FM's it does n't contain all the fields which you want.IF you go for BDC this is not maintainable for future releaseas.IF you upgrade then screen may change.
    IF don' have any BAPI then better go for BDC.
    Thanks

  • Can any one tell me what is the master data upload sequence in sap pm...? i am new to sap pm module..

    Hi experts,
    Please help me to get the sequence for master data upload in sap pm ......

    Probably yet another Blog/Document for someone to create..
    Here's my offerings:
    Finance data: chart of accounts, g/l accounts cost centres, profit centres, activity types, etc
    Configuration data
    Classes/characteristics
    Inspection characteristics
    Master Warranties/Permits/Partners/Documents
    HR masters
    Work centres
    Materials
    Functional locations
    Equipment (serial numbers)
    Measurement points/documents
    BOMs
    Task Lists
    Maintenance items/plans
    Maintenance plan schedule
    Historical orders (if required)
    Historical notifications (if required)
    Historical Measurement documents (if required)
    PeteA

  • How to add  basic data text into material master?

    Hi anybody,
    I want update only basic data text into material master. how to update basic data text ?
    is it any bapi or functional module is there in abap?
    anybody please tell me.
    tks
    s.muthu

    Hi Subramanyan,
    Check this function module:
             CREATE_TEXT
    Check out this sample program:
    REPORT ZMM_INSERT_LONGTEXT.*Internal table to hold long text...
    DATA:
      BEGIN OF T_UPLOAD OCCURS 0,
        MATNR LIKE MARA-MATNR,             " Material number
        ID(2) TYPE C,                      " Identification
        LTEXT LIKE TLINE-TDLINE,           " Long text
      END OF T_UPLOAD,*Internal table to hold long text....
      T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
       W_GRUN LIKE THEAD-TDID ,            " To hold id
       W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
                                           " To hold object id
       LV_VALUE(70).                       " Value to hold material number
    START-OF-SELECTION.* This perform is used to upload the file
      PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
      PERFORM PLACE_LONGTEXT.
    *&      Form  create_text
    This routine used to create text in MM02 transaction
    Passed the parameter w_grun to P_C_GRUN
                    and lv_value to P_LV_VALUE
    FORM CREATE_TEXT  USING    P_C_GRUN
                               P_LV_VALUE.  DATA:
        L_ID LIKE THEAD-TDID,
        L_NAME(70).  MOVE : P_C_GRUN TO L_ID,
             P_LV_VALUE TO L_NAME.  CALL FUNCTION 'CREATE_TEXT'
           EXPORTING
             FID               = L_ID
             FLANGUAGE         = SY-LANGU
             FNAME             = L_NAME
             FOBJECT           = W_OBJECT
         SAVE_DIRECT       = 'X'
         FFORMAT           = '*'
           TABLES
             FLINES            = T_LINE
          EXCEPTIONS
            NO_INIT           = 1
            NO_SAVE           = 2
            OTHERS            = 3
      IF SY-SUBRC <> 0.
        CLEAR LV_VALUE.
      ELSE.
        DELETE T_LINE INDEX 1.
      ENDIF.ENDFORM.                    " create_text&----
    *&      Form  upload_file
    This routine is used to upload file
    No interface parameters are passed
    FORM UPLOAD_FILE .  CALL FUNCTION 'UPLOAD'
       EXPORTING
        CODEPAGE                      = ' '
        FILENAME                      = ' '
          FILETYPE                      = 'DAT'
        ITEM                          = ' '
        FILEMASK_MASK                 = ' '
        FILEMASK_TEXT                 = ' '
        FILETYPE_NO_CHANGE            = ' '
        FILEMASK_ALL                  = ' '
        FILETYPE_NO_SHOW              = ' '
        LINE_EXIT                     = ' '
        USER_FORM                     = ' '
        USER_PROG                     = ' '
        SILENT                        = 'S'
      IMPORTING
        FILESIZE                      =
        CANCEL                        =
        ACT_FILENAME                  =
        ACT_FILETYPE                  =
        TABLES
          DATA_TAB                      = T_UPLOAD
         EXCEPTIONS
           CONVERSION_ERROR              = 1
           INVALID_TABLE_WIDTH           = 2
           INVALID_TYPE                  = 3
           NO_BATCH                      = 4
           UNKNOWN_ERROR                 = 5
           GUI_REFUSE_FILETRANSFER       = 6
           OTHERS                        = 7
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.  SORT T_UPLOAD BY MATNR ID.
    ENDFORM.                    " upload_file
    *&      Form  place_longtext
    This routine places the text in MM02 transaction
    No interface parameters are passed
    FORM PLACE_LONGTEXT .  LOOP AT T_UPLOAD.    T_LINE-TDFORMAT = 'ST'.
        T_LINE-TDLINE = T_UPLOAD-LTEXT.
        APPEND T_LINE.    IF T_UPLOAD-ID EQ 'BT'.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'GRUN' TO W_GRUN.                   "Test ID for Basic data text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IT'.
          CLEAR W_GRUN.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'PRUE' TO W_GRUN.                      "Test ID for Inspection text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IC'.
          CLEAR W_GRUN.
          MOVE : T_UPLOAD-MATNR TO LV_VALUE,
                 'IVER' TO W_GRUN.                    
                                                      "Test ID for Internal comment
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.
      ENDLOOP.ENDFORM.                    " place_longtext
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • BADI Needed for encoding document while uploading into DMS

    Hello All,
    Is there any BADI/Enhancement Point available which could be used to encode a file while i upload into DMS? I am in ECC 6.0 (MySAPERP 2005).
    I have the BADI's
    1. Document_MAIN01- has the method AFTER_READ_DATA, but once the file is uploaded i donot see any data passing into this Method.
    2. Document_FILES01 - has the method BEFORE_START_APPL and AFTER_START_APPL are only used and none of the other methods are used. But these methods cannot be used at the time of upload.
    3. EHSB_DMS_ENCODE - has the method ENCODE but this is called once the document is created in the DMS.
    Please note that the document is getting created using BAPI_DOCUMENT_CREATE2 function module.
    My reqmt is to encode and upload the file into the DMS from transaction EHSAMBTAET.
    Any suggestion would be of great help.

    You could develop an event receiver for the library and in the ItemAdded() event, parse the text from the file using OpenXML. There is a good code sample for the text extraction piece
    here.
    Please mark my reply as helpful (the up arrow) if it was useful to you and please mark it an answer (the check box) if it answered your question! Thank you!
    Danny Jessee | MCPD - SharePoint Developer 2010 | MCTS - SharePoint 2010, Configuring
    Blog: http://dannyjessee.com/blog | Twitter: @dannyjessee

  • No Upload into ECC when replicating sales order to ECC

    Hi All,
    The replication of sales order from CRM to ERP works fine when using the SALESPRO business role. But when using IC_Agent the sales orders are not replicated with message in SMW01  "no upload into ECC".
    The unusual issue also is that when I change the IC_Agent business role profile type from "IC Webclient Business Role" to "CRM Webclient Business Role" the sales orders replicated succussfully.
    Anyone knows the relation between business role profile type and sales order replication? why the profile type stop the order from replication to ECC when its set to "IC Webclient Business Role"?
    Note: I use the same transaction type and same order details  in both cases
    Regards,
    Ahmed Elders

    Hi,
    please check notes:
    Note 592881 - Generate test data for function modules - implementation
    Note 517767 - Generate test data for function modules
    Denis

  • Upload a Function Module

    Hi all
    I need to upload a Function module from SAP 4.6C to ECC 6.4 version. Can anyone help me on this ? A PROMPT reply will be highly appreciated as I need this urgently..

    2)now uplaos from c driv to diffrent server.
    *& Report  Z_CREATE_FM                                                 *
    REPORT  z_create_fm                             .
    * Tables
    * TYPES - Structures
    * Structure for Function Module Attributes
    TYPES: BEGIN OF s_fm_attributes         ,
            global_flag   LIKE rs38l-global ,
            remote_call   LIKE rs38l-remote ,
            update_task   LIKE rs38l-utask  ,
            short_text    LIKE tftit-stext  ,
            function_pool LIKE rs38l-area   ,
           END   OF s_fm_attributes         .
    * Structure for Import Paramters
    TYPES: BEGIN OF s_import_parameter .
            INCLUDE STRUCTURE rsimp    .
    TYPES: END   OF s_import_parameter .
    * Structure for Changing Paramters
    TYPES: BEGIN OF s_changing_parameter .
            INCLUDE STRUCTURE rscha      .
    TYPES: END   OF s_changing_parameter .
    * Structure for Export Paramters
    TYPES: BEGIN OF s_export_parameter  .
            INCLUDE STRUCTURE rsexp     .
    TYPES: END   OF s_export_parameter  .
    * Structure for Table Paramters
    TYPES: BEGIN OF s_tables_parameter .
            INCLUDE STRUCTURE rstbl    .
    TYPES: END   OF s_tables_parameter .
    * Structure for Exception list
    TYPES: BEGIN OF s_exception_list  .
            INCLUDE STRUCTURE rsexc.
    TYPES: END   OF s_exception_list .
    * Structure for Documentation
    TYPES: BEGIN OF s_documentation  .
            INCLUDE STRUCTURE rsfdo.
    TYPES: END   OF s_documentation .
    * Structure for Exception list
    TYPES: BEGIN OF s_source           .
            INCLUDE STRUCTURE rssource .
    TYPES: END   OF s_source           .
    * Internal Tables
    DATA:  t_fm_attributes      TYPE s_fm_attributes       OCCURS 0
                                WITH HEADER LINE                     ,
           t_import_parameter   TYPE s_import_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_changing_parameter TYPE s_changing_parameter  OCCURS 0
                                WITH HEADER LINE                     ,
           t_export_parameter   TYPE s_export_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_tables_parameter   TYPE s_tables_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_exception_list     TYPE s_exception_list      OCCURS 0
                                WITH HEADER LINE                     ,
           t_documentation      TYPE s_documentation       OCCURS 0
                                WITH HEADER LINE                     ,
           t_source             TYPE s_source              OCCURS 0
                                WITH HEADER LINE                     .
    * Constants
    CONSTANTS: c_dir(6)        TYPE c  VALUE 'C:FM'         ,
               c_bslash(1)     TYPE c  VALUE ''              ,
               c_file_attrib   TYPE string        " FM Attributes file
                                VALUE 'FM_ATTRIBUTES.XLS' ,
               c_file_ip       TYPE string        " Import parameters File
                                VALUE 'IMPORT_PARAMTER.XLS' ,
               c_file_cp       TYPE string        " Changing parameters File
                                VALUE 'CHANGING_PARAMTER.XLS' ,
               c_file_ep       TYPE string         " Export parameters File
                                VALUE 'EXPORT_PARAMTER.XLS'   ,
               c_file_tp       TYPE string         " Tables parameters File
                                VALUE 'TABLES_PARAMTER.XLS'   ,
               c_file_el       TYPE string         " Exception list File
                                VALUE 'EXCEPTION_LIST.XLS'    ,
               c_file_docu     TYPE string         " Documentation File
                                VALUE 'DOCUMENTATION.XLS'     ,
               c_file_source   TYPE string         " Code Source File
                                VALUE 'SOURCE.XLS'            .
    * Work-fields
    DATA: w_functionname      LIKE rs38l-name       , " FM Name
          w_file              TYPE string           , " File name
          w_global_flag       LIKE rs38l-global     , " Global flag for FM
          w_remote_call       LIKE rs38l-remote     , " RFC flag
          w_update_task       LIKE rs38l-utask      , " Update task flag
          w_short_text        LIKE tftit-stext      , " Short text
          w_function_pool     LIKE rs38l-area       , " Function Group
          w_function_include  LIKE rs38l-include    , " FM Include file
          w_corrnum_e         LIKE e071-trkorr      .
    * Selection-Screen
    SELECT-OPTIONS: s_fm FOR w_functionname OBLIGATORY NO INTERVALS.
    * At selection-screen
    * Start-of-selection
    START-OF-SELECTION.
    * Upload Function Modules.
      PERFORM sub_upload_fm_data.
    * End-of-selection
    END-OF-SELECTION.
    * Subroutines
    *&      Form  sub_upload_fm_data
    *       Create Function Module by uploading their data from local file
    FORM sub_upload_fm_data .
      LOOP AT s_fm.
        REFRESH: t_fm_attributes       ,
                 t_import_parameter    ,
                 t_changing_parameter  ,
                 t_export_parameter    ,
                 t_tables_parameter    ,
                 t_exception_list      ,
                 t_documentation       ,
                 t_source              .
        CLEAR: w_functionname   ,
               w_global_flag    ,
               w_remote_call    ,
               w_update_task    ,
               w_short_text     ,
               w_function_pool  .
        MOVE s_fm-low TO w_functionname.
    *   Upload FUNCTION MODULE Attributes
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_attrib
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_fm_attributes
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        READ TABLE t_fm_attributes INDEX 1.
        MOVE: t_fm_attributes-global_flag    TO w_global_flag    ,
              t_fm_attributes-remote_call    TO w_remote_call    ,
              t_fm_attributes-update_task    TO w_update_task    ,
              t_fm_attributes-short_text     TO w_short_text     ,
              t_fm_attributes-function_pool  TO w_function_pool  .
    *   Upload IMPORT Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_ip
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_import_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload CHANGING Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_cp
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_changing_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload EXPORT Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_ep
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_export_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload TABLES Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_tp
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_tables_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload EXCEPTIONS List
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_el
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_exception_list
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload DOCUMENTATION
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_docu
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_documentation
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload SOURCE Code
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_source
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_source
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Create Function Module
        CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT'
          EXPORTING
            funcname                      = w_functionname
            function_pool                 = w_function_pool
            interface_global              = w_global_flag
            remote_call                   = w_remote_call
            short_text                    = w_short_text
    *       SUPPRESS_CORR_CHECK           = 'X'
            update_task                   = w_update_task
    *       CORRNUM                       = ' '
    *       NAMESPACE                     = ' '
    *       SUPPRESS_LANGUAGE_CHECK       = 'X'
    *       AUTHORITY_CHECK               = 'X'
    *       SAVE_ACTIVE                   = 'X'
    *       NEW_SOURCE                    =
    *       EXCEPTION_CLASS               = ' '
    *       SUPPRESS_UPGRADE_CHECK        = ' '
          IMPORTING
            function_include              = w_function_include
            corrnum_e                     = w_corrnum_e
          TABLES
            import_parameter              = t_import_parameter
            export_parameter              = t_export_parameter
            tables_parameter              = t_tables_parameter
            changing_parameter            = t_changing_parameter
            exception_list                = t_exception_list
            parameter_docu                = t_documentation
            SOURCE                        = t_source
          EXCEPTIONS
            double_task                   = 1
            error_message                 = 2
            function_already_exists       = 3
            invalid_function_pool         = 4
            invalid_name                  = 5
            too_many_functions            = 6
            no_modify_permission          = 7
            no_show_permission            = 8
            enqueue_system_failure        = 9
            canceled_in_corr              = 10
            OTHERS                        = 11 .
        IF sy-subrc NE 0.
          WRITE: / 'Error occured while creating FM: '  ,
                   w_functionname .
        ELSE.
          WRITE: / 'FM Created: '  ,
                   w_functionname  .
    *      CALL FUNCTION 'RS_FUNCTION_ACTIVATE'
    *        EXPORTING
    **         ACTION                       = ' '
    **         CORR_INSERT                  = ' '
    *          funcname                     = w_functionname
    **         WITH_POPUP                   = 'X'
    **         SUPPRESS_WORKING_AREA        = ' '
    **         OBJECT_SAVED                 =
    *        EXCEPTIONS
    *          CANCELLED                    = 1
    *          CANCELED_IN_CORR             = 2
    *          EDITOR_NAVIGATION_FLAG       = 3
    *          MESSAGE_SEND                 = 4
    *          NOT_FOUND                    = 5
    *          NO_ACTION                    = 6
    *          PERMISSION_FAILURE           = 7
    *          OTHERS                       = 8 .
    *      IF sy-subrc NE 0.
    *        WRITE: / 'Error occured while activating FM: '  ,
    *                 w_functionname .
    *      ELSE.
    *        WRITE: / 'Activated FM: '  ,
    *                 w_functionname .
    *      ENDIF.                " IF sy-subrc NE 0.(RS_FUNCTION_ACTIVATE)
        ENDIF.                  " IF sy-subrc NE 0.
      ENDLOOP.                  " LOOP AT s_fm.
    ENDFORM.                    " sub_upload_fm_data

Maybe you are looking for

  • Sending all devices on router to cloud

    Trying to connect 2 airport express units to my current wireless router.  Only want to use the devices to play music.  This is a PC based network.  Only Apple devices are ipads. Once I connect to router, it directs all traffic to our cloud and no one

  • Since I´ve upgraded iTunes it´s not working

    I´m using iTunes with windows 7 Starter. Just upgraded last version fo iTunes and it won´t start. What if I delete the program and download it again? will I loose my music? or what should I do?

  • PO Last Purchase Price ??

    Hi ! currently I'm working on a P.O. Report. My query is :- I want to display the last purchase price of the P.O.. For this requirement, I've joined the tables EKKO & EKPO, sorted on material & plant. And now I want to fetch the last purchase price f

  • Sdm tool

    hi, any body help me on the sdm toool ? 1) how the process of applying patches thru sdm tool , there is any  tool other than sdm? - send me with detailed with process, and also format of the file like abc.sca , so plz 2) in real time - which type of

  • Authorization Object   for  Transaction code XSLT_TOOL

    Hi Friends When i try to use transaction xslt_tool the following error appears "You are not authorized to use transaction xslt_tool". Can anyone give  the Authorization object  for  transaction  xslt_tool, Regards. Wishva