Problem while creating a new row

I am trying to create a new row in FulfillmentLineEntryResultVORowImpl which will be within the CheckAvailabilityOutputVORowImpl.
For that I am trying to do the following coding and I am getting the "NullPointerException" while creating the "flrow".
Please look in the code and suggest me the correct way.
CheckAvailabilityOutputVOImpl outputVO = getCheckAvailabilityOutput1();
CheckAvailabilityOutputVORowImpl outputRow = null;
outputRow = (CheckAvailabilityOutputVORowImpl)outputVO.createRow();
FulfillmentLineEntryResultVOImpl fle = getFulfillmentLineEntryResult1();
FulfillmentLineEntryResultVORowImpl flrow = (FulfillmentLineEntryResultVORowImpl)fle.createRow();
flrow.setErrorCode("26");
fle.insertRowAtRangeIndex(0, flrow);
and
public CheckAvailabilityOutputVOImpl getCheckAvailabilityOutput1() {
return (CheckAvailabilityOutputVOImpl)findViewObject("CheckAvailabilityOutput1");
public FulfillmentLineEntryResultVOImpl getFulfillmentLineEntryResult1() {
return (FulfillmentLineEntryResultVOImpl)findViewObject("FulfillmentLineEntryResult1");
}

Hi,
I am using transient VO.
The code that i mentioned earlier is to create the dummy response for the web service in error condition.
For normal condition we are getting data from XML and by using readXML I am generating row nicely.
The piece of code for normal scenario where it is working nicely is...
Document doc = sendMessage("CheckAvailabilityInput", headerNode);
CheckAvailabilityOutputVOImpl outputVO = getCheckAvailabilityOutput1();
outputVO.readXML(doc.getDocumentElement(), -1, getXslForReadXML());
if (AppsLogger.isEnabled(AppsLogger.FINE)) {
Node headerNode1 = (XMLNode)outputVO.writeXML(-1, XMLInterface.XML_OPT_ALL_ROWS | XMLInterface.XML_OPT_ASSOC_CONSISTENT);
try {
Writer sw = new StringWriter();
((XMLNode)headerNode1).print(sw);
} catch (IOException e) {
AppsLogger.write(this.getClass(),
"Couldn't convert the VO to xml",
AppsLogger.FINE);
outputRow = (CheckAvailabilityOutputVORowImpl)outputVO.getRowAtRangeIndex(0);
And The xml that I am using is like below....
<?xml version="1.0" encoding="utf-8"?>
<checkAvailabilityOutput xmlns:op="http://xmlns.oracle.com/apps/scm/orderPromising/orderPromising/promisingServices/types/">
<PromisingSystem>DOO-OP</PromisingSystem>
<PromisingInstance>Instance</PromisingInstance>
<PromiseDate>2012-08-22</PromiseDate>
<FulfillmentLineEntryResult>
<FulfillmentLineReply>
<FulfillmentLineIdentifier>FID-003</FulfillmentLineIdentifier>
<NumberOfAltOptions>0</NumberOfAltOptions>
<DefaultAvailabilityOption>
<OptionRank>0</OptionRank>
<OptionSummary>0</OptionSummary>
<FulfillmentLineResult>
<FulfillmentLineIdentifier>FID-003</FulfillmentLineIdentifier>
<TotalPrice>8000</TotalPrice>
<TotalProfit>-392000</TotalProfit>
<TotalMargin>-98</TotalMargin>
<TotalValue>-392000</TotalValue>
<NumberOfSplits>0</NumberOfSplits>
<NumberOfSubstitutions>0</NumberOfSubstitutions>
<FillRate>100</FillRate>
<NumberOfAtpItems>1</NumberOfAtpItems>
<NumberOfCtpItems>0</NumberOfCtpItems>
<SourcingRule></SourcingRule>
<ResultDetail>
<SplitLineIdentifier></SplitLineIdentifier>
<Customer>CUST_ID_001</Customer>
<CustomerSite>CUST_SITE_001</CustomerSite>
<InternalSalesOrderDestOrg>
<OrgId></OrgId>
</InternalSalesOrderDestOrg>
<PromisingStatus></PromisingStatus>
<RequestedDate>2012-06-02</RequestedDate>
<PromisingType>Ship</PromisingType>
<ExpectedArrivalDate>2012-06-01</ExpectedArrivalDate>
<ExpectedShipDate>2012-06-01</ExpectedShipDate>
<ExpectedPickDate>2012-06-01</ExpectedPickDate>
<RequestedItem>ITEM_CODE_001</RequestedItem>
<ExpectedAvailableItem>ITEM_CODE_001</ExpectedAvailableItem>
<ExpectedAvailabilityOnRequestedDate>0</ExpectedAvailabilityOnRequestedDate>
<ExpectedAvailableQuantity>200</ExpectedAvailableQuantity>
<ExpectedAvailableQuantityUOM>EA</ExpectedAvailableQuantityUOM>
<ExpectedShipFromOrg>
<InstanceId></InstanceId>
<OrgId>HYDERABAD</OrgId>
</ExpectedShipFromOrg>
<ExpectedDropShipSupplier></ExpectedDropShipSupplier>
<ExpectedDropShipSupplierSite></ExpectedDropShipSupplierSite>
<ExpectedMode></ExpectedMode>
<ExpectedService></ExpectedService>
<ExpectedCarrier></ExpectedCarrier>
<CarrierCalendar></CarrierCalendar>
<ExpectedDemandClass></ExpectedDemandClass>
<ExpectedTotalFulfilmentCost>400000</ExpectedTotalFulfilmentCost>
<ExpectedShippingCost>0</ExpectedShippingCost>
<ExpectedMargin>-98</ExpectedMargin>
<Price>8000</Price>
<Profit>-392000</Profit>
<Value>-392000</Value>
<LineFillRate>100</LineFillRate>
<ErrorCode></ErrorCode>
<ErrorMessage></ErrorMessage>
<PeggingDetail>
<ItemId>ITEM_CODE_001</ItemId>
<OrgInfo>
<InstanceId></InstanceId>
<OrgId>HYDERABAD</OrgId>
</OrgInfo>
<ShippingCalendar>Calendar1</ShippingCalendar>
<ReceivingCalendar>Calendar2</ReceivingCalendar>
<ManufacturingCalendar>Calendar3</ManufacturingCalendar>
<ATPDetail>
<Quantity>200</Quantity>
<QuantityUom>EA</QuantityUom>
<ATPCost>400000</ATPCost>
<ATPMode>3</ATPMode>
<LeadTime>0</LeadTime>
<RequiredQuantity>200</RequiredQuantity>
<RequiredDate>2012-06-01</RequiredDate>
<AllocationRule></AllocationRule>
<DemandClass></DemandClass>
</ATPDetail>
</PeggingDetail>
</ResultDetail>
</FulfillmentLineResult>
</DefaultAvailabilityOption>
</FulfillmentLineReply>
</FulfillmentLineEntryResult>
</checkAvailabilityOutput>

Similar Messages

  • Problem while creating a new row in a advanced table

    Hi
    i am getting a error when i click on the add another row button...i followed the same steps given in dev guide..
    please help me out
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    * Your login session has expired.
    * A system failure has occurred.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.

    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

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • While creating a new row in table,the total data present in table is coming

    Hi,
    From search page,i click add button,it goes to next transaction page.In transaction page i drag and drop one VO in table and in form also.But in that transaction page,The table is coming with data and a new row is also able to insert.But i don't want the previous data whatever present in table in create a new row time.Please give me the solution.
    Thanks in advance
    Sravanthi

    Not sure I understand what you are trying to do.
    If you have a table and a form based on the same data on one page you see the already existing data in the table. If you don't want to see the existing data in the table while entering a new row, the simplest solution would be to
    a) hide the table after the use hits create new row or
    b) navigate to an other page which only shows the form
    Timo

  • Oracle.jbo.RowCreateException: JBO-25017: Error while creating a new ROW

    I am trying same multi step PO example. I have created a search page and there are 3 other pages for PO Header, PO Line and Review/Submit Page. I am coming on 2nd page(creating Line Item) and when I click on create new item record I am getting this error. Any help will be aprrecaited.
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for POLinesEO.
    This is my code for POLineShipFullVORowImpl.java
    protected void create(oracle.jbo.AttributeList nvp)
    POLinesEOImpl lineEO = (POLinesEOImpl)getEntity(0);
    POShipmentEOImpl shipmentEO = (POShipmentEOImpl)getEntity(1);
    try
    // Create Lines EO
    lineEO.create(nvp);
    // Create Shipments EO
    shipmentEO.create(lineEO);
    // Calling this ensures that any personalization default values are
    // properly set since the OAF normally sets this in the super.create(), but
    // since this is not called in this workaround, we need another method
    // to ensure customer defaults are applied.
    // The following method was introduced in OAF internal release 11.5.10J. Since
    // the production release of the ToolBox must be able to run on 11.5.10I, this
    // cannot be enabled.
    // setDefaultValue();
    catch (Exception ex)
    lineEO.revert();
    shipmentEO.revert();
    if (ex instanceof oracle.jbo.JboException)
    oracle.jbo.JboException jboEx = (oracle.jbo.JboException)ex;
    // Developers have to do the mapping on their own becauce of the override.
    jboEx.doEntityToVOMapping(getApplicationModule(), new oracle.jbo.ViewObject[]{getViewObject()});
    throw jboEx;
    throw OAException.wrapperException(ex);
    } // end create()
    Code for PoLinesEOImpl.java
    * Initializes a new purchase order line.
    public void create(AttributeList attributeList)
         // NOTE: header id is automatically set by BC4J because of the
    // composition association.
    super.create(attributeList);
    OADBTransaction transaction = (OADBTransaction)getOADBTransaction();
    // DEFAULT: line id
    Number lineId = transaction.getSequenceValue("FWK_TBX_PO_LINES_S");
    setLineId(lineId);
    // DEFAULT: Line number
    POHeaderEOImpl headerEO = getPOHeaderEO();
    Number newLineNum = headerEO.getNextLineNum();
    setLineNumber(newLineNum);
    } // end create()
    * Sets <code>value</code> as the attribute value for ShipmentNumber
    * Business Rules
    * Required; cannot be null
    * Cannot be updated on a committed line
    * Must be unique for this purchase order
    * Must be >= 1
    public void setLineNumber(Number value)
    if (value != null)
    // Verify value is > 0
    if (value.compareTo(0) <= 0)
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // To verify uniqueness, start by checking the entity cache.
    com.sun.java.util.collections.Iterator lineIterator =
    getEntityDef().getAllEntityInstancesIterator(getDBTransaction());
    Number lineId = getLineId();
    Number headerId = getHeaderId();
    while ( lineIterator.hasNext() )
    POLinesEOImpl cachedLine =
    (POLinesEOImpl)lineIterator.next();
    Number cachedLineNum = cachedLine.getLineNumber();
    Number cachedLineId = cachedLine.getLineId();
    Number cachedHeaderId = cachedLine.getHeaderId();
    if ((cachedLineNum != null) &&
    (cachedLineNum.compareTo(value) == 0) &&
    (cachedLineId.compareTo(lineId) != 0) && // Exclude this line
    (cachedHeaderId.compareTo(headerId) == 0))
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // Didn't find a duplicate in the entity cache so now we check the database.
    // Note: don't bother with this if the header is in a NEW state since that
    // means we won't have any lines in the database yet.
    POHeaderEOImpl headerEO = getPOHeaderEO();
    if (headerEO.getEntityState() != STATUS_NEW)
    PurchaseEntityExpert poExpert =
    POHeaderEOImpl.getPurchaseEntityExpert(getOADBTransaction());
    PoLineNumVVOImpl valLineNumVO =
    (PoLineNumVVOImpl)poExpert.findValidationViewObject("PoLineNumVVO1");
    valLineNumVO.initQuery(headerId, value);
    // We're doing an existence check; shouldn't have any rows.
    if (valLineNumVO.hasNext())
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // If this is the largest line number for this order, this will store it for
    // reference when creating subsequent lines.
    headerEO.resetLineNum(value);
    setAttributeInternal(LINENUMBER, value);
    } // end setLineNumber()
    Edited by: user9941374 on Mar 15, 2012 3:16 PM

    Hi Frank,
    As per the steps mentioned in the following link :
    http://www-apps.us.oracle.com:1100/fwk/jdev/doc/devguide/bus/bus_java.htm#tl
    I have created the required entity objects and view objects.
    I have an entity JobsDEO which is based on a view per_jobs_vl which is itself based on 2 tables,per_jobs_f and per_jobs_tl,wherein _tl is the translation table.
    The entity for _tl table is JobTranslationEO and has no VO associated with it.Its the JobsVO,based on JobsDEO,that has to handle any interactions with this entity too.
    JOBSDEO has a property set up for HCM_DBSEQUENCE,which makes it read the value of job_id from the sequence per_jobs_s.
    Now,when I try to insert into the JobsVO,based on JobsDEO,it gives me the above mentioned error.
    One more thing is that the error does'nt occur when we commit a row,its just when we click the "+" button in the AM Tester that we get this error.
    Please advice.

  • Using the Form javascript.addrow() to pass values while creating a new row?

    Version: 4.1.0
    DB: 11g
    Theme- scarlet 21
    Hi,
    I have a standard tabular form with the add, delete, submit buttons. Now when we hit the Add button, it creates a new row in the form. I had a requirement such that the user selects a row using the standard checkbox and then when he hits add, it should create a new row, and also, copy the contents of the selected row to the new row.
    Is this possible? Any suggestions please? I am thinking that I need to create a pl/sql process under Add button to check if the checkbox is selected, and if yes, then maybe run the javascript addrow(not sure if it can be done) and then try to populate the values.
    Thanks!
    Sun
    Edited by: ryansun on Oct 4, 2012 12:34 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM

    Hi Joni,
    Thanks. I am not familiar with JQuery, is there some link where such a logic is implemented? Atleast a basic one of adding a new row, and traversing and capturing the values? In forms we could do it using cursor but not sure how to do it in Apex.
    In my case the requirement is straightforward. If there is a table with three rows and have a standard form in APEX with the add, delete and submit buttons along with the radio checkbox in a tabular form,
    If I select a row and then hit the add button, a new row should be added and the values of the previous row should be passed.
    Would you be having a link to any such demo or documentation on how this is done, would be very helpful.
    Thanks!
    Sun

  • Problem while creating a new user on solaris

    I have a SUN ultra machine. Solaris 2.6 is installed on this machine.
    I have successfully created a new user in this machine using "admintool"
    Problem is I'm getting error messages when I'm trying to update NIS DATABASE.
    I'm doing-
    #cd /var/yp
    #/usr/ccs/bin/make
    and the response is----
    updated passwd
    pushed passwd
    make:Warning:Don't know how to make target /etc/ethers
    Current working directory /var/yp
    make:Warning:Don't know how to make target /etc/netgroup
    Current working directory /var/yp
    make:Warning:Don't know how to make target /etc/bootparams
    Current working directory /var/yp
    updated netid
    pushed netid
    Couldn't find /etc/timezone
    make:Warning:Target all not remade because of errors.
    Current working directory /var/yp

    I had the a similar problem with new users on sloaris 8.
    I wasn't able to add new users and change the shell variable while using admintool.
    Login back into the console would simply not happen.
    All i've been able to find is that changing the users' variable - i.e. .login or .profile to match that of a working existing user (root),
    would skip over the problems.
    Other variables in the skeleton files were helpful. I suggest you take a look at them.

  • Problem while creating a new track

    Hi,
    When we create a new track, we get the following exception:
    Unexpected error; inform your system administrator: com.sap.cms.util.exception.CMSUnexpectedException: com.tssap.dtr.client.lib.cms.DTR.connect(Ljava/lang/String;Lcom/tssap/dtr/client/lib/protocol/ISessionContext;)V
    We have created a new product and a software component and defined the dependencies for the software component (SAP_BUILDT, SAP_JTECHS & SAP-JEE).  In the CMS, we have done Update CMS.  We are able to see the software component and have added the same in the 'Software Components for Development'.  All the usage dependencies are clearly visible.
    When we save the track, we get the above exception.  Can any one of you please respond this query?
    Thanks in advance.
    Regards,
    Ravi

    Hi Ravi,
    We enocounted a similar problem once.  For our situation it was a missing DTR url in the lanscape configurator.  To check/fix this do the following:
    1) login to CMS
    2) click on the Landscape Configurator link
    3) if not already selected, choose the track in the list of tracks on the left
    4) click on the Track Data tab for the selected track
    5) verify that the Design Time Repository URL is specified and correct (e.g. http://<server>:<port>/dtr
    Save the configuration.
    Hope this helps.

  • CRM BDoc Modeler - Problem while creating a new segment

    Hi all;
    I have created a new BDoc type and wanted to add a segment. I imported a structure with some QUAN fields and a UNIT type fields. While activating segment, I got an error. I saw that the structure was not activated since I used some QUAN type fields and they were not assigned a UNIT type field. But the assignment was already done in the structure I imported. Is there a solution to use QUAN fields in segment definitions or what data element should I use instead of them?
    Thanks for your answers in advance;
    Hakan

    Hi all;
    I have created a new BDoc type and wanted to add a segment. I imported a structure with some QUAN fields and a UNIT type fields. While activating segment, I got an error. I saw that the structure was not activated since I used some QUAN type fields and they were not assigned a UNIT type field. But the assignment was already done in the structure I imported. Is there a solution to use QUAN fields in segment definitions or what data element should I use instead of them?
    Thanks for your answers in advance;
    Hakan

  • Problem while adding a new row to the table.

    hello,
    In my ADF form i have a table. and when i click on CreateInsert it add a new to the table but at the first. i want all the new rows to be added at the end of the table in a sequence. how can i do this?....
    Thanks and Regards,
    Rakshitha

    Hi,
    Try this:
    DCIteratorBinding dciter;
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    dciter = (DCIteratorBinding) bindings.get("findAllTestAndryIter");
    ViewObjectImpl vo = dciter.getViewObject();
    if (vo != null)
    Row row = vo.createRow();
    int rangeSize = vo.getRangeSize();
    int rowsInRange = vo.getAllRowsInRange().length;
    int insertPos = rowsInRange < rangeSize? rowsInRange: rangeSize - 1;
    vo.insertRowAtRangeIndex(insertPos, row);
    vo.setCurrentRow(row);
    }

  • 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 a new project template

    I am trying to create a new project template under one operating unit newly created.
    I am using P A Super User responsibility for that operating unit.
    In profile setting the above responsibility has been assigned the new operating unit under Mo operating unit profile.
    Now when I go to Setup>>Projects>>Project Templates and click on New, the form to create new Project template opens up but in the field where I have to select the operating unit, it shows no values in the LOV.
    Can anyone please help me to know what setting do I have to perform so that I can select the operating unit in this new Template creation Form.
    Regards
    Hawker Hunter

    Dear Mr. Govind,
    we have followed all the Project Implementation Setup for the new operating unit except for the Implementation options which we have to fill up for each operating unit.
    In the implementation Options form in the first tab 'System' there are many fields to be filled up.
    For 'Summarization period Type' we choose 'G L Period' and based on this the fields 'Calendar Name' and 'P A Period Type' automatically gets populated.
    But in our case the 'P A Period Type' is not getting populated.
    Can you let me know where we can link the 'P A Period Type' to the chosen 'Calendar name'?
    Also there is a check box - 'Maintain common PA and GL Periods'. If we tick this check box, a message says: 'The Period Type and Calendar of the PA Period does not match the Period type and Calendar of the corresponding GL Period.'
    Can you please let me know where to create the PA Period based on the corresponding GL periods?
    Regards

  • Problem while creating a new internal order. Please help! URGENT!!!

    Hi Experts,
    After creating internal orders the currency and cost center fields under control data tab are getting greyed out when I check it via KO02 transaction. The order status is "REL". This in turn is not allowing me to change currency and cost center via KO02. What could be the problem? Why these control data fields are getting greyed out or disabled? Is there any configuration problem? Kindly help ASAP!
    Actually I am creating the order via XI. The input order data is coming from a .Net application which sends the data to XI via webservice call. The XI then uses RFC BAPI "BAPI_INTERNALORDER_CREATE" to create the internal order in R/3 system.
    kindly help please!
    Thanks
    Gopal
    Edited by: gopalkrishna baliga on May 20, 2008 12:09 PM

    Hi Gopal,
    This is based on your configuration on ERP. You have to talk to your functional consultant to get the right order type and right configuration for same.
    Thanx & Regards
    Vinod

  • Create a new Row in an advanced table in an advanced table

    Hi,
    I am handling the master detail relationship. For this i have used advanced table in an advanced table. I am facing a problem while creating a new row in the inner advanced table.
    I have a Display Sequence column in the inner advanced table. I want to handle the logic for displaying the value of this attribute. As per dev guide i have attached the view link and for handling the Add New row event i am using the below code
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    This is working fine. The challenge i am facing is for creating a new row. Below is the code given in dev guide
    // get a handle to inner tableOATableBean innerTable =
    (OATableBean)webBean.findChildRecursive("InnerTableBean");
    // create an enumeratorOAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, innerTable);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    for (int i = 0; i < rowsInRange.length; i++)
    Row nextRow = (Row) rowsInRange;
    // In case you want to add new rows in this RowSet, you can do the same
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("SomeAttr", "SomeValue");
    innerRowSet.insertRow(newRow);
    The Above code creates a new Row in all the master records.
    How do i identify that the add new Row event has been triggered for which master record?
    Can any body please help me on this. I am stuck from a long time and am unable to find the appropriate solution.
    Thanks in advance
    Raj Papdeja

    Hi,
    Following is the code written in PFR,
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    System.out.println("sublineDetailsTableBean::"+sublineDetailsTableBean);
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    System.out.println("lineTableFooterBean::"+sublineTableFooterBean);
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Inside Add New Row Button Event for the Sub Lines");
    strValueParam = (String) pageContext.getParameter(VALUE_PARAM);
    System.out.println("strValueParam=>"+strValueParam);
    ViewLink vl = am.findViewLink("GEPSCSTaskLineToSublineVL1");
    System.out.println("View Link=>"+vl);
    if(vl != null)
    OAViewObject vo = (OAViewObject) vl.getSource();
    if(null != vo)
    GEPSCSTaskLineItemsVORowImpl voRow =
    (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    /*OAViewObject vo = (OAViewObject) am.findViewObject("GEPSCSTaskLineItemsVO1");
    GEPSCSTaskLineItemsVORowImpl voRow = (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Line No::"+LineNo);*/
    // Getting the LineNo as null
    /*int intRowCount = vo.getRowCount();
    if(intRowCount > 0)
    System.out.println("Sublines are already present");
    GEPSCSTaskLineItemsVORowImpl tasklineVORow =
    (GEPSCSTaskLineItemsVORowImpl)vo.getCurrentRow();
    Number lineNo = (Number) tasklineVORow.getLineNo();
    System.out.println("LineNo=>"+lineNo);
    Number lastLineDispSequence = null;
    // Method to set the display sequence
    //am.invokeMethod("createNewSublineRow");
    // create an enumerator*/
    OAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, sublineDetailsTableBean);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    intRowCount = rowsInRange.length;
    System.out.println("intRowCount=>"+intRowCount);
    if(intRowCount == 0)
    System.out.println("No Rows present");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(1));
    innerRowSet.insertRow(newRow);
    else if(intRowCount > 0)
    System.out.println("Rows are already present");
    Row nextRow = (Row) rowsInRange[intRowCount-1];
    lastLineDispSequence = (Number) nextRow.getAttribute("DisplaySequence");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(lastLineDispSequence.intValue()+1));
    innerRowSet.insertRow(newRow);
    break;
    When i try to fetch the Line No which is the primary ID of the Parent VO, it always returns me the LineNO of the first Row and not of the parent row for which i have clicked the Add new Subline button of the Child record
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    Is there any way to fetch the primary ID of the row for which i have selected the Add new Subline button
    Thanks
    Raj Papdeja

  • Problem while creating the Partner Address in CRM

    Hi,
       We are facing one problem while creating the new address for the Business Partner.
       When ever customer wants to change the address : we are following one process : where we are      
       using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of this , new addrss number will be generated for the 
      corresponding account in BUT021_FS table.But this table contains old address number as a first record, so that when ever
      we display the partner address in UI, it is displaying the old address only because first entry of the the table 'BUT021_FS'
      contains the old address number.
      Because of this , we are getting lots of complaints regarding this.
    Can you please help on this ASAP.
    Thanks & Regards
    Pradeep.

    Try BAPI_BUPA_ADDRESS_CHANGE  for address change followed by BAPI_TRANSACTION_COMMIT . It works.

Maybe you are looking for

  • ACL found but not expected.................

    I powered up my iMac (intel) and I got a blank white screen - up until this point it would be up and running in a second or two so this was a shock. I forced a shut down and had to restart a couple of times before I got a white screen with the apple

  • Installing ZCM11.2.1 Agent on SLED11SP2

    Good day, I was trying to install the ZCM11.2.1 Agent onto a SLED11Sp2 desktop, I have JRE 1.7.0_05-fcs and novell-zenworks-jre-links 1.6.0_16-2 installed, however; when I run the Preagent..bin file I get the following, Cannot continue - JRE version

  • Bug 4614623 mnemonic underlining fails in 1.4

    Bug 4614623 REGRESSION: Windows L&F menu mnemonic underlining fails in 1.4 Mnemonic underlining is not visible on Windows 2000 with the 1.4 plug-in. Has anyone come up with a workaround? Other than not using 1.4 :)

  • Page Visibility and Language Translator

    Could anyone advise me, I have built an educational website? All finished, is it to late to add a feature, to help Viewers with visibility issues like a zoom function. Any ideals of what can be added, or do I need to remake the site in a larger text

  • Probleme with every version of maya

    Hi everyone, First of all, I apologize for my english, I'm french and I'll try to do my best. Then, if this post is in the wrong section, please feel free to move it elsewhere. Now to the actual problem: Since I had to replace my Hard drive (I kindly