Webservice to Idoc/File using ABAP mapping
Hi Experts,
I need your expert advise on below scenario.The flow of the scenario is..
1)I will get a control record from a webservice(SOAP sender adpater), this initiates the process flow.
2)based on control record ,The ABAP mapping program will call a program(within the PI sys) to fetch the data from DB table.then the ABAP mapping program will have to create 2 messages for the target. One is IDoc and another one is File.
Pls suggest the best approach.
Regards,
Srini
Hi Prateek,
Thanks for quick reply.
there is a main program which has different classes and methoda to fetch the data from DB tables.I dont want to touch this main program.
what i am going to do is, I will this main program from abap mapping by passing the control record information.based on this control record,the main program will fetch data for ABAP mapping.From ABAP mapping, i have to generate 2 messages,one for IDOc and another one is for File.
Hope you got my requirement.
Regards,
Srini
Similar Messages
-
IDOC--XI--IDOC Using ABAP MAPPING
Hi all,
My requirement is to map source IDOC fields to target IDOC fields using ABAP Mapping.
few fields in source idoc structure has to be merged into a single field in target idoc structure.
need help on how to start with as i am not exposed to ABAP Mapping.
regards,
SubbaHi Subba,
I suggest you also go through these links:
https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
/people/r.eijpe/blog
ABAP Mapping Vs Java Mapping.
Re: Message Mapping of type ABAP Class not being shown
Re: Performance of mappings (JAVA, XSLT, ABAP)
Refer to following SDN Demo which explains the need and how to do the ABAP mapping.
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
This document will help you to create ABAP Mapping.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
Regards,
Abhy
Message was edited by: Abhy Thomas -
Idoc - JMS queue using ABAP Mapping
Hi all,
I am doing a idoc to JMS queue scenario using ABAP Mapping. I am new to ABAP
Basically i want to know how to read the OUTBOUND idoc segments and their field values. I have gone through link : IDOC--XI--IDOC Using ABAP MAPPING(Idoc to Idoc using ABAP Mapping).
If any body could suggest me how to read idoc->segment->fields or give some sample code, it would be very helpful.
Thanks in advance&
Regards,
ManiHi Mani,
Maybe it would be easier to use graphical mapping. In ABP mapping you have to parse XML and than create target document. If you want to do it I'd strongly advice you to read it:
http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
Regards,
Wojtek -
Variable Substitution not working when using ABAP mapping
Hi all,
I am doing an IDoc to File scenario.
Due to some complex mapping requirements, i had to use ABAP mapping for IDoc to File ( IDoc : SHPMNT05)
There is also one more requirement where in i need to generate the receiver filename dynamically
i.e the filename is of the form :
GW-XYZ-DD/MM/YYYY.csv
Where
XYZ is the Shipment number (E1EDT20- TKNUM)
DD/MM/YYYY is the IDOC creation date in ECC (EDIDC-CREDAT)
so i used the variable substitution option in receiver file adapter.
But its not working.
Is there any limitation for using the variable Substitution, doesnt variable substitution work in case of ABAP mapping?
Regards,
Loveena.Hi,
u written ABAP mapping program to get the file name in the required format ,
is it rt?
when u test it at message mapping(including ABAP map program)
u get the the required format of file name in the one of target filed.
if that was fine, please check the variable substituiton parameters at receiver file adapter.
i mean, are u maintain variable name and refernece.
u have to specify the payload information.
warm regards
mahesh. -
How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0).
Hi,
I am looking for this document: How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0), and not able to find it.
Can anybody please point me the location, to look for, or post the document.
Thanks,
NamadevHi Namadev Chillal ,
These r the links containing PDF docs which u r looking for:
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Excellent PDF Document on Mapping
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Mapping Development with the ABAP Workbench
http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
ABAP Mappings
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm -
Automatic IDOC parse in ABAP Mapping?
Hi,
I'm creating a very complex mapping in an IDOC -> PI -> File scenario and I'm using ABAP Mapping to do that.
I already know how to parse an inbound xml but it's a "heavy" job and the code finishes very "hardcoded".
As you know, SAP uses the structure EDIDD to send/receive IDOC data generically. So I'm sure that internally SAP has a method/function or something to convert the XML data sent by PI to that EDIDD data structure when you send an Idoc through PI. I can't found that, do you know if it exists?
ThanksYou can use function module IDX_XML_TO_IDOC to convert the XML to IDOC type internal tables.
Check for other function module in function group IDOC_ADAPTER_MB.
KK -
I followied the how to guids "How To convert an IDoc-XML structure to a flat file and vice versa in XI 3.0" and "How to Use ABAP-Mapping in XI 3.0".
After I built created the ABAP-OO class Z_ABAP_MAPPING_IDOC_TO_FLAT and implemented every thing, during the testing, I got the error "Exception CX_SY_NO_HANDLER triggered, An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handl".
Please help.
Thanks!Please debug as follows...
put a break point inside your class/method....
goto tcode SXI_MAPPING_TEST....give in the configuation details of your scenario...and when you execute, give the IDOC-XML, copy it from SXMB_MONI where you are getting the error....
when you execute, it shoudl stop at the break point that you had set in your class....continue debugging using 'F6' function key, and check where you are hitting this error...
The chances are that the FM that converts IDOC-XML to flat file format might not have been executed correctly...
Thanks. -
Checking Well-Formed XML files with ABAP Mapping
Hi guys,
Anybody knows which is the best way to check (well-formed) incoming XML files trough XI?
Im using ABAP Mapping and before I check the value of the XML fields I want to check if the XML is well-formed. For this reason I need to know which is the class or classes that I need to use to checking the format of XML using an XSD file?
That is also possible using a DTD file instead of XSD?
Which is better XSD or DTD?
Thanks in advance,
Ricardo.Hi Ricardo,
try out these links.
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
/people/sap.user72/blog/2003/09/18/xsl-and-abap
Thanks and Regards
Vishal Kumar -
Can somebody post link to How to Use ABAP-Mapping in XI 3.0?
Hello,
can somebody post a real link to the document How to Use ABAP-Mapping in XI 3.0. All the links to this documnet in the existing posts are not valid.
Thanks for your information
JaysonHi
Following weblog might help you.
Testing ABAP Mapping - Testing ABAP Mapping
XML DOM Processing in ABAP part I - Convert an ABAP table into XML file using SAP DOM Approach.
/people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
SDN TV demo to create and test ABAP mapiing - https://media.sdn.sap.com/SDNTV/main.asp?mediaId=128
How to guide for ABAP mapping.
https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&
Also check these links,
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
Testing ABAP Mapping
Using ABAP XSLT Extensions for XI Mapping
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 9, 2008 6:27 AM -
How to write a log using abap mapping
Hi all.
in PI 7.1 environment I need to use abap mapping and I wish to write some XML data into a table that I created for logging the data.
I know that using the abap mapping I can parse an XML file. My question is how to write this table defining a specific method, if it is necessary.
Any help or suggestion is well appreciated.
Many thanks in advance for your kind cooperation.
Regards,
Giovannihi,
>> My question is how to write this table defining a specific method, if it is necessary.
just like to normal table (insert statement)
parse XML and get the data you need and just insert into the DB table
there are many tutorials showing how to parse xml file inside abap mapping
so just do a little search on sdn
Regards,
Michal Krawczyk -
IDOC conevrsion through ABAP mapping
Hi,
I am trying to map to an IDOC MATMAS05 with an extension ZMATMAS05, using ABAP mapping. The source and target structures are external definition formats(xsd) of the IDOC.(I did this because I am using a BPM and used the xsds as abstract interfaces)
When I run the Map I get an error "Extension ZMATMAS05 Unknown". I have hardcoded the EDI_DC40 values in the map. So I have set CIMTYP to ZMATMAS05.
I have loaded the metadata using idx2. Still I am getting this error. Would need help on this.
reagards,
SaswataHi,
Have a look into this SAP note- 751839
Is all the segments of idoc is released ?
Delete the IDX2 entry and reload it, And reimport into Repository
Regards,
moorthy -
How to upload an excel file using ABAP.
Hi,
Can anyone please help me in understanding how to upload an excel file using ABAP.
Thanks!!http://diocio.wordpress.com/2007/02/12/sap-upload-excel-document-into-internal-table/
check the link
TYPES: Begin of t_record,
name1 like itab-value,
name2 like itab-value,
age like itab-value,
End of t_record.
DATA: it_record type standard table of t_record initial size 0,
wa_record type t_record.
DATA: gd_currentrow type i.
*Selection Screen Declaration
PARAMETER p_infile like rlgrap-filename.
*START OF SELECTION
call function ALSM_EXCEL_TO_INTERNAL_TABLE
exporting
filename = p_infile
i_begin_col = 1′
i_begin_row = 2′ Do not require headings
i_end_col = 14′
i_end_row = 31′
tables
intern = itab
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. Problem uploading Excel Spreadsheet
endif.
Sort table by rows and colums
sort itab by row col.
Get first row retrieved
read table itab index 1.
Set first row retrieved to current row
gd_currentrow = itab-row.
loop at itab.
Reset values for next row
if itab-row ne gd_currentrow.
append wa_record to it_record.
clear wa_record.
gd_currentrow = itab-row.
endif.
case itab-col.
when 0001′. First name
wa_record-name1 = itab-value.
when 0002′. Surname
wa_record-name2 = itab-value.
when 0003′. Age
wa_record-age = itab-value.
endcase.
endloop.
append wa_record to it_record.
*!! Excel data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop. -
File TO File-Using XSLT mapping (for Beginners) --- Error in XSLT
Hi,
I am following this wiki (TO File-Using XSLT mapping (for Beginners))
https://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping%28forBeginners%29
When creating Xslt from the MapForce, when I click on the XSLT Tab I am getting the following error
http://www.flickr.com/photo_zoom.gne?id=1216715484&size=o
How to correct this error ?.....
Thanks
srini
Message was edited by:
srinivasHello,
The XSD you are using is from Data Type and you are using it for mapping.
Instead export XSD for Message Type and also pass the XML schema for source that will solve the issue and your XSLT will be generated.
Regards, -
Hi,
today I read that it should be possible to use ABAP Mapping instad of Messagemapping.
in depth SAP Docu told me following: Add additional mapping types in your Exchange Profile:
com.sap.aii.repository.mapping.additionaltypes
R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)
But were to find my Exchange Profile?
Regards Mattgo to http://<host>:5<sys_num>00/rep
Click on Administration and login with XISUPER.
Make sure you are in Repository tab in the left side of the window.
Click on <b>All properties</b> under <b>Administration of Properties </b> and check whether your property is there, otherwise use refresh. If nothing happens, refresh your cache and check the properties again.
There was an how to guide on this, I could not find the link, but have it in my collection. If you want I can mail it.
regards
SKM -
Unzip files using ABAP program
Hi All,
Can anybody guide me how to Unzip a .zip file using ABAP program... Appreciate your immediate reply...
actually, my scenario is to check whether zip file is created in appl.server or not.., and if zip file created then i need to check whether its blank file or any content exist inside the file...
Thanks in advance
Bhaskerhi
good
parameters: command(236) lower case.
data: std_lines(255) occurs 0 with header line.
call function 'RFC_REMOTE_PIPE'
destination 'SERVER_EXEC'
exporting
command = command
read = 'X'
tables
pipedata = std_lines
exceptions
communication_failure = 1
system_failure = 2.
You should put your Unix command in the command parameter. "gunzip /yourfilepath/yourfilename" works on my Unix system. Once you determine the proper Unix command, you should be set. This technique is also nice because it provides you with echos back from Unix in table std_lines. For more complex Unix activity, you may want to consider throwing together a Unix script, and calling that via this code.
reward point if helpful.
thanks
mrutyun^
Maybe you are looking for
-
Auto patch error usdsop cannot create a new process
Hi i am applying hrms family pack k in one vision db in testnode but i am getting following error.Any idea appsversion 11.5.10 and windows 2003 advanced server Generating product JAR files in JAVA_TOP - j:\oracle\viscomn\java with command: adjava -mx
-
User e-mail address in 2 mailing lists
I have a question from a customer i had no idea. if a persons email address is in 2 mailing lists do they get the e-newsletter twice if the customer sends the e-newsletter to both lists.
-
Need help in ABAP code to Enhance the Extract Structure ?????
Hi all, I want to enhance the extract structure to get KBETR & KBRUE fields of KONP table since it didnt allow me to add those fields while creating the generic extractor because of currency key problems. I want to read all KONP records into int
-
Architectural Difference between Oracle 8i and Oracle 9i
hello there anybody can tell me precisely what is the architecture difference in Oracle 8i and Oracle 9i. or provide me the link where i can get it. waiting for reply
-
Reliable Messaging with a non @oneway method
Hi experts, first of all, I'm new in the whole SAP-Application-Server business. I hope, i will give you enough and the correct information you need to follow and answer my problem. I'm experimenting with Web Service Reliable Messaging. It works prett