Quantcast
Channel: SCN: Message List
Viewing all 8851 articles
Browse latest View live

Duplicate id error in sap.m.table

$
0
0

Hi Experts,

 

I am having a sap.m.table. Here I binds an json model.  Also I am having option to delete and insert rows.

 

While deleting I can able to delete the selected item successfully with below code.

 

var oTable = this.getView().byId("XXX");

var selItem = oTable.getSelectedItem();

oTable.removeItem(selItem);

 

 

Again If I insert any data to the table I am getting error as "2015-06-30 12:23:39 adding element with duplicate id '__text9-__xmlview2--XXX-2'" - 

 

My insert code as

 

var bindingContext = this.getView().getBindingContext().getPath();

var oModel = this.getView().getModel();

var laborObject = oModel.getProperty(bindingContext+"/labourActivity");

laborObject.push(entry); //entry is the object of exact values

oModel.setProperty(bindingContext+"/labourActivity",laborObject,null,true);

 

oModel.updateBindings(true);

oModel.refresh(true);

 

This code is not working in combination of delete and insert. Its working fine only for the insert. If i delete and insert again. its dumps again.

 

My table code as

 

<Table id="XXX" inset="true" showOverlay="false" class="swoPadding" mode="SingleSelectMaster" items="{labourActivity}">

     <columns>

      <Column>

          <Text text="FSE Name"/>

        </Column>

        <Column minScreenWidth="Tablet" demandPopin="true">

          <Text text="Activity"/>

        </Column>

        <Column minScreenWidth="Tablet" demandPopin="true">

          <Text text="Date"/>

        </Column>

        <Column minScreenWidth="Tablet" demandPopin="true">

          <Text text="Start"/>

        </Column>

        <Column minScreenWidth="Tablet" demandPopin="true">

          <Text text="End"/>

        </Column>

        <Column>

          <Text text="Duration"/>

        </Column>

        <Column>

          <Text text="Operation"/>

        </Column>       

            

  </columns>

  <items>

  <ColumnListItem>

      <cells>

      <Text text="{fscName}"/>

      <Text text="{activity}"/>

      <Text text="{date}"/>

      <Text text="{start}"/>

      <Text text="{end}"/>

      <Text text="{duration}"/>

      <Text text="{operation}"/>                   

         </cells>

     </ColumnListItem>

  </items>

  </Table>

 

Thanks & Regards

Rabin D


Re: Can we assign multiple profit centre to single segment

Re: Regarding the sap po installation

Re: Capacity Requirement for Work Center in MF50 Too High

$
0
0

production line specified (although I have specified a machine rather than production line, we use routings for machine work centers, not repetitive)

plant specified

date range specified

period is days

 

work center capacity is correct

Making use of Formatter.status in SAPUI5

$
0
0

Hello Experts,

 

I am having trouble figuring out how to pass and recall values in formatter.status from the formatter.js file in the xml view, and vice versa.

 

My oData service has two fields VarPer and Kflag.

Kflag has values either 1, 2 or 3 for all the records in the field VarPer.

 

I wish to assign status to VarPer in my xml view as per this logic-

status "Success" for Kflag = 1.

status "Warning" for Kflag = 2.

status "Error" for Kflag = 3.


How do I achieve this?

 

Thank you in advance,

-Nimish Kate

Re: Can a plant generate a PR with reorder point - Act as receiving plant only

$
0
0

Hi Caetano,

 

 

1. Yes, it is what I would like to happen. The planned order of RG16 (Plant A) will trigger 501A (plant B) to transfer the item. When I check MD04 of 501A, I will be seeing this;

 

501A (Plant B) MD04.png

But, there should be another line item for the automatic PR of 20 pcs for 501A. That by the time it is POed and delivered, 501A shall immediately transfer the item to RG16. Is this possible?

 

 

2. I tried to define MRP type as PD on plant 501A but when I run MD02 it did not generate PR. Instead it give me this,

 

501A (Plant B) MD02.png

Here's the material data in MRP 1 and MRP 2 table of 501A

 

501A (Plant B) MM01 - Material Data 1.png

501A (Plant B) MM01 - Material Data 2.png

 

Is there something I need to do further?

 

 

Thanks.

Re: Exception:'com.sap.bi.et.analyzer.addin.BExShape+FailedToAddPicture'

$
0
0

Error.PNG

Above is the screenshot of the error,

 

Please let us know, early response will be of great help.

 

regards

Rohan

Re: SSM 10.1 - Model designer error : Cannot get exclusive access to Model

$
0
0

Hi Alicia,

 

 

Thanks for the reply.

We are using a single node server neither we use load balancing.

 

The cubebuiler trace file reflects the time stamp and is in sync with the time we click Build PAS Model.This  means "cannot get exclusive access" is occurring after/during the process where trace file is generated.

 

Thanks ,

Sridhar


Re: TR imported with error

$
0
0

Hi MV,

 

The log says " ZFI_GI_DS   seems not active. Pleas activate the Z program. As it is return code 8, must be a program error.

 

And also check Sapmnt shared folder having full permissions. Try to ping to that server.

 

Check in SM59 weather TMSadm RFC are working or not. 

Re: How can I add a to reserves item to transfer stock to a SLOC

$
0
0

Hello Ayoub,

 

Can you tell me where the proposal button is? Thank you!

 

BR

Miriam Zhao

ALV Formatting Issue

$
0
0

Dear Experts,

 

There is issue with ALV report. Spreadsheet is in greyed mode.  Please find the below screen shot for same.

i dont want to download Spreadsheet from local File option from the header of ALV .

Kindly Suggest the solution.

 

 

 

1.PNG

 

Regards,

Gaurav

Re: MAIN_NEWBAS/SHADOW_NTACT_REDEL

$
0
0

Hi Vijay,

 

Please check the dbdb6slib.so file version and check the compatibility in shadow instance.

 

Please use the command give below:-

sapcontrol -nr 00 -function GetVersionInfo  where 00 is your system number


Regards

Satya velivela

Re: How to switch BEx query conditions in Design Studio?

$
0
0

Hi Karthik,

 

your solution works perfect!! It is exactly the one, what I'm looking for. Many thanks!

 

Best regards,

 

Zhijian

Re: Offcycle Payroll

$
0
0

Hi,

 

I think custom function is doing something wrong to update the RT table.

 

Please disable Line no 50 & 60 and then check RT is been updated or not.

 

Regards,

Sankarsan

Re: Percentage Calculation in Input Form


Re: oData Model is loosing Properties Metadata

$
0
0

so, you are saying:

 

>>when you run ui5 app open network in dev tools and check what`s coming in for $metadata request, what status and content

 

you do see correct metadata but in debugger you still see edm.string?

Re: Can credit memo without enter quantity?

$
0
0

Dear Deep,

 

I have tried in IDES, but still the quantity will show in the billing.

Here is my test.

 

Or can the quantity in Billing can be changed?

2015-7-1 下午 03-12-31.png

2015-7-1 下午 03-15-47.png

2015-7-1 下午 03-16-53.png

Thank you

Alice

Re: Error while running AO report through macro

$
0
0

Hi,

 

It looks like you have a lot happening in your workbook. Can backup your workbook and then try strip out everything expect your queries and the VBA to refresh as there are lots of errors in the log you attached.

 

The error on DS2 looks like;

 

Error: API Error SAPSetFilter ErrAliasCannotBeResolved: Formula alias DS_2 cannot be resolved | 2015-06-30T14:51:16 | com.sap.ip.bi.pioneer.core.exceptions.CrExceptionHelper.SetLastError() ()

Re: Bex Query how to add two results fields to give a new total

$
0
0

Hi,

 

The solution was already answered by Surendra above..

 

Regards,

Loed

Re: Hi , Iam facing Hra exemption calculation  wrongly.plz find attached docemnt and provide possible solution for that:

$
0
0

Hi,

 

Go to PC_PAYRESULT and then you can see the inperiod and for period colum.

 

then you can able to understand that retro had happend or not.

 

Regards,

Sankarsan

Viewing all 8851 articles
Browse latest View live




Latest Images