Getting NullPointerException while executing OMBIMPORT in OWB 11gR2

Hi,
When running BSC Expert in OWB 11gR2 along with 11.2 Database, getting the following error:
"PUB03302: Failed to connect to user null in source database null:null:null:java.lang.NullPointerException"
while executing the statement
OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'BSC_C_$G_OBJECTIVE' .
Since I am totally new to OMB+, I have no idea about why this is happening.
Could anyone please give some pointers/solutions for this problem. Because of this issue we are not able to proceed with our certification.
Thanks,
Karthik.

Looking at the exception, looks like the metadata location for module is not set.
Did you set the metadata location for the module? metadata location is different from data location. metadata location is used for reverse engineer. Please open the module editor, switch to metadata location panel, check if the metedata location is set.

Similar Messages

  • Trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error o

    trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error occurred." message appears.  how do I fix this?

    Try this Technote
    http://kb2.adobe.com/cps/405/kb405604.html
    Try step 4 here
    http://kb2.adobe.com/cps/405/kb405604.html#main_dat

  • Java.lang.NullPointerException  while executing ODI package

    hi,
    while executing some of my packages in ODI 11g....
    i m getting the following error
    java.lang.NullPointerException
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPopSourceSet(SnpGeneratorSQLCIT.java:7984)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPopCollectionBuild(SnpGeneratorSQLCIT.java:7771)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.preComputePop(SnpGeneratorSQLCIT.java:7713)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPop(SnpGeneratorSQLCIT.java:7623)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPackageStep(SnpGeneratorSQLCIT.java:10636)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPackageSessionInternal(SnpGeneratorSQLCIT.java:3212)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPackageSession(SnpGeneratorSQLCIT.java:3168)
         at com.sunopsis.graphical.dialog.SnpsDialogExecution.doPackageExecuter(SnpsDialogExecution.java:936)
         at oracle.odi.ui.action.SnpsPopupActionExecuteHandler.actionPerformed(SnpsPopupActionExecuteHandler.java:68)
         at oracle.odi.ui.SnpsFcpActionAdapter.handleEvent(SnpsFcpActionAdapter.java:252)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    plz help me out....

    Hi,
    At what step of the package ur getting this error?
    ODI throughs this err, when
    e.g.,Suppose you are refreshing a variable with the select query and that select query has no data found in that case u can get the null pointer exception(one of the case).
    variable: p_refresh and in the refresh query is something like
    select 1 from dual where 1=2;
    When the above refresh query quites it through the null pointer exception.

  • Getting error while executing workflow: java.lang.OutOfMemoryError.

    Hi,
    I am getting the below error while executing the unassigment workflow on AD resource having 160 user objects.
    java.lang.OutOfMemoryError.
    Please provid your inputs on this.
    Your help wolud be appriciated.
    Thanks
    Renuka.

    Well, if you're getting an out of memory exception then your memory settings are too low. Odds are there's a period of activity where the memory usage spikes above what you've configured for the VM.

  • Odata JDBC Service: getting NullPointerException: while trying to invoke the method

    Hi,
    I am testing OData, for that I followed the steps given in this tutorial:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
    It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
    Manually entered all it's properties and then deploy it.
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    Issue 3:
    When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
    URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
    Response:
    <?xml version="1.0" encoding="utf-8"?>
    <service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
      <workspace>
       <atom:title>Default</atom:title>
       <collection href="StockSet">
       <atom:title>StockSet</atom:title>
       </collection>
      </workspace>
    </service>
    Now I need to run StockSet, so next url to access the stock list,
    to get stocks:
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Now I get the following response:
        <?xml version="1.0" ?>
        <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
        <code>
        </code>
        <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
        </error>
    I am not able to figure out, why I am getting this error and how to fix it.
    All I want is to create a ODAta on ESPM_STOCK sample table given in example.
    Looking forward to hear from you.
    Thanks.

    Waqas Sadiq
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Are you working on SMP3.0 (lower version than SP03)?
    If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
    e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
    Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
    You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
    Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
    Please go through this blog for more understanding:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
    Note: seems this problem has been resolved in SMP3 SP03
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
    Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
    Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
    Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
    Does this URL expect any input parameters?
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Regards,
    JK

  • Getting Error while Execute SSIS Package from Console Application

    Dear All,
    SSIS package working fine directly.
    I got following error while execute SSIS package from C# console application.
    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    OLE DB Destination failed validation and returned error code 0xC004800B.
    One or more component failed validation.
    There were errors during task validation.
    Code : 
       public static string RunDTSPackage()
                Package pkg;
                Application app;
                DTSExecResult pkgResults;
                Variables vars;
                app = new Application();
                pkg = app.LoadPackage(@"D:\WORK\Package.dtsx", null);
         Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = pkg.Execute();
    I have recreate the application with again new connection in SSIS.
    Still not working, Please provide solution if any one have.
    DB : SQL Server 2008 R2
    Thanks and regards,
    Hardik Ramwani

    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    Are you sure that you are running the same package via .NET which works fine from Visual Studio?
    By reading error message, I can say that you have copied OLEDB task from another package OR you have deleted one OLEDB connection manager. Now when package is run this task tries to use the connection manager and not found thus throws error message.
    Open all OLEDB destination tasks and you find connection manager missing. Connection Manager name should be provided there
    Cheers,
    Vaibhav Chaudhari
    MCSA - SQL Server 2012

  • Getting NULLPointerException while merging pdf files using PDFDocMerger

    Hi,
    I am using BI Publisher 11.1.1.7 Version Jar Files to use PDFDocMerger Class in Jdeveloper and my requirement is,
    need to merge pdf files taking from the third party server.So, I am passing url as an input to PDFDocMerger(As per BIP documentation we can pass url as an input to PDFDocMerger using Object Class) but I am getting NULLPointerException.
    I am using below code:
    import java.io.File;
    import java.io.FileOutputStream;
    import oracle.xdo.common.pdf.util.PDFDocMerger;
    public class PDFMerger
    public PDFMerger() {
         public void pdfDocumentMerger() {
    try {
    System.out.println("Testing1");
                      Object[] f = new Object[2];
                f[0]= ("http://docs.mytxi.com/downloads/Invoices/OE/06082013/02599553.PDF");
                f[1]= ("http://docs.mytxi.com/downloads/Invoices/OE/06082013/02599553.PDF");
                FileOutputStream output;
                output = new FileOutputStream("c:\\docs\\OutputPDF.pdf");
         System.out.println("Testing3" + f[0]);
                PDFDocMerger pdfMerger;
                pdfMerger = new PDFDocMerger(f, output);
         System.out.println("Testing4");
          pdfMerger.process();
         System.out.println("Testing5");
    pdfMerger = null;
    output.close();
         }//try
          catch (Exception e)
          System.out.println(" Exception " + e.getMessage()) ;
          e.printStackTrace() ;
          System.out.println("End") ;
       public static void main(String[] argv) {
    PDFMerger xmlPublisher;
    xmlPublisher = new PDFMerger();
    xmlPublisher.pdfDocumentMerger();
    Error:
    Testing1
    Testing3http://docs.mytxi.com/downloads/Invoices/OE/06082013/02599553.PDF
    Testing4
    Jul 22, 2013 10:22:22 PM oracle.xdo.common.pdf.util.PDFDocMerger$PDFUtility <init>
    SEVERE: The first input to be merged has problem and caused stopping merging
    Jul 22, 2013 10:22:22 PM oracle.xdo.common.log.Logger log
    WARNING: java.lang.NullPointerException
    at oracle.xdo.template.pdf.util.PDFObjectDictionary.<init>(PDFObjectDictionary.java:36)
    at oracle.xdo.common.pdf.util.PDFDocMerger$PDFUtility.checkIfDupFields(PDFDocMerger.java:2438)
    at oracle.xdo.common.pdf.util.PDFDocMerger$PDFUtility.processWithNoOut(PDFDocMerger.java:2932)
    at oracle.xdo.common.pdf.util.PDFDocMerger.generateMergedPDF(PDFDocMerger.java:623)
    at oracle.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:551)
    at oracle.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:506)
    at xxtxi.oracle.apps.ar.iex.server.PDFMerger.pdfDocumentMerger(PDFMerger.java:24)
    at xxtxi.oracle.apps.ar.iex.server.PDFMerger.main(PDFMerger.java:40)
    Exception java.lang.Exception: Document #2 looks corrupted.
    oracle.xdo.XDOException: java.lang.Exception: Document #2 looks corrupted.
    at oracle.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:510)
    at xxtxi.oracle.apps.ar.iex.server.PDFMerger.pdfDocumentMerger(PDFMerger.java:24)
    at xxtxi.oracle.apps.ar.iex.server.PDFMerger.main(PDFMerger.java:40)
    End
    Process exited with exit code 0.
    It would be great, if any one provide solution on this issue.
    Thanks,
    Irfan.

    One of the merged PDF was edited by using the "Adobe Lifecycle Assembler" tool and i was able to open that file successfully in my machine.
    Is bi publisher API compatible with such files?
    It would be great, if any one can throw some light on this issue.
    Thanks,
    Indira

  • How to get Quername while executing query in CMOD

    Hello,
    I have written some code for giving authorization to the users while excuting query,
    i need to find users with role YB_CRM_MN_ADMINISTRATOR which i can get through FM CRM_ROLES_OF_USER_GET.
    After that I need to find the query it is executing, if it is ZZCMI0UO01_Q0002 the user should have all the access to view all the data in the query or have limited data access.
    how can i get the Query name at runtime ??
    Thanks in advance.
    regards,
    Mahesh

    The result of the query is normally shown via an iterator which ids bound to a vo. After the query is executed you can check the iterator (estimatedRowCount >0) and then insert a message.
    Got this you need to use your own query listener (sample for this http://andrejusb.blogspot.de/2008/11/adf-query-component-and-view-criteria.html) here you execute the query and after that get the estimated row count.
    Timo

  • Issue in getting score while executing the matching strategy

    Hi,
    On executing the matching strategy, even if there is a duplicate count of zero in the record pane, some score is calculated. I want to know how does the system get that score even if there is no potential duplicate in the matches pane. 
    Also we are facing an issue - whenever the matching strategy is executed, some score is calculated which does not match with any one of the individual score in the match pane.
    Can anyone guide me what might be the reason?
    Regards,
    Indraveer

    Hi Indraveer,
    On executing the matching strategy, even if there is a duplicate count of zero in the record pane,
    some score is calculated. I want to know how does the system get that score even if there is no
    potential duplicate in the matches pane.
    First i want to clarify how this score getting calculated.
    In the record pane the three extra coloumn tell about the result about matching strategy
    Count : this represent the no of record matches with the selected record based on the matching strategy executed
    Class : This defines
    Score : this contains the sum of score of all rules that contain in strategy i.e. You know in rules tab we define the value for
    SUCCESS
    FALIURE
    UNDEFINED
    So in  the score section it calcilates the score of each rules that you included in executed strategy.
    For Example
    Your 1st rules contain values like
    SUCCESS :2
    FALIURE  :1
    UNDEFINED:0
    Your 2nd rules contain values like
    SUCCESS :3
    FALIURE  :1
    UNDEFINED:0 (this score if contain NULL values and data manger unable to execute the matching)
    Now ypu included these two rules in strategy and define
    High threshhold : 5
    Low threshhold :4
    Now you execute the strategy
    I will consider yr case that no one record matches .In this case  score section will contain value 2 because it fails in matching
    any rules so it get  1 for rule1  and 1 from Rule2.
    Hope it clarifies yr doubt.
    Also we are facing an issue - whenever the matching strategy is executed, some score is calculated which does not match with any one of the individual score in the match pane.
    After Whatever i understand from yr statement,this will be the case when you have multiple rules  ans some record  succeed in all rules while some are succeed in one and fail in second rule.
    For example :
    we have 3 record in table in which first one matches with both record for all rules where as second  record matches with some record for first rule and some for second rule  so their total score  calaculate accordingly
    and third record matches with some reord  for second rule  and some record with first rule so their score will calculate automatical;ly.
    so in this case when u select  first record  in record pane and  open match pane you will see other two record with different score as this score shows there personal score after executing matching strategies.
    Hope this will help you to clarify yr doubt .
    For further reading please check the data manager reference guide  on page 500.
    Thanks,
    Sudhanshu

  • Spanish characters getting garbled while executing command using Java code

    Hi,
    I try to execute a command using java code. output of the command contains spanish characters. Few of these characters getting garbled after the command execution.
    Runtime r = Runtime.getRuntime();
              Process p = null;
    String pgm="ipconfig /all";
              try
                        p = r.exec(pgm);
    BufferedReader br=new BufferedReader(new InputStreamReader
                                  (p.getInputStream()));
    while((val = br.readLine()) != null){ System.out.println(val);
              catch (Exception e)
                        return (null);
    I tried to run the code using -Duser.language=es -Duser.region=ES -Dfile.encoding=Cp850, but this did nt help. I could see the outputs properly in command prompt,
    If i redirect the output to a text file , it is getting garbled,
    Please let me know to solve this issue.

    884543 wrote:
    Hi,
    I try to execute a command using java code. output of the command contains spanish characters. Few of these characters getting garbled after the command execution.
    Runtime r = Runtime.getRuntime();
              Process p = null;
    String pgm="ipconfig /all";
              try
                        p = r.exec(pgm);
    BufferedReader br=new BufferedReader(new InputStreamReader
                                  (p.getInputStream()));
    while((val = br.readLine()) != null){ System.out.println(val);
              catch (Exception e)
                        return (null);
    I tried to run the code using -Duser.language=es -Duser.region=ES -Dfile.encoding=Cp850, but this did nt help. I could see the outputs properly in command prompt,
    If i redirect the output to a text file , it is getting garbled,
    Please let me know to solve this issue.Set the character set to UTF-8 to your InputStreamReader, for More details on usage refer the java api :
    http://download.oracle.com/javase/6/docs/api/java/io/InputStreamReader.html

  • Not able to get data while executing in background for mb52

    Dear all,
    my requirement is i want to schedule the zreport for every 1 hour.but proble is when iam executing in fore ground iam able to get data.but when iam going to scheduling this iam not able to get data.
    my code is
    type-pools:slis.
    data zbudat type RANGE OF budat.
    data wab like line of zbudat.
    data zmatkl type RANGE OF MATKL.
    data waz like line of zMATKL.
    data zwerks type RANGE OF werks.
    data wax like line of zwerks.
    waz-sign = 'I'.
    waz-low = 'CRUDE'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    waz-sign = 'I'.
    waz-low = 'SGO'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    *waz-sign = 'I'.
    *waz-low = 'FINES'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'LUMPS'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'UFO'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    wax-sign = 'I'.
    wax-low = 'BIMI'.
    wax-option = 'EQ'.
    append wax to zwerks.
    clear wax.
    wax-sign = 'I'.
    wax-low = 'BIPL'.
    wax-option = 'EQ'.
    append wax to zwerks.
    *waz-sign = 'I'.
    waz-low = 'C'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'S'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'UC'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *waz-sign = 'I'.
    waz-low = 'F'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'L'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    types:begin of w_tab,
           bwkey type werks_d,
           matnr type matnr,
            lgort type LGORT_D,
            budat type budat,
            labst type labst,
           endmenge type p decimals 3,
          end of w_tab.
          DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB WITH HEADER LINE .
    FIELD-SYMBOLS: <gt_fieldcat> TYPE slis_fieldcat_alv,
    <gt_report_list> TYPE w_tab .
    field-symbols <lt_pay_data> type any table.
    *FIELD-SYMBOLS : <LT_DATA> LIKE LINE OF IT_TAB .
    FIELD-SYMBOLS : <LT_DATA> type any .   " i have chaged  it
    data lr_pay_data type ref to data.
    cl_salv_bs_runtime_info=>set( exporting display = abap_false
    metadata = abap_false
    data = abap_true ).
    ****SUBMIT ZQM_GR_BARGE_LOADING WITH S_date in zbudat with s_werks in zwerks with p_pend = ' ' AND RETURN .
    submit RM07MLBS  with MATKLA in zmatkl with werks in zwerks
    "with XVBST = 'X'
    using selection-SCREEN '1000' and return.
    try.
    cl_salv_bs_runtime_info=>get_data_ref( importing r_data = lr_pay_data ).
    assign lr_pay_data->* to <lt_pay_data>.
    catch cx_salv_bs_sc_runtime_info.
    message `Unable to retrieve ALV data` type 'E'.
    endtry.
    cl_salv_bs_runtime_info=>clear_all( ).
    data: obj_s type ref to ZKMINCO_MINESTOCKFROM_SAP_OUT.
    create OBJECT obj_s.
    data : output TYPE ZKMINMINESTOCKFROM_SAP1 ,
            record type ZKMINMINESTOCKFROM_SAP_REC_TAB ,
           wa_record like line of record.
    LOOP AT <lt_pay_data> ASSIGNING <LT_DATA>.
    MOVE-CORRESPONDING <LT_DATA> TO IT_TAB .
    APPEND IT_TAB .
    wa_record-STOCK_AS_ON_DATE = sy-datum .
    wa_record-STOCK_AS_ON_TIME = sy-uzeit .
    wa_record-PLANT_ID = it_tab-bwkey.
    wa_record-STORAGE_LOC_ID = it_tab-lgort .
    wa_record-MATERIAL = it_tab-matnr .
    wa_record-STOCK_QTY = it_tab-labst.
    append wa_record to record.
    clear wa_record.
    endloop.
    output-MINESTOCKFROM_SAP-record = record .
    CALL METHOD obj_s->MINESTOCKFROM_SAP_OUT
      EXPORTING
        output = output .
    commit work.
    Thanks in advance.

    Hi,
    I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)
    zforeground has :
    1. a input field to browse excel sheet or some file at the selection screen, and
    2. button 'post all' to determine the background processing.
    Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked.
    So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:
    DATA: jobname LIKE tbtcjob-jobname.
    DATA :jobcount LIKE tbtcjob-jobcount,
    host LIKE msxxlist-host.
    DATA: BEGIN OF starttime.
    INCLUDE STRUCTURE tbtcstrt.
    DATA: END OF starttime.
    DATA: starttimeimmediate LIKE btch0000-char1.
    DATA: gv_job_dt TYPE sy-datum,
    gv_job_tm TYPE sy-uzeit.
    jobname = 'EXCLUSION_LISTING'.
    gv_job_dt = sy-datum.
    gv_job_tm = sy-uzeit.
    Job open
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    delanfrep = ' '
    jobgroup = ' '
    jobname = jobname
    sdlstrtdt = sy-datum
    sdlstrttm = sy-uzeit
    IMPORTING
    jobcount = jobcount
    EXCEPTIONS
    cant_create_job = 01
    invalid_job_data = 02
    jobname_missing = 03.
    IF sy-subrc NE 0.
    "error processing
    ENDIF.
    Insert process into job
    SUBMIT ZBACKGROUND AND RETURN
    WITH p_file1 = gv_file_cust_exc "<----
    Parameters which you want to pass to report zbackground from the report
    WITH p_file2 = gv_file_win_deal "------zforeground
    USER sy-uname
    VIA JOB jobname
    NUMBER jobcount.
    IF sy-subrc ne 0.
    "error processing
    ENDIF.
    Close job
    starttime-sdlstrtdt = gv_job_dt.
    starttime-sdlstrttm = gv_job_tm.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    event_id = starttime-eventid
    event_param = starttime-eventparm
    event_periodic = starttime-periodic
    jobcount = jobcount
    jobname = jobname
    laststrtdt = starttime-laststrtdt
    laststrttm = starttime-laststrttm
    prddays = 1
    prdhours = 0
    prdmins = 0
    prdmonths = 0
    prdweeks = 0
    sdlstrtdt = starttime-sdlstrtdt
    sdlstrttm = starttime-sdlstrttm
    strtimmed = starttimeimmediate
    targetsystem = host
    EXCEPTIONS
    cant_start_immediate = 01
    invalid_startdate = 02
    jobname_missing = 03
    job_close_failed = 04
    job_nosteps = 05
    job_notex = 06
    lock_failed = 07
    OTHERS = 99.
    IF sy-subrc EQ 0.
    WRITE:/1 'JOB' COLOR 3,
    jobname COLOR COL_GROUP,
    'Scheduled in Background' COLOR 3. "error processing
    gv_time = starttime-sdlstrttm.
    gv_date = starttime-sdlstrtdt.
    ENDIF.
    Above code will schedule the report zbackground in background.
    Note:
    the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program schhedulling it in foreground or it has to be thr in application server.
    Regards,
    Ravi

  • Getting error while executing a procedure and assign the output in BPEL

    Hi
    I am getting the Following error while deploying BPEL in 10.1.3.1. I have invoked Database Adapter and called a procedure and that procedure returns a output. I have assigned that output to a variable.
    empty variable/expression result.
    xpath variable/expression expression "/ns2:OutputParameters/ns2:GREETING" is empty at line 98, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns2:OutputParameters/ns2:GREETING" is not empty.
    Please reply me with Solutions

    Hi,
    Are you getting this error while deploying or testing ?
    Normally this will happen due to namespace mismatch issue. But if you have auto-created the variables then JDev will take care of it so it should not be a problem
    Also, please check if this also happens if the code is deployed to 10.1.3.3 ?
    Regards,
    ketan

  • Getting error while executing DTP

    Hello, 
    I am learning BI 7.0, am trying load master data from a flatfile to InfoObject. I am getting error when I execute DTP.
    I have 15 records in the file. Below are the message that I see in the DTP monitor
    -  Extraction DataSource  ( shows green light)
    - Filter out New Records with Same Key ( shows red light) Below are the messages for 15 records
    ' Record filtered in advance as error records with the same key exist'
    Please help me how to resolve this error.

    I checked my flatfile it looks as following structure
    LANG    Material Number      Mat Desc
    E          MAT001                   text1
    E          MAT002                   text2
    E          MAT003                   text3
    I checked the transformations, it shows 'Key' sign against  both lang and material number field. I checked the datasource field list and I 'Key' column is not checked. I don't know where key field settings need to be done. According to my understanding combination of Lang and Material Number forms the key then it cannot be duplicate as the material number is different though the lang field is same.
    Please advise. Thanks

  • Getting error while Executing Recurrig Document in F.14

    Hi,
    While  exceuting the recurring document in F.14, SAP gives error message,"Session SAPF120 was not created".
    Can any one please advice me why this error came up and how to execute the recurring documents using the template.
    Thanks,
    Lavanya
    Edited by: Lavanya@sap on Mar 10, 2011 10:52 AM

    Hi,
    Please go through the following links. it may be helpful to you
    error in f.14 (recurring jnl)
    Not able to post the recurring entry using F.14
    Regards,
    Satya

  • Getting errors while starting ASM instance in 11gR2

    Hi All,
    While starting ASM instance, i'm getting the following errors.
    [grid@xxxxx ~]$ . oraenv
    ORACLE_SID = [+ASM2] ?
    The Oracle base has been set to /u01/app/oracle
    [grid@xxxxx ~]$ sqlplus "/ as sysasm"
    SQL*Plus: Release 11.2.0.3.0 Production on Thu May 3 05:23:52 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Connected.
    SQL> cl scr
    SQL> shut immediate
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 32 bytes of shared memory ("shared pool","unknown object","KGLH0^37a71565","kglHeapInitialize:temp")
    Please give me any suggestions?
    --Thanks,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    http://ora-04031.ora-code.com/
    ORA-04031:
    unable to allocate string bytes of shared memory ("string","string","string","string")
    Cause:     More shared memory is needed than was allocated in the shared pool.
    Action:     If the shared pool is out of memory, either use the dbms_shared_pool package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the INIT.ORA parameters "shared_pool_reserved_size" and "shared_pool_size". If the large pool is out of memory, increase the INIT.ORA parameter "large_pool_size".

Maybe you are looking for