Importing Non-SAP WebService - Problem: Data Transfer
Hi all,
I need to integrate a non-sap Web Service into Dynpro.
I generated a client-proxy and a logical port.
The Web Service needs one object (the structure from the object was generated correctly)
In the next step I was programming the following code.
* Reference variables for proxy and exception class
DATA:
lo_clientproxy TYPE REF TO zrhco_testrules_services,
lo_sys_fault TYPE REF TO cx_ai_system_fault,
lo_app_fault TYPE REF TO cx_ai_application_fault,
* Structures to set and get message content
ls_request TYPE zrhexecute_rules,
ls_person TYPE zrhperson,
ls_response TYPE zrhexecute_rules_response.
ls_person-geschlecht = 'weiblich'.
ls_person-age = 18.
ls_person-name = 'Petra'.
ls_person-icon1 = 0.
ls_person-icon2 = 0.
ls_request-person = ls_person.
TRY.
* create proxy client
CREATE OBJECT lo_clientproxy.
CATCH cx_ai_system_fault.
ENDTRY.
TRY.
CALL METHOD lo_clientproxy->execute_rules
EXPORTING
input = ls_request.
CATCH cx_ai_system_fault INTO lo_sys_fault.
WRITE: / 'Code:', lo_sys_fault->code.
WRITE: / 'Text:', lo_sys_fault->errortext.
CATCH cx_ai_application_fault INTO lo_app_fault.
ENDTRY.
The input is correctly filled with the required data but every time i executed the program an error occurred.
SoapFaultCode:5
I think that the real problem could be parsing abap into xml.
SERIALIZE_APPLICATION_DATA
I tested the Web Service in Web Services Navigator without any errors.
The object is written in Java and the class implement Serializable, but i think the failure is on the abap site.
Does anyone has a solution for my issue?
Thanks a lot in advance!
Regards,
Robert
Hello Leo,
There are a number of options to do this. You can use the standard SAP tool named LSMW - Legacy System Migration Workbench (transaction LSMW) as a starting point.
Also please read this [Documentation|http://help.sap.com/saphelp_47x200/helpdata/en/0d/414538bc0fe927e10000009b38f8cf/frameset.htm] before undertaking the data migration activity via LSMW.
Additionally, there is also a Direct Input program available named RMDATIND - please go through the program documentation before you use it. You can use this program to transfer material master data to SAP but
make sure you assign this program through LSMW for mapping structures etc. The internet link above will give
more details and step-by-step instructions to follow.
Hope this helps,
Cheers,
Sougata.
p.s. It is sad to see useful answers remain unrewarded such as this one!
Edited by: Sougata Chatterjee on May 9, 2008 10:13 PM
Similar Messages
-
Non-SAP to SAP Material Master Data Transfer
Hi Experts,
Please indicate any standard tools in SAP and how to use it wherein we can migrate non-SAP material master data to SAP.
Points will be awarded.
Regards,
LMHello Leo,
There are a number of options to do this. You can use the standard SAP tool named LSMW - Legacy System Migration Workbench (transaction LSMW) as a starting point.
Also please read this [Documentation|http://help.sap.com/saphelp_47x200/helpdata/en/0d/414538bc0fe927e10000009b38f8cf/frameset.htm] before undertaking the data migration activity via LSMW.
Additionally, there is also a Direct Input program available named RMDATIND - please go through the program documentation before you use it. You can use this program to transfer material master data to SAP but
make sure you assign this program through LSMW for mapping structures etc. The internet link above will give
more details and step-by-step instructions to follow.
Hope this helps,
Cheers,
Sougata.
p.s. It is sad to see useful answers remain unrewarded such as this one!
Edited by: Sougata Chatterjee on May 9, 2008 10:13 PM -
Error importing Incoming Payments using the Data Transfer Workbench
Every time I try to import Incoming Payments using the Data Transfer Workbench I get an error that the Update Failed - Can not find this object in B1Application-defined or object-defined error65171. I'm using the 3 templates for Payments, Payments_Checks and Payments_Invoices. I've filled them out as I've seen in other postings in this forum. Based on the error message, I really can't tell what I'm doing wrong. Could someone please take a look at my files and let me know what might be causing the error?
I'm using SBO 2007A PL41. Here's what I have entered in my templates for my test file.
Payments file
RecordKey 1
DocEntry (blank)
CardCode 1033985
DocDate 20081215
DocTypte rCustomer
TaxDate 20081215
Payments_Checks file
RecordKey 1
LineNum 0
AccounttNum 0
CheckAccount _SYS00000002152
BankCode CC
Branch 12345
CheckNumber 1
CheckSum 78.7
CountryCode CA
DueDate 20081215
Trnsfrable tNo
Payments_Invoices file
RecordKey 1
LineNum 0
DocEntry 31791
InvoiceType 13
SumApplied 78.7
Thank you.Hi Suda,
As far as I can tell from the threads you forwarded (and other searches I've done on here), my files are correct. I tried filling out the templates exactly as explained in the first link (see my data below) but it still isn't working. It just gives me the same generic error.
Payments
Record Key....CardCode.....DocDate
1...................1033985.......20081217
Payments_Checks
RecordKey....CheckAccount........CheckNumber....CheckSum
1.................._SYS00000002152..1..................... 78.7
Payments_Invoices
RecordKey....DocEntry.....SumApplied
1..................31791..........78.7
Is it correct that the Payments file should not contain anything in the DocEntry column? (I know that the DocEntry in my Invoices file is the DocEntry of the Invoice). I have a feeling that I'm making a stupid mistake somewhere but I just can't figure it out. Any ideas?
I really appreciate your help with this.
Thanks,
Charlotte -
Please help with following query on Extracting the non-sap Data into BW.Please advice the full documentation on Loading,Transforming,Reporting for NON-SAP data into BW .
Essentially, the Third party tool provides a matrix for maximizing either profit or revenue (volume) for each loan product offering depending upon the bank's goals. For example, at the car dealership, the salesman inputs the price of car, the loan term, your FICO score, income etc and the tool calculates an interest rate for your loan based upon the bank's goals at the time. The tool has a Java front end and C++ on the back
Will assign points on reply and appreciate your helpAshley
There are different ways of doing this. One way is down load third party data into Flat file and then upload into BW using flat file extraction.
Other option is load data using DB connect. please see this link for DB connect
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
Hope this helps
Thnaks
Sat -
Crm to sap r/3 data transfer?
hi,
if i want to transfer data from CRM TO Sap R/3. which is the best way to do that?
Thanks,
saurin shahSaurin,
The CRM middleware supports data transfer of customers, products, and sales documents from CRM to R/3. So in your case, the question is what type of data are you trying to send from CRM to R/3?
Once we know this, we can answer your question.
Take care,
Stephen -
Webdynpro for ABAP call non-SAP webservice
Hi,
We have a WAS 7.0 ABAP only, Can we use webdynpro for ABAP to call a Notes's webservice or Weblogic's webservice.
Where can I get the document link?
Edited by: Jeff Lien on Jan 8, 2008 10:47 AM
Edited by: Jeff Lien on Jan 8, 2008 10:49 AMHi this will help u.
Web Dynpro ABAP
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706
Hope that the following also helps you.
Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web
applications in the ABAP environment. It consists of a runtime environment and a graphical
development environment with special Web Dynpro tools that are integrated in the ABAP
Workbench (SE80).
Web Dynpro offers the following advantages for application developers:
The use of declarative and graphical tools significantly reduces the implementation
effort
Web Dynpro supports a structured design process
Strict separation between layout and business data
Reuse and better maintainability by using components
The layout and navigation is easily changed using the Web Dynpro tools
Stateful applications are supported that is, if the page is changed and the required
data remains intact so that you can access it at any time throughout the entire
application context.
Note that stateless applications are not possible.
Automatic data transport using data binding
Automatic input check
Automatic operation of the Web Dynpro application using the keyboard
User interface accessibility is supported
Full integration in the reliable ABAP development environment
Web Dynpro Architecture
Definition
Web Dynpro is the SAP NetWeaver programming model for user interfaces (UIs).
The Web Dynpro model is based on the Model View Controller paradigm, and has the
following features that build on the classic dynpro model:
Clear separation of business logic and display logic
Uniform metamodel for all types of user interfaces
Execution on a number of client platforms.
Extensive platform independence of interfaces
Structure
Metamodel Concept
Web Dynpro provides support for developing Web representation of a business application.
You use specific tools to describe the properties of a Web Dynpro application in the form of
Web Dynpro metadata. The necessary source code is then generated automatically and
executed at runtime. In addition to the events offered by the framework, you can also define
your own events for a Web Dynpro application. However, the event handling must always be
programmed in separate source code areas which are executed automatically when the event
is triggered at runtime.
In Web Dynpro, each user interface is always made up of the same basic elements. These
elements of the metamodel can be statically declared using Web Dynpro tools.
It is also possible to implement elements of the metamodel at runtime and to change them or
reintegrate them at runtime. Using these implementations, you can make any changes or
enhancements to a user interface that has been created by declarative methods by
generating new interface structures at runtime.
This means that you can combine declarative processes and the implementation of source
code.
Graphical Development Tools
To support this declarative concept, both the SAP NetWeaver Developer Studio and the
ABAP Workbench contain a range of Web Dynpro tools. You can therefore generate a large
proportion of a Web Dynpro application using the tools provided, without having to create your
own source code. This applies to the following parts of the application:
Data flow between the front end and back end
Layout of the user interface
Properties of user interface elements
The Web Dynpro tools enable you to create source text areas manually within generated
source texts. These areas are not changed if the source code is regenerated.
Separation of Business and Application Logic
Using Web Dynpro enables a clear separation of business logic and display logic. A Web
Dynpro application runs on the front end and has local or remote access to the back end
system via a service. This means that the display logic is contained in the Web Dynpro
application, while the business logic and the persistence of the business objects run in the
back end system. The following options are currently available for connecting Web Dynpro
applications and the back-end system:
An interface generated using adaptive RFC, through which BAPIs of an SAP system
can be called
An interface for calling Web services
A self-generated interface
The source code required for connecting the Web Dynpro application can be generated
from a UML definition of the Web Dynpro interface. A UML definition can be imported
into the Web Dynpro tools as an XML file.
Conversion of the Model-View-Controller
Conversion of the Model-View-Controller Programming Model
Every Web Dynpro application is structured according to the Model View Controller
programming model:
The model forms the interface to the back end system and thus enables the
Web Dynpro application access to data.
The view is responsible for the representation of the data in the browser.
The controller lies between the view and the model. The controller formats
the model data to be displayed in the view, processes the user entries made by the
user, and returns them to the model.
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
with regards,
Hema.
pls give points if helpful. -
SAP DB recovery data, transfer from SAP to MAX DB
Hi all
I have use the SAP DB 7.4 database platform (it is very old, but maybe anyone knows or remember it)
SAP DB was installed on Windows 2000 server (32 bit DELL),after the server crash I have only backup file (hot backup with database parameters and data about 200GGb), as temporary solution I've recovered it on just desktop PC with good parameters (CORE2DUO, 16GGb RAM...) the recovery continued about 4 hours. I've tried to recovery this backup on new server (IBM) on 32bit Windows 2003 Server, but I was confused because recovery was continued about 16-20 and it still recovering very slow I dont know what the problem, maybe anyone changed OS or server version for SAP DB 7.4?
One more question, is it possible to transfer database (recovery backup) from SAP DB to MAX DB?
Thanks.Hi,
SAP DB was installed on Windows 2000 server (32 bit DELL),after the server crash I have only backup file (hot backup with database parameters and data about 200GGb), as temporary solution I've recovered it on just desktop PC with good parameters (CORE2DUO, 16GGb RAM...) the recovery continued about 4 hours
If your SAP instance running on above platform ? If yes, Whats the SAP release you have.
I've tried to recovery this backup on new server (IBM) on 32bit Windows 2003 Server, but I was confused because recovery was continued about 16-20 and it still recovering very slow I dont know what the problem, maybe anyone changed OS or server version for SAP DB 7.4?
What is the server configuration on IBM server. How much RAM and CPU does it have.
Regards,
Deepak Kori -
File is placing in Non-sap system problem
Hi all,
I am placing file in different IP address 150.150.120.123 successfully by using FMs
HTTP_SCRAMBLE
FTP_CONNECT
FTP_COMMAND
FTP_COMMAND
FTP_R3_TO_CLIENT
But i am getting problem of all are not coming line by line.
the file is placing but records are all line items placing continuously continuation with ','. Actually i have to get file records like this
0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF
0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF
0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO
But i am getting now file records as
0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF,0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF,0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO
Just like coming records continuing with ','.
DATA: v_aux(4) TYPE c, v_cr TYPE c.
v_aux = cl_abap_char_utilities=>newline.
v_cr = v_aux+1(1).
I am using this V_cr when concatenating those fields then also i am getting problem.
I need to place all records items wise.
But i am getting now as all items are continuing with ','
Pls if any one knows solution how to get records item wise without continuation all records with ','.
Pls help me
Regards,
J.LokeshTry using CR_LF instead of NEWLINE. Also I think that "end of line" character may also be affected by the FTP settings (not related to SAP). I vaguely remember having somewhat similar issue with FTP and mainframe. The file looked fine when downloaded to PC but mainframe "saw" only one long line.
Also take a look at the parameters in the FMs that you've mentioned, maybe there is something about the file type or end-of-line. -
Error while importing Journal Entries by using Data Transfer Workbench (DTW
Dear Experts,
when i am trying to import journal entries (expese entry, met my cash) i got a error message for without entering the tax group.
error message " you cannt post abase amount wihtout taxgroup JDTI BaseSum [line:1] [application defined or object error 65171]
but in example (proving by SAP ) all these are mentioney as date ( tax group)
please give me a solution for this.Hi Jijo,
Check the link
JE Tax Group
Regards
Jambulingam.P -
Chinese Conversion Problem -Data Transfer
Dear Guru's
We are implementing SAP to china Client we are facing problems in following areas please suggest me as of how to go about in these aspects
1. Base Unit of measurement
We are using PCS as our unit of measurement. In English Login we are getting PC is same as expected and when we log-in in Chinese we are getting Numeric value '211' at the place of Unit of Measure.
2. Out Put Conversion
In Chinese Login When we Create Delivery/Invoice/Packing list Out put The System is not converting the details into Chinese.The Display of Delivery is in English irrespective of Log-in. So kindly Let us know how to Go about it.
3. Master data F4 Display Screen
During Master data Access when we go for Search Screen F4 we are getting Question mark Symbols.
These are Some of the Major issues
So Kindly Let Us know How to Go about.
Regards
Kiran Nazareto 1) the translation of the unit is not done to Chinese language.
Not everything is SAP delviered if you install a new language.Some customizing has to be translated by yourself.
goto CUNI and select from menu GOTO > translation..
2) the form is usually your own form, so you need to translate the form to the new language
3) about which field are you talking, where do you see the ?????
Does this only happen for loaded materials or as well for manually created materials? -
Uploading data from non sap system to sap system
hi to all experts,
my requirement is to upload data into the sap system from non sap system . the data is in a flat file ,but the problem is that in the flat file all the field lengths and fields are not in order or same as sap system. How to upload the data into sap system ....hi,
the data is in a flat file,but the problem is that in the flat file all the field lengths and fields are not in order or same as sap system.
If the data is in excel sheet use this FM.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 17
I_END_ROW = 3000
TABLES
INTERN = itab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
It will read the data from excel sheet column wise and then store it in ITAB. you can change the order after reading the file.
In case of Text file use FM GUI_UPLOAD.
You can change the order of the fileds after reading it from file, but the length and all you have to make compatible to SAP standard fields.
Regards,
Sachin -
CAD to SAP data transfer (Title block integration)
Hi,
Im using Cideon's CAD integration tool.
I can able to transfer the data from SAP to AutoCAD Title block.
But not able to transfer data from Title Block to SAP.
Eg.
If I give "Test Title block" in description field of DIR. Its getting updated in ACAD Title Block's Description field. So SAP to CAD data transfer is ok.
But if I change the data in ACAD title block as "Test Title Block updated" its not getting updated in the document field of DIR?
How to make the config settings? Can anybody help?
If possible give an example.Hi Niranjan,
Sorry for the delay i was in a training.
In TbkMapping I have mapped the Description Field of SAP to Description attribute of ACAD Titleblock. So SAP to CAD is fine.
To do the data transfer from CAD to SAP, I tried with the UpdateDir like this
SystemCFG>default>updateDIR>BAPI_DOCUMENT_CHANGE2>DOCUMENTDATA>
I made an entry like,
Key as "DESCRIPTION"
Value as "%TITLEBLOCK(GEN-TITLE-DES1)"
and
SystemCFG>default>updateDIR>BAPI_DOCUMENT_CHANGE2>DOCUMENTDATAX>
I made an entry like,
Key as "DESCRIPTION"
Value as "X"
I have created an object named as DOCUMENTDESCRIPTIONS
SystemCFG>default>updateDIR>BAPI_DOCUMENT_CHANGE2>DOCUMENTDESCRIPTIONS
Inside that I have created an object LINE_0
LINE_0 Contains
Key as "LANGUAGE_ISO"
Value as "EN"
Key as "DESCRIPTION"
Value as "%TITLEBLOCK(GEN-TITLE-DES1)"
Pls tell me if im wrong. what other settings i need to do?
MRK -
Data Transfer Workbech - XML File
Hi,
I pretend use the Task Scheduler for importation data to the SAP Business One System. For this, I created a batch file with information:
cd "C:\Program Files (x86)\SAP\Data Transfer Workbench"
DTW -S C:\Temp\DTW_ScheduleItemImport.xml
Also, I exported for xml file the data to import in the system through Data Transfer Workbench. The content of xml file is:
<DTW><BOM><BO><AdmInfo><Object>13</Object><Version>2</Version></AdmInfo><Documents><row><CardCode>C1001</CardCode><DocDate>20050223</DocDate><DocDueDate>20050223</DocDueDate><Series>1000</Series><TaxDate>20050223</TaxDate></row></Documents><Document_Lines><row><ItemCode>A1008</ItemCode><Price>8</Price><Quantity>2</Quantity><WarehouseCode>01</WarehouseCode></row></Document_Lines></BO></BOM></DTW>
When I schedule a task in Task Scheduler runs the same but the data are not imported.
I believe that not import due to the fact that in the XML file will not be exported data on BD certified in Data Transfer Workbench.
Anyone help me?
Thanks.
Sandra PereiraHello Sandra,
I trust you.
>The objective this process is to schedule of importing data into the system using the mapping in xml, right?
Yes, and all the login information, file information, etc. the filename should be the same each time to import the data.
Maybe you are using older version of DTW than it knows. You may try to upgrade to the latest DTW, or at least B1 2007 SP 01 version (i have DTW 2005.0.30)
my xml file looks like
<Transfer>
- <Logon>
<UserName>manager</UserName>
<Password>tCmKcJvLfKqJ</Password>
<Company>FRMARPSAPHU</Company>
<Server>(local)sqlexpress</Server>
<UserAuthentication>True</UserAuthentication>
<Language></Language>
<LicenseServer></LicenseServer>
<ChooseDB>False</ChooseDB>
<DBType>4</DBType>
<DBUser></DBUser>
<SybasePort></SybasePort>
<DBPassword></DBPassword>
</Logon>
<ObjectCode>oItems</ObjectCode>
- <FileExtractor>
- <Extorlogin>
<ExID></ExID>
<ExDSN></ExDSN>
</Extorlogin>
<FilesTypes>2</FilesTypes>
- <Files>
<Items>C:SBOProjectsBio-RAD2010Service Implementationitems.txt</Items>
</Files>
</FileExtractor>
etc
Regards
János -
Data transfer files for Sales Invoices (A/R Invoices)
Hi,
I want Data Transfer Sheets for A/R Invoices in Sales module, Can you provide me?
Thanks,
Surendra.Hi Fidel,
I have checked that path.
The below mension templetes are available in that path
C:\Program Files\SAP\SAP Business One\Data Transfer Workbench\Templates\Templates\
oSalesForecast, oSalesOpportunities, oSalesPersons, oSalesStages, oSalesTaxAuthorities, oSalesTaxAuthoritiesTypes, oSalesTaxCodes, oSalesTaxInvoice, & etc
No templates for Sales Invoice. I saw oInvoices template, it will usefull for Sales invoices, can you check it & confirm me please?
Path: C:\Documents and Settings\Noni SAP4\Desktop\ZSL\Templates\Templates\oInvoices
Thanks,
Surendra. -
Calling web-service from non-SAP client
Hi,
Could anyone here help me with the code with which we can call the non-SAP service in java from a java client.
I have the wsdl and service deployed on the server.
Regards,
ManojHi Eduardo,
We are trying to consume a non-SAP webservice (https based) which uses a certificate issued by the non-SAP web service provider for authentication.
We tried consuming the web service using the Web Dynpro Java's Adaptive WebService Model method. We configured the Logical Destinations with X.509 client certificate authentication and have added the certificate to the WebServicesSecurity keystore.
However, when we run the application, we get the 'Peer certificate rejected by ChainVerifier' error.
Could you guide us on how to resolve the same ? If possible would you also provide the step-by-step details of how to create the EJB application that you did to achine this ?
Any help is greatly appreciated.
Thanks.
Melwyn.
Maybe you are looking for
-
<script type="text/javascript"> function functiontest(process,empname) alert(process); alert(empname); document.empdetform.processName.value=process; document.empdetform.empname.value=empname; document.empdetform.submit(); </script> <c:forEach var="e
-
my ipad randomly shut off and when i go to turn it on it shows a cord connecting to the itunes symbol, my ipad is not disabled by the way. has anyone else had this problem? if so does anyone know how to fix it?
-
IPCC - agent stuck in reserved state
HI I have a problem, Desktop agent goes in reserved state are using Cisco Contact Center Express 7.0(1)_Build168 This contact Center is integrated with CUCM 7.1.3.30000-1. Logs attached . PD:I already checked the CSS configuration of the agents and
-
Preview full screen mode/slideshow is great, except one thing
As an owner of a 13 inch screen Macbook Air, I love the full screen slideshow mode. It's especially cool to page through a PDF with the three-fingered side swipe motion. But one annoyance is that every time I go into full screen mode with a PDF, I ha
-
Register Secondary ACS with Primary ACS 5.4 patch 6 and getting error
Scenario #1: prodacs1 and prodacs2 version 5.4 patch 6 with IP address of 10.1.1.1/24 and 10.1.1.2/24, respectively. Both prodacs1 and prodacs2 are running on VMWare ESXi 5.1. Both are sync'ed with Active Directory and authenticate users to manage