Customer creation in R/3 from PI data using IDOCs
Hi All,
I am creating customers in SAP r/3 system using IDOCs which are coming from PI system in the form of XML files.
For that DEBMAS and ADRMAS message types and DEBM process code is used for creating or changing customer master data.
Existing functionality : 1 IDOC is creating/changing 1 customer master data using standard function module IDOC_INPUT_DEBITOR.
Required Functionality: need to create/change data for multiple customers using only one IDOC file.
I have tried using DEBMDM. Unlike DEBMAS, message type DEBMDM can hold multiple customers but if any DEBMDM IDOC sent to R/3, it was remaining in status 75 with message 'IDOC Received via qRFC'.
Any help will be appreciated.
Thanks & Regards,
Anshoo
Hi,
Status 75 refers to that "IDoc is in inbound queue".
Transaction SMQ2 (qRFC Monitor - Inbound Queue)
Transaction WEINBQUEUE (IDoc Inbound Queue).
The transactional asynchronous tRFC guarantees that all database operations are fully executed or, if one of the function modules responds with a termination, they are fully rejected (rollback). If an LUW is executed without errors, it cannot be executed again. In some cases it may be necessary, to rollback an LUW in an application program, for example, because a table is locked.
Regards,
Srilatha.
Similar Messages
-
How to resolve error while importing data using IDoc method in LSMW ?
Hi
I am trying to import my data using IDoc method in LSMW.
But after completing the whole LSMW process, when I look into the IDOC generated, the error description is as this.
It talks about the process code and other stuff.
Function module not allowed : APPL_IDOC_INPUTI
Message No. B1252
Diagnosis :
The function module APPL_IDOC_INPUTI and the application object type which were determined are not valid for this IDoc.
I am not able to resolve the problem.
Please help.
Regards,
Rachesh Nambiarcheck the below link.
/people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter -
Moving shipment data using IDOC SHPMNT05
Hi guys,
I want to configure ALE process across two SAP systems and moved shipment data using IDOC SHPMNT05.
May I know how to do that.
Plz help me...................
Thankz in advance,
Swetha.Hi Shwetha,
Please check the following links to start with.
http://help.sap.com/saphelp_nw04/helpdata/en/78/217da751ce11d189570000e829fbbd/content.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
Thanks,
Naren -
Need to transfer Custom infotype data using IDOCs
Hi,
My requirement is to transfer custom OM infotype changes using IDOCs.
But its not creating any change pointers for that infotype.
The message used is a copy of standard message OM_HRMD_A.
Can any one please help me out in this issue.
Thanks,
SarikaYou'll need to erase the drive by booting up holding command-option-r keys into your Recovery Volume.
Use Disk Utility to erase the disk and then Internet Recovery. That will take a while.
http://support.apple.com/kb/HT4718 -
Issue in Creation of XML file from ABAP data
Hi,
I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
The required format is
-<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
- <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
<Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
<Header4 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
<Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
</Header2>
</Header1>
Iu2019m using the call transformation to convert ABAP data to XML file.
So please anybody can help how to define XML structure in transaction XSLT_TOOL.
And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
Please help me in this to get it resolved.Hello,
you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
Regards Otto -
Simple creation of Update Rule from BW Data Source
Hi guys,
Pertaining standard SAP Business Content extractors
I am referring to <b>InfoCube : 0PA_C01(Headcount and Personnel Actions)</b>
I am attempting to<u> create </u>an <b>Update Rule</b> from <b>Info Source : 0HR_PA_PA_1(Headcount)</b>
This <b>Info Source : 0HR_PA_PA_1(Headcount)</b> is connected to <b>BW Data Source</b>(Not R/3!) 0HR_PA_PA_1
I have created an Info Package for this Info Source and managed to get 15 records{In Contrast to my 68800 Records from Info Source : 0HR_PA_0(Employee)}
So, when I create an Update Rule to Connect <b>Info Cube: 0PA_C01(Headcount and Personnel Actions)</b> to <b>Info Source to Info Source : 0HR_PA_PA_1(Headcount)</b>, I get the following error
ERROR : <b>IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b>
Could you please also advice, why do I only get 15 records for Data Source 0HR_PA_PA_1 ?
P/S : I am on BW 3.5Hey Rohini,
This <b>Data Source: 0HR_PA_PA_1(Headcount)</b> is tricky to me because it`s a BW Data Source.
Exact Error Message is as follows :-
"<b>Error Message : RSAU461
IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b> "
My Exact Problem is that I don`t see any values for the following fields in my Info Cube : 0PA_C01(Headcount and Personnel Actions)
Country;
Country Code;
Gender;
Nationality;
Language;
Postal Code;
Region;
Position;
Job;
Payroll Area;
Payroll Group;
Pay Scale's;
Pay Grade's
This is because, this information is supplied by InfoSource : 0HR_PA_PA_1
But I don`t have an Update Rule for this InfoSource in my InfoCube : 0PA_C01
So, that's why I am attempting to create this additional Update Rule
<i> And also, could someone enlighten me why would SAP not include such a standard Update Rule when they have already idenfied those needed fields in a Cube ? This is suppose to be a STANDARD workable Business Content right ?</i>
P/S: I have applied Note : 336229 -
Creation of Production order in Past dates using RFC
Hi all,
I am using RFC to Create a production order based on the datas available from MES systems.Here the process flow is From MES system datas are passed to interface in file format then from interface will calll the RFC so that the RFC will do the function of Creating the Production order & release in SAP.
Here i face an issue that i have 3 shifts at the end of every shift i have to tranfer the datas from MES to SAP .Which means i have to create 3 Production orders for a day.My issue here is the third shift datas will be availble for me in the next day morning after that only i am able to transfer theses datas to SAP.In this case i want the SAP to create th Production order for third shift in the Previous day time.
Ashift - 7AM t0 3PM
BShift-3PM to 11PM
CShift-11 PM to Next day morning 7 AM
I need SAP to create Production order for Shift C on 11 PM of the Previous day when i transfer it on next day morning 7AM.
Is this possible.
Thanks in Advance,
MBNHi,
I mean the Production Created date as the basic date only.
My requirement is for the C shift i will get the output from the MES on the next day morning.After that i wwill transfer the production datas to SAP throgh Interface at that time i need the basic start date & time of the production order to be the C shift starting time that is previous day night 11.00 PM.
Eg.
C shift date 12.04.2010 night 11PM to 7AM
i transfer the c shift production datas from MES to SAP on 13/04/2010 Morning 7AM.But i want these datas to create basic start date & time of the production order on 12/04/2010 11PM.
What should be done to get these.
Thanks in advance,
MBN -
How to display contineous 10 dates from today date using SQL query
Hi All
I need a requirement of displaying 10 dates and numbers contineously, I have written a query for getting 10 numbers like this
select rownum from dual where rownum < 10 connect by rownum = level;
But i am not able to get the dates, Can any one help me ?Hi Satyaki,
No issues on my 9.2.0.8 client.
SQL*Plus: Release 9.2.0.8.0 - Production on Sat May 3 09:49:17 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn test/test@db10g
Connected.
SQL> select rownum, trunc(sysdate) + rownum from dual where rownum <= 10 connect by rownum = level;
ROWNUM TRUNC(SYS
1 04-MAY-08
2 05-MAY-08
3 06-MAY-08
4 07-MAY-08
5 08-MAY-08
6 09-MAY-08
7 10-MAY-08
8 11-MAY-08
9 12-MAY-08
10 13-MAY-08
10 rows selected.
SQL> Regards -
How to get an object of choice from XML data using XMLBean?
I have xml schema and I have generated a jar to represent my schema using XMLBean. I also have few xml data files, these are valid xml for generated schema. Now I want to write a utility which takes xml file as input and returns an object of my choice (Assuming this Object type is available in the jar) as output and vice versa. Some thing like this –
1. Object getObjectFromXML(File xmldatafile, Class classname)
xmldatafile = presents the source of XML data
classname = an object of this class type as output filled from the xml data.
2. String getXMLStrFromObject(Object)
Pass Object and get XML as String output
Any pointer?
Thanks,Hi! Maybe have a look at the documentation for XmlObject.Factory.parse(). It should allow you what you need to do.
Cheers,
G. -
How to find tables from extracted data using lo cockpit
I have extracted data form 2lis_02_scl using Lo cockpit and replicated in sap bw.
Now i want to know from which tables the data was extracted .pls giv info.
Thanks in advance.
Regards,
Hari ReddyOne quick way - search Help.
Tables are EKKO, EKPO, EKET , EKPA
http://help.sap.com/saphelp_nw70/helpdata/en/8d/bc383fe58d5900e10000000a114084/content.htm -
Displaying image from binary data using java
hi there,
i have created a swing applet displays me a url, what the url returns me is the image in binary format, and i want to show the complete image using that binary data
so how do i do it.
some thing like this :
URL url = new URL("http://192.168.1.1:8086/file-storage/download/Zerg.jpg?version_id=35688");
JEditorPane jep = new JEditorPane();
jep.setPage(url);
output is in binary on my applet window.Hey,
This displays an image from a url, you could check if your url is and image or not using URL.getFileName() and see if it ends in gif jpeg etc. and then display it this way.
hope it helps
Nick Hanlon
import java.awt.*;
import java.awt.Image.*;
import java.awt.Toolkit.*;
import javax.swing.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import javax.swing.text.html.*;
public class SimpleApp extends JFrame {
public static void main(String args[]) {
SimpleApp aFrame = new SimpleApp();
public SimpleApp() {
super("Frame");
/*JEditorPane jep = new JEditorPane();
jep.*/
try {
HTMLEditorKit htmlKit = new HTMLEditorKit();
JEditorPane ep = new JEditorPane();
try {
ep.setEditorKit(htmlKit);
BufferedReader in = new BufferedReader(
new StringReader(
"<HTML><IMG SRC=\"http://developer.java.sun.com/images/chiclet.row.gif\"></HTML>"));
htmlKit.read(in, ep.getDocument(),0);
getContentPane().setLayout(new BorderLayout());
setResizable(false);
getContentPane().add(ep, "North");
pack();
show();
} catch (javax.swing.text.BadLocationException e) {}
} catch (IOException e) {}
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) { System.exit(0); }
} -
Fetch 1-n relation data from XML Data using XMLTable
Dear All,
Following query is running fine.
with t as (select XMLType('<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header/>
<env:Body>
<nm:CustomerCRMByIDResponse xmlns:nm="http://sap.com/xi/CRM/Global2" xmlns:prx="urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702">
<MessageHeader/>
<BusinessPartner>
<InternalID>2200117598</InternalID>
<AddressInformation>
<UUID>51471396-9ae8-3cc0-e100-80000a031a28</UUID>
<DefaultIndicator>true</DefaultIndicator>
<Address>
<PostalAddress>
<CountryCode>DE</CountryCode>
<CountryName>Country Name</CountryName>
</PostalAddress>
<Telephone>
<Number>
<SubscriberID>0711/123456</SubscriberID>
<ExtensionID>0</ExtensionID>
<CountryCode>DE</CountryCode>
<CountryDiallingCode>+49</CountryDiallingCode>
<CountryName languageCode="de">Country Name</CountryName>
</Number>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<MobilePhoneNumberIndicator>false</MobilePhoneNumberIndicator>
<SMSEnabledIndicator>false</SMSEnabledIndicator>
<DefaultIndicator>true</DefaultIndicator>
</Telephone>
<Telephone>
<Number>
<SubscriberID>0711/999999</SubscriberID>
<CountryCode>DE</CountryCode>
<CountryDiallingCode>+49</CountryDiallingCode>
<CountryName languageCode="de">Country Name</CountryName>
</Number>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<MobilePhoneNumberIndicator>true</MobilePhoneNumberIndicator>
<SMSEnabledIndicator>true</SMSEnabledIndicator>
<DefaultIndicator>false</DefaultIndicator>
</Telephone>
<Facsimile>
<Number>
<SubscriberID>0711/999888</SubscriberID>
<ExtensionID>99</ExtensionID>
<CountryCode>DE</CountryCode>
<CountryDiallingCode>+49</CountryDiallingCode>
<CountryName languageCode="de">Country Name</CountryName>
</Number>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<DefaultIndicator>true</DefaultIndicator>
</Facsimile>
<EMail>
<URI>[email protected]</URI>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<DefaultIndicator>true</DefaultIndicator>
</EMail>
<EMail>
<URI>[email protected]</URI>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<DefaultIndicator>false</DefaultIndicator>
</EMail>
<Web>
<URI>www.xyz.com</URI>
<UsageDeniedIndicator>false</UsageDeniedIndicator>
<DefaultIndicator>true</DefaultIndicator>
</Web>
</Address>
</AddressInformation>
<AddressInformation>
<UUID>514a519b-39a2-4890-e100-80000a031a28</UUID>
<DefaultIndicator>false</DefaultIndicator>
<Address>
<PostalAddress>
<CountryCode>AT</CountryCode>
<CountryName>Österreich</CountryName>
</PostalAddress>
</Address>
</AddressInformation>
</BusinessPartner>
</nm:CustomerCRMByIDResponse>
</env:Body>
</env:Envelope>') xml_data from dual)
SELECT xmlresponse.*
FROM t, XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
'http://sap.com/xi/CRM/Global2' AS "nm",
'urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702' AS "prx"
'for $BusinessPartner in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner
return $BusinessPartner'
PASSING xml_data
COLUMNS
Internalid Varchar2(4000) Path 'InternalID'
) xmlresponse;As you can see, one "BusinessPartner" can have multiple "AddressInformation"
and one "AddressInformation" can have multiple "Telephone".
Can someone suggest me how can I extract both InternalID & UUID in one query? For above example output should look as follows..
InternalID UUID
2200117598 51471396-9ae8-3cc0-e100-80000a031a28
2200117598 514a519b-39a2-4890-e100-80000a031a28Thank you very much in advance.
Regards,
HariHere is a basic example of one method to achieve what you need
SELECT xmlresponse.Internalid, xml2.uuid
FROM t,
XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
'http://sap.com/xi/CRM/Global2' AS "nm"
'/env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner'
PASSING xml_data
COLUMNS
Internalid Varchar2(20) Path 'InternalID',
addrinfoxml XMLType PATH 'AddressInformation'
) xmlresponse,
XMLTable('/AddressInformation'
PASSING xmlresponse.addrinfoxml
COLUMNS
UUID Varchar2(80) Path 'UUID'
) xml2;Changes:
I removed one of namespaces as you only need to include those included in an XPath statement.
I shortened your datatypes.
I went for the simple XMLTable joined to an XMLTable approach, instead of a single XMLTable using a FLWOR statement.
You can include the addrinfoxml column to your SELECT list to see the data being passed between the two if you want.
Addition:
Here's one approach for a single XMLTable.
SELECT xmlresponse.*
FROM t,
XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
'http://sap.com/xi/CRM/Global2' AS "nm"
'for $BP in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner
for $ai in $BP /AddressInformation
return <e>{$BP/InternalID}{$ai/UUID}</e>'
PASSING xml_data
COLUMNS
Internalid Varchar2(20) Path 'InternalID',
UUID Varchar2(80) Path 'UUID'
) xmlresponse;Edited by: A_Non on Mar 25, 2013 9:41 AM
Added in XQuery solution -
Select from huge data using constraints.
Hi All,
Good morning.
I am Bhargav, I have a table(rem1) with structure as below:
msgid varchar2(32) primary key,
req_id varchar2(15)
enq_tid varchar2(12)
and another table(rem2) with structure as below:
req_id varchar2(15) primary key
Each table has around 2.7 million records
I want to select the rows from rem1 where the req_ids are not in rem2 table. I used the below query as:
select msgid,enq_tid from remq where req_id not in (select req_id from req_id);
but it takes age. Please suggest me the best query using any joins or some other logic.
Thanks alot.
Bhargava Sriram.Among the options
SELECT req_id FROM rem1
MINUS
SELECT req_id FROM rem2or
SELECT req_id
FROM rem1
WHERE NOT EXISTS (
SELECT 1
FROM rem2
WHERE rem2.req_id = rem1.req_id
)Justin -
Auto creation of service orders from service plans using action management
Hi,
We are using service plan products in service contracts where in serviceorders are created according to the plans for the duration of the contracts according to the defined frequency.
The processing for the action is set as "Immediate processing" so that the order is created the moment the deadline is reached. The order is created using the method "CREATE_ORDER_SRVPLAN".
The contract is created and released and with all the line items (including the service plan line items). The schedule condition is such that => all the orders due in a particular month are created on the first of that month. e.g. plan orders for 15.01.2009, 30.01.2009, etc (i.e.,all the orders due in Jan 2008) will be created on the 01st of Jan 2008.
As per this definition, the relevant actions get scheduled, BUT DO NOT GET EXECUTED. The moment I just go to the edit mode in the document and save (without making any changes) the action gets executed and the service order gets created.
The requirement is that the moment the deadline is reached the action should get executed and there should be no need to edit the contract since the processing is kept as immediate.
Please advice further.
Warm regards,
DPHi Cenk/Pepe,
Thanks a lot for the response.
I did schedule the report and it gets executed as per the schedule. But it does not execute the actions. As a output it just logs "3 actions selected". What I want is that it should actually go ahead and execute these actions and not just select them.
Kindly advice on the same.
Regards,
DP -
Hi Gurus,
I have an requirement to add contact person first name and last name using Relationship kind as '0001' for an BP.
This requirement i need to work with LSMW and generate IDOC for respective changes.
To work with LSMW and IDOC i need to pass data to ZCRMXIF_PARTNER_SAVE01.
Can you all suggest me what are the mandatory fields to be passed to this segment and what are the fields to which i can pass FIRST NAME and LAST NAME of the CONTACT PERSON of the BP.
Please post me your replies in detail iam new to crm i can understand.
Thanks & Regards,
Saravanan SambandamHi Saravanan,
Which method you used.
Regards,
Madhu.
Maybe you are looking for
-
Cannot save jpg files in outlook express
Is there a problem sending a jpg file from Apple mail to outlook express? People I am sending to say they can see the photo, but cannot save the file.
-
How do I get rid of an unwanted url that autocompletes when I start typing.
I have a URL for my credit union: firsttechfed.com but when I type in fir The system automatically fills in with: firsttechfcu.com, an advertising site. So, each time I want to go onto my CU site I have to type the whole name in. I would like to get
-
Using analytic function to get the right output.
Dear all; I have the following sample date below create table temp_one id number(30), placeid varchar2(400), issuedate date, person varchar2(400), failures number(30), primary key(id) insert into temp_one value
-
Captivate 5 - Inserted PNG images from Fireworks are pixelated
The PNG images I inserted from Fireworks are showing up pixelated when I play the file in a browser, but look fine while I'm working in Captivate. Any thoughts? THANKS! Birgit
-
What is (roughly) the implementation duration for Oracle weblogic portal an
Dear All i need to knwo r(oughly) how long does it take to implement oracle weblogic portal (for exmpale 5-7 months or 1 year,etc) for an company that contains around 2700 employees, and how much will it cost (roughly). thanks in advance for any help