Convert IDOC DEBMAS06 to a new BAPI
Hi,
I need to use a BAPI for Customer Creation. Currently we are using an IDOC: DEBMAS06. I checked the STD bapis available but they do not update all the fields from KNA1, like e.g.: flds in structure SI_KNA1 (General Data...).
Can anyone tell me how can I achieve this using BAPI, do I have to create a new BAPI?...
Regards,
KK
hi kaustubh,
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
check these threads..
Re: Bapi to create customer master
BAPI for Customer Creation
BAPI - create customer
Re: Customer Master
hope this helps,
do reward if it helps,
priya.
Similar Messages
-
Using ABAP Web Service tor convert IDoc to XML and transfer to SOAP Server
Hi all,
I have a problem to use ABAP Web Service to convert IDoc's to XML and then send them to a SOAP Server.
Currently we have the following landscape:
SAP->XI->Archive
The sap-system (ECC6.0) sends an IDoc to the Exchange Infrastructe. The XI maps the IDoc and converts it to the required XML format, used by the archive. Afterwards, the XML documents are sended to the SOAP Server.
So I'm trying to replace the Exchange Infrastructure with ABAP Web Service.
I've read a lot of posts and documents reagarding ABAP Web Serivce, converting IDoc's to XML, RFC and so on, but I'm not able to do the replacement.
I don't know how to start and which steps are required.
The required roles and authorizations at the sap-system and the service for soamanager and the Web Service Viewer are available.
First I thought to create the RFC and partner profiles and then the report to convert IDoc to XML as a BAPI. With this BAPI I supposed to create and define a Web Service. The problem is, I don't know how to trigger the report if the Idoc should be send to the archive.
Hopefully, someone has an idea or a how-to for me.
Thanks in advance.
Regards,
Christoph
Edited by: BigTicket on May 12, 2010 9:36 AMHi BigTicket.
A suggestion to trigger the BAPI / WebService at the IDoc receiving is to use a user exit or enhanced inside the idoc function module. When the idoc arrived to the idoc port the system start the related function module and then your user exit/enhanced in which you invoke your BAPI.
I hope this help.
Ciao.
Nicola -
Idoc flatfile to IDOC xml issue with new PI7.11 module SAP_XI_IDOC/IDOCFlat
Hi,
I am trying to develop a scenario as mentioned in the blog using the new module available in PI7.1,but I am getting this error
"Error: com.sap.conn.idoc.IDocMetaDataUnavailableException: (3) IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ORDERS05" is unavailable."
I have made every configuration correct and IDOC meta data available in both SAP R3 and PI,but it is still complaning about the meta data does not exist.
Blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13743%3Fpage%3Dlast%26x-order%3Ddate
did anybody face issue with the new module available "SAP_XI_IDOC/IDOCFlatToXmlConvertor",please help me or give me mre information why I am getting this meta data error.
Thank you,
SriHi Sri,
To Convert IDOC Flat file into IDOC xml from the given blog, the IDOC flat file should be present in standard format like:
E2EDK01005 0000047110815000000000001.........
E2EDKA1003 0000047110815000000000002.........
E2EDKA1003 0000047110815000000000003..........
E2EDKA1003 0000047110815000000000004........
The Flat file have relationship as IDOC Number "000004711081500000" and segment sequence "0000001".
If your flat file is not in this formate so i don't think that module is able to convert into IDOC xml. and if your file is already in this format then it may be issue with destinations which are created in NWA.
Thanks
Harish -
How To Convert IDOC to FLAT File ?
Dear Expert,
My requirement is to convert the IDOC to FLAT File using XI. How can i do this. I have gone thru the Guide How to convert IDOC to Flat file using ABAP mapping but it does not talk about what are all the stpes i need to do in IR & ID.
I am ready to use ABAP mapping since i am an ABAPER.
Is it recommended to use ABAP mapping since we expect daily 500 IDOCs to be converted to a flat file & transfer this flat file to some FTP location.
Can anybody tell me the stpes how to do this in XI. The steps i am expecting like how to define the Data Type / Message type / Mapping etc & how to configure the channel ?
The Flat file i want to convert should look like the way IDOC file gets created in FILE FTP port in SAP.
Regards,
UmeshI think there is some confusion... Let me explian my problem once again.
I want to convert the Shipment IDOC as it is the moment the shipment documents gets created in R/3. I dont want to collect many IDOCs & make as single file. For each IDOC it should create a Flat File.
Secondly if i have to MAP the whole IDOC the graphical mapping is too difficult.
So instead of that can i use ABAP/XSLT/JAVA whichever is easy. ?
Since i am ABAPER i can use ABAP mapping.
The Output file should look like as below.
EDI_DC40 9000000000011785526620 3012 OILSHI01 OILSH1 SAPP01 LS SAPCLNT900 A000000018LS WBIMQSI 20071031161506 20071031161506
E2OILSH001 90000000000117855260000010000000250 1011537344 1101 1 300X1 TRKGMKG 0202KG KG X ZTLF X XX 000 BLX X X60002200710310000002007103100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 E2OILSA 9000000000011785526000002000001031011537344000001SP 0000201496000000000000000000 00 00 V E2OILSA 9000000000011785526000003000001031011537344000002SP 0000201496000000000000000000 00 00 S
E2OILSV 900000000001178552600000400000103MH04CG6052 LPBW50D62401033 000020149601KG KGM 35200.00000 17200.00000 18000.00000 0.000 0.000 0.000 DLLPGB220071031000000 00000000000000000000000000000000000 0000XX 6000AAAA0.00000 0.00000 17200.00000 35200.00000 18000.00000 MH04CG6052 new bulk tender approved rs LPG Bulk Lorry - WR Refinery TPP BABA TRANSLINES kg kg 0.000 0.00 0.00 E2OILSC 9000000000011785526000005000004041 001 18000.000000 18000.000000 35200.000000 0.000000 0.000000 KG E2OILSQ001 9000000000011785526000006000005050011 MH04CG6052MH04CG60521J 05041089055000 00000118000.0000000 KG 18000.000000 18000.000000 6000V04 18000.000 KGM18000.000 KGM00000000 V 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0001 E2OILS2 9000000000011785526000007000004040001000001000200020000.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 XX0000000000000000000000000000 XX0504108905J5000 PUNE LPG BOTTLING PLANT START 0001 1END 0001 10.000000 0.000000 0.000000 0.000000 0.000000 0.000000
Pl. Help me its Urgent.
Regards,
Umesh -
** How to send 2 IDocs DEBMAS06, ADRMAS03 only if both contains data?
Hi Friends,
My scenario is like below. Whenever create a new customer or change an existing customer (XD01/XD02), we distributes the IDoc DEBMAS06 & ADRMAS03 from one SAP system to other SAP system through XI.
The present scenario is if DEBMAS06 IDoc gets failed (due to some reason) and ADRMAS03 created successfully it will be distributed to XI and processed successfully and reaches the target system. But, the customer wants only when both IDocs created successfully, the XI should process the message.
To achieve this,
1) Both IDocs are exported and the occurrences of IDoc node changed to 0..1 .
2) Now the DEBMAS06 IDoc segment occurrence is 0..1 likewise ADRMAS03 IDoc segment occurrence is 0..1. Both are imported in External Definitions.
3) Created Message Mapping - Source Side 2 Messages (DEBMAS.DEBMAS06) & (ADRMAS.ADRMAS03). Likewise, the target side the same 2 messages.
4) We put the condition by checking IDoc Node and tested that it is working fine. (DEBMAS06-E1KNA1M-KUNNR is not initial then only ADRMAS03 IDoc will be created. Likewise, ADRMAS03-E1ADRMAS-OBJ_ID is not initial then only DEBMAS06 IDoc will be created.)
5) We created 4 Message Interfaces and one interface mapping. Source Side 2 Interfaces are there : DEBMAS06_OUT, ADRMAS03_OUT. Target Side 2 interfaces DEBMAS06_IN, ADRMAS03_IN. The mapping program created in Step 4 is used . Consistency is checked. It is OK. Tested the mapping. Fine.
Now, how do we configure receiver determination in Integration Directory Side ? Because, Sender Side 2 interfaces are there ?
Kindly reply me friends about the ID configuration briefly for the above design.
Thanking you.
Kind Regards,
Jegathees PHi,
You have 2 sender interfaces, so you will need to have a BPM which will collect these 2 IDOCs in 2 receive steps and map them to target interfaces.......in BPM you can have a wait step to collect the IDOCs and if in this time the IDOCs didnot arrive, you can cancel the BPM process, so stopping these IDOCs to reach target system.
Regards,
Rajeev Gupta -
Convert IDoc outbound to IDoc Abstarct
Hello Friends,
Can any please tell me how to convert IDoc outbound to IDoc Abstarct type so that it can be used in BPM.
Thanks
SamHi Woj,
Below is the xml message displayed.It says No Interface found .But I have all the objects at the right place.
<Trace level="1" type="T">Version 000</Trace>
<Trace level="1" type="T">Message status 000</Trace>
<Trace level="1" type="T">Interface action INIT</Trace>
<Trace level="1" type="T">(must be INIT for a new determination)</Trace>
<Trace level="1" type="T">start CHECK_INTERFACE</Trace>
<Trace level="1" type="T">--start sender interface action determination</Trace>
<Trace level="1" type="T">select interface MATMAS.MATMAS04*</Trace>
<Trace level="1" type="T">select interface namespace urn:sap-com:document:sap:idoc:messages</Trace>
<Trace level="1" type="T">no interface found</Trace>
<Trace level="1" type="T">end CHECK_INTERFACE</Trace>
<Trace level="1" type="T">Set interface action INIT into MAST</Trace>
</Trace>
- <Trace level="1" type="B" name="interface activity determination">
<Trace level="1" type="T">Version 000</Trace>
<Trace level="1" type="T">Message status 000</Trace>
<Trace level="1" type="T">Interface action INIT</Trace>
<Trace level="1" type="T">(must be INIT for a new determination)</Trace>
<Trace level="1" type="T">start CHECK_INTERFACE</Trace>
<Trace level="1" type="T">--start sender interface action determination</Trace>
<Trace level="1" type="T">select interface MATMAS.MATMAS04*</Trace>
<Trace level="1" type="T">select interface namespace urn:sap-com:document:sap:idoc:messages</Trace>
<Trace level="1" type="T">no interface found</Trace>
<Trace level="1" type="T">--start receiver interface action determination</Trace>
<Trace level="1" type="T">Loop 0000000001</Trace>
<Trace level="1" type="T">select interface MIAbA_MATMAS_Req*</Trace>
<Trace level="1" type="T">no interface found</Trace>
<Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
<Trace level="1" type="T">Hence set action to DEL</Trace>
<Trace level="1" type="T">end CHECK_INTERFACE</Trace>
<Trace level="1" type="T">Set interface action DEL into MAST</Trace>
</Trace>
Also I have mapped IDoc_original_outbound to IDoc_asy_Abs _ED in my message mapping 1:1.I have selected original IDoc (not ED) in the receiver determination.
I don't think we need to explicitly maintain IDoc outbound asy in the MI..? should I..?
Kindly suggest me if you find any solution for this happening.
Please send me if you have any scenario of similar type else please mention the steps to be carried out for this scenario so that I can cross check with your steps.
Thanks alot for your valuable time.
Regards
Sam
Message was edited by: Sam
Guest -
Convert cs3 flp file to new format
Hi all,
I'm trying to convert my old cs3 project file to the new
format of version cs4. I can't find a way to open the project file
and convert it. The flash-help topic which describes this problem
doesn't give a solution which works. Does anybody has experience
with this convertion and can give me a hint how to do this?Hi Thambe
in addition to the above posts
Program to convert flat file to XML file.
please download tool from this link:
http://www.download.com/Stylus-Studio-2008-XML-Enterprise-Suite/3000-7241_4-10399885.html?part=dl-StylusStu&subj=dl&tag=button&cdlpid=10399885
how to use:
http://www.stylusstudio.com/learn_convert_to_xml.html
http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
Flat file to XML
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Converting Idoc flat file representation to XML
how to convert flat file into IDOC-XML
Thanks
sandeep sharma
PS ; if helpful kindly reward points -
Extended IDOC DEBMAS06 (MSG-Type DEBMAS) can't be filled using user EXIT
Hi,
I'm having a problem trying to fill an additional created segment (extension) for the IDOC DEBMAS06.
This IDOC is generatede from an ALE szenarion
and I need additional fields to fill using my extension.
With CMOD I created a new project using the enhancement VSV00001 (User exit Customer and vendor distribution Receipt/issue) to fill the additional field but, no way.
My extension segment will not appear onto this user exit.
I tried to search new exits, tried to make additional settind using ALE customizing but again now way, this onw extended segment will not come up in the user exit.
Please Help !
Many thanks
GaspareWhat do you mean by "My extension segment will not appear onto this user exit."? It will not be there, you will have to fill it and append it to the EDIDD table. In thh user exit, you will append the records for segment zzzzz(your extended segment) at the appropriate place.
Say the standard IDOC has the structure like below
A
--B
--C
D
and you added extended segment at the same level as B and C. In that case, you have to append the new segment records at the end.
If you added your segment as a child segment of B, then you will have to insert the records into the EDIDD table before the C segment.
Srinivas -
Multiple Idocs (DEBMAS06) into one single file
Hi All,
Multiple Idocs(DEBMAS06) are sent from SAP in bulk to be sent to FTP server via XI...(Cannot use Append the file as The structure is with Header,Detail(all the idoc details) and Trailer)
I have seen different threads which speaks about the same,
But Please suggest me the best approach to proceed with this kind of scenario...
Multiple IDocs -> XI -> Flat file which is speaking about BPM and also Packaging(SAP note 814393)
and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b
(How Tou2026 Send Multiple IDocs Within One XI Message)
I prefer not to use BPM... but if required then....
Please suggest me which is the best approach to proceed with it..
Thanks and Regards,
Sridhar ReddyHi ,
I had tried the scenario Multiple IDOC's coming from R/3 and send all of them into a Single File
But it did not work...
Of course i changed as Micahel mentioned in
The specified item was not found.
(Collect and make pack size to 50) but still the idocs are posting as 50 messages in XI and 50 files are being created ...
But as per his remarks we need customization which is very difficult...
And also i checked Michaels blog
The specified item was not found.
But this is dicussing reverse of my scenario...
and finally i am thinking of going with the stefens weblog...
Collecting IDocs without using BPM
Can any one please suggest any other best way to handle this...
Instead of going for BPM i am implementing as Stefen suggested ... This is because we have many such interfaces where SAP sends collective idocs....
Regards,
Sridhar Reddy
Edited by: sridhar reddy kondam on Oct 22, 2008 6:20 AM -
User Eixts / BADI for the cutomer master IDOC (DEBMAS06)
Hi All,
We have requirement to extend the customer master IDOC 'DEBMAS06' to add the address fields i.e (ADRC-STR_SUPPL3,STR_SUPPL4,STR_SUPPL5). Can any one tell me the suitable EXITs or BADI's to populate street3, street4 and stree5 to the customer master. Otherwise can any one tell me how to over come this problem.
Thanks in advance
K N CHi Naveena,
Create a segment with the fields you have hased for and thenextend it and write the code
Create the project in the enhancement" VSV00001 User exit Customer and vendor distribution Receipt/issue
Crearte the code as follows in the function exit( EXIT_SAPLVV01_001) under tthe include as follows:
I have create a zcustomer as the segment so wrote the code according to that.
DATA: WA_ZCUSTOMER TYPE ZCUSTOMER.
DATA: LS_DATA TYPE EDIDD,
LS_E1KNA1M TYPE EDIDD,
LS_SEGMENT TYPE ZCUSTOMER,
LV_COUNT TYPE I.
DATA: L_KUNNR TYPE CHAR10.
DATA: L_ADRNR TYPE KNA1-ADRNR.
CHECK MESSAGE_TYPE = 'DEBMAS'.
CHECK IDOC_TYPE = 'DEBMAS06'.
*IDOC_CIMTYPE = 'ZCUSTOMER'.
READ TABLE IDOC_DATA INTO LS_DATA WITH KEY SEGNAM = 'E1KNA11'.
IF SY-SUBRC = 0.
LOOP AT IDOC_DATA INTO LS_DATA FROM SY-TABIX.
IF LS_DATA-SEGNAM NE 'E1KNA11'.
EXIT.
ELSE.
LV_COUNT = SY-TABIX + 1. "Get the segment position as per IDoc Defn.
READ TABLE IDOC_DATA INTO LS_DATA WITH KEY SEGNAM = 'ZCUSTOMER'.
IF SY-SUBRC NE 0.
READ TABLE IDOC_DATA INTO LS_E1KNA1M WITH KEY SEGNAM = 'E1KNA1M'.
IF SY-SUBRC = 0.
L_KUNNR = LS_E1KNA1M-SDATA+3(10). "Customer No.
SELECT SINGLE ADRNR FROM KNA1 INTO L_ADRNR "Address no.
WHERE KUNNR = L_KUNNR.
IF SY-SUBRC = 0.
SELECT SINGLE STR_SUPPL3 LOCATION CITY2 FROM ADRC INTO WA_ZCUSTOMER
WHERE ADDRNUMBER = L_ADRNR. "Required fields
IF SY-SUBRC = 0.
LS_SEGMENT-STR_SUPPL3 = WA_ZCUSTOMER-STR_SUPPL3.
LS_SEGMENT-STR_SUPPL4 = WA_ZCUSTOMER-STR_SUPPL4.
LS_SEGMENT-STR_SUPPL5 = WA_ZCUSTOMER-STR_SUPPL5.
ENDIF.
ENDIF.
ENDIF.
Edited by: Farhy Farhy on Sep 24, 2010 12:19 PM -
Idoc DEBMAS06 in ECC 6.0
Hi,
I have the follow problem: i have an idoc DEBMAS06 in status 51 with mesagge BP00 022.
The value of field GBDAT ( field of error) 20090701.
Before the upgrade from 4.6 to 6.0 the idocs were in status 53 (OK status).
Where is the problem?
Thanks.Hello Biago,
Could you ableto change this field. what is the reason behind this field.
how do you fix it
Ramu -
Convert IDOC to flat file - How to guide
Hello,
I have found the how to guide for converting IDOCs to FlatFiles via ABAP Mapping.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
What is not clear to me. This sounds like I do not need a message type for the flat file with a full implemented structure corresponding to the source IDOC.
Is this right?
Or it is really necessary to create a mess.type with data type for rebuilding the IDOC structure in the flat file!
Can anyone help?
Best regards
DirkDirk,
Well, am not exactly sure if my reasoning is technically correct, but here it goes,
Java Mapping and ABAP mapping takes the Input Source as an InputStream and return the output also as Streams. These streams are not validated against the source and the target strucutres.
In the case of XSL, the only requirement is that theinput / output should be a well formed XML content.
Graphical Mapping produces a Java code internally and I guess the code has a validation check against the source / target schema.
Regards,
Bhavesh -
How to convert IDOC to flat file in XI
Hello SDNers
I have a scenario IDOC --> XI --> Flat file. My question is how to conver IDOC to flat file. At least there are two ways to do that:
1) Define a flat structure in PI that reflects the IDOC structure, then using content conversion to convert the flat structure to flat file in hte receiver communication channel.
2) There is a [document |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a] talking about using a generic ABAP mapping to map any IDOC to flat file.
For the option 1, I don't want that way, because I would need to define a flat structure in PI for each IDOC which is too much effort. (I would have dozens of IDOC scenarios)
The second one is very attractive. However the document is not complete to follow. Basically it does not explain how the inbound flat structure looks like. I guess the generic ABAP mapping is used to map any IDOC_XML structure to a flat structure, then in the file receiver communication channel to convert the flat structure to flat file format. But the document does not mention how the flat structure looks like. Has somebody tried this scenario? If yes, can you please let me know the steps to do in ESR (IR) and ID? Basically what structure the IDOC_XML should be mapped to using the generic ABAP mapping class?
Or somebody has other ideas on how to convert IDOC to flat file?
Thank you so much
Eric> 1) You are saying that for Java mapping and abap mapping, the target data type (messag type) is just a dummy one, the real (XML) message the receiver will recieve is the one (stream) produced by the java or abap mapping. Is that correct?
Definitely yes!
>
> 2) For the abap mapping option, I would define a dummy target data type. Do I need to do any content conversion in the receiver adapter (communication channel)?
None wat so ever.The output of your Java Mapping will be the Native Idoc Format.
>
> 3) I tried with a dummy target data type as mentioned in my second post, can you see any clue in the error message what is wrong?
Dats one thing I cant help much. Just make sure that the ABAP report is valid and take the help of a ABAP'er to debug what is going wrong. Not much of a ABAP guy, can read ABAP code, but cant write one myself
Try to test the program standalone to see how it works. Maybe take some Idoc XML file as input and then dump the output to a .txt file and so on.
Regards
Bhavesh
PS : All this is from what I have read of this guide. I have not convert Idoc XML to Native Idoc but have used this guide to convert Native Idoc to Idoc XML . -
Hi,
I have an application where i have to convert an IDOC to XML format so that it can be handled by webmethods.
I want to know how to convert IDOC to XML. I have seen that in SAP there are two port types, XML and XML HTTP. Are they used for posting an IDOC in XML format at defined port.
When i tried to generated a test IDOC with port type as XML, it has created an xxx.XML file in application server but i an unable to display it.
1). Can any one pls. tell me how to convert IDOC to
XML??? What are the different methods ( if available)
2). DO i need to have any extra component for this??
3). what are XML and XML http ports are for.
Pls. help me as this is very urgent.
Thanks in advance.
PratikHi,
Does xxx.XML contain no data? Or you are just not able to display it (try opening it in notepad).
1 - You are doing it right. Using XML port should be enough.
2 - You don't need anything additional.
3 - XML port gives you an option like a file port (you get the idoc in an XML file) for batch type interface. XML http will let you post the XML data realtime to an web server that accepts XML messages.
If your partner system can take http messages, you can use http port to send the IDOC directly to that system, else you can create the XML file and send it in batch mode.
hope this helps,
cheers,
Ajay -
What is the t.code for convert Idoc into XML schema
Hi all,
How to convert IDOC as XML schema?
there is one T.code is there for convert IDOC into Xml schem ,I forgot that,
plz tell me if anybody knows that t.code. Very Urgent
Thanks in Advance
rambabu.AWE60
Let me know if you need any other help with that.
Best Regards,
Steve Hardeman
Maybe you are looking for
-
Creation of Tax Code - Service Tax + VAT
Hi, I want to create new tax code Service Tax - 4.12% + VAT 5%. The steps i followed is in FTXP, 1. Against JSRN given value - 4.12 2. Against JVRN given value - 5% But it gives me error. Define tax code at level 510. I want to create new tax code SV
-
File Server - File size\type search and save results to file
I already have a vb script to do what I want on our file server, but it is very inefficient and slow. I was thinking that a powershell script may be more suitable now but I don't know anything about scripting in PS. So far the vb code that I have w
-
Dear all, Yesterday i had an interview and they asked me 2 q's first, if i have a package how i can define exceptions in the package second, if i have 2 packages A & B, and already defined exceptions in package A, how i can call these exceptions in p
-
AS3_Function versus AS3_FunctionAsync
These two API functions are documented as creating a "synchronous" and an "asynchronous" function callback object. What is the difference between these, and where can I read more about it? I asked our local ActionScript gurus, and they said it was no
-
Firefox opens but will not conduct any search or open a webpage
I can open up firefox but the browser will not respond. I type a search or a page in firefox but it does nothing. If I open a new tab and do the same, it still does nothing; not even the initiation of trying to load a page. I cannot find anything on