Problem in converty given qty into kgs using variable

hello,
     i have taken 0ORDER_QUAN with 0PO_UNIT.
AND 0CML_OR_QTY (confirmed order quantity) with unit 0SALES_UNIT.
  I want two more fields in the query with order quantity in kgs and confirmed order quanity in kgs.
the formula for order qty in kgs is written as:
NODIM(NOERR(0ORDER_QUANT * NET WHT)  where net wht is the formula varaible of process type replacement path,
similarly for the confirmed order qty in kgs.
but when we execute the query the both the quantity columns in kgs is showing no values.
is there a problem in the formula variable.
and one more thing, in the cube 0order_quan is loaded and its unit column 0PO_UNIT  is not loaded and it is blank since it is not mapped to the field in the transfer rule to the source system field.
should we load data to the unit field so that we can convert order qty into kgs.
plz suggest me.

Soujanya,
Things you might want to do first...
1. Check if NET WHT is being populated properly... put it directly into the query and check
2. Put all components of the formula into the query and check if they are all displayed.
3. Now about the unit issue , since you have used NODIM, I do not think this should be a problem.
And personally I would side with AVR on the issue of having the same in the routines rather than directly in the query.
Arun
Assigning points is a way of saying thank you in SDN

Similar Messages

  • Problem in setting oracle cloud into netbeans using US- commercial-1 data center

    Iam unable to connect oracle cloud into netbeans using the credentials sent by US-commercial-1 data center.The thing is that each time when i tried to connect oracle cloud into netbeans ,a message is displayed like  Cannot connect to Oracle Cloud using provided credentials.How to solve this issue?

    Hi,
    Request you to please go through the link https://netbeans.org/kb/docs/web/oracle-cloud.html which gives you step-by-step instruction on how to connect NetBeans to Oracle Java cloud service.
    Please make sure that you are using Oracle cloud supported NetBeans version which is 7.2.1, 7.3, 7.4, Java EE Version
    For more details please visit “NetBeans” section at http://docs.oracle.com/cloud/latest/javacs_common/CSJSU/java-intro.htm#CHDJFAEB
    In case if you still get any error then request you to please elaborate which step you are failing.
    Regards,
    Rituraj Jain

  • Some problem of download BSP data into excel using  cl_bsp_utility= download

    Hello Experts,
    I have read the blog of thomas.jung for download bsp data into excel, and it's working correct, and after some try and error, now I can download the excel with multi sheets.It's all cool except one thing.....when I add a button on the standard screen of the supplier qualification of the slc to download the excel file, after the popinp up screen, the standard screen can't do any operation at all......there are no any error message and the downloaded file is all correct .
    Does any one know what can I do?

    any ideas?
    By the way, after some research, maybe the issue was caused by the setup of the button, but I don't know how to fix it...0rz
    the standard code for buttton is
    lv_id = mv_id && '>display'.
    lo_edit_display_button = cl_thtmlb_button=>factory( id       = lv_id
                                                       text     = lv_button_text
                                                   tooltip  = lv_button_text
                                                   enabled  = 'TRUE'
                                                  onclick  = lv_button_action ).
    WHILE io_page_context->element_process( element = lo_edit_display_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.
    so I copy it and modify like this:
    lv_id = mv_id && '>download'.
        lo_download_excel_button = cl_thtmlb_button=>factory( id       = lv_id
                                                            text     = w_text
                                                        tooltip  = w_text
                                                        enabled  = 'TRUE'
        onclick  = /srmsm/if_ql_ext_ui_c=>ZC_ACTION_DOWNLOAD_EXCEL
    WHILE io_page_context->element_process( element = lo_download_excel_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.

  • How to map the method action return value directly into screen using variables?

    Hi,
    My JDev version is 11.1.1.6.3.
    I have a 'MethodAction' defined in PageDef file, that goes to model layer and return String value. As this needs to be executed during initializing of pageDef, I have also added an 'InvokeAction' for that.
    <executables>
               <invokeAction id="invokeSayHelloId" Refresh="ifNeeded"
                                    Binds="sayHello"/>
               <variableIterator id="variables">
                    <variable Name="Name" Type="java.lang.String"/>
               </variableIterator>
    </executables>
    <bindings>
              <methodAction id="sayHello" InstanceName="HrAMDataControl.dataProvider"
                                     DataControl="HrAMDataControl" RequiresUpdateModel="true"
                                     Action="invokeMethod" MethodName="sayHello"
                                     IsViewObjectMethod="false"
                                     ReturnName="data.HrAMDataControl.methodResults.sayHello_HrAMDataControl_dataProvider_sayHello_result">
                                        <NamedData NDName="pName" NDValue="Michael John" NDType="java.lang.String"/>
             </methodAction>
    </bindings?
    Requirement:
    I want to map the return value of this method action directly into screen by making use of PageDef variables.
    Question:
    I. I need to know how to map this return value direcly as exprssion against PageDef variable.
    2. If Question 1 is achievable, assuming the method action returls List instead of String (I know well it returns 2 items), can I map the 1st Item against Variable 1 and 2nd Item against Variable 2 directly?
    Thanks in Advance.
    Ragu

    Thanks Frank, but If I directly map the MethodAction's result to UI, there are chances where it might get executed whenever I refresh the UIComponent (UIComponent to which the methodAction result is mapped. Isn't so??). Instead, If I invoke the MethodAction using InvokeAction, I can get the control on when it should get invoked (using RefreshCondition). If I assign the variable to UIComponent (Assume I've mapped the method action result to variable using expression), refreshing of UIComponent will not cause any performance issue I feel.
    Correct me If I am wrong.

  • INSERT statement in JSP using variables

    People,
    I am having problems inserting data from JSP into a MySQL database.
    For example the following works perfectly fine:
    String query = "INSERT INTO `test2` (`name`, `topic`, `message`) VALUES ('Jane Doe', 'Hi there', 'Example message')";
    But, however the problems take place if I try to use variable values as parameters instead of pre-defined strings.
    E.g. the following (among a 100 other ways I have tried by now) does not work):
    String query = "INSERT INTO `test2` (`name`) VALUES (`" + userName +"`)";
    stmt.executeUpdate(query);
    This did not work either:
    PreparedStatement PStmt = myConn.prepareStatement("insert into (`name`) values (?)");
    PStmt.setString(1, new String("`" + userName + "`"));
    PStmt.executeUpdate();
    I have tried without parenthesis etc. but what I pretty much get every time is:
    500 Servlet Exception
    java.sql.SQLException: Column not found: Unknown column 'Jane' in 'field
    list'
         at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:508)
         at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java:561)
         at org.gjt.mm.mysql.MysqlIO.sqlQuery(MysqlIO.java:646)
         at org.gjt.mm.mysql.Connection.execSQL(Connection.java:973)
         at org.gjt.mm.mysql.Connection.execSQL(Connection.java:897)
         at org.gjt.mm.mysql.Statement.executeUpdate(Statement.java:230)
         at org.gjt.mm.mysql.jdbc2.Statement.executeUpdate(Statement.java:99)
         at sql3_jsp._jspService(/sql3.jsp:49)
         at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
         at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
         at com.caucho.jsp.Page.service(Page.java:474)
         at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
         at com.caucho.server.http.Invocation.service(Invocation.java:277)
         at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
         at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:334)
         at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:266)
         at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
         at java.lang.Thread.run(Thread.java:484)
    I do not know much about SQL or JDBC but the material I have seen makes me believe
    that I am pretty much doing the right thing.
    What is the right way of doing this?
    I would greatly appreciate any feedback.

    Hi,
    I think i know the problem.
    Take a look on your String code :
    "INSERT INTO `test2` (`name`, `topic`, `message`) VALUES ('Jane Doe', 'Hi there', 'Example message')";
    it is not necessary to put QUOTE for the tablename and the fields.
    my code work with :
    String query = "INSERT INTO test2 VALUES( ' " + 123 + " ' ) ";
    ( if you inserting into all fields in your table ) OR
    String query = "INSERT INTO test2 ( abc ) VALUES( ' " + 123+ " ' ) ";
    ( if you need to select certain fields ).
    or you can try to refer to :
    http://www.w3schools.com/sql/sql_insert.asp
    hope this help.

  • How to use given WSDL into SOAP Receiver Adapter.

    Hi all,
    http://www.webservicex.net/ValidateEmail.asmx?WSDL
    I want to use this above given WSDL into SOAP Receiver Adapter.
    Can I directly use this link into SOAP Receiver adapter.
    Or first I need to register or deploy it somewhere in PI ( Services).
    If Yesu2026 Kindly show/Provide me the way..
    Regards
    Prabhu.

    Thanks to all,
    i will now try to make the complete end to end scenario.
    thanks for now.
    I hope above given information would be enough to make end to end webservice scenario.
    for now, i i am closing this thread.
    if i will find any more further problems in this ... i will come up with new thread.
    Thanks all,
    Prabhu
    I have assigned 2 Points to AMIT , abishek
    Edited by: Prabhathcl on Jun 9, 2010 8:39 AM
    Edited by: Prabhathcl on Jun 9, 2010 8:39 AM
    Edited by: Prabhathcl on Jun 9, 2010 8:40 AM

  • Problems in syncronyzing two threads into Test Stand using a Global Variable (TestStand 4.1.1)

    I have one thread that is doing TCPIP Aquisition into a Global variable defined in Teststand. And I have another thread that it supose to read it. All are in the same sequence and execution. The problem is that the aquisition thread got a lot of bytes, while the processing thread is reading always only a few. Do you know what the problem could be?
    I will attach also some pictures just to be maybe more clear...
    Attachments:
    Implementation_pictures.zip ‏368 KB

    I wasn't looking at your Sequence, I was looking at Receive_HDL_Block.JPG. What is that VI doing (the one with number 3 on the icon and Size_in_bytes as an input) ?
    Where in teststand are you doing any checking?
    I don't really understand your sequence.
    You have a sequence (running in a new thread) (why), following by another called Receiver Handler (also running in a new thread) then two more sequences which seem to do some with transmitting something (also running as new threads). You are only waiting on one of these threads (the Receiver Handler). There does seem to be any loops in TestStand, you dont seem to be bothered about the other threads that you have running. What happens when this test sequence finally does stop, what is stopping the Threads that you have running.
    Your pictures dont really seem to fit in with your Test Sequence, such as where does Test_005.vi fit into everything
    The whole thing is a bit of a nightmare.
    Maybe your best bet would be to scrap the lot and start again. Only this time have a better understanding of what you what to achieve, what would be best to put into Teststand and what to put into labview. Whether you really need all those new threads running.
    Sorry to be so blunt.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Problem while import u201CSAPKU60003 & SAPKNA7013u201D into SAP CRM 2007

    Gentlemen,
    I have a problem while import u201CSAPKU60003 & SAPKNA7013u201D into SAP CRM 2007,
    My current Support Package Level is:
    SAP_ABA       700     0015
    SAP_BASIS     700     0015
    PI_BASIS      2006_1_700     0006
    ST-PI     2005_1_700     0006
    CRMUIF         600     0003
    SAP_BW       700     0017
    SAP_AP                700     0012
    BBPCRM                600     0002
    First I had the following error:
       Syslog: k CQ3 : UMGSETTING&                                          rscpexcc 12
       GetDBMigrateCodePagesLangs uses TCP0D, TCPDB, TCP0C.
         0 entries from FUNCT (%/SAPCND/CNF_GET_RECORD_FROM_DB%) deleted.
         0 d /   0 i /   0 u /   6 = 100% ucf FUPARAREF
         6 entries for FUPARAREF imported (/SAPCND/CNF_GET_RECORD_FROM_DBA*).
         0 entries from RODIR (FUNC/SAPCND/CNF_GET_RECORD_FROM_DB) deleted.
         0 entries from RODIR (FUNC/SAPCND/CNF_GET_RECORD_FROM_DB) deleted.
         0 d /   0 i /   0 u /   1 = 100% ucf TFTIT
         1 entry for TFTIT imported (D/SAPCND/CNF_GET_RECORD_FROM_DB*).
       successfully set a temporary lock on table REPOSRC
       REPOS /SAPCND/LDETERMINATION$14                A replaced.
       REPOS /SAPCND/LDETERMINATIONU14                A replaced.
        [dev trc     ,00000]  Wed Nov 26 16:33:14 2008                         1315447  8.171484
        [dbdsoci.    ,00000]  *** ERROR => invalid offset 0 for placeholder 16
                                                                                    71  8.171555
       unsuccessful statement: EXEC SQL: SELECT ID,OBJECT,LANGU,TYP,VERSION FROM DOKIL WHERE (LANGU IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,
       dsql_open returned with unexpected error code 2
       Please contact the SAP support.
       End of Transport (0016).
       date&time: 26.11.2008 - 16:33:14
       5 warnings occured.
       3 errors occured.
       Main import
       End date and time : 20081126163314
       Ended with return code:  ===> 16 <===
    After I got this error I upgraded the Kernel from patch level 159 to 179,
    After that I restarted the update again but the system is still running on u201CIMPORT_PROPERu201D and dose not given any update,
    From Import logs of the queue I can see the following,
       Summary:
        24 DOCUT imported.
        16 DYNPS imported.
        30 DYNPT imported.
       387 REPOS imported.
        43 REPOT imported.
       Totally 505 Objects imported.
       Totally 3636 tabentries deleted.
       Totally 14 objects activated.
       Totally 12229 tabentries imported.
       62066888 bytes modified in database.
        [dev trc     ,00000]  Wed Nov 26 18:14:19 2008                         20996974  40.917838
        [dev trc     ,00000]  Disconnecting from ALL connections:                   30  40.917868
        [dev trc     ,00000]  Disconnecting from connection 0 ...                  287  40.918155
        [dev trc     ,00000]  Closing user session (con_hdl=0,svchp=00000000003005B8,usrhp=00000000002FB748)
                                                                                  5759  40.923914
        [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=00000000003005B8,srvhp=00000000061530E8)
                                                                                    921  40.924835
        [dev trc     ,00000]  Now I'm disconnected from ORACLE                    8230  40.933065
        [dev trc     ,00000]  Disconnected from connection 0                        90  40.933155
        [dev trc     ,00000]  statistics db_con_commit (com_total=527, com_tx=307)
                                                                                    59  40.933214
        [dev trc     ,00000]  statistics db_con_rollback (roll_total=0, roll_tx=0)
                                                                                    52  40.933266
       Disconnected from database.
       End of Transport (0004).
       date&time: 26.11.2008 - 18:14:19
       2 warnings occured.
       Main import
       End date and time : 20081126181419
       Ended with return code:  ===> 4 <===
    Please advice me.
    Regards,
    Ahmed

    I have similar problem while updating support packages in SAP R/3 4.6C environment. 
    000 unsuccessful statement: EXEC SQL: SELECT ID,OBJECT,LANGU,TYP,VERSION FROM DOKIL WHERE (LANGU IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,
    000 dsql_open returned with unexpected error code 1                                                                             
    000 unsuccessful statement: EXEC SQL: SELECT ID,OBJECT,LANGU,TYP,VERSION FROM DOKIL WHERE (LANGU IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,
    000 dsql_open returned with unexpected error code 1                                                                             
    Here is an outline of series of events that happened:-
    We are applying in support packages in SAP R/3 4.6C HR Development
    (TFI) environment. We planned with installing all the SP stacks
    starting from 1 to 9.
    -Updated kernel, tp , r3trans and SPAM level to latest level.
    We received the following error in Import_Proper step of Support
    package upgrade. Though the step has been repeated after making sure
    that we have all the required files at OS level, we go this error
    repeatedly.
    Main import
    Transport request___: SAPKB46C52
    System______________: TFI
    tp path : tp
    Version and Release: 305.13.25 46D
    check-sum error in datafile after 9374854 bytes.
    Main import
    End date and time : 20081205192603
    Ended with return code: ===> 16 <===
    When we renamed Co-File & data_file at OS level to see if the files are
    created again and reran we got the following error.
    Main import
    Transport request___: SAPKB46C52
    System______________: TFI
    tp path : tp
    Version and Release: 305.13.24 46D
    Main import
    End date and time : 20081205185117
    Ended with return code: ===> 12 <===
    We tried importing the individual support package SAPKB46C52 from STMS
    and the transport cancelled at an earlier step with the same error.
    Dictionary import
    Transport request___: SAPKB46C52
    System______________: TFI
    tp path : tp
    Version and Release: 305.13.25 46D
    check-sum error in datafile after 9374854 bytes.
    Dictionary import
    End date and time : 20081205195929
    Ended with return code: ===> 16 <===
    While playing around I have deleted the transport from the tp buffer
    and added manually, before doing so I made a backup of tp buffer at OS
    level and I got following error though I reverted back to backed-up
    copy.
    - Error in phase: IMPORT_PROPER
    - Reason for error: TP_BUFFER_INCONSISTENCY
    - Return code: 0008
    - Error message: Wrong sequence of Packages in the tp buffer (e.g.
    SAPKB46C52 )
    I then tried to disassemble the package separately and reran the
    import queue. Now I have RC 8 on that support package.
    When I did R3trans -l on the datafile it completed successfully.
    D:\>R3trans -l \usr\sap\trans\data\RB46C52.SAP
    This is R3trans version 6.05 (release 46D - 27.10.08 - 16:32:00).
    R3trans finished (0000).
    I verified the size of file "CSR0120031469_0023301.PAT" and it is the
    same as mentioned in SSP.
    Let us know is there is a workaround.

  • How to store crystal report (rpt file) into disk using java

    hello
    i want to coonect my report file to java .want convert this file into pdf and store into disk using simple java program
    if any have code for this then provide me
    thanks & regards
    ram

    Have you given up on your other threads? All your questions seem to be on the same general problem. Could you please stop creating new threads for this?

  • Extracting a Report from SAP Spool into a Useful Excel 2010 Format

    Hi All,
    Extracting a Report from SAP Spool into a Useful Excel 2010 Format.  I'm currently running the following report in SAP  and would like the
    ability to set this report up as a recurring report running weekly and
    subsequently access this report in a useable Excel 2010 format without
    much data manipulation.  Can you please assist me.  Below, I've tried to
    provide an example of what I'm encountering.   Thanks, beforehand for
    your assistance.
    Here goes:
    Step one: Run 62 Report in SAP S_P99_41000062- Material List Price and
    Inventory
    Step 2. Select stored Variant "Weekly KPI", ok. Enter the enter  the
    desired company code and period I want thre report to run for and update
    the currency, if necessary. Having input my desired criteria, I believe
    I can either execute immediately, run in the background, preset to run
    at date in the future. For this example let's just execute, immediately.
    This is where the difference originates. Given, I run this report
    immediately, I'm able to simply extract the result to Excel via the list
    selection noted in the tool bar below.  The result is a data friendly
    excel 2007  report is automatically generated.
    Export to Excel via list:
    Select save and Excel 2007 opens automatically:
    That said, the method outlined above works perfectly fine if you want
    the report immediately.  Now let go back and run the exact same report
    with exceptoin of running it in the background and having to retrieve it
    from the Spool (SP01) uisng my user ID.  Given the report generated in
    the background,  I would now access the report via the spool and make
    the following selections:
    SP01 + execute to see my report
    I would hit the sunglasses to see the actual report, then want to
    extract this report to Excel by selecting the export option.
    I would at this point select spreadsheet and be given an option to save
    the spreadsheet to local file. However, upon trying to open the
    spreadsheet I will receive an error messageindicating that the format is
    different than that which the file I am currently trying to open it
    with.  I'm currently running Excel 2010 on my computer.  The currency
    format and other issues arrise with this extract.  Please help. 
    Thanks,
    Chowadary.

    Update to Latest GUI.
    Use   List -> Export -> Spreadsheet  to get the output to excel.
    I remember in ALV max length allowed is 1023 characters and the max no of columns supported is 90. Issue occurs when row size of exported data gets more than 1023 character. (This includes if Long/Medium Header Text used ) If it exceed 1023 character the columns splits and moves to next row.
    Check your fieldcatog for header lengths.
    -Satya

  • HT1473 I have always imported my cds into iTunes using one step called 'joining cd tracks' which is done under the "Advanced" drop down menu. I then went on with the process. Half way through the process today the "join tracks' choice greyed out. Not avai

    I have always imported my cds (including books) into iTunes using one step called "join cd tracks" which is under the "Advanced" menu. Never a problem. But today I was importing a 10 disc book and on the 7th disc all of a sudden the choice to join cd tracks was greyed out. I have tried it with other discs. No luck. How can I get to this option again. I was not doing anything different so don't know what took away this choice. Can anyone help me?

    Thought it had worked but soon found out it had not.
    after further days of trying finally, solved it for me Yesterday.
    turned off notifications when locked, and bingo, wow.
    i have not turned off iCloud but location services are also off.
    best thing to do I found was keep checking your usage, settings, general, usage, and flip down to bottom, if the standby and usage are similar there is a problem, if there is a big difference then all is ok. Just keep turning things off and on until the difference is very apparent.
    something on my phone was keeping the phone alive even when turned off, and I think this was the phone repeatedly trying to update continually.
    to me this is definitely down to the iOS, my wife has exactly same phone and iOS but hers doesn't have any problem and the battery lasts for days.
    the guy at the Genius Bar told me to restore the phone via iTunes, not iCloud. This is because iCloud remembers the exact info from your phone and simply reinstates it when you restore, and this includes the iOS too.
    when I get home from holidays that's what I'll do, or wait for iOS 8 in few weeks. But I'm so pleased I finally made it work, I was beginning to think ditch the phone and buy Samsung.
    anyway anyone out there please try my final solution and let me know if it works for you?

  • Hello Apple community... I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.

    I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.  When I drag the doc in a line would show up in the past, and if I went above th eline all was good.  It doesn't have a line, and no matter what I try I am having no success.
    Please help!

    According to an Apple Support article, unless there are unforeseen issues
    in file ownership or permissions, the combining of .PDFs should be simple.
    •OS X: Combining PDF documents using Preview - Apple Support
    There are a few variable and similar methods, some change with version
    of OS X in use; some vintage OS X may vary a little in the process...
    A variety of similar topics appear in search results, with terms:
    " mac os x combine pdf into one " such as this page shows...
    https://www.google.com/?gws_rd=ssl#q=mac%20os%20x%20combine%20pdf%20into%20one
    If the system is older than Mavericks there may be other methods to try.
    Suggestions are among linked results in the search. I see a few fair ones.
    •Here's another that offers generally similar suggestions...*  this info looks OK, extra links, do not:
    http://osxdaily.com/2014/06/27/how-to-join-multiple-pdf-files-into-a-single-pdf- document-in-mac-os-x/
    { note: avoid clicking on links to products in * this ^ page, since they likely will not help & may be adware prone }
    If you have a problem after trying other methods, based on an OS X
    your computer is running, post back with more exact information...
    Good luck & happy computing!
    edited

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Error While loading into BW using infoPackage

    Hi All,
    While following directions posted at the following wiki page https://wiki.sdn.sap.com/wiki/display/BOBJ/ConfiguretheLoadJobinBW%28DS+3.2%29,
    we get an error while loading data into BW using infoPackage via Data services 3.2
    In SAP BI side Error says :"Error while executing the following command:  -sJO return code:220"
    On DS side for the RFC server log we get the error" Error while executing the following command -sJOB_SQL_TO_DBI -Ubbu -P;(encrypted password) -A (encryted information) -VMODE=F"
    Issue is still open with support as we still cannot excute the job from infopackage. it is succesfully executed from designer, admin console, batch file.
    Any insights/help would be appreciated.
    Thanks.
    Edited by: rana_accn on Jan 26, 2010 6:48 PM

    Sure I will.
    One thing we have noticed is that in the server_eventlog parameter for the  log line "Starting job with command line parameters are different"
    When job is executed from DS side parameters -Ct -Cm -Ca -Cj -Cp -S -N -Q -U -P -G -r -T -Locale are used
    When job is executed from BW side parameters -Ct -Cm -Ca -Cj -Cp -s -N -Q are used
    Also when the job is executed from BW,  log files start getting created but then trace and error file show an error that cannot open database - and that points to DSCentral repository.This repository is not even mapped to the job server and the job has been exported from the correct repository as command line execution of the job works perfectly fine.
    Thnx
    Just an update we were not able to figure out why this happened in the existing environment. One reason given was that somehow the commands which were being executed from BW side were getting corrupted. We had to build a new environment and this is no longer an issue in the new environment, as now all jobs can be executed from BW. Only difference between the 2 environments was we are now on 12.2.1.3 while earlier we were on 12.2.0.0.
    Edited by: rana_accn on Mar 23, 2010 10:21 PM
    Edited by: rana_accn on Apr 29, 2010 9:46 PM

  • Error in importing image into SAP using SE78

    Hi to all,
    I was trying to upload a '.bmp" image into SAP using SE78 but I failed.
    Se78 -> BMAP Bitmap Image -> Graphic -> Import -> Specified the complete path ->given name desc and type .
    Ended up with the following message.
    Graphic TRF_LOGO_REV could not be saved
    (2TRF_LOGO_REV)
    Pls. help as I am not sure whether I missed any step.
    Thankx in advance.

    Hi,
    Go to SE78 Transaction ie Aministration of form graphics,
           there select GRAPHICS General Graphics,under this BMAP Bitmap Images will come.
           select that,then a sub window will appear.
    There give the name of your logo and select the import button which is at the extreme left.
           Then again a sub window appears,there give the path name and name of the logo,and some description then press enter.
    Now the logo is uploaded,for preview you can select last button which is print preview.
    Now goto the form,select the window where you want to print the logo.
           Then in that window place the cursor at tag coloumn and select command line.
           Now go to INSERT and select GRAPHICS.A subwindow appers click on 'stored on Document Server',
           give the name of the logo and press enter.
           Then the image information will be displayed on the form.Save the form and activate it.
    Go to se38 transaction write the print program and execute.
    Regards,
    jaya

Maybe you are looking for