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

Re: web dispatcher does not redirect to more than 2 systems

$
0
0

The example configuration doesn't cover what to do with rdisp/mshost and ms/http_port when configuring the profile for Multiple Systems.  Every time I add icm/server_port_0; wdisp/system_0, and icm/server_port_1; wdisp/system_1 with appropriate values and the Web Dispatcher does not start.  I can put the default profile in used created during sapinst and it starts right up.  So it definitely needs to know where the message server host is.


Re: How can I add a difference grouping at the end of a crosstab

$
0
0

Hey Amit,

 

I get what you mean to a point but I'm not getting the correct formula to compare cells. Here is an example from actual data that is giving me a result of 0 for each row, in that 2-2=0. How can I structure the formula so as to actually reference Year1 from Year2 and compute the difference, they both reference the same object in the Crosstab, In my case I want the difference between the Sum(Est) field for 2 years. How can I do that?

Re: faultcode and faultstring of a soap webservice through a wcf client (PB.Net 12.5)

Adding Multi-mapping tags in the Java Mapping

$
0
0

I have my existing code to Java Mapping to convert a text file to an XML file.

This works perfectly fine. Please find the code below.

I get few records in the converted XML file and neeed to post one IDOC for every record in the XML file.

I use multi-mapping to post one IDOC for every XML record.

My Java Program output is :

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?><MT_CostInterfaceFromLegacy><EMPLOYEES><CURRENCY>USD</CURRENCY><DATE>022912</DATE><COSTNUMBER>00010419-000001-022C</COSTNUMBER><T1>-</T1><PRICE>15.50000000</PRICE><SNO>1001</SNO><T2>-</T2><T3>-</T3><NUMBER>022C</NUMBER><T4>-</T4><T5>-</T5><T6>-</T6><T7>-</T7><T8>-</T8><DESC1>charges made by Woo, Wei  Kwang total number of copies = 1 on number 008613506201605 at 15:13 </DESC1></EMPLOYEES><EMPLOYEES><CURRENCY>USD</CURRENCY><DATE>08/01/2011</DATE><COSTNUMBER>00010419-000001-022C</COSTNUMBER><T1>-</T1><PRICE>34.50000000</PRICE><SNO>1001</SNO><T2>-</T2><T3>-</T3><NUMBER>022C</NUMBER><T4>-</T4><T5>-</T5><T6>-</T6><T7>-</T7><T8>-</T8><DESC1>charges made by Woo, Wei  Kwang total number of copies = 1 on number 0169184586 at 15:23 </DESC1></EMPLOYEES><EMPLOYEES><CURRENCY>USD</CURRENCY><DATE>022912</DATE><COSTNUMBER>00010419-000001-022C</COSTNUMBER><T1>-</T1><PRICE>52.80000000</PRICE><SNO>1001</SNO><T2>-</T2><T3>-</T3><NUMBER>022C</NUMBER><T4>-</T4><T5>-</T5><T6>-</T6><T7>-</T7><T8>-</T8><DESC1>charges made by Woo, Wei  Kwang total number of copies = 1 on number 008613506201605 at 17:40 </DESC1></EMPLOYEES></MT_CostInterfaceFromLegacy>

 

I need the output with the following tags added :

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

   <ns0:Message1>

<EMPLOYEES>

.....

.....

</EMPLOYEES>

</ns0:Message1>

</ns0:Messages>

 

 

My Java Mapping Code is ::

 

package xmlFiles;

 

 

import java.io.BufferedReader;

import java.io.File;

import java.io.FileOutputStream;

import java.io.FileReader;

import java.util.ArrayList;

 

 

import javax.xml.parsers.DocumentBuilder;

import javax.xml.parsers.DocumentBuilderFactory;

import javax.xml.transform.Transformer;

import javax.xml.transform.TransformerFactory;

import javax.xml.transform.dom.DOMSource;

import javax.xml.transform.stream.StreamResult;

 

 

 

 

import org.w3c.dom.Document;

import org.w3c.dom.Element;

 

 

import org.w3c.dom.Text;

 

 

 

 

public class CreateXML1  {

 

  public static final String xmlFilePath = "C:\\Temp\\Emp.xml";

  public static void main(String[] args) throws Exception  {

 

  CreateXML1 createXML = new CreateXML1();

  createXML.readCostFile();

  }

 

  public void readCostFile() throws Exception{

 

  BufferedReader br = new BufferedReader(new FileReader(new File("C:\\Temp\\Time.txt")));

  String inputLine = null;

  ArrayList<String> records = new ArrayList<String>();

 

  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

  DocumentBuilder db = dbf.newDocumentBuilder();

  Document doc = db.newDocument();

  Element empsRootEle = doc.createElement("MT_CostInterfaceFromLegacy");

  int count = 0;

  while((inputLine = br.readLine()) != null ){

 

  if (inputLine.equals("")){

  System.out.println("This is my carraige return " + inputLine + count);

  // Parse XMl file to get the records

  Element empEle = doc.createElement("EMPLOYEES");

  Element dateworked = doc.createElement("DATEWORKED");

  Element timekeeperglobalid = doc.createElement("TIMEKEEPERGLOBALID");

  Element clientid = doc.createElement("CLIENTID");

  Element matter = doc.createElement("MATTER");

  Element physicalallocation = doc.createElement("PHYSICALALLOCATION");

  Element hoursworked = doc.createElement("HOURSWORKED");

  Element ffactcode = doc.createElement("FFACTCODE");

  Element activitycode = doc.createElement("ACTIVITYCODE");

  Element fftaskcode = doc.createElement("FFTASKCODE");

  Element taskcode = doc.createElement("TASKCODE");

  Element areaoflaw = doc.createElement("AREAOFLAW");

  Element matterloc = doc.createElement("MATTERLOC");

  Element segment = doc.createElement("SEGMENT");

  Element description = doc.createElement("DESCRIPTION");

 

 

  Text currentText = null; Text dateText = null; Text costNumberText = null;

  Text indexText = null; Text t1Text = null; Text priceText = null;

  Text sNoText = null; Text t2Text = null; Text t3Text = null;

  Text numberText = null; Text t4Text = null; Text t5Text = null;

  Text t6Text = null;

  Text desc1Text = null;

 

  if(records.size()>12){

  currentText = doc.createTextNode(records.get(0));

  dateText = doc.createTextNode(records.get(1));

  costNumberText = doc.createTextNode(records.get(2));

  indexText = doc.createTextNode(records.get(3));

  t1Text = doc.createTextNode(records.get(4));

  priceText = doc.createTextNode(records.get(5));

  sNoText = doc.createTextNode(records.get(6));

  t2Text = doc.createTextNode(records.get(7));

  t3Text = doc.createTextNode(records.get(8));

  numberText = doc.createTextNode(records.get(9));

  t4Text = doc.createTextNode(records.get(10));

  t5Text = doc.createTextNode(records.get(11));

  t6Text = doc.createTextNode(records.get(12));

  String S = "";

  for (int j = 13; j<records.size(); j++){

  S = S + records.get(j) + " ";

  }

  S = S.replaceAll("[&#]", "");

  desc1Text = doc.createTextNode(S);

  

  } else if (records.size()<=12){

  currentText = doc.createTextNode(records.get(0));

  dateText = doc.createTextNode(records.get(1));

  costNumberText = doc.createTextNode(records.get(2));

  indexText = doc.createTextNode(records.get(3));

  t1Text = doc.createTextNode(records.get(4));

  priceText = doc.createTextNode(records.get(5));

  sNoText = doc.createTextNode(records.get(6));

  t2Text = doc.createTextNode(records.get(7));

  t3Text = doc.createTextNode(records.get(8));

  numberText = doc.createTextNode(records.get(9));

  t4Text = doc.createTextNode(records.get(10));

  t5Text = doc.createTextNode(records.get(11));

  t6Text = doc.createTextNode(records.get(12));

  }

 

  dateworked.appendChild(currentText);

  timekeeperglobalid.appendChild(dateText);

  clientid.appendChild(costNumberText);

  matter.appendChild(indexText);

  physicalallocation.appendChild(t1Text);

  hoursworked.appendChild(priceText);

  ffactcode.appendChild(sNoText);

  activitycode.appendChild(t2Text);

  fftaskcode.appendChild(t3Text);

  taskcode.appendChild(numberText);

  areaoflaw.appendChild(t4Text);

  matterloc.appendChild(t5Text);

  segment.appendChild(t6Text);

  description.appendChild(desc1Text);

 

 

  

  empEle.appendChild(dateworked);

  empEle.appendChild(timekeeperglobalid);

  empEle.appendChild(clientid);

  empEle.appendChild(matter);

  empEle.appendChild(physicalallocation);

  empEle.appendChild(hoursworked);

  empEle.appendChild(ffactcode);

  empEle.appendChild(activitycode);

  empEle.appendChild(fftaskcode);

  empEle.appendChild(taskcode);

  empEle.appendChild(areaoflaw);

  empEle.appendChild(matterloc);

  empEle.appendChild(segment);

  empEle.appendChild(description);

 

 

  empsRootEle.appendChild(empEle);

  records.clear();

  count++;

  } else {

  records.add(inputLine);

  }

  //System.out.println("This is not my carraige return" + inputLine);

  }

 

  if(records.iterator().hasNext()){

  Element empEle = doc.createElement("EMPLOYEES");

  Element dateworked = doc.createElement("DATEWORKED");

  Element timekeeperglobalid = doc.createElement("TIMEKEEPERGLOBALID");

  Element clientid = doc.createElement("CLIENTID");

  Element matter = doc.createElement("MATTER");

  Element physicalallocation = doc.createElement("PHYSICALALLOCATION");

  Element hoursworked = doc.createElement("HOURSWORKED");

  Element ffactcode = doc.createElement("FFACTCODE");

  Element activitycode = doc.createElement("ACTIVITYCODE");

  Element fftaskcode = doc.createElement("FFTASKCODE");

  Element taskcode = doc.createElement("TASKCODE");

  Element areaoflaw = doc.createElement("AREAOFLAW");

  Element matterloc = doc.createElement("MATTERLOC");

  Element segment = doc.createElement("SEGMENT");

  Element description = doc.createElement("DESCRIPTION");

 

  Text currentText = null; Text dateText = null; Text costNumberText = null;

  Text indexText = null; Text t1Text = null; Text priceText = null;

  Text sNoText = null; Text t2Text = null; Text t3Text = null;

  Text numberText = null; Text t4Text = null; Text t5Text = null;

  Text t6Text = null;

  Text desc1Text = null;

 

  if(records.size()>12){

  currentText = doc.createTextNode(records.get(0));

  dateText = doc.createTextNode(records.get(1));

  costNumberText = doc.createTextNode(records.get(2));

  indexText = doc.createTextNode(records.get(3));

  t1Text = doc.createTextNode(records.get(4));

  priceText = doc.createTextNode(records.get(5));

  sNoText = doc.createTextNode(records.get(6));

  t2Text = doc.createTextNode(records.get(7));

  t3Text = doc.createTextNode(records.get(8));

  numberText = doc.createTextNode(records.get(9));

  t4Text = doc.createTextNode(records.get(10));

  t5Text = doc.createTextNode(records.get(11));

  t6Text = doc.createTextNode(records.get(12));

  String S = "";

  for (int j = 13; j<records.size(); j++){

  S = S + records.get(j) + " ";

  }

  S = S.replaceAll("[&#]", "");

  desc1Text = doc.createTextNode(S);

  

  } else if (records.size()<=12){

  currentText = doc.createTextNode(records.get(0));

  dateText = doc.createTextNode(records.get(1));

  costNumberText = doc.createTextNode(records.get(2));

  indexText = doc.createTextNode(records.get(3));

  t1Text = doc.createTextNode(records.get(4));

  priceText = doc.createTextNode(records.get(5));

  sNoText = doc.createTextNode(records.get(6));

  t2Text = doc.createTextNode(records.get(7));

  t3Text = doc.createTextNode(records.get(8));

  numberText = doc.createTextNode(records.get(9));

  t4Text = doc.createTextNode(records.get(10));

  t5Text = doc.createTextNode(records.get(11));

  t6Text = doc.createTextNode(records.get(12));

  }

  dateworked.appendChild(currentText);

  timekeeperglobalid.appendChild(dateText);

  clientid.appendChild(costNumberText);

  matter.appendChild(indexText);

  physicalallocation.appendChild(t1Text);

  hoursworked.appendChild(priceText);

  ffactcode.appendChild(sNoText);

  activitycode.appendChild(t2Text);

  fftaskcode.appendChild(t3Text);

  taskcode.appendChild(numberText);

  areaoflaw.appendChild(t4Text);

  matterloc.appendChild(t5Text);

  segment.appendChild(t6Text);

  description.appendChild(desc1Text);

 

 

  

  empEle.appendChild(dateworked);

  empEle.appendChild(timekeeperglobalid);

  empEle.appendChild(clientid);

  empEle.appendChild(matter);

  empEle.appendChild(physicalallocation);

  empEle.appendChild(hoursworked);

  empEle.appendChild(ffactcode);

  empEle.appendChild(activitycode);

  empEle.appendChild(fftaskcode);

  empEle.appendChild(taskcode);

  empEle.appendChild(areaoflaw);

  empEle.appendChild(matterloc);

  empEle.appendChild(segment);

  empEle.appendChild(description);

  

  empsRootEle.appendChild(empEle);

 

  }

  doc.appendChild(empsRootEle);

  TransformerFactory tf = TransformerFactory.newInstance();

  Transformer t = tf.newTransformer();

  

  DOMSource docObj = new DOMSource(doc);

  StreamResult sr = new StreamResult(new FileOutputStream(xmlFilePath));

  t.transform(docObj, sr);

  System.out.println("XML File is created");

 

  }

  }

Re: how to delete packing instruction

$
0
0

Hi Daniel,

 

I am trying to use tcode SARA to archive my packaging instructions and I can't run it...

What do I have to use in the archive selection?

It doesn't show any options!

 

Thanks,

Fernanda

CRM SURVEY ERROR

$
0
0

IN Survey,

 

I am getting an error that

Survey Was not Found or Is not Within the Validity Period.

 

Why I am getting this error.

 

I have added one save button whose Function Code is SAVE.

 

And whenever I am pressing save or pressing enter in Survey URL, I am getting this error.

 

Should I have to write any code for Function Code "SAVE".

 

Where to write? How to solve this error?

Re: Accessing VA01 tcode directly from Persona URL

$
0
0

Do you know if this works without using an iView? I have built a flavor directly in transaction PA30 without first building any sort of cockpit in SMEN. I would like to give the users a link that bypasses SMEN and goes directly to PA30, but the shortlink doesn't seem to be working this way.

 

~ Cheryl

.NET program using Crystal Reports ActiveX Designer Run Time Library 10.0 (through COM INTEROP) crashes on Export() if report has user defined function

$
0
0

Our company has a legacy application (VB6) that uses Crystal Report Designer Runtime Library 10 to display/export reports created using Crystal Report 10.  That has been working fine for years.

 

Recently we are developing a web application which uses ASP.NET MVC to show those same reports. Both applications have to co-exist so we prefer as little changes to the reports or crystal report runtime library as possible. So we generated the Interop.craxdrt.dll through referencing the craxdrt.dll from Visual Studio and use it to manipulate the reports. The back end Service exports the report as pdf file and the client display the pdf file on the web page. It works fine if the report does NOT have any User Defined Functions. For those reports that have VB UFL fields, the WCF service crashes on report.Export(). I made a test program in Visual Studio 2008 that uses interop.craxdrt.dll to simply export the report as pdf and it also CRASHES on report.Export() for reports using VB UFL.

 

So my question is how to solve this with minimum change?  Thank you in advance.

 

-Susan


Re: Substitution rule does not work in SAP CRM

$
0
0

You assigned substitution profile 0001 which is disciplinary or something like that - this substitution profile has no meaning and is only an example.  try not assigning a substitution profile or use profile 'all' which contains the 'NO_CLASS' task class which is the default classification for tasks in the system.

 

you can see substitution definition in SAP Web Application ServerBusiness ManagementSAP Business WorkflowBasic Settings (Organization Management)Substitute Profile.

 

see also: Maintaining and Activating Substitutes (SAP Library - SAP Business Workflow)

Sort field and double click on operations in IW37n?

$
0
0

Is the person that developed IW37n on drugs?

 

If you create a report for listing order operations wouldn't it be a good idea if you could double click on a operation and go directly to the operation and not end up on header level?

 

If you have a fields on operations level why don't include those fields in the report?

 

87 OSS notes on this report and it's rather new makes me wonder if the quality of the SAP system are declining?

Re: Performance issue in SAP CRM-ISU production

$
0
0

Hi Prakash,

 

Those two jobs were finished in few minutes only. However, system utilization was 100% for around 30 minutes. So, I don't think they are causing any issue.

 

Also, they run every half hour but our system is experiancing performance issue on only at particular time. I doubt if someone has called SLG1 from frontend without using the proper filter criteria. But it seems unlikely considering the time of occurance(early monday morning) and very few users has backend access.

 

Thanks, Abhishek

Re: Performance issue in SAP CRM-ISU production

$
0
0

Hi Randolf,

 

I checked STAD but I donot see anything there. This is strange. There are some RFC calls which are running for a bit longer time but they are not taking that much time.

 

 

Thanks, Abhsihek

Re: XML errors message (Product key not found/Invalid) in SNC5.1

$
0
0

Hi everybody,

I see all of ypou working with XML between ECC and SNC. I am sort of struggling with creating an XML output for my PO from ECC. I have done all the settings hopefully.

The documentation says as of Ehp 6.4 XML POERPRON is available and it says no mappings are required but only routings have to be maintained. That has been done. Where do I see the POERPRON message in ECC/PI? Do we need to implemet any BAdI PUR_SE_PO_INTERFACE_OUT_SELECT to enable XML?

Would greatly appreciate help.
Thanks,

Subash

Re: Notas 1596032 e 1598222

$
0
0

Complementando:

 

 

As duas notas não são relevantes porque as alterações já estão incluidas no EHP6. Para confirmar basta seguir os passos abaixo:

 

Para a nota 1596032 - Incorrect domain for BAPI amount field AMT_DOCCUR basta executar a transação SE11 e informar o data type BAPIDOCCUR e clicar em display.

 

imagem 01.png

 

Se o objeto foi encontrado é que está tudo ok.

 

imagem 01.png

Para validar as alterações da nota  1598222 - BR: Integrate Import Tags DI and ADI in NF Writer  basta executar a transação SE11 e informar o data type BAPI_J_1BNFIMPORT_DI e clicar em display.

 

 

imagem 01.png

Se o objeto foi encontrado é que está tudo ok.

 

 

imagem 01.png

Espero que te ajude...

 

Abraços,

 

Karen Rodrigues

Re: Bloqueo campo usuario

$
0
0

Hola martin, Intenta así:

 

IF @object_type = '17' AND @transaction_type in ('U','A')
BEGIN    IF (select count(*)      from RDR1 T0      where (T0.u_campo = '' or T0.u_campo is null)      and T0.DocEntry = @list_of_cols_val_tab_del)>0     begin        SELECT @error= 10        SELECT @error_message = 'Tu mensaje al usuario'     end
end

Saludos.


Sales order change

$
0
0

Hi All

 

Iam using  standard sap repair process with repair sales order. When defective material received from customer then it comes directly into blocked stock  ( Movement 657 ) as we dont want to put it in quality stock.

 

After that We want to create service order automatically. System prompt for service order creation only when we goto VA02 and press repair tab-

Is there is any other way which would do this activity automatically without going into sales order change VA02. ?

 

Or

 

Any background program which would do this activity ?

Re: ERROR STATUS IN PTARQ.

$
0
0

you can remove error status using rptarqerr and but make sure this leave is already availabke in 2001 as it didn't post it just changes the status and also run rptarqpost with post with infotype match rptarqpost also posts requests with error status

Re: ESS For Personnel Adminstration

$
0
0

yes you are right! check your existing role and see how leave is assigned in above link its mentioned the roles name, check it

Re: Does anyone know about theAdvantco and Kate REST adapters for SAP PI?

$
0
0

Hello,

I have used Advantco rest adapter but never use (or heard of) Kate.  But when i searched SDN, i found below link which suggest that it's also quite equipped with all the functionalities to make rest integration successful.

 

May be u can wait for other experts to express their opinion on Kate

 

RESTful Adapter for SAP PI - KaTe Kommunikation / Technologie GmbH

 

Thanks

Amit Srivastava

Re: EIC Workflow Implementa​tion - WS61000004

$
0
0

If you do a resend and the workflow starts correctly, maybe your data is not yet saved to the DB at the time the workflow starts and the start condition could not be evaluated. I suggest again that you try re-sending the event via the event browser in SWEQADM (Click on the 'Browser' button and select 'All events' as well as 'Other events' & 'Events not delivered' and you should see the event and be able to resend it)

That way you will know for sure that nothing happened in the system, if the event will be process well by doing this, then the event might be raised before the commit.

 

You can also try removing the starting condition and checking if the workflow runs well.

To the best of my understanding the check function module is run by the session raising the event. the event processing is run by the workflow logical RFC in a new session an has a greater possibility that all DB updates have finished. If this is the case you can transfer the starting condition check to within the workflow. or since this is a standard workflow - check for notes/report a product error.

Viewing all 8798 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>