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

Upload Excel is not working

0
0

Hi all, Excel upload program is not working in SAP CRM 7.2 Service Pack 10 with IE 11. Same is working fine in SP08. Below is the code.

 

The debugger is not coming into Servervent handler method . any notes suggested ? sorry for posting the big code lines.

 

<thtmlb:fileUpload id="fileUpDown" />

<thtmlb:button id = "UPLOAD"

                iconSrc = "ICON_XLS"

                tooltip = "Upload Excel file"

                text = "Upload"

                onClick "upload_file( );" />--%>

 

  <thtmlb:textArea id  = "Excel_Data"

      text   = " "

      width  = "0"

      height = "0"

      rows   = "0" />

<%-- Registering server event--%>

<bsp:htmlbEvent name = "nameUpload"

                  id = "idUpload"

                  onClick = "SERVEREVENT"

<%--                 serverEvent"--%>

                  p1 = "p1"

                  p2 = "p2"

                   p3 = "p3" />

 

 

<script language="javascript"  type="text/javascript">

function upload_file( ){

var iRow="1",

      jCol="1",

      ActiveRows="0",

      fileName="",

      sValue=" ";

fileName=document.getElementById("<%= controller->component_id %>_fileUpDown").value;

if ( fileName == "" ) {

alert("Upload." + "\n" + " " + "\n" + "Please choose an Excel file as source.");

return;

}

if ( fileName != "") {

<%--alert("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);--%>

var r=confirm("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);

if (r!=true)

{

return;

}

Excel = new ActiveXObject("Excel.Application");

Book = Excel.Workbooks.Open( fileName );

ActiveRows = Book.Worksheets("Input").Range("A1.IV64000").CurrentRegion.Rows.Count;

<%--ActiveRows = Range("A1.IV64000").CurrentRegion.Rows.Count;--%>

for (iRow=1; iRow<=ActiveRows; iRow++) {

for (jCol=1; jCol<=4; jCol++) {

cData = Book.Worksheets("Input").Cells(iRow,jCol).value;

<%--cData = Cells(iRow,jCol).value;--%>

sValue = sValue.concat(cData,"\n");

}

sValue = sValue.concat("\n\r");

}

document.getElementById("<%= controller->component_id %>_Excel_Data").value = sValue;

Excel.Workbooks.Close;

<%--return statement here calls the server event SERVERVENT--%>

  return nameUpload();

}

}

</script>

 

regards,rama


Re: How to prevent 0 from showing after export to Excel?

0
0

Hi Bobby,

 

If a field or formula is a number then the Excel export driver will populate the field with a 0 regardless of the formatting in the report.

 

A way around this is to format your field to a string like:

 

if isnull({OR_PKLST_SUP_LIST.SUPPLIES_USED}) then "" else

ToText ({OR_PKLST_SUP_LIST.SUPPLIES_USED});

 

If you are only displaying the numbers then this should work.  It will put an empty string or convert the number to a string.

 

If you are using this formula for a calculation then you will have to do some extra work.

 

Thanks,

Brian

Re: How to get refund employee Social security and reverse the employer amount

0
0

Thanks Ameet for your response. For these refund employee and employer which model wagetype should I use. Could you please help in this regard. Or it should be similair to Social security employee and employer technical wage type however at the end just reduincing the technical wage types.

Please clarify

 

Thanks,

 

Punna

CTM Master Data Selection

0
0

In the CTM Master Data Selection trying delete the Sources of Supply, it will not allow me to delete all sources at once.  I need to delete page by page.  Is there a fix for this issue?

 


SAP Basis Beginner

0
0

Anyone have any guidance on beginning SAP Basis Administration? Company is getting me trained up with ABAP100, Solution Manager, and NetWeaver.

 

Any insight would be great.

MDG Hub Embedded Search configuration

0
0

Hello Experts,

 

We are in the process of configuring Embedded Search for MDG 7.0 hub as per the config guide link below .My question is where (Hub or Client or both) do we configure the search connectors for embedded search.

 

Set Up Search - SAP Master Data Governance - SAP Library

 

Please let me which of the following option would best fit for configuring search for Hub implementation

Option 1: Configure the search connectors in Hub

Option 2 :Configure the search connectors in client

Option 3: Configure the search connectors in both hub and client

 

Thanks,

Re: What is the best way to Design this JOB?

0
0

Thanks Dirk,

 

I am using DSO as a source then how I can Validate it.

 

If I will use staging table then by using validation I will only get the filter data but how can I replace the local value with master table main key (other column data of master table with the staging table local key  column ) .

 

Could you please suggest something?

 

Regards,

Meet

Re: Hana Studio hangs in SQL Script Editor

0
0

I am having this same problem, but the solution does not work for me.  Is there anything I can try?


Re: What's going on with PB 15?

0
0

"pain & suffering" endured.

 

Ambulance chaser!

Re: FPM Methods activation

0
0

Thanks All, ok then.

 

Thanks

Krish

Re: Don't want repeating objects

0
0

Then how do I get my page header and footer to show up on the chart?

Re: Local Currency is not maintained

0
0

don't just ask, provide the answers to above raised question, as this is what the OP never did, hence he could not get a solution

Re: Configuration product lifecycle in sap

0
0

Hi Vijesh,

 

I may not be the right person to answer this query. May be you can post this in Sales & Distribution module for better answers from the experts of those areas.

 

Regards,

Ravi

Re: Planned Orders

Re: FPM Methods activation

0
0

Krish,

what do you refer by "FPM Interface"? are you creating a feeder class or a UIBB?


Re: Selected category inconsistent with implicit enhancement category

0
0

Hi Yasemin,

 

We are also facing the same issue with structure

PSHLP_CUSTFLDS_PROJ_ST , need your advice whether to implement SAP note 1834868.

Did you get any update from SAP.

 

Thanks & Regards,

Sandip

 


Re: SAP consultant cant see client 000 on service connection

0
0

Hello,

 

I have create a SAP OSS and SAP want logon my system but they cannot see client 000 on SAP service connection drop Down list.

 

I want to know how can I add client 000 on SAP service connection drop Down list.screenshot.png

 

  Thanks

How to create PLD_Items table for Crystal Reports

0
0

Hi experts,

 

Im trying to use the variable 130 for a report but in crystal reports, in some SAP Standard Reports the table PLD_Items appears, my question is how to create this structure for my report, i know that is an ADO.NET connection based on an XML file, but i dont know from where i can take this value can any one help me please?

 

Best Regards

 

Dave

Re: Convert String to number

0
0

HI Arijit,

 

Please find the  sample details below.

 

Object NameEvent Detail TypeEvent Detail Value
0000 - Cost Element vs IFRS
  Hierarchy Alignment
Number of Rows12787
_0032014Number of Rows22593
03_14_2014_VALIDATING
  PRIORITY AND WORKTYPE FIELDS
Number of Rows0
03_14_2014_VALIDATING
  PRIORITY AND WORKTYPE FIELDS
Number of Rows360
0PLANT_BICSNumber of Rows203
0PLANT_BICS_276_RecordsNumber of Rows200
0PLANT_BICS_276_RecordsNumber of Rows202
0PLANT_BICS_276_RecordsNumber of Rows203
0Plant_MSU_SCM_SSNumber of Rows322
101 Wage TypeNumber of Rows0
101 Wage TypeNumber of Rows10

 

Thanks,

Jothi

ALV interactive report

0
0

Hi

 

I have to make an ALV interactive report called daily sales report 

 

Based on GLPCA,VBRK,zbugr,ZPCTCTR(prctr,vkbur,vkgrp,vtweg,gr), &BKPF.

 

 

Selection screen:

 

vbeln  for vbeln-vbrk

budat for glpca-budat

poper for glpca-poper

bukrs for glpca-rbukrs

refdocnr for glpca-refdocnr

prctr  for glpca-rpctctr

ryear for glpca-ryear

gr for zbugr
vtweg for glpca-vtweg

 

 

t.PNG I hope someone can help me with a similar example or proper select query for it.

Viewing all 8713 articles
Browse latest View live




Latest Images