Problem while creating Item Data in OCA application

Hello Experts!
I am creating a PDA application (OCA) for NW7.1.
I am facing problem while creating Sales Order. I can create the Header structure. But when I Create the corresponding item structure for the header , the items are not getting created. After Sync I can only see the header structure in the middleware.
I am using the following code to create the header and item.
OrderCreateDocType header = model.createOrderCreateDocType();
header.setRefdoctype("41001180");
header.setDocType("ZRRJ");
header.setSalesOrg("AND");
wdContext.nodeOrderCreateDocType().bind(Collections.singleton(header));
OcaRoot.getInstance().commit();
wdContext.nodeOrderCreateDocType().setLeadSelection(0);
header=(OrderCreateDocType)wdContext.nodeOrderCreateDocType().getCurrentElement().model();
OrderCreateOrderItemsIn items = header.createNewOrderItemsIns();
long item = new Long("000010").longValue();
items.setItmNumber(item);
items.setMaterial("MMKT090114");
items.setPlant("ANDP");
items.setTargetQty(new BigDecimal(7));
items.setTargetQu("IT");
header.setOrderItemsIns(Collections.singleton(items));
OcaRoot.getInstance().commit();
Am I missing out on step.
Reply Awaited
Regards
Priya Ghosh

Hello Priya
in your case as the DOs are of upload only type, you are not able to create a
child on an already created header, because updates are not allowed for upload only DOs.
So in this case you first have to create an instance of the header first and then create an item. And only after this call a commit on the model
Best Regards
Vaidehi

Similar Messages

  • Problem  while Creating /Maintaing Data in R/3 (BAPI_MATERIAL_SAVEDATA)

    Hi,
          I am Developing a WebDynPro(Java) appln to connect R/3.For this i used BAPI_MATERIAL_SAVEDATA which module is for Creating/Updating  Material Data.I have Used the materialName,Description,Uniof Measure,Material Type as Input to R/3. while running The Appln it is fine to Connect R/3 and Its Bringing return Msges as "1)Trying To Create Material 2)The Material Cannot Be Maintained since no Maintainable data Transferred".That is I can not Create/SAVE material Data..Whether Anything might be wrong while Transferring Data ?What Type Of Pblm is This ? Did u ever come across The Pblm like this ? How to solve This ?
    Please Help Me Out

    Hi,
    In the Import parameters HEADDATA shows it is a Mandatory and for the remaining Structures you just instantiate it and Set it to the BAPI Element.
    Ex:- ComplexType_ZBAPI_FICA currentRelation = new ComplexType_ZBAPI_FICA();
    chgRelation.setCURR_BP_RELATIONSHIP(currentRelation);
    //chgRelation - BAPI Element
    //ComplexType_ZBAPI_FICA - Import type
    Regards,
    Sridhar
    Message was edited by: Sridhar kanchanapalli

  • Problem while creating a new Data element in a new table?

    Hello Everyone,
    I have downloaded Netweaver 7.1 trail version from internet and while creating a data element through the data dictionary: i got this input box:
    Register Object
    SAP Release 701
    Access key needed?
    Installation DEMOSYSTEM
    What could an access key be here in this demo version?
    please help experts. thanks for writing back.
    Cheers
    lastw0nd3r
    P.S:
    I tried this access key already which was in devaccess table
    29671482393151224771  but it didn't worked.
    Edited by: lastw0nd3r on Jun 8, 2010 5:30 PM

    in processformrequest() i wrote this:
    if ((tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    &&(ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM))))
    am.invokeMethod("createRecordInv") ;
    in Amimpl.java
    i wrote
    public void createRecordInv()
    try
    OAViewObject vo = getARTransactionLineVO1();
    if (!vo.isPreparedForExecution())
    {   vo.executeQuery();     }
    if (vo != null)
    vo.setMaxFetchSize(0);
    ARTransactionLineVORowImpl row1 = ( ARTransactionLineVORowImpl)vo.createRow();
    if (vo.getFetchedRowCount() == 0)
    {vo.insertRow(row1); }
    else
    { vo.insertRowAtRangeIndex(vo.getFetchedRowCount(),row1); }
    row1.setNewRowState(row1.STATUS_INITIALIZED);
    catch(Exception ex)
    { ex.getMessage();  }
    i am getting error
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException

  • Problem while creating data transfer process

    Hi friends
    I am using BI 7.0 version.
    I m getting a problem while creating dtp
    After activating DTP and selecting the execute button, I am getting the following error message:
    Request cannot be processed in its current state
    Messg no : RSBK209
    can anyone help me on this problem
    Thank

    Hi Deepthi,
    Also check the error message(long text) and paste it here...
    check if you are either creating a "second" Delta DTP ( if an existing Delta DTP exists, then system will not allow you create a second DTP) and will throw an "overlapping" error
    Hope this helps
    Thanks
    Kalyan

  • Problem while creating Service order

    Hi Gurus,
    I have a problem While creating Service order (me21n) through - Work order it contains service requisitions.
    So that means they carry information such as G/L and work order number while entering the requistion no in PO Creation Screen (me21n) which automatically should be picked from the work order refference.
    But problem here is the service items and all other are assigned to PO except the Account Assingnment tab which is GL Account and Work Order No and Cost center..
    Can anyone explain me this?
    Is this something that one can explain?
    Regards,
    Murugesh R
    Rewards for value replies.

    Hi Murgesh,
    If GL code is not getting bydefault from the system it is needed to be provided by the user.
    If normally one GL is there or other than master data services if single GL is there u can set that in SPRO.
    it is avalible in deafult settings in order node
    If you are creating the order with refrence to PR then it will take account assignement as "F" system will pick up all the details from PM module. This is the integration of MM & PM module.
    But if your PO is not w.r.t. PM orders PR then needs to be given manully.
    Ramesh
    Edited by: RameshChandra  Soni on Jul 25, 2008 8:16 AM

  • No Functional Area Found Error while creating service data in me22n

    Hello,
    While creating service data for a purchase order in ME22n I am getting error like " No functional area found"  .
    Please tell me how to maintain the Functional area for a particular GL account
    In the help i can found that we can find the functional area "The functional area can be determined either using the cost element, the account assignment object (such as the cost center or order)"
    How we can determine this please through some light on this statement.
    Thanks
    Pradeep
    Moderator message: not directly related to ABAP development, please post again in the appropriate functional forum.
    locked by: Thomas Zloch on Oct 15, 2010 9:55 AM

    Hello Madhav,
    You have to maintain your 'business transaction profile' (SPRO->CRM->IC Web->Business Transaction->Define bus. trans. prof.) in the customizing and assign that profile to your IC WebClient profile (the one you assigned in the org. model)
    In the business transaction profile you must make sure that at least one transaction type (e.g. ZSRV) is assigned as 'Dependent business transaction' and that entry is flagged as 'Service'.
    Also make sure that that transaction type (ZSRV) has leading business transaction category 'Service process' (BUS2000116).
    This should solve your problem!
    Kind regards,
    Joost

  • Facing a Problem while downloading the data from ALV Grid to Excel Sheet

    Hi Friends,
    Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
       I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
    Can any one help me out in this case.

    hi...
    if this problems happens dont display the same internal as u finally got.
    just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
    for eg.
    ur final internal int table for disp,
         data : begin of itab occur 0,
                        matnr like mara-matnr,
                   end of itab.
    create new like this,
               data : begin of itab occur 0,
                        matnr(12) type N,
                   end of itab.

  • Getting prob while creating view in webdynpro ABAP application

    Hi Guys,
    I am facing a problem while creating a view for webdynpro ABAP application. It is giving an error as "ICF service "/sap/public/bc/WebDynpro/ViewDesigner" inactive".
    can anybody let me know how to solve this problem.
                   Thanks In Advance
    Regards
    Ravikumar

    I think check Internet explorer Tools ->Internet Options ->Connections.>Lan Connections> if the proxy or anyting checkbox is clicked coz it doesn't work with Internet on .
    Please reward if useful.

  • Encoding problem while reading binary data from MQ-series

    Dear all,
    we are running on 7.0 and we have an encoding problem while reading binary data from MQ-series. Because we are getting flat strings from queue we use module "Plain2ML" (MessageTransformBean) for wrapping xml-elements around the incoming data.
    The MQ-Series-Server is using CCSID 850, which we configured in connection parameters in communication channel (both parameters for Queuemanager CCSID and also CCSID of target).If there are special characters in the message (which HEX-values differ from codepage to codepage) we get errors in our adapter while executing, please see stack-trace for further analysis below.
    It seems to us that
    1. method ByteToCharUTF8.convert() expects UTF-8 in binary data
    2. Both CCSID parameters are not used anyway in JMS-adapter
    How can we solve this problem without changing anything on MQ-site?
    Here is the stack-trace:
    Catching com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.af.modules.trans.MessageTransformBean.throwModuleException(MessageTransformBean.java:453)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:387)
        at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_0.process(ModuleLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:292)
        at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:84)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertBinaryToXiMessageFilter.filter(ConvertBinaryToXiMessageFilter.java:304)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:112)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:87)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filterSend(TxManagerFilter.java:123)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filter(TxManagerFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.DynamicConfigurationFilter.filter(DynamicConfigurationFilter.java:72)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.PmiAgentFilter.filter(PmiAgentFilter.java:66)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundCorrelationFilter.filter(InboundCorrelationFilter.java:60)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JmsHeadersProfileFilter.filter(JmsHeadersProfileFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageInvocationsFilter.filter(MessageInvocationsFilter.java:89)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JarmMonitorFilter.filter(JarmMonitorFilter.java:57)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ThreadNamingFilter.filter(ThreadNamingFilter.java:62)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.SenderChannelImpl.doReceive(SenderChannelImpl.java:263)
        at com.sap.aii.adapter.jms.core.channel.ChannelImpl.receive(ChannelImpl.java:437)
        at com.sap.aii.adapter.jms.core.connector.MessageListenerImpl.onMessage(MessageListenerImpl.java:36)
        at com.ibm.mq.jms.MQMessageConsumer$FacadeMessageListener.onMessage(MQMessageConsumer.java:399)
        at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl$JmsProviderMessageListener.onMessage(JmsMessageConsumerImpl.java:904)
        at com.ibm.msg.client.wmq.v6.jms.internal.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:4249)
        at com.ibm.msg.client.wmq.v6.jms.internal.SessionAsyncHelper.run(SessionAsyncHelper.java:537)
        at java.lang.Thread.run(Thread.java:770)
    Caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:714)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:538)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:528)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:471)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:364)
        ... 36 more
    Caused by: sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:270)
        at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:337)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)
        at java.io.InputStreamReader.read(InputStreamReader.java:208)
        at java.io.BufferedReader.fill(BufferedReader.java:153)
        at java.io.BufferedReader.readLine(BufferedReader.java:316)
        at java.io.LineNumberReader.readLine(LineNumberReader.java:176)
        at com.sap.aii.messaging.adapter.Conversion.convertPlain2XML(Conversion.java:310)
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:709)
        ... 40 more
    Any ideas?
    Kind regards, Stefan

    Hi Stefan,
    for the first MTB now we are using only one parameter: Transform.ContentType = text/plain;charset="ISO-8859-1"
    The second MTB, which does the XML-Wrapping, is configured like this:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application/xml
    xml.conversionType = SimplePlain2XML
    xml.fieldNames = value
    xml.fieldSeparator = §%zulu§%
    xml.processFieldNames = fromConfiguration
    xml.structureTitle = payload
    Both CCSID configuration parameters from the "Source"-Tab we've set to 850.
    Now, we don't get an error anymore - sun.io.malformedInputException - , but, unfortunately, now special character conversion succeeded (we need an "ß" and we get an ISO-HEX-E1 -> á).  E1 is (different from ISO) an "ß" in 850.
    Any ideas?

  • Problem while creating JCA connection to MDM server

    Hi All,
    I have restarted my mdm connector(com.sap.mdm.tech.connector) along with the applications related to Enrichment Controller. All applications restarted successfully. After that I tried accessing the URL
    http://MDMSERVER:50000/MDM_EnrichmentController/WorkflowPolling?process=Monitor
    but I am getting following exception in this page
    Polling Repository
        name=Vijaybabu_Repo_on_MDMSERVER, status=No repository connection, error description=com.sap.mdm.net.ConnectionException: Problem while creating JCA connection to MDM server MDMSERVER
            Enrichment Request Threads
    Could somebody help me pointing if something I have missed..
    Thanks and Regards,
    Manoj

    hi Swarna,
    I have verified the repository and found 0 fatal errors, 0 non-fatal erros and 0 warnings. I also checked the MDM Factory and Connector service is running fine.
    The detailed exception is
    Sep 2, 2008 12:49:40 PM com.sap.mdm.logging.MdmLogger error
    SEVERE: Problem while creating JCA connection to MDM server 'KOLAPON'
    com.sap.mdm.net.ConnectionException: Can not resolve JCA connection
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:119)
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnectionAccessor(JcaConnectionUtil.java:62)
         at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:70)
         at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:59)
         at com.sap.mdm.repository.commands.GetRepositoryStatusCommand.execute(GetRepositoryStatusCommand.java:67)
         at com.sap.mdm.enrichment.common.ECAdminUtils.getRepositoryStatus(ECAdminUtils.java:125)
         at com.sap.mdm.enrichment.common.EnrichmentUtils.validateRepostiryConfiguration(EnrichmentUtils.java:889)
         at com.sap.mdm.enrichment.common.EnrichmentUtils.getCatalogManager(EnrichmentUtils.java:144)
         at com.sap.mdm.enrichment.workflowpolling.PollingThread.getCatalogManager(PollingThread.java:166)
         at com.sap.mdm.enrichment.workflowpolling.PollingThread.run(PollingThread.java:102)
    Caused by: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
         at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:223)
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:108)
         ... 9 more
    Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122)
         at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:213)
         ... 10 more
    Regards,
    Manoj
    Edited by: Manoj Kumar Nanda on Sep 2, 2008 9:21 AM

  • Problem while Creating Service order through Work Order

    Hi Gurus,
    I have a problem While creating Service order (me21n) through - Work order it contains service requisitions.
    So that means they carry information such as G/L and work order number while entering the requistion no in PO Creation Screen (me21n)  which automatically should be picked from the work order refference.
    But problem here is the service items and all other are assigned to PO except the Account Assingnment tab which is GL Account and Work Order No and Cost center..
    Can anyone explain me this?
    Is this something that one can explain?
    Regards,
    Murugesh R
    Rewards for value replies.

    Closed..

  • Problem while updating Delivery date uisng BAPI_PO_CHANGE

    Hi friends,
    Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
    After the bapi is getting triggered iam geting sy-subrc = 0
    But in the return parameters iam getting 3 error messages so iam unable to update the  delivery date..
    Error meesage which iam getting are
    a) Purchase order still contains faulty items
    b) Enter Tax Code
    c) Instance 1000001 of object type PurchaseOrder could not be changed.
    How can i correct it..
    Please find my code below
    LOOP AT it_eket INTO wa_eket.
        wa_poschedule-po_item = wa_eket-ebelp.
        wa_poschedule-sched_line = wa_eket-etenr.
        wa_poschedule-delivery_date = wa_eket-eindt.
        APPEND wa_poschedule TO poschedule.
        wa_poschedulex-po_item = wa_eket-ebelp.
        wa_poschedulex-sched_line = wa_eket-etenr.
        wa_poschedulex-po_itemX = 'X'.
        wa_poschedulex-sched_lineX = 'X'.
        wa_poschedulex-delivery_date = 'X'.
        APPEND wa_poschedulex TO poschedulex.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN  = WA_EKET-EBELN
                                             EBELP = WA_EKET-EBELP.
          IF SY-SUBRC = 0.
          WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
          APPEND WA_POITEM TO POITEM.
          WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
          WA_POITEMX-PO_ITEMX = 'X'.
          APPEND WA_POITEMX TO POITEMX.
         ENDIF.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_eket-ebeln
          TABLES
            return        = t_bapiret2
            POITEM        = POITEM
            POITEMX       = POITEMX
            poschedule    = poschedule
            poschedulex   = poschedulex.
        READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =.
          IF sy-subrc = 0.
            WRITE :  'DELIVERY DATE UPDATED'.
          ENDIF.
        ENDIF.
    how can i correct it...
    Regards
    Kumar

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Facing problem while tieing item and locator

    Hi All,
    I am facing one problem While creating a relation between Item and locator using API INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE.
    Error: PLS-00225: subprogram or cursor 'CREATE_LOCATOR' reference is out of scope
    Line: 16
    Below is the code which i am using
    create or replace procedure Item_loct(retcode out varchar2,errbuff out varchar2)
    is
    g_return_status VARCHAR2 (1) := fnd_api.g_ret_sts_success;
    g_msg_count NUMBER DEFAULT 0;
    g_msg_data VARCHAR2 (2000) DEFAULT NULL;
    l_msg_index_out NUMBER;
    cursor c1 is select *from item_inv_loc;-- where rownum<num_rec;
    begin
    for i in c1 loop
    FND_GLOBAL.APPS_INITIALIZE( FND_GLOBAL.USER_ID,FND_GLOBAL.RESP_ID,FND_GLOBAL.RESP_APPL_ID);
    INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE(p_inventory_item_id => i.item_id,
    p_organization_id => i.organization_id,
    p_subinventory_code => i.subinventory_code,
    p_inventory_location_id => i.locator_id,
    p_status_id => i.loc_status,
    x_return_status => g_return_status ,
    x_msg_count=> g_msg_count,
    x_msg_data => g_msg_data);
    fnd_file.put_line(fnd_file.log,'Return Status = ' || g_return_status);
    if g_return_status='S' THEN
    FND_FILE.PUT_LINE(fnd_file.log, ' Sucess');
    elsif ( g_msg_count > 1) THEN
    FOR j IN 1 .. g_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => j,
    p_encoded => fnd_api.g_false,
    p_data => g_msg_data,
    p_msg_index_out => l_msg_index_out
    FND_FILE.PUT_LINE(fnd_file.log, l_msg_index_out || '. ' || g_msg_data);
    END LOOP;
    -- ELSif
    -- FND_FILE.PUT_LINE(fnd_file.log, g_msg_data);
    end if;
    end loop;
    end ;
    Please tell where i am doing th wrong? If you have sample program please post it

    Hi,
    Please find the corrected code pasted below, also the pasted below is the value which has to be passed as an argument to the procedure.
    ---------------Correct one----------------------------
    INV_LOC_WMS_PUB.CREATE_LOC_ITEM_TIE(
    x_return_status => g_return_status ,
    x_msg_count => g_msg_count,
    x_msg_data => g_msg_data,
    p_inventory_item_id => i.item_id,
    p_item ------------------------------------------------------------------- This one was missed out.
    p_organization_id => i.organization_id,
    p_organization_code ------------------------------------------------------------------- This one was missed out.
    p_subinventory_code => i.subinventory_code,
    p_inventory_location_id => i.locator_id,
    p_locator ------------------------------------------------------------------- This one was missed out.
    p_status_id => 1
    p_par_level ------------------------------------------------------------------- This one was missed out.
    ** procedure : create_loc_item_tie
    ** description : For a given set of organization, subinventory, item and
    ** locator, this API ties the given item to the given locator.
    ** i/p :
    ** p_inventory_item_id
    ** Identifier of item .
    ** p_item
    ** Concatenated segment string with separator of the item.
    ** Either P_inventory_item_id or the p_item MUST be passed
    ** p_organization_id
    ** Identifier of organization
    ** p_organization_code
    ** Organization code of organziation in which locator is to
    ** be updated. Either p_organization_id or p_organziation_code
    ** MUST be passed
    ** p_subinventory_code
    ** The subinventory to which the locator need to be attached to .
    ** p_inventory_location_id
    ** Identifier of locator to be attached to the specified subinventory
    ** p_locator
    ** Concatenated segment string with separator of the locator to be
    ** updated. Eg:A.1.1 either p_inventory_location_id or
    ** p_concatenated_segments MUST be passed.
    ** p_status_id
    ** Identifier of status
    ** p_par_level Indicates the the maximum quantity
    ** o/p:
    ** x_return_status
    ** return status indicating success, error, unexpected error
    ** x_msg_count
    ** number of messages in message list
    ** x_msg_data
    ** if the number of messages in message list is 1, contains
    ** message text
    * Use this procedure to assign an item to a locator in an organization.
    * For a given organization, subinventory, item and locator, this procedure ties
    * the item to the locator.
    * @param x_return_status Return status indicating success or failure
    * @paraminfo {@rep:required}
    * @param x_msg_count Returns the number of messages in message list
    * @paraminfo {@rep:required}
    * @param x_msg_data Returns the message text if the number of messages in message list is one
    * @paraminfo {@rep:required}
    * @param p_inventory_item_id Identifier of the item that is to be tied to a locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_item Concatenated segment string (with separator) of the item to be tied to a locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_organization_id Organization Id in which the item and locator exist, is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_organization_code Organization code in which the item and locator exist, is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_subinventory_code Sub inventory to which locator belongs is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_inventory_location_id Identifier of locator to be attached to the specified item is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_locator Concatenated segment string (with separator) of the locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_status_id Material Status of the locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_par_level PAR level for the Item-Locator is passed as input in this variable
    * @rep:scope public
    * @rep:lifecycle active
    * @rep:displayname Create Item-Locator Tie
    Regards,
    Yuvaraj.C

  • Problem while creating WBS elements using LSMW

    Hello experts,
    I am able to create Project Definitions using LSMW. (using recording)
    But there is a problem while creating WBS elements.
    Tcode CJ20 has table control and that will become problem for multiple rows (levels).
    Can anyone suggest a solution to mass upload WBS elements?
    Thanks for your valuable advice.

    Hi,
    Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.
    If the WBS element is already created and you want to create one more with same data, first get the WBS related information using BAPI_PROJECT_GETINFO as you are doing currently.
    I am using different sets of BAPIs to create project, create / change WBS element.
    I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.
    For example if you want to create / change the WBS element, the BAPIs sequence is:
    <b>1. BAPI_PS_INITIALIZATION
    2. BAPI_BUS2054_CREATE_MULTI ( to create  WBS )
             or
    2. BAPI_BUS2054_CHANGE_MULTI ( to change WBS )
    3. BAPI_PS_PRECOMMIT
    4. BAPI_TRANSACTION_COMMIT</b>
    Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.
    Let me know if you need further information.
    Regards,
    RS

  • Problem while exporting the data from a report to an excel file.

    Hi SAP guru's,
    I have a problem while exporting the data from a report to an excel file.
    The problem is that after exporting, the excel file seems to have some irrelevant characters....I am checking this using SOST transaction..
    Required text (Russian):
    Операции по счету                                    
    № документа     Тип документа     № учетной записи     Дата документа     Валюта     Сумма, вкл. НДС     Срок оплаты     Описание документа
    Current Text :
       ? 5 @ 0 F 8 8  ? >  A G 5 B C                                   
    !   4 > : C       "" 8 ?  4 > : C      !   C G 5 B = > 9  7 0 ? 8 A 8        0 B 0  4 > : C         0 ; N B 0      ! C <       ! @ > :  > ? ; 0 B K        ? 8 A 0 = 8 5  4 > : C
    Can you help me making configuration settings if any?
    Regards,
    Avinash Raju

    Hi Avinash
    To download  such characteres you need to adjust code page to be used during export. You can review SAP note 73606 to identify which code page is required for this language
    Best regards

Maybe you are looking for

  • T430 Performanc​e

    I bought my T430 (core i5, 4gb, win7 64-bit) a little over 2 years ago. The machine slowed down quiet a bit. So I wiped the hard-drive clean, re-installed the OS and only installed a few additional apps. I feel the performance has slightly improved,

  • 20 inch cinema monitor to a imac g4.

    okay. so basically i have the monitor already. in addition, i bought the apple dvi to adc convertor. so now i need to figure out how to convert my mini vga to dvi. i bought a small adapter on the net, hasn't arrived yet, it's a vga to dvi-i convertor

  • How to implement search in Oracle Apex 3.2?

    I am new to orale apex & i want to impelment keyword based search in my app. I want a textbox on page 0 so that this textbox will come on every page. User will enter the search criteria & clieck on search button, app. will search that keyword in data

  • Play/stop MP3

    I'm doing a sort of iPod and I have a little problem with the code. In every keyframe I have the code below with diferents songs. The problem I have is I click the play button and start playing. Then I click next and when I click play for another son

  • Enter Journal - FRM-40105: Unable to resolve reference to item GLXJEENT_A

    Hello, When I am opening the form Enter Journals in General Ledger, the following messages is prompted: FRM-40105: Unable to resolve reference to item GLXJEENT_A Note that if I turn the Custom code Off, the error does not appear. Please help, Vikram