Partner Profile problem while creating IDOC
hi!
I have attached the Partner Profile for the Generated model by assigning the Created Sender, Receiver and message Type and Distributed too.
While checking the attached partner using the T.code WE20 the Message Type is differing from what i have given in the model. its taking SYNCH and the Basic Type as SYNCHRON but the receiver port has been attached correctly.
whats the mistake i have done
Regards
Kv
Hello Gautam,
I am 100% sure about this (anyways FYI i am in ECC5.0). If you debug the BD64 transaction, you will find that it uses some FM (i donot have the SAP system with me so cannot give you the name of the FM) to update table EDP13 directly.
once you generate the partner profile then SYNCH message will automatically be added in partner profile
Then what is the use of adding SYNCH message? In fact the SYNCH message has to be added manually in WE20 & is used by the partner profile generation program to get the port details.
The FMs which SAP uses are: MODEL_ADD_MESSAGE_TYPE_LINK & EDI_AGREE_OUT_MESSTYPE_INSERT. You can refer to the program RBDCUS15.
BR,
Suhas
Edited by: Suhas Saha on Feb 2, 2010 3:46 PM
Similar Messages
-
Hi Friends..
I have created IDOC through program.
IF Shipment = 'X'.
perform shipment. -
>Shipment report
perform shipping. -
>Idoc creation form
PERFORM ftp2.
PERFORM move_ftp_entries.
perform shipment_display.
ELSEIF Receipt = 'X'.
perform Receipt. -
>Receipt Report
perform Receiving.----
>Idoc creation form
PERFORM ftp1.
PERFORM move_ftp_entries.
perform receipt_display.
ELSEIF Test = 'X'.
perform Test. -
> Test report
perform testdata.----
> Idoc creation form
PERFORM ftp.
PERFORM move_ftp_entries.
perform test_display.
ENDIF.
if I follow the above condition Idoc created for every report perfectly.But when I come to the following logic no idoc was created...
perform shipment. -
>Shipment report
perform shipping. -
>Idoc creation form
PERFORM ftp2. -
>FTP generation form
PERFORM move_ftp_entries.
perform shipment_display.----> Display form
perform Receipt. -
>Receipt Report
perform Receiving.----
>Idoc creation form
PERFORM ftp1.
PERFORM move_ftp_entries.
perform receipt_display.
perform Test. -
> Test report
perform testdata.----
> Idoc creation form
PERFORM ftp.
PERFORM move_ftp_entries.
perform test_display.
I want to generate IDOC for all my three reports.
Thanks
GowrishankarHi Gowri,
Tell me one thing. As per your logic you are displaying /generating one report and creating the responding idoc. Correct me if i am wrong. Can you please explain a bit more about your requirement.
Thanks,
Priyabrata -
Problem while creating the Partner Address in CRM
Hi,
We are facing one problem while creating the new address for the Business Partner.
When ever customer wants to change the address : we are following one process : where we are
using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of this , new addrss number will be generated for the
corresponding account in BUT021_FS table.But this table contains old address number as a first record, so that when ever
we display the partner address in UI, it is displaying the old address only because first entry of the the table 'BUT021_FS'
contains the old address number.
Because of this , we are getting lots of complaints regarding this.
Can you please help on this ASAP.
Thanks & Regards
Pradeep.Try BAPI_BUPA_ADDRESS_CHANGE for address change followed by BAPI_TRANSACTION_COMMIT . It works.
-
hi,
While creating idocs I created logical system using SPRO,then created RFC then Port but when i am creating partner profiles I am unable to get the destination system which I have created.Could any one guide me.Hi,
below is scenario for ALE/IDOC.
ALE-IDOC Scenario using Custom IDOC
Aim: Transfer the data from one system to another using user customized IDOC.
Sender System:
Server: 172.25.8.185
Client: 200
Data from Z table: zsach1
ReceiverSystem:
Server: 172.25.9.198
Client: 800
Data from Z table: zsach1
Data is fetched from Z table on the sender system and inserted it in the Z table of Receiver system using ALE/IDOC.
Settings on the Sender End
Table Creation T Code SE11. The table contains data that is to be sent to Receiver.
ALE Configuration
T-Code SALE
Defining Logical System
200 is our sender
800 is our receiver
Assigning Client to Logical System
200 is our sender
800 is our receiver
Defining Target System for RFC Calls (Tcode SM59)
Click on R/3 Connections and then Create TAB
Step 1
Step 2
Save and test the connection.
Defining Port
The sender system is connected to the receiver system through this Port.
Defining Partner Profiles
The partner for client 200(Sender) is the client 800 (Receiver)
Since this is a sender we have to define only Outbound Parameters in this case.
Here you can see the Message type is Z message type.
2. Maintaining Distribution Model ( TCode BD64 )
Create new Distribution Model
Add Message Type
Now Distribute this Model View
Distribute it from Edit à Model View à Distribute
Defining the Z Segment type
Tcode WE31
Defining the Basic Type
T Code WE30
Click on New
This will take you to next screen as follows
Here you have connected the basic type to the segment type.
Enter again and this will take you to screen as follows
This shows the relation between the basic and the segment types.
Next you need to make the entry of the segment in the system table.
Tcode : WE81
Next is the following entry which is required.
Here you are specifying the message type and the basic type and the release version.
This is all about the configuration you need to do on the sender side.
Now on the sender side you also need a program that will fetch the required data, couple it in the IDOC format and post it.
Here is a small piece of code that could be useful.
*& Report ZSACH_CUST_IDOC *
*report zsach_cust_idoc .
parameters : p_logsys like tbdlst-logsys.data : gen_segment like edidd-segnam value 'ZSACH'.data : control_dat like edidc,
gen_data like z1hdr .tables :zsach1.data: begin of inttab occurs 0,
lname type z1hdr-lname,
fname type z1hdr-fname,
end of inttab.
data :
int_edidd like edidd occurs 0 with header line,
int_edidc like edidc occurs 0 with header line.
select * from zsach1 into corresponding fields of table inttab.if sy-subrc ne 0.
message 'no data' type 'I'.
exit.
endif.control_dat-mestyp = 'ZSACH'.
control_dat-idoctp = 'ZSACH'.
control_dat-rcvprt = 'LS'.
control_dat-rcvprn = p_logsys.
loop at inttab.
gen_data-lname = inttab-lname.
gen_data-fname = inttab-fname.
GEN_DATA-SSN = INTTAB-SSN.
GEN_DATA-DOB = INTTAB-DOB. int_edidd-segnam = gen_segment.
int_edidd-sdata = gen_data. append int_edidd.
endloop.call function 'MASTER_IDOC_DISTRIBUTE'
exporting
master_idoc_control = control_dat
OBJ_TYPE = ''
CHNUM = ''
tables
communication_idoc_control = int_edidc
master_idoc_data = int_edidd exceptions
error_in_idoc_control = 1
error_writing_idoc_status = 2
error_in_idoc_data = 3
sending_logical_system_unknown = 4
others = 5
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno.
else. loop at int_edidc.
write :/ 'IDOC GENERATED',int_edidc-docnum.
endloop.
commit work.
endif.
Settings on the receiver side.
The ALE configuration is same as we did it on the sender side. Please refer to earlier pages.
The receiver specific differences are mentioned below.
T-Code SALE
200 is our sender
800 is our receiver
Steps
Defining Logical System (Same as sender)
Assigning Client to Logical System (Same as sender)
Defining Target System for RFC Calls (Tcode SM59) (Same as sender)
Defining Port(Same as sender)
Defining Partner Profiles Here we are accepting the data from Sender system. Hence we need to configure it as Inbound.
Click on the sign above to go to next screen.
Here the message type is to be created again as it was created on the sender side.
The following steps are repeated, as done on the sender side, on the receiver end
Tcode WE30
Tcode WE31
Tcode WE82
Tcode WE81
Here on the receiver end, we need to specify a process code at the time of defining the partner profile.
Process code is something that has the logic defined about what to be done after receiving the IDOC.
In our case, on receipt of the IDOC, we are updating the Z Table. i.e Inserting the data from the IDOC into the Z Table.
Creating a Process Code
Tcode WE42
The logic associated is coded in the Function Module which is specified in the Identification Field above.
Also the processing type is selected as Processing by Function Module as above.
The function Module is specified in the following screen.
To have your function Module in the above drop down list, the entry is to be made using the following transaction
TCode BD51
Once the entry is done here, the function module appears in the drop down list in the previous stage.
Also it is important to make the following entry
Tcode WE57
Function Module will look something as below:
Source Codefunction z_idoc_input_sach .
""Local interface:
*" IMPORTING
*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD
*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC
*" VALUE(NO_APPLICATION_LOG) LIKE SY-DATAR OPTIONAL
*" VALUE(MASSSAVEINFOS) LIKE MASSSAVINF STRUCTURE MASSSAVINF
*" OPTIONAL
*" EXPORTING
*" VALUE(WORKFLOW_RESULT) LIKE BDWF_PARAM-RESULT
*" VALUE(APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR
*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK
*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS
*" TABLES
*" IDOC_CONTRL STRUCTURE EDIDC
*" IDOC_DATA STRUCTURE EDIDD
*" IDOC_STATUS STRUCTURE BDIDOCSTAT
*" RETURN_VARIABLES STRUCTURE BDWFRETVAR
*" SERIALIZATION_INFO STRUCTURE BDI_SER
*" EXCEPTIONS
*" WRONG_FUNCTION_CALLED
include mbdconwf.
data : it_emp_data like zsach1 occurs 0 with header line.
data : gen_data like zsach1 .
workflow_result = c_wf_result_ok.
data : counter type int4.select count( * ) from zsach1 into counter.
counter = counter + 1. loop at idoc_contrl. if idoc_contrl-mestyp ne 'ZSACH'.
raise wrong_function_called.
endif. clear gen_data.
refresh it_emp_data. loop at idoc_data where docnum eq idoc_contrl-docnum. if idoc_data-segnam = 'ZSACH'. gen_data = idoc_data-sdata. it_emp_data-mandt = counter.
it_emp_data-lname = gen_data-lname.
it_emp_data-fname = gen_data-fname. counter = counter + 1. append it_emp_data.
else.
message 'ERROR' type 'I'.
endif. endloop. endloop.insert zsach1 from table it_emp_data.
call function 'EDI_DOCUMENT_OPEN_FOR_EDIT'
exporting
document_number = idoc_data-docnum
importing
idoc_control = idoc_contrl
tables
idoc_data = idoc_data
exceptions
document_foreign_lock = 1
document_not_exist = 2
document_not_open = 3
status_is_unable_for_changing = 4
others = 5.call function 'EDI_CHANGE_DATA_SEGMENTS'
tables
idoc_changed_data_range = idoc_data
exceptions
idoc_not_open = 1
data_record_not_exist = 2
others = 3.
data t_itab_edids40 like edi_ds40 occurs 0 with header line.clear t_itab_edids40.
t_itab_edids40-docnum = idoc_data-docnum.
t_itab_edids40-status = '51'.
t_itab_edids40-repid = sy-repid.
t_itab_edids40-tabnam = 'EDI_DS'.
t_itab_edids40-mandt = sy-mandt.
t_itab_edids40-stamqu = 'SAP'.
t_itab_edids40-stamid = 'B1'.
t_itab_edids40-stamno = '999'.
t_itab_edids40-stapa1 = 'Sold to changed to '.
*t_itab_edids40-stapa2 = t_new_kunnr.
t_itab_edids40-logdat = sy-datum.
t_itab_edids40-logtim = sy-uzeit.append t_itab_edids40.call function 'EDI_DOCUMENT_CLOSE_EDIT'
exporting
document_number = idoc_data-docnum
do_commit = 'X'
do_update = 'X'
write_all_status = 'X'
tables
status_records = t_itab_edids40
exceptions
idoc_not_open = 1
db_error = 2
others = 3.endfunction.
Running the Application
Sender system
Execute the program we created earlier
Checking the IDOC
T Code WE02
Checking the data on the Receiver end
Tcode: WE02
The IDOC has arrived here
Checking the Data
Double click on the IDOC
Checking the Database
This way, the data has come to the receiver end successfully.
REWARD IF HELPFULL. -
VKP0 is not to be maintained as mandatory condition while creating IDOC
We have a very awkward need from our client.The bussiness doesnt want the condition type VKP0 to be mandatory condition while creating IDOC for article master data.
In the bussiness terms they send some articles to POS without creating price.They dont want to have the value of KONWERT field as 'ZERO'..
We have upgraded ECC 5.0(IS Retail) to ECC 6.0(IS Retail).It was techinical upgrade hence no functional configuration has been done.
Moreover we have compared POS outbound profile in ECC 6.0 with ECC 5.0.Every configuration is same and all required prerequisites for POS Outbound profile are same in both the versions.The Idoc in ECC 5.0 is getting created even though the price of the artilce is not required to be mainatained.
All of us know that if prices are not maintained system shows'X' mark in price field in T.Code WPER2.
But,instead the IDOC is getting created in ECC 5.0.
Please help us to make the IDOC creation possible in ECC 6.0 even without creating the price.
Edited by: ajay das on Nov 15, 2008 8:00 PMHello Ajay,
Are IDocs for other transactional data getting created? In case these are, you can try to check the message control settings.
Regards,
Nimish -
Problem: While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off. Video soundtrack is not in the right place. HELP!
Have you checked out the topics at the right in the More Like This section?
OT -
Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?
Hi All,
I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
2 REFRESH ON DEMAND
3 WITH PRIMARY KEY
4 AS
5 SELECT name,id
6 FROM syn_t;
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
2 WITH PRIMARY KEY
3 (name)
4 INCLUDING NEW VALUES;
Materialized view log created.
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
REFRESH ON DEMAND
WITH PRIMARY KEY
AS
2 3 4 5 SELECT name,id
FROM syn_t; 6
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
WITH PRIMARY KEY
(name)
INCLUDING NEW VALUES; 2 3 4
CREATE MATERIALIZED VIEW LOG ON MV_t
ERROR at line 1:
ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
Message was edited by:
Avinash Tripathi
nullHi Nicloei,
Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
Regards
Avinash -
Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
Appreciate for any help rendered.Mikko777 wrote:So what is the best?
I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
Mikko777 wrote:PS:You produce a lot of text and welcome smile
Yeah. Wonder why I'm still employed? So do I ... -
Problem while creating URL iview (in EP7.0)
Hi,
I encountered a problem while creating URL iview (in EP7.0) as when I selected the iview template for creating the URL iview, the content area got displayed as
"No templates to display. You are not assigned to any existing templates."
please assist me in this regard.
Thanks,
SuriHi Manoj,
Thank you for your reply.
I am still getting the same messages even after creating the iview template in EP7.0
Created through:
content Admin --> portal content --> <folder>new --> iview --> seleting "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR file)" <next> --> seleting "com.sap.portal.appintegrator.sap" <next> --> webdynpro <next> --> finish.
Open object for editing...--> Object is a Template to Yes.
Result :
content Admin --> portal content --> <folder>new --> iview --> seleting "iview template- create an iView from an existing iView template" <next> which displays the same message.
"No templates to display. You are not assigned to any existing templates."
Rgrds,
Suri. -
Problem while creating sales order
Hi
We are facing a problem while creating a sales order in R/3. The sales order number is getting generated. But we are not able to view the same in the backend meaning it is not there in the database. Any inputs would be of help.
regs
SteveHi everybody,
I've got a problem with this too. I use the BAPI_SALESORDER_CREATEFROMDAT2 with BAPI_TRANSACTION_COMMIT and the webdynpro shows me the document number created in R3 with a Success message. But when I go to R3 and try to display the created sales order, it doesn't exists. So... Maybe I'm doing something wrong with the BAPI_TRANSACTION_COMMIT. ¿Can anybody help me with this?
The code I use is this:
When the user pushes the SAVE button in the WebDynpro, this code executes:
//@@begin onActionSave(ServerEvent)
wdThis.wdGetSOCreaCustController().executeBapi_Salesorder_Createfromdat2();
wdThis.wdGetSOCreaCustController().executeBapi_Transaction_Commit();
//@@end
In the custom Controller I've got the code for those executions:
public void executeBapi_Salesorder_Createfromdat2( )
//@@begin executeBapi_Salesorder_Createfromdat2()
try {
wdContext.currentBapi_Salesorder_Createfromdat2Element().modelObject().execute();
catch (Exception ex) {
wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
wdContext.nodeOutput().invalidate();
//@@end
public void executeBapi_Transaction_Commit( )
try {
wdContext.currentBapi_Transaction_CommitElement().modelObject().execute();
catch (Exception ex) {
wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
wdContext.nodeOutput().invalidate();
//@@end
¿Is something wrong? ¿Is something missing? -
Problem while creating JCA connection to MDM server
Hi All,
I have restarted my mdm connector(com.sap.mdm.tech.connector) along with the applications related to Enrichment Controller. All applications restarted successfully. After that I tried accessing the URL
http://MDMSERVER:50000/MDM_EnrichmentController/WorkflowPolling?process=Monitor
but I am getting following exception in this page
Polling Repository
name=Vijaybabu_Repo_on_MDMSERVER, status=No repository connection, error description=com.sap.mdm.net.ConnectionException: Problem while creating JCA connection to MDM server MDMSERVER
Enrichment Request Threads
Could somebody help me pointing if something I have missed..
Thanks and Regards,
Manojhi Swarna,
I have verified the repository and found 0 fatal errors, 0 non-fatal erros and 0 warnings. I also checked the MDM Factory and Connector service is running fine.
The detailed exception is
Sep 2, 2008 12:49:40 PM com.sap.mdm.logging.MdmLogger error
SEVERE: Problem while creating JCA connection to MDM server 'KOLAPON'
com.sap.mdm.net.ConnectionException: Can not resolve JCA connection
at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:119)
at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnectionAccessor(JcaConnectionUtil.java:62)
at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:70)
at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:59)
at com.sap.mdm.repository.commands.GetRepositoryStatusCommand.execute(GetRepositoryStatusCommand.java:67)
at com.sap.mdm.enrichment.common.ECAdminUtils.getRepositoryStatus(ECAdminUtils.java:125)
at com.sap.mdm.enrichment.common.EnrichmentUtils.validateRepostiryConfiguration(EnrichmentUtils.java:889)
at com.sap.mdm.enrichment.common.EnrichmentUtils.getCatalogManager(EnrichmentUtils.java:144)
at com.sap.mdm.enrichment.workflowpolling.PollingThread.getCatalogManager(PollingThread.java:166)
at com.sap.mdm.enrichment.workflowpolling.PollingThread.run(PollingThread.java:102)
Caused by: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:223)
at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:108)
... 9 more
Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122)
at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:213)
... 10 more
Regards,
Manoj
Edited by: Manoj Kumar Nanda on Sep 2, 2008 9:21 AM -
Problem while creating data transfer process
Hi friends
I am using BI 7.0 version.
I m getting a problem while creating dtp
After activating DTP and selecting the execute button, I am getting the following error message:
Request cannot be processed in its current state
Messg no : RSBK209
can anyone help me on this problem
ThankHi Deepthi,
Also check the error message(long text) and paste it here...
check if you are either creating a "second" Delta DTP ( if an existing Delta DTP exists, then system will not allow you create a second DTP) and will throw an "overlapping" error
Hope this helps
Thanks
Kalyan -
Problem while creating xml with cdata section
Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
<![cdata[123456789012345678901234567890123456789012]]>
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give < for cdata tag. How can I overcome this? Please help.SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
2 cdataValue varchar2)
3 return xmltype deterministic
4 as
5 begin
6 return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
7 end;
8 /
Function created.
SQL> select xmlelement
2 (
3 "Row",
4 xmlcdata_10103('Junk','&<>!%$#&%*&$'),
5 xmlcdata_10103('Name',ENAME),
6 xmlelement("EMPID", EMPNO)
7 ).extract('/*')
8* from emp
SQL> /
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SMITH]]></Name>
<EMPID>7369</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ALLEN]]></Name>
<EMPID>7499</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[WARD]]></Name>
<EMPID>7521</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JONES]]></Name>
<EMPID>7566</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MARTIN]]></Name>
<EMPID>7654</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[BLAKE]]></Name>
<EMPID>7698</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[CLARK]]></Name>
<EMPID>7782</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SCOTT]]></Name>
<EMPID>7788</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[KING]]></Name>
<EMPID>7839</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[TURNER]]></Name>
<EMPID>7844</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ADAMS]]></Name>
<EMPID>7876</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JAMES]]></Name>
<EMPID>7900</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[FORD]]></Name>
<EMPID>7902</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MILLER]]></Name>
<EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL> -
Problem while creating Item Data in OCA application
Hello Experts!
I am creating a PDA application (OCA) for NW7.1.
I am facing problem while creating Sales Order. I can create the Header structure. But when I Create the corresponding item structure for the header , the items are not getting created. After Sync I can only see the header structure in the middleware.
I am using the following code to create the header and item.
OrderCreateDocType header = model.createOrderCreateDocType();
header.setRefdoctype("41001180");
header.setDocType("ZRRJ");
header.setSalesOrg("AND");
wdContext.nodeOrderCreateDocType().bind(Collections.singleton(header));
OcaRoot.getInstance().commit();
wdContext.nodeOrderCreateDocType().setLeadSelection(0);
header=(OrderCreateDocType)wdContext.nodeOrderCreateDocType().getCurrentElement().model();
OrderCreateOrderItemsIn items = header.createNewOrderItemsIns();
long item = new Long("000010").longValue();
items.setItmNumber(item);
items.setMaterial("MMKT090114");
items.setPlant("ANDP");
items.setTargetQty(new BigDecimal(7));
items.setTargetQu("IT");
header.setOrderItemsIns(Collections.singleton(items));
OcaRoot.getInstance().commit();
Am I missing out on step.
Reply Awaited
Regards
Priya GhoshHello Priya
in your case as the DOs are of upload only type, you are not able to create a
child on an already created header, because updates are not allowed for upload only DOs.
So in this case you first have to create an instance of the header first and then create an item. And only after this call a commit on the model
Best Regards
Vaidehi -
Problem while creating CAF project in NWDS workspace
Hi Experts,
We are facing a problem while creating CAF project in NWDS workspace. Even though we have tried in new workspace we are facing the issue. Find the below build error.
We are not getting any error when we build from CBS.
[javac] ERROR: C:\sap\test_VC_DC.jdi\0\DCs\test.com\ja\bl\journal\ejbmodule\_comp\src\com\test\ja\bl\journal\modeled\ModifyJournalLineItemRequestMessage.java:7: cannot find symbol
[javac] ERROR: symbol : class JournalLineItemDetail1
[javac] ERROR: location: package com.test.ja.cm.util.modeled
[javac] ERROR: import com.test.ja.cm.util.modeled.JournalLineItemDetail1;
when we expand com.test.ja.cm.util.modeled there is no file with name JournalLineItemDetail1 and the actual file exists is JournalLineItemDetail but we are not able to understand why 1 is appending to the file JournalLineItemDetail. Can somebody throw some light on this?
Regards,
PradeepHave you checked out the topics at the right in the More Like This section?
OT
Maybe you are looking for
-
Saving Form created in Adobe Acrobat 9 Standard (V 9.4.5)
Hi, I was wondering if someone could help me. I have a form that is created in Adobe 9 that is sent out and the form is filled out and then submitted back but the problem is that many of the users who click the "Submit Form" button it does not appear
-
How to install Adobe Flash Player mannuly for FireFox protable, when on a limted user acount
I have Firefox protable. Which is on my 1tb, and so i use it every where. I tryed to update Adobe Flash player on my main home computer, and it. Also on my Nanas computer, when i was there for a week, and i could play games on armor games, but, im he
-
Issues with still photos (size/cropping) in IMovie
Hi, I been searching and despite trying to solve this issue myself and through taking the advice given in similar posts, I still have not been able to resolve this issue. When making a video/movie, my still pictures get cut up. The tops are noticeabl
-
Hi everyone, I need to write a javascript which will group some object on running the script and then duplcate the same group.After duplicating it will enlarge the same group upto some extend.The object will be generally inside the textframes.We have
-
Converting .MTS files to .MOV files
I'm converting .MTS files from my new Sony AVCHD camcorder to .MOV files with a software called VoltaicHD. It works well but it takes for ever to transfer large amounts of footage. Anyone aware of a way to batch convert these files? Also, am I loosin